/* Hallmark · shape: app screen · genre: editorial · theme: Riso (deal 1/3, seed ngos-free-donation-receipt-71de·59309442·2026-11-27·r0) · draw: 37f83a (its landing shape set aside: the maker is the front page, an app screen; the reading pages are editorial)
 * nav: top bar, the wordmark and four links that wrap on a phone, never hidden · signature: the A5 receipt drawn live in the blue drum on printer white, its amount on the pink screen, with the pink drum printed a hair out of register behind the sheet · states: example (nothing typed), filled, number warnings, making a file, saved, failed; on the list page: empty, rows with problems, ready, making n of N
 * axes: light/grotesk-heavy/chromatic-pink · posture: committed · texture: none (the owner's rule: no grain behind text) · surface: absolute white on the receipt sheet only, the printer paper · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P and R, a form argues little; the receipt itself does the talking, drawn from the first second with an example, and the reading page quotes the Department instead of paraphrasing it */
/* Hallmark · hero-review: none, app screens and a reading page carry no hero · finish-review: subagent · 7 findings · 7 resolved (the list page opens on the list, its NGO box closed when kept; the Department's words never split inside a cell, the ledgers restack on a phone; the list's forms keep the maker's measure; "Nothing is uploaded" replaced by what stays; the empty receipts table holds the sample button; the desktop receipt wider, larger on request; every date also in words) · answered: the phone strip stays a fixed 22svh, since resizing it on focus moved the field under the finger and swallowed a click; the pink plate stays behind the sheet on a phone; the press's one mark is the misregistered word on /pre-arn/ · gap: on the browser box the visit counter's request is refused, which the render tier reads as a script error (#832) */
/* Hallmark · waive 7b · .sheet canvas is the only surface on --color-sheet · the receipt is drawn on printer white, the paper it prints on, so the preview shows it as it will print */
/* Hallmark · waive 22 · --color-sheet, one token, zero chroma · the PDF pages are white, so the sheet under the preview cannot carry the stock's tint */
/* Hallmark · waive 38iii · the head of /pre-arn/ prints its word "Pre-ARN" in both drums, the pink copy 2px by 3px behind the blue · the theme's one mark of the press, once on one page; the app screens carry none */
/* Hallmark · answered F7 · the form controls share one recipe on purpose: on a form of twenty fields every input is the same kind of box, and the blocks around them carry the variation */
/* Hallmark · dismissed F1 · the straight quotes on /pre-arn/ are inside the Income Tax Department's sentences, which are quoted word for word and checked against its pages */
: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.75rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.2rem; --text-xl: 1.44rem; --text-2xl: 1.728rem; --text-3xl: 2.074rem;
  --text-display-s: 1.44rem; --text-display: 1.728rem; --text-section: 1.2rem; --text-title: 1rem; --text-lead: 1rem;
  --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(97% 0.011 90); --color-paper-2: oklch(93.5% 0.034 356); --color-paper-3: oklch(84% 0.11 356);
  --color-ink: oklch(40% 0.165 265); --color-ink-2: oklch(45% 0.15 265); --color-muted: oklch(50% 0.115 265);
  --color-rule: oklch(85% 0.045 265);
  --color-accent: oklch(68% 0.235 356); --color-accent-ink: oklch(27% 0.13 265); --color-focus: oklch(44% 0.2 265);
  --font-display: "Cabinet Grotesk", ui-sans-serif, sans-serif; --font-body: "Literata", ui-serif, Georgia, serif;
  --radius-card: 2px; --radius-pill: 2px; --rule-hair: 1px;
  --shadow-card: none; --texture-opacity: 0.08;
  --tracking-display: -0.025em; --display-weight: 800;
}

*, *::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: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-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: duotone ink paper-2 con=14 */
[data-slot]:has(> img) { isolation: isolate; background: var(--color-paper-2); outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
[data-slot] > img { z-index: 0; filter: grayscale(1) contrast(1.14); mix-blend-mode: multiply; }
[data-slot]:has(> img)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--color-ink); mix-blend-mode: lighten; pointer-events: none; }

:root {
  --container: 1280px;
  --color-sheet: oklch(100% 0 0);            /* printer paper: the receipt is drawn on white, as it prints */
  --color-field: oklch(99% 0.006 90);        /* a field under the pointer or the cursor: a shade lighter than the stock */
  --color-error-bg: oklch(95% 0.03 27);
  --control-h: 40px;
  --sheet-w: clamp(340px, 36vw, 540px);
}

@font-face { font-family: "Cabinet Grotesk"; src: url("/fonts/cabinet-grotesk-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/fonts/literata.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; src: url("/fonts/literata-ext.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

html { scroll-padding-top: var(--space-xl); }
h1 { line-height: 0.98; }
h2 { line-height: 1.02; }
a { text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 4px; }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }
html.js .nojs { display: none; }
.nojs { margin-top: var(--space-md); padding: var(--space-sm) var(--space-md); background: var(--color-paper-2); max-width: 60ch; }

/* ---- the bar --------------------------------------------------------------------------------------------------------------- */
.bar { border-bottom: 1.5px solid var(--color-ink); background: var(--color-paper); }
.bar__in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-lg); padding-block: var(--space-md); }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: var(--tracking-display); text-decoration: none; color: var(--color-ink); }
.wordmark span { color: var(--color-muted); }
.bar__nav { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); font-size: var(--text-sm); }
.bar__nav a { text-decoration-color: transparent; padding-block: var(--space-2xs); transition: text-decoration-color var(--dur-short) var(--ease-out); }
.bar__nav a:hover, .bar__nav a[aria-current="page"] { text-decoration-color: var(--color-accent); }

/* ---- controls ------------------------------------------------------------------------------------------------------------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--space-lg); border: 1.5px solid transparent; border-radius: var(--radius-card); font: 600 var(--text-sm)/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:active:not(:disabled) { transform: translate(1px, 1px); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover:not(:disabled) { background: var(--color-paper-3); }
.btn--secondary { border-color: var(--color-ink); color: var(--color-ink); background: var(--color-paper); }
.btn--secondary:hover:not(:disabled) { background: var(--color-paper-2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-text { min-height: 44px; padding: 0 var(--space-2xs); border: 0; background: none; color: var(--color-ink); font: 400 var(--text-sm)/1.2 var(--font-body); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.16em; cursor: pointer; }
.btn-text:hover { text-decoration-thickness: 4px; }

.field { display: flex; flex-direction: column; gap: var(--space-2xs); min-width: 0; }
.field > label, .field > legend, .inks > legend, .radios > legend { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); padding: 0; }
.opt { font-weight: 400; color: var(--color-muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: var(--control-h); padding: var(--space-xs) var(--space-sm); border: 1.5px solid var(--color-ink); border-radius: var(--radius-card);
  background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); line-height: 1.35; transition: background-color var(--dur-short) var(--ease-out);
}
textarea { resize: vertical; }
select { appearance: none; padding-right: var(--space-xl); background-image: linear-gradient(45deg, transparent 50%, var(--color-ink) 50%), linear-gradient(-45deg, transparent 50%, var(--color-ink) 50%); background-size: 6px 6px; background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; background-repeat: no-repeat; }
input:hover, select:hover, textarea:hover { background-color: var(--color-field); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; background-color: var(--color-field); }
input:disabled, select:disabled, textarea:disabled { opacity: 0.55; border-style: dashed; cursor: not-allowed; }
input[type="file"] { font-size: var(--text-sm); max-width: 100%; }
input[type="file"]::file-selector-button { min-height: var(--control-h); margin-right: var(--space-sm); padding: 0 var(--space-md); border: 1.5px solid var(--color-ink); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; }
input[type="file"]:hover::file-selector-button { background: var(--color-paper-2); }
.check { display: inline-flex; align-items: flex-start; gap: var(--space-xs); font-size: var(--text-sm); cursor: pointer; min-height: 44px; padding-block: var(--space-xs); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--color-ink); flex: none; }
.hint { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.4; max-width: 60ch; }
.hint--warn { color: var(--color-error); }
.hint--date { color: var(--color-ink); min-height: 1.4em; }

/* ---- the maker ------------------------------------------------------------------------------------------------------------- */
.tool { padding-block: var(--space-xl) var(--space-2xl); }
.tool__head { grid-area: head; max-width: 62ch; }
.tool--list .tool__head { margin-bottom: var(--space-xl); }
.tool__head .lead { margin-top: var(--space-sm); }
.tool__grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--sheet-w); grid-template-areas: "head side" "form side"; column-gap: var(--space-2xl); row-gap: var(--space-xl); align-items: start; }
.tool__form { grid-area: form; display: flex; flex-direction: column; gap: var(--space-lg); min-width: 0; }
.tool__grid.is-large { --sheet-w: min(780px, 58%); }
.sheet-size { align-self: flex-start; }
.tool__side { grid-area: side; position: sticky; top: var(--space-md); display: flex; flex-direction: column; gap: var(--space-md); }

.block { background: var(--color-paper-2); border-radius: var(--radius-card); padding: var(--space-lg); border: 0; margin: 0; min-width: 0; }
.block__h { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: var(--tracking-display); line-height: 1.05; padding: 0; margin: 0 0 var(--space-md); color: var(--color-ink); }
.block__body { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.block > legend.block__h { float: left; width: 100%; }
fieldset.block > legend.block__h + * { clear: both; }
details.block > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-sm); cursor: pointer; list-style: none; min-height: 44px; }
details.block > summary::-webkit-details-marker { display: none; }
details.block > summary .block__h { margin: 0; }
details.block > summary::after { content: "Open"; margin-left: auto; font-size: var(--text-sm); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
details.block[open] > summary { margin-bottom: var(--space-md); }
details.block[open] > summary::after { content: "Close"; }
.block__sum { font-size: var(--text-sm); color: var(--color-muted); min-width: 0; overflow-wrap: anywhere; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--space-md); }
.field--wide, .fields > .inks { grid-column: 1 / -1; }
.inks { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); border: 0; margin: 0; padding: 0; }
.inks > legend { margin-bottom: var(--space-2xs); width: 100%; }
.ink { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; cursor: pointer; font-size: var(--text-sm); }
.ink input { width: 20px; height: 20px; margin: 0; accent-color: var(--color-ink); }
.ink span::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: var(--space-xs); vertical-align: -2px; border-radius: 1px; background: var(--color-ink); }
.ink--black span::before { background: var(--color-accent-ink); }
.pic { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); }
.pic img { max-height: 44px; width: auto; background: var(--color-paper); border: 1px solid var(--color-rule); padding: var(--space-3xs); }
.keep { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-md); margin-top: var(--space-md); padding-top: var(--space-sm); border-top: 1px solid var(--color-rule); }
.keep .hint { flex-basis: 100%; }

.tool__tag { font-size: var(--text-sm); color: var(--color-muted); }
/* the sheet: printer white, the pink drum a hair out of register behind it */
.sheet { position: relative; isolation: isolate; }
.sheet::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-paper-3); transform: translate(6px, 7px); border-radius: var(--radius-card); }
.sheet canvas { display: block; width: 100%; height: auto; aspect-ratio: 148 / 210; background: var(--color-sheet); border: 1px solid var(--color-rule); border-radius: var(--radius-card); }
.sheet-toggle { display: none; }
.warnings { margin: 0; padding: var(--space-sm) var(--space-md); list-style: none; background: var(--color-error-bg); color: var(--color-error); font-size: var(--text-sm); border-radius: var(--radius-card); }
.warnings li + li { margin-top: var(--space-2xs); }
.tool__dl { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }
.status { flex-basis: 100%; font-size: var(--text-sm); color: var(--color-ink); min-height: 1.4em; overflow-wrap: anywhere; }
.field--amount .hint:not(.hint--warn) { color: var(--color-ink); font-weight: 600; }

/* below the maker: why each line is there, and the list */
.why { padding-block: var(--space-2xl); border-top: 1.5px solid var(--color-ink); }
.why__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.why h2 { font-size: var(--text-2xl); margin-bottom: var(--space-lg); }
.why__list { margin: 0; display: grid; gap: var(--space-md); }
.why__list div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
.why__list dt { font-weight: 600; }
.why__list dd { margin: 0; max-width: 56ch; }
.why__more { margin-top: var(--space-lg); }
.why__side { background: var(--color-ink); color: var(--color-paper); padding: var(--space-xl); border-radius: var(--radius-card); }
.why__side h2 { color: var(--color-paper); font-size: var(--text-xl); margin-bottom: var(--space-sm); }
.why__side p + p { margin-top: var(--space-lg); }
.why__side .btn--secondary { background: var(--color-paper); }

/* ---- the donor list ---------------------------------------------------------------------------------------------------------- */
.list { display: flex; flex-direction: column; gap: var(--space-lg); }
.list > .block--org, .list > .block--numbers { max-width: 48rem; }
.list__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-md); margin-top: var(--space-md); }
.fields--cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.radios { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rows-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-lg); margin-bottom: var(--space-md); }
.rows-head .block__h { margin: 0; }
.rows-sum { font-weight: 600; font-variant-numeric: tabular-nums; }
.rows-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: var(--space-lg); align-items: start; }
.rows-wrap { min-width: 0; }
.rows { width: 100%; border-collapse: collapse; font-size: var(--text-sm); background: var(--color-paper); }
.rows th { text-align: left; font-weight: 600; padding: var(--space-xs); border-bottom: 1.5px solid var(--color-ink); }
.rows td { padding: var(--space-xs); border-bottom: 1px solid var(--color-rule); vertical-align: top; overflow-wrap: break-word; }
.rows td.num, .rows td.date { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows td.mono { font-variant-numeric: tabular-nums; }
.rows.is-empty thead { display: none; }
.rows-empty td { padding: var(--space-lg) var(--space-md); }
.rows-empty p { margin-bottom: var(--space-sm); font-size: var(--text-md); }
.rows tr.is-picked td { background: var(--color-paper-2); }
.rows tr.is-bad td { color: var(--color-muted); }
.rows td.tocheck--bad { color: var(--color-error); }
.row-pick { min-width: 44px; min-height: 36px; padding: 0 var(--space-xs); border: 1.5px solid var(--color-ink); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); font: 600 var(--text-sm)/1 var(--font-body); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.row-pick:hover:not(:disabled) { background: var(--color-paper-3); }
.row-pick:disabled { border-color: var(--color-rule); color: var(--color-muted); cursor: default; }
.preview { position: sticky; top: var(--space-md); display: flex; flex-direction: column; gap: var(--space-xs); }
.preview h3 { font-size: var(--text-lg); }
.dl-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.dl-note { margin-top: var(--space-sm); }

/* ---- reading pages ---------------------------------------------------------------------------------------------------------------- */
.page-head { padding-block: var(--space-2xl) var(--space-xl); border-bottom: 1.5px solid var(--color-ink); }
.page-head h1 { font-size: var(--text-3xl); max-width: 22ch; }
.misreg { position: relative; display: inline-block; isolation: isolate; }
.misreg::after { content: attr(data-text); position: absolute; inset: 0; z-index: -1; white-space: nowrap; pointer-events: none; color: var(--color-accent); transform: translate(2px, 3px); }
.page-head .lead { margin-top: var(--space-md); font-size: var(--text-lg); max-width: 60ch; }
.page-head__date { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.read { padding-block: var(--space-xl) var(--space-2xl); }
.read__grid { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.read__toc { position: sticky; top: var(--space-md); font-size: var(--text-sm); }
.read__toc ol { margin: 0; padding-left: var(--space-md); display: grid; gap: var(--space-xs); }
.read__body { max-width: 72ch; min-width: 0; }
.qa { padding-block: var(--space-lg) var(--space-xl); border-top: 1px solid var(--color-rule); }
.qa:first-child { border-top: 0; padding-top: 0; }
.qa h2 { font-size: var(--text-xl); margin-bottom: var(--space-md); }
.quote { margin: 0 0 var(--space-md); padding: var(--space-md) var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-card); }
.quote p:first-child { font-size: var(--text-md); line-height: 1.55; max-width: none; }
.quote__src { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.qa__say { margin-top: var(--space-md); font-weight: 600; max-width: 62ch; }
.ledger { width: 100%; border-collapse: collapse; margin: var(--space-md) 0; font-size: var(--text-sm); }
.ledger caption { caption-side: bottom; text-align: left; padding-top: var(--space-xs); color: var(--color-muted); }
.ledger th { text-align: left; font-weight: 600; padding: var(--space-xs) var(--space-sm) var(--space-xs) 0; border-bottom: 1.5px solid var(--color-ink); vertical-align: bottom; }
.ledger td { padding: var(--space-xs) var(--space-sm) var(--space-xs) 0; border-bottom: 1px solid var(--color-rule); vertical-align: top; overflow-wrap: break-word; }
.ledger td.num { white-space: nowrap; font-weight: 600; }
.read__note { margin-top: var(--space-xl); font-size: var(--text-sm); color: var(--color-muted); }
.read__try { margin-top: var(--space-xl); padding: var(--space-xl); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-card); }
.read__try h2 { color: var(--color-paper); font-size: var(--text-xl); margin-bottom: var(--space-md); }
.read__try p { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.prose-sec { padding-block: var(--space-xl) var(--space-2xl); }
.prose-sec h2 { font-size: var(--text-xl); margin: var(--space-xl) 0 var(--space-sm); }
.prose-sec h2:first-child { margin-top: 0; }
.about__fix { margin-top: var(--space-xl); }
.nf__links { margin: var(--space-lg) 0 0; padding-left: var(--space-md); display: grid; gap: var(--space-xs); }

/* ---- the foot: a letter's close ------------------------------------------------------------------------------------------------------ */
.foot { border-top: 1.5px solid var(--color-ink); padding-block: var(--space-xl) var(--space-2xl); font-size: var(--text-sm); }
.foot__say { font-size: var(--text-md); max-width: 52ch; margin-bottom: var(--space-md); }
.foot__links { list-style: none; margin: 0 0 var(--space-md); padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); }
.foot__line { color: var(--color-muted); margin-top: var(--space-2xs); max-width: 80ch; }

/* ---- the share card (never published; photographed by scripts/make_og.sh) ----------------------------------------------------------- */
.og { margin: 0; width: 1200px; height: 630px; overflow: hidden; background: var(--color-paper); }
.og__in { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center; height: 100%; padding: 0 72px; }
.og__mark { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: var(--tracking-display); }
.og__mark span { color: var(--color-muted); }
.og__say { margin-top: var(--space-lg); font-family: var(--font-display); font-weight: 800; font-size: 76px; line-height: 0.95; letter-spacing: var(--tracking-display); max-width: 11ch; }
.og__sheet { width: 380px; margin-top: 60px; }

/* ---- narrower screens ------------------------------------------------------------------------------------------------------------------ */
@media (max-width: 64rem) {
  .why__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .rows-grid { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; max-width: 420px; }
  .read__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .read__toc { position: static; }
}
@media (max-width: 56rem) {
  /* the receipt's top stays in sight above the form while you type; the downloads follow the form */
  html { scroll-padding-top: calc(22svh + 6rem); }
  .tool__grid { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-lg); }
  .tool__head { order: -2; }
  .tool__side { display: contents; }
  .tool__sheet { order: -1; position: sticky; top: 0; z-index: var(--z-sticky); margin-inline: calc(-1 * var(--gutter)); padding: var(--space-sm) var(--gutter) var(--space-xs); background: var(--color-paper); border-bottom: 1.5px solid var(--color-ink); }
  .tool__sheet .sheet { max-width: 440px; margin-inline: auto; margin-bottom: 7px; }
  .tool__sheet .sheet canvas { max-height: 22svh; object-fit: cover; object-position: top; }   /* fixed: a strip that resized on focus moved the field under the finger */
  .tool__sheet.is-open { position: static; }
  .tool__sheet.is-open .sheet canvas { max-height: none; }
  .sheet-size { display: none; }
  .tool__tag { text-align: center; margin-bottom: var(--space-2xs); }
  .sheet-toggle { display: block; margin: var(--space-2xs) auto 0; min-height: 44px; padding: 0 var(--space-sm); border: 0; background: none; color: var(--color-ink); font: 400 var(--text-sm)/1 var(--font-body); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.16em; cursor: pointer; }
  .tool__form { order: 1; }
  .tool__dl { order: 2; }
  .tool__dl .btn { flex: 1 1 14rem; }
  .why__list div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
}
@media (max-width: 40rem) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .block { padding: var(--space-md); }
  .tool { padding-top: var(--space-lg); }
  .page-head h1 { font-size: var(--text-2xl); }
  .rows thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rows, .rows tbody, .rows tr, .rows td { display: block; width: 100%; }
  .rows tr { padding: var(--space-xs) 0; border-bottom: 1px solid var(--color-rule); }
  .rows td { border: 0; padding: var(--space-2xs) 0; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--space-xs); }
  .rows td::before { content: attr(data-label); color: var(--color-muted); }
  .dl-row .btn { flex: 1 1 100%; }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger tr { padding: var(--space-xs) 0; border-bottom: 1px solid var(--color-rule); }
  .ledger td { border: 0; padding: var(--space-2xs) 0; display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: var(--space-sm); }
  .ledger td::before { content: attr(data-label); color: var(--color-muted); min-width: 0; overflow-wrap: break-word; }
  .ledger caption { display: block; width: 100%; }
}
