/* Hallmark · shape: Workbench · genre: editorial · theme: Manifesto (deal 2/3, seed emergency-fund-calculator-how-8e62·c9f512cb·2026-12-05·r0) · job: try · draw: manual
 * hero: a poster head with one red word over two stacked cards · nav: edge-aligned, the wordmark and two links over a heavy ink bar · footer: a ruled note over the credit lines · imagery: none, the answers set in Anton · signature: each card's answer printed as a poster line in Anton beside the figures typed · manifesto: the record on the sums page
 * axes: dark/display-condensed/warm · posture: committed · copy: verbatim · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, two cards and a page of sums; the poster answers and the numbered record carry the look */
/* Hallmark · waive 77 · every page · two calculators and a page that works them through, not a landing strip */
/* Hallmark · waive 38iii · the home page · the one red word, months, sits in the hero head as the theme asks; every other head is one colour */
:root {
  color-scheme: dark;
  --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(72% 0.15 27); --color-success: oklch(76% 0.13 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(13% 0.01 60); --color-paper-2: oklch(17% 0.011 60); --color-paper-3: oklch(22% 0.012 60);
  --color-ink: oklch(95% 0.014 85); --color-ink-2: oklch(84% 0.012 80); --color-muted: oklch(64% 0.016 65);
  --color-rule: oklch(31% 0.014 60);
  --color-accent: oklch(56% 0.228 28); --color-accent-deep: oklch(49% 0.2 28); --color-accent-text: oklch(64% 0.22 28); --color-accent-ink: oklch(98.5% 0.004 90);
  --color-focus: oklch(64% 0.22 28);
  --font-display: "Anton", "Impact", sans-serif; --font-body: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: var(--font-body);
  --radius-card: 0; --radius-pill: 0; --rule-hair: 1px; --rule-bar: 4px; --shadow-card: none;
  --tracking-display: 0.004em; --display-weight: 400; --lh-tight: 0.9; --text-display: clamp(4.5rem, 12vw, 13rem);
}
/* paper, not a screen: the table pages print dark on white */
@media print { :root { color-scheme: light; --color-paper: oklch(98.5% 0.006 85); --color-paper-2: oklch(95% 0.008 85); --color-ink: oklch(18% 0.01 60); --color-ink-2: oklch(28% 0.012 60); --color-muted: oklch(42% 0.014 65); --color-rule: oklch(80% 0.01 60); } }

*, *::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); color: var(--color-accent-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 paper ink con=24 */
[data-slot]:has(> img) { isolation: isolate; background: var(--color-ink); 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.24); mix-blend-mode: multiply; }
[data-slot]:has(> img)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--color-paper); mix-blend-mode: lighten; pointer-events: none; }

@font-face { font-family: "Anton"; src: url("/fonts/anton-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

body { color: var(--color-ink-2); font-size: 1.0625rem; }
h1, h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; color: var(--color-ink); line-height: 1.02; letter-spacing: var(--tracking-display); overflow-wrap: break-word; min-width: 0; }
.hot { color: var(--color-accent-text); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: var(--space-md); top: -100px; background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); z-index: var(--z-modal); }
.skip:focus-visible { top: var(--space-md); }
a { color: var(--color-ink); text-decoration-thickness: 1px; }
a:hover { color: var(--color-accent-text); }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }

.bar { border-bottom: var(--rule-bar) solid var(--color-ink); }
.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-family: var(--font-display); font-size: var(--text-xl); text-transform: uppercase; letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; }
.wordmark span { color: var(--color-muted); }
.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; color: var(--color-ink-2); font-weight: 600; }
.bar__nav a:hover { color: var(--color-ink); }
.bar__nav a:active { transform: translateY(1px); }
.bar__nav a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

.hero { padding-block: var(--space-xl) var(--space-2xl); }
.hero h1 { font-size: clamp(3rem, 6.4vw, 6.5rem); max-width: 16ch; }
.hero .lead { margin-top: var(--space-md); max-width: 40ch; }

/* a card: the figures typed in a well on the left, the answer as a poster line on the right */
.card { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-2xl); }
.card__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-lg) var(--space-2xl); align-items: start; }
.card h2 { grid-column: 1 / -1; font-size: var(--text-section); }
.fields { display: grid; gap: var(--space-md); background: var(--color-paper-2); border-top: var(--rule-hair) solid var(--color-rule); padding: var(--space-lg); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.field { display: grid; gap: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }
.field input, .field select { font-family: var(--font-body); font-size: 1.375rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-ink); background: var(--color-paper); border: var(--rule-hair) solid var(--color-muted); border-radius: 0; height: 52px; padding: 0 var(--space-sm); width: 100%; min-width: 0; }
.field input:hover, .field select:hover { border-color: var(--color-ink-2); }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.field input:disabled, .field select:disabled { opacity: 0.5; cursor: not-allowed; }
.answer { display: grid; gap: var(--space-md); align-content: start; }
.poster { font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); font-size: clamp(2.75rem, 6vw, 6.25rem); line-height: 1.02; color: var(--color-ink); overflow-wrap: anywhere; }
.said { display: grid; gap: var(--space-xs); }
.say { font-size: var(--text-lg); color: var(--color-ink-2); max-width: 44ch; }
.note { font-size: var(--text-sm); color: var(--color-muted); max-width: 52ch; border-top: var(--rule-hair) solid var(--color-rule); padding-top: var(--space-sm); }

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

.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: clamp(3rem, 7vw, 7rem); max-width: 14ch; }
.head .lead { margin-top: var(--space-md); max-width: 50ch; }

/* the record: each step a full-width row under a hairline, its numeral in Anton in the muted ink */
.record { list-style: none; margin: 0; padding: 0; counter-reset: rec; max-width: 72rem; }
.record li { counter-increment: rec; display: grid; grid-template-columns: 4.5rem minmax(0, 15rem) minmax(0, 1fr); gap: var(--space-xs) var(--space-lg); align-items: baseline; padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.record li::before { content: counter(rec); font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1; color: var(--color-muted); }
.record b { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: var(--tracking-display); font-size: var(--text-title); color: var(--color-ink); }
.record p { max-width: 58ch; font-variant-numeric: tabular-nums; }

.foot { border-top: var(--rule-bar) 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: 960px) {
  .card__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .record li { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .record li p { grid-column: 2; }
}
@media (max-width: 600px) {
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .hero { padding-block: var(--space-lg) var(--space-xl); }
  .fields { padding: var(--space-md); }
  .card { padding-block: var(--space-lg) var(--space-xl); }
}
@media (max-width: 340px) {
  .pair { grid-template-columns: minmax(0, 1fr); }
}

/* ---- the expansion (2026-12-05): the menu on a phone, crumbs, quotes with their source, the index of a set, the tables --- */
.bar__menu, .bar__nav .bar__close { display: none; }
.crumbs ol { list-style: none; margin: 0 0 var(--space-md); padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin-right: var(--space-xs); color: var(--color-muted); }
.crumbs a { min-height: 44px; display: inline-flex; align-items: center; color: var(--color-ink-2); }
.head:has(.crumbs) { padding-top: var(--space-xl); }
.sec__in > * + * { margin-top: var(--space-lg); }
.sec__in > h2 + * { margin-top: var(--space-lg); }
.ref { font-size: var(--text-xs); font-weight: 600; color: var(--color-ink-2); white-space: nowrap; }

/* a quote: the rule-maker's sentence on the well, its source and paragraph under it */
.quote { margin: 0; max-width: 68ch; padding: var(--space-md) var(--space-lg); background: var(--color-paper-2); border-top: var(--rule-hair) solid var(--color-rule); }
.quote blockquote { margin: 0; color: var(--color-ink); font-size: var(--text-lg); line-height: 1.5; }
.quote figcaption { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.quote figcaption .ref { font-size: var(--text-sm); white-space: normal; }

/* the index of a set: a name in Anton, a line beside it */
.idx { list-style: none; margin: 0; padding: 0; max-width: 72rem; border-top: var(--rule-hair) solid var(--color-rule); }
.idx li { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: var(--space-2xs) var(--space-xl); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.idx__name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); font-size: var(--text-2xl); line-height: 1.05; color: var(--color-ink); text-decoration: none; }
.idx__name:hover { color: var(--color-accent-text); text-decoration: underline; text-decoration-thickness: 2px; }
.idx__line { max-width: 56ch; }

/* the tables: figures right, the row head left, a phone scrolls them sideways */
.tbl-wrap { overflow-x: auto; max-width: 100%; }
.tbl-wrap:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.tbl { border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 40rem; }
.tbl th, .tbl td { text-align: right; padding: var(--space-xs) var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); white-space: nowrap; }
.tbl th:first-child { text-align: left; color: var(--color-ink); font-weight: 600; }
.tbl thead th { color: var(--color-ink); font-weight: 600; border-bottom: 2px solid var(--color-ink); vertical-align: bottom; }
.tbl tbody tr:hover { background: var(--color-paper-2); }
.tbl caption { caption-side: bottom; text-align: left; padding-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); white-space: normal; max-width: 60ch; }
.tbl th:first-child { position: sticky; left: 0; z-index: 1; background: var(--color-paper); }
.tbl tbody tr:hover th:first-child { background: var(--color-paper-2); }
.tbl--words th:first-child { position: static; }
.tbl--narrow { min-width: 0; width: 100%; max-width: 40rem; }
.tbl--words th, .tbl--words td { text-align: left; white-space: normal; vertical-align: top; }
.tbl--words td:nth-child(2) { white-space: nowrap; }

/* the register of sources */
.register { list-style: none; margin: 0; padding: 0; max-width: 72ch; display: grid; gap: var(--space-xl); }
.register li { border-top: var(--rule-hair) solid var(--color-rule); padding-top: var(--space-md); }
.register li:target { outline: 2px solid var(--color-focus); outline-offset: var(--space-xs); }
.register__claim { color: var(--color-ink); font-weight: 600; }
.register blockquote { margin: var(--space-xs) 0 0; padding: var(--space-sm) var(--space-md); background: var(--color-paper-2); color: var(--color-ink); }
.register blockquote p { margin: 0; }
.register__src { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); max-width: 70ch; }

.foot__nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); margin-bottom: var(--space-xs); }
.foot__nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--color-ink-2); }

@media (max-width: 760px) {
  .bar__menu { display: inline-flex; min-height: 44px; align-items: center; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-ink); color: var(--color-ink); text-decoration: none; font-weight: 600; }
  .bar__nav { display: none; width: 100%; flex-direction: column; gap: 0; }
  .bar__nav:target { display: flex; }
  .bar__in:has(.bar__nav:target) .bar__menu { display: none; }
  .bar__nav:target .bar__close { display: inline-flex; }
  .bar__nav a { border-bottom: var(--rule-hair) solid var(--color-rule); }
  .idx li { grid-template-columns: minmax(0, 1fr); }
  .quote { padding: var(--space-sm) var(--space-md); }
  .quote blockquote { font-size: var(--text-md); }
}
@media print {
  .bar, .foot, .skip, .crumbs { display: none; }
  .tbl { min-width: 0; }
  .sec { padding-block: var(--space-lg); }
}
.field select { cursor: pointer; }
