/* Hallmark · shape: Workbench · genre: editorial · theme: Ink (deal 3/3, seed rainwater-from-roof-litres-4318·5ae82809·2026-12-05·r0) · job: try · draw: manual
 * hero: the head over a ruled list of five figures, the well that answers standing beside both · nav: edge-aligned, the wordmark and two links · footer: an ink rule over the note and the credit lines · imagery: none, the answers set large on a paper well · signature: the litres you collect, set large in teal as you type, the one colour that means water in · ink: paper
 * axes: light/grotesk-sans/chromatic-teal · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one calculator and one worked example; the ruled list and the teal figure carry the look */
/* Hallmark · waive 22 · every page · ink and greys at zero chroma: the Ink theme prints in plain black, so the teal alone means the water that comes in */
/* Hallmark · waive 77 · every page · a calculator and a page that works its sum, not a landing strip */
/* Hallmark · waive 44c · every page · the well of answers is the calculator's first-screen visual; on the worked example the head stands over its numbered steps */
:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(99.5% 0.003 100); --color-paper-2: oklch(97% 0.004 100); --color-paper-3: oklch(94% 0.006 100);
  --color-ink: oklch(16% 0 0); --color-ink-2: oklch(28% 0 0); --color-muted: oklch(44% 0 0);
  --color-rule: oklch(89% 0.004 100); --color-rule-2: oklch(93.5% 0.003 100);
  --color-accent: oklch(50% 0.095 188); --color-accent-ink: oklch(99.5% 0.003 100); --color-accent-soft: oklch(93% 0.05 190); --color-accent-soft-ink: oklch(27% 0.045 190);
  --color-focus: oklch(50% 0.095 188);
  --font-display: "Epilogue", ui-sans-serif, system-ui, sans-serif; --font-body: var(--font-display);
  --font-outlier: "IBM Plex Mono", ui-monospace, monospace;
  --radius-card: 12px; --radius-pill: 999px; --rule-hair: 1px;
  --shadow-card: 0 20px 40px oklch(20% 0 0 / 0.16);
  --tracking-display: -0.04em; --display-weight: 700;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: var(--color-accent-soft); color: var(--color-accent-soft-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
/* photographs: muted */
[data-slot] > img { filter: saturate(0.65) contrast(0.97); }

@font-face { font-family: "Epilogue"; src: url("/fonts/epilogue-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Epilogue"; src: url("/fonts/epilogue-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Epilogue"; src: url("/fonts/epilogue-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

body { color: var(--color-ink-2); font-size: 1.0625rem; }
h1, h2 { color: var(--color-ink); line-height: 1.02; }
.skip { position: absolute; left: var(--space-md); top: -100px; background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); border-radius: 10px; z-index: var(--z-modal); }
.skip:focus-visible { top: var(--space-md); }
a { color: var(--color-ink); font-weight: 600; transition: text-decoration-color var(--dur-micro) var(--ease-out); }
a:hover { text-decoration-color: var(--color-accent); }

/* the bar: the wordmark and two links */
.bar { border-bottom: var(--rule-hair) solid var(--color-rule); }
.bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xl); padding-block: var(--space-sm); }
.wordmark { font-weight: 700; font-size: var(--text-xl); letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; }
.wordmark span { color: var(--color-muted); font-weight: 400; }
.bar__nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.bar__nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 400; color: var(--color-ink-2); }
.bar__nav a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.35em; }
.bar__nav a[aria-current="page"] { color: var(--color-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

/* the hero: the head, then the ruled list of figures beside the well */
.hero { padding-block: var(--space-2xl) var(--section-gap-s); }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1; max-width: 14ch; }
.hero .lead { margin-top: var(--space-sm); max-width: 44ch; }
.hero__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-2xl); align-items: start; }
.hero__head { grid-column: 1; }
.calc { display: contents; }

.rows { grid-column: 1; margin-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-ink); }
.row { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 10rem) minmax(0, 1fr); align-items: center; gap: var(--space-xs) var(--space-md); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.row__k { font-weight: 600; color: var(--color-ink); }
.row input[inputmode] { width: 100%; height: 52px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: 10px; background: var(--color-paper); color: var(--color-ink); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.row input[inputmode]:hover { border-color: var(--color-ink); }
.row input[inputmode]:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-color: var(--color-ink); }
.row input[inputmode]:disabled { opacity: 0.5; cursor: not-allowed; }
.row__note { font-size: var(--text-sm); color: var(--color-muted); max-width: 34ch; }

/* two states side by side: the one that is on is ink-filled, the other an outline */
.pick { display: inline-flex; flex-wrap: wrap; gap: var(--space-2xs); border: 0; margin: 0; padding: 0; min-width: 0; }
.pick label { position: relative; display: inline-flex; }
.pick input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-muted); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.pick label:hover span { box-shadow: inset 0 0 0 var(--rule-hair) var(--color-ink); }
.pick input:checked + span { background: var(--color-ink); color: var(--color-paper); box-shadow: none; }
.pick label:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-pill); }
.pick label:active span, .bar__nav a:active { transform: translateY(1px); }

/* one line of the answers above the figures, for the one-column layout, where the well falls below them */
.peek { display: none; }

/* the well: the litres that come in, in teal; the days, in ink */
.well { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: var(--space-lg); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-xl); display: grid; gap: var(--space-2xs); }
.well__k { font-size: var(--text-sm); color: var(--color-muted); }
.well__v { font-size: clamp(2.4rem, 4vw, 3.5rem); font-weight: 700; line-height: 1.05; letter-spacing: var(--tracking-display); color: var(--color-ink); overflow-wrap: anywhere; }
.well__v--in { color: var(--color-accent); }
.well__l { color: var(--color-ink-2); max-width: 40ch; }
.well__rule { border: 0; border-top: var(--rule-hair) solid var(--color-rule); margin: var(--space-md) 0; width: 100%; }

/* the pages under the calculator */
.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 16ch; }
.head .lead { margin-top: var(--space-md); max-width: 50ch; }

.sec { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.sec--first { padding-top: var(--space-2xl); }
.sec h2 { font-size: var(--text-section); }
.sec h2 + * { margin-top: var(--space-lg); }
.sec p + p { margin-top: var(--space-md); }
.sec__note { margin-top: var(--space-lg); max-width: 64ch; }

/* steps as a notice: a numeral at display size over each hairline */
.steps { list-style: none; margin: 0; padding: 0; max-width: 60rem; border-top: var(--rule-hair) solid var(--color-ink); }
.steps li { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: var(--space-md); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.steps__n { font-size: var(--text-3xl); font-weight: 700; line-height: 1; letter-spacing: var(--tracking-display); color: var(--color-ink); }
.steps p { max-width: 56ch; }
.steps b { color: var(--color-ink); font-weight: 600; }
.tag { display: inline-flex; padding: var(--space-3xs) var(--space-sm); border-radius: var(--radius-pill); font-weight: 600; white-space: nowrap; }
.tag--in { background: var(--color-accent-soft); color: var(--color-accent-soft-ink); }

.foot { border-top: var(--rule-hair) solid var(--color-ink); }
.foot__in { padding-block: var(--space-xl); display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
.foot__note, .foot__line { margin: 0; max-width: 72ch; }

@media (max-width: 1040px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .well { grid-column: 1; grid-row: auto; position: static; margin-top: var(--space-xl); max-width: 40rem; }
  .peek { display: block; grid-column: 1; margin-top: var(--space-lg); padding: var(--space-sm) var(--space-md); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: 10px; color: var(--color-ink-2); max-width: 40rem; }
  .peek b { color: var(--color-ink); font-weight: 700; white-space: nowrap; }
  .peek .peek__in { color: var(--color-accent); }
}
@media (max-width: 600px) {
  .hero { padding-top: var(--space-xl); }
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row__k, .row__note { grid-column: 1 / -1; }
  .well { padding: var(--space-lg); }
  .steps li { grid-template-columns: 2.75rem minmax(0, 1fr); }
}
