/* Hallmark · shape: Workbench · genre: playful · theme: Halftone (deal 3/3, seed what-score-you-final-9efc·ec0e4209·2026-12-05·r1) · job: try · draw: manual
 * hero: settled, the head over two square wells, each with its fields and its answer · nav: edge-aligned, the wordmark and two links · footer: a 3px ink rule over the note and the credit lines · imagery: none, the figures are the picture · signature: the score the final needs printed big in vermilion Ultra, the way a teacher's mark sits on a paper · halftone: cream, one screened strip between the cards and the table, never under type
 * axes: light/slab-serif/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 that works the sum; the vermilion figure and the label-panel table carry the look */
/* Hallmark · waive 23 · the calculator · the score the final needs is the page's one figure and the theme's own move (a real number printed solid in the spot); the overall grade in card two, an out-of-reach score and the head all stay in ink */
/* Hallmark · waive 77 · every page · a calculator and a page that works its sum, not a landing strip */
/* Hallmark · waive 44c · how it works · the head stands over the worked sums, which start straight below it; the page is arithmetic to read, with no picture to fill a screen */
: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(96.2% 0.032 94); --color-paper-2: oklch(92.6% 0.046 92); --color-paper-3: oklch(87.5% 0.058 90);
  --color-ink: oklch(23% 0.040 38); --color-ink-2: oklch(33% 0.045 40); --color-muted: oklch(44% 0.048 44);
  --color-rule: oklch(82% 0.042 82);
  --color-accent: oklch(54.5% 0.215 33); --color-accent-deep: oklch(46% 0.19 31); --color-accent-ink: oklch(97% 0.022 94); --color-focus: oklch(46% 0.19 31);
  --color-dot: var(--color-accent); --halftone-size: 12px; --halftone-dot: 3px;
  --font-display: "Ultra", ui-serif, Georgia, serif; --font-body: "Chivo", ui-sans-serif, sans-serif;
  --radius-card: 0; --radius-input: 3px; --radius-pill: 999px; --rule-hair: 1px; --rule-bar: 3px;
  --shadow-card: none;
  --tracking-display: 0.005em; --display-weight: 400;
}

*, *::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) 30%, transparent); }
: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: natural vib=25 sat=10 con=6 */
[data-slot] > img { filter: saturate(1.1) contrast(1.06); }

:root { --font-outlier: var(--font-display); }

@font-face { font-family: "Ultra"; src: url("/fonts/ultra-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Chivo"; src: url("/fonts/chivo-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Chivo"; src: url("/fonts/chivo-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.08; }
.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-color: var(--color-accent); text-decoration-thickness: 2px; }
a:hover { color: var(--color-accent-deep); }

.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); color: var(--color-ink); text-decoration: none; }
.wordmark span { color: var(--color-accent); }
.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: 700; color: var(--color-ink-2); }
.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: 3px; text-underline-offset: 0.35em; }

/* the menu: on a phone the links fold under one Menu link, which opens them (#menu); never hidden for good */
.bar__menu { display: none; min-height: 44px; align-items: center; font-weight: 700; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }

/* breadcrumbs on the deep pages */
.crumbs { padding-top: var(--space-md); font-size: var(--text-sm); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-xs); }
.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; }
.crumbs [aria-current] { color: var(--color-ink); }

.hero { padding-block: var(--space-2xl) var(--space-2xl); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); max-width: 16ch; }
.hero .lead { margin-top: var(--space-sm); max-width: 56ch; }

/* the two wells: fields over the answer */
.cards { margin-top: var(--space-xl); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
.well { background: var(--color-paper-2); border: var(--rule-bar) solid var(--color-ink); padding: var(--space-xl); display: grid; gap: var(--space-lg); align-content: start; }
.well h2 { font-size: var(--text-title); max-width: none; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.field { display: grid; gap: var(--space-2xs); align-content: end; font-size: var(--text-sm); font-weight: 700; color: var(--color-ink); }
.field input { font-family: var(--font-body); font-weight: 700; font-size: 1.5rem; line-height: 1; height: 52px; font-variant-numeric: tabular-nums; color: var(--color-ink); width: 100%; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-input); background: var(--color-paper); }
.field input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.field input:disabled { opacity: 0.5; cursor: not-allowed; }
.answer { border-top: var(--rule-bar) solid var(--color-ink); padding-top: var(--space-md); display: grid; gap: var(--space-xs); }
.answer__label { font-size: var(--text-sm); font-weight: 700; color: var(--color-ink); }
.answer__fig { font-family: var(--font-display); font-size: clamp(3.4rem, 6.4vw, 6.2rem); line-height: 0.95; letter-spacing: -0.02em; color: var(--color-accent); overflow-wrap: anywhere; }
.answer__fig--ink, .answer[data-state="out_of_reach"] .answer__fig, .answer[data-state="bad"] .answer__fig { color: var(--color-ink); }
.answer[data-state="safe"] .answer__fig { color: var(--color-success); }
.say { font-size: var(--text-md); color: var(--color-ink); max-width: 42ch; }

/* the screen: one strip of vermilion dots fading to nothing, with no type on it */
.screen { height: 40px; max-width: var(--container); margin-inline: auto; background-image: radial-gradient(circle, var(--color-dot) calc(var(--halftone-dot) / 2), transparent calc(var(--halftone-dot) / 2 + 0.5px)); background-size: var(--halftone-size) var(--halftone-size); mask-image: linear-gradient(90deg, var(--color-ink), transparent 75%); -webkit-mask-image: linear-gradient(90deg, var(--color-ink), transparent 75%); }

.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); max-width: 18ch; }
.head .lead { margin-top: var(--space-md); max-width: 56ch; }

.sec { padding-block: var(--section-gap-s); border-top: var(--rule-bar) solid var(--color-ink); }
.sec--first { padding-top: var(--space-2xl); }
.sec h2 { font-size: var(--text-section); }
.sec h2 + * { margin-top: var(--space-lg); }
.sec .well h2 { font-size: var(--text-title); }
.sec .well h2 + * { margin-top: 0; }
.sec__lead { font-size: var(--text-lead); color: var(--color-ink); max-width: 56ch; margin-bottom: var(--space-md); }
.sec__note { margin-top: var(--space-lg); max-width: 64ch; }

/* the table, set like the panel on the back of a can: a 3px rule, names on the left, figures in Ultra on the right */
.t { width: 100%; max-width: 40rem; border-collapse: collapse; border-top: var(--rule-bar) solid var(--color-ink); font-variant-numeric: tabular-nums; }
.t caption { text-align: left; caption-side: top; padding-bottom: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.t th, .t td { padding: var(--space-xs) var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; }
.t thead th { font-size: var(--text-sm); color: var(--color-ink-2); }
.t thead th:last-child, .t td { text-align: right; }
.t tbody th { font-weight: 700; color: var(--color-ink); }
.t td { font-family: var(--font-display); font-size: var(--text-title); color: var(--color-ink); }
.t tr[data-state="out_of_reach"] td, .t tr[data-state="safe"] td { font-family: var(--font-body); font-weight: 700; font-size: var(--text-md); color: var(--color-muted); }
.t tr[data-yours] { background: var(--color-paper-2); }
.t tr[data-yours] td { color: var(--color-accent-deep); }

.steps { list-style: none; margin: 0; padding: 0; max-width: 62ch; border-top: var(--rule-bar) solid var(--color-ink); }
.steps li { padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.steps b { color: var(--color-ink); font-weight: 700; }
.steps--n { counter-reset: step; font-variant-numeric: tabular-nums; }
.steps--n li { counter-increment: step; position: relative; padding-left: 2.75rem; font-size: var(--text-lg); }
.steps--n li::before { content: counter(step); position: absolute; left: 0; top: var(--space-xs); font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.2; color: var(--color-accent-deep); }

/* a quoted rule: the body's own words on a tinted panel, a vermilion rule at its edge, the source under it */
.rules { display: grid; gap: var(--space-lg); max-width: 68ch; }
.rule { margin: 0; border-left: var(--rule-bar) solid var(--color-accent); background: var(--color-paper-2); padding: var(--space-md) var(--space-lg); }
.rule blockquote { margin: 0; }
.rule blockquote p { margin: 0; color: var(--color-ink); max-width: none; }
.rule figcaption { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.ref { font-size: var(--text-sm); font-weight: 700; }

/* a rule in one line: the claim on show, the body's own words and the day we read them a click away */
.saids { display: grid; gap: var(--space-xs); max-width: 68ch; }
.rules + .saids { margin-top: var(--space-lg); }
.said { border-left: var(--rule-bar) solid var(--color-rule); padding: var(--space-2xs) var(--space-md); }
.said[open] { border-left-color: var(--color-accent); background: var(--color-paper-2); padding-bottom: var(--space-md); }
.said:not([open]) > :not(summary) { display: none; }
.said summary { cursor: pointer; color: var(--color-ink); min-height: 44px; padding-block: var(--space-xs); }
.said summary::marker { color: var(--color-accent); }
.said summary:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.said blockquote { margin: var(--space-xs) 0 0; }
.said blockquote p { margin: 0; max-width: none; }
.said__src { margin: var(--space-xs) 0 0; font-size: var(--text-sm); color: var(--color-muted); }

/* a ruled index of pages: the name in Ultra, its one-line answer under it */
.index { list-style: none; margin: 0; padding: 0; border-top: var(--rule-bar) solid var(--color-ink); }
.index li { display: grid; gap: var(--space-3xs); padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.index a { font-family: var(--font-display); font-size: var(--text-title); line-height: 1.2; text-decoration: none; color: var(--color-ink); }
.index a:hover, .index a:focus-visible { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 3px; }
.index span { font-size: var(--text-sm); color: var(--color-ink-2); }
.index--wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap-columns); max-width: 64rem; }

/* wide tables scroll inside their own box on a phone */
.scroll { overflow-x: auto; max-width: 100%; }
.t--wide { max-width: 64rem; }
.t--wide td { font-size: var(--text-lg); }
.t--dense td { font-size: var(--text-md); font-family: var(--font-body); font-weight: 700; }
.t th small, .t td small { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--text-xs); color: var(--color-muted); }
.t td small { display: inline; }
.t thead th small { margin-top: var(--space-3xs); }
.t .t__words { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; color: var(--color-ink-2); }
.t tbody tr:target { background: var(--color-paper-2); }

/* the subject picker */
.fields--pick { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.field select { font-family: var(--font-body); font-weight: 700; font-size: var(--text-md); height: 52px; width: 100%; padding: 0 var(--space-sm); color: var(--color-ink); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-input); background: var(--color-paper); }
.field select:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.split { font-size: var(--text-sm); font-weight: 700; color: var(--color-ink-2); }

/* the percentage rows */
.well--rows { max-width: 44rem; }
.rows { display: grid; gap: var(--space-sm); }
.row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md); align-items: end; }
.row__n { font-weight: 700; color: var(--color-ink); padding-bottom: var(--space-sm); }

/* the register of sources */
.register { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xl); max-width: 68ch; }
.register__claim { margin: 0; color: var(--color-ink); font-weight: 700; }
.register blockquote { margin: var(--space-xs) 0 0; padding: var(--space-sm) var(--space-md); background: var(--color-paper-2); border-left: var(--rule-bar) solid var(--color-accent); }
.register blockquote p { margin: 0; max-width: none; }
.register__src { margin: var(--space-xs) 0 0; font-size: var(--text-sm); color: var(--color-muted); max-width: 64ch; }

.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: 1100px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .field { grid-template-columns: minmax(0, 1fr) 8rem; align-items: center; gap: var(--space-md); }
  .fields--pick .field, .row .field { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .bar__menu { display: inline-flex; }
  .bar__nav { display: none; flex-basis: 100%; flex-direction: column; padding-bottom: var(--space-sm); }
  .bar__nav:target { display: flex; }
  .index--wide { grid-template-columns: minmax(0, 1fr); }
  .fields--pick { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .hero { padding-block: var(--space-xl); }
  .well { padding: var(--space-lg); }
  .field { grid-template-columns: minmax(0, 1fr) 6.5rem; }
  .t th, .t td { padding-inline: var(--space-xs); }
  .t td { font-size: var(--text-lg); }
  .steps--n li { font-size: var(--text-md); }
  .rule { padding: var(--space-sm) var(--space-md); }
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .row__n { grid-column: 1 / -1; padding-bottom: 0; }
  .t--wide td { font-size: var(--text-md); }
}
.well--ca { max-width: 40rem; margin-top: var(--space-lg); }
.answer[data-state="pass"] .answer__fig { color: var(--color-success); }
.answer[data-state="short"] .answer__fig { color: var(--color-ink); }
