/* Chalkline web calculators. Colours and type follow corduroying.com/chalkline/;
   the font and the header mark are the site's own files. Mobile first. */
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --air: #f7faf8;
  --ink: #19211f;
  --heading: #173f35;
  --fern: #477663;
  --sky: #dfe4ea;
  --card: #ffffff;
  --text-soft: rgba(25, 33, 31, 0.8);
  --text-dim: rgba(25, 33, 31, 0.7);
  --hairline: rgba(23, 63, 53, 0.2);
  --field: #ffffff;
  --field-border: rgba(23, 63, 53, 0.35);
  --chalk: #2b78d4;
  --chalk-ink: #ffffff;
  --warn: #9a3412;
  --page: min(860px, calc(100vw - 32px));
}
@media (prefers-color-scheme: dark) {
  :root {
    --air: #101815;
    --ink: #dde7dc;
    --heading: #a8c4b8;
    --fern: #7fa792;
    --sky: #1e2630;
    --card: #17201c;
    --text-soft: rgba(221, 231, 220, 0.8);
    --text-dim: rgba(221, 231, 220, 0.7);
    --hairline: rgba(168, 196, 184, 0.22);
    --field: #0c1210;
    --field-border: rgba(168, 196, 184, 0.4);
    --chalk: #6aa8f5;
    --chalk-ink: #0c1420;
    --warn: #fdba74;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--air);
  font-family: "Manrope", "Avenir Next", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

.site-header,
.page,
.site-footer {
  width: var(--page);
  margin-inline: auto;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 12px;
}
.brand-lockup {
  display: block;
  width: 170px;
  aspect-ratio: 353.12 / 72;
  background: var(--heading);
  -webkit-mask: url("/brand-kit/assets/corduroying-lockup-horizontal.svg") center / contain no-repeat;
  mask: url("/brand-kit/assets/corduroying-lockup-horizontal.svg") center / contain no-repeat;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 12px;
  font-weight: 700;
}
.site-nav a {
  padding: 6px 2px;
  color: var(--fern);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--heading); text-decoration: underline; }

.page { padding: 8px 0 56px; }
.crumbs { margin: 8px 0 0; font-size: 14px; font-weight: 650; }
.crumbs a { color: var(--fern); }
h1 {
  margin: 16px 0 12px;
  color: var(--heading);
  font-size: clamp(34px, 8vw, 56px);
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
h2 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
h3 {
  margin: 20px 0 6px;
  color: var(--fern);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.intro {
  max-width: 640px;
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 17px;
}
.note { margin: 0 0 16px; color: var(--text-dim); font-size: 15px; }

.card {
  margin: 0 0 20px;
  padding: 20px 16px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--card);
}

.fields { display: grid; gap: 12px; margin: 0 0 20px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 14px; font-weight: 700; }
.req { color: var(--fern); }
.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: 10px;
}
.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--chalk);
  outline-offset: 1px;
}

.results-title { margin-top: 4px; }
.results { margin: 0; border-top: 1px solid var(--hairline); }
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.row dt { color: var(--text-soft); }
.row dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.status { min-height: 1.5em; margin: 12px 0 0; color: var(--warn); font-weight: 650; }

.drawing { margin: 24px 0 8px; }
.drawing img {
  width: 100%;
  border: 1px dashed var(--field-border);
  border-radius: 12px;
  background: var(--sky);
}
.drawing figcaption { margin-top: 8px; color: var(--text-dim); font-size: 15px; }

.open { margin: 20px 0 8px; }
.open-button {
  display: inline-block;
  padding: 13px 22px;
  color: var(--chalk-ink);
  font-weight: 750;
  text-decoration: none;
  background: var(--chalk);
  border-radius: 999px;
}
.open-button:focus-visible { outline: 2px solid var(--heading); outline-offset: 3px; }

.calc-list { margin: 0; padding: 0; list-style: none; }
.calc-list li { padding: 12px 0; border-top: 1px solid var(--hairline); }
.calc-list a { display: block; color: var(--heading); font-size: 18px; font-weight: 700; }
.calc-list span { display: block; color: var(--text-dim); font-size: 15px; }

.get-app {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  padding: 20px 16px;
  border-radius: 20px;
  background: var(--sky);
}
.get-app p { margin: 0 0 10px; }
.app-icon { flex: 0 0 auto; border-radius: 22.4%; }
.get-app .store-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.app-store-badge { display: inline-block; line-height: 0; border-radius: 7px; }
.app-store-badge img { width: auto; height: 40px; }
.play-store-badge { display: inline-block; line-height: 0; border-radius: 5px; }
.play-store-badge img { width: auto; height: 40px; }

.more ul { margin: 0; padding: 0 0 0 18px; columns: 2 220px; }
.more li { margin: 0 0 6px; }
.more a { color: var(--fern); }

.site-footer {
  padding: 24px 0 40px;
  color: var(--text-dim);
  font-size: 14px;
  border-top: 1px solid var(--hairline);
}

@media (min-width: 640px) {
  .card { padding: 28px; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .get-app { padding: 24px 28px; }
}
