/* Hallmark · shape: Workbench · genre: modern-minimal · theme: Rim (deal 2/3, seed typing-speed-test-type-459c·4d936e6f·2026-12-05·r0) · job: try · draw: manual
 * hero: the head over the test, the passage well beside the three figures that answer it · nav: edge-aligned, the wordmark and three links · footer: a ruled note over the credit lines · imagery: none, the passage well is the object · signature: three lines of Tagore in a window with the caret walking through them, words a minute beside it in Geist Mono at display size · rim: night · fonts: Geist for Switzer (Switzer is not on npm), Geist Mono as named
 * axes: dark/grotesk-sans/warm · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, a tool page and a page of its rules; the rules carry a worked example in key caps */
/* Hallmark · dismissed 46a · the test and the scoring page · the figures on the test are its own live output (0 until a key is pressed); the 50 words a minute and the 80% are worked examples the scoring module computes at build time and scripts/check_tools.mjs holds to sums done by hand */
/* Hallmark · waive 44c · the test and the scoring page · the three figures stand beside the passage they score, under the head that names the test; the scoring page is a page of rules, its short head over its first rule */
/* Hallmark · waive 77 · every page · a typing test and a page of its rules, not a landing strip */
/* Hallmark · answered F1 · the sources page · the straight quotes sit inside a sentence quoted word for word from Wikipedia, printed exactly as the article sets them */
: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(9% 0.008 75); --color-paper-2: oklch(12.5% 0.009 75); --color-paper-3: oklch(6.5% 0.007 75);
  --color-ink: oklch(94% 0.010 80); --color-ink-2: oklch(84% 0.011 80); --color-muted: oklch(68% 0.012 80); --color-muted-2: oklch(50% 0.010 80);
  --color-rule: oklch(25% 0.010 78); --color-rule-2: oklch(16% 0.009 78);
  --color-accent: oklch(72% 0.17 45); --color-accent-ink: oklch(10% 0.02 45); --color-accent-2: oklch(74% 0.12 250); --color-focus: oklch(78% 0.15 45);
  --font-display: "Geist", ui-sans-serif, system-ui, sans-serif; --font-body: var(--font-display);
  --font-outlier: "Geist Mono", ui-monospace, monospace;
  --radius-card: 0; --radius-pill: 0; --rule-hair: 1px; --shadow-card: none;
  --tracking-display: -0.04em; --display-weight: 500;
}

*, *::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) 35%, 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: natural sat=-20 con=10 */
[data-slot] > img { filter: saturate(0.8) contrast(1.1); }

@font-face { font-family: "Geist"; src: url("/fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

body { color: var(--color-ink-2); font-size: 1.0625rem; }
h1, h2 { color: var(--color-ink); font-weight: 500; overflow-wrap: break-word; min-width: 0; }
h2 { letter-spacing: -0.03em; }
.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-muted); }
a:hover { text-decoration-color: var(--color-accent); }

.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-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: -0.03em; 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; font-weight: 500; color: var(--color-ink-2); }
.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); box-shadow: inset 0 -2px 0 var(--color-accent); }

.hero { padding-block: var(--space-xl) var(--space-2xl); }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: var(--tracking-display); max-width: 14ch; }
.hero .lead { margin-top: var(--space-sm); max-width: 44ch; }

/* the test: the passage well and its controls, and the three figures beside it */
.test { margin-top: var(--space-xl); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.test__main { display: grid; gap: var(--space-md); min-width: 0; }
.test__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-lg); }
.minutes { margin: 0; padding: 0; border: 0; display: flex; align-items: center; gap: var(--space-xs); }
.minutes legend { float: left; padding: 0; margin-right: var(--space-xs); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.minutes label { position: relative; display: inline-flex; }
.minutes input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.minutes span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-rule); font-family: var(--font-outlier); color: var(--color-ink-2); transition: border-color var(--dur-short) var(--ease-out); }
.minutes input:hover + span { border-color: var(--color-muted); }
.minutes input:checked + span { border-color: var(--color-accent); color: var(--color-ink); box-shadow: inset 0 -3px 0 var(--color-accent); }
.minutes input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.minutes input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.clock { margin: 0; display: flex; align-items: baseline; gap: var(--space-xs); }
.clock__v { font-family: var(--font-outlier); font-size: var(--text-2xl); letter-spacing: -0.03em; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.clock__k { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.is-running .clock__v { color: var(--color-accent); }

.well { --passage-size: clamp(1.25rem, 0.9rem + 0.9vw, 1.75rem); position: relative; background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); padding: var(--space-md) var(--space-lg) var(--space-lg); transition: border-color var(--dur-short) var(--ease-out); }
.well.is-live { border-color: transparent; }
.well__label { position: relative; z-index: var(--z-raised); margin: 0 0 var(--space-sm); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.well__label .ref { color: var(--color-muted); }
.window { position: relative; height: calc(3 * 1.7 * var(--passage-size)); overflow: hidden; }
.passage { position: relative; margin: 0; max-width: none; font-size: var(--passage-size); line-height: 1.7; color: var(--color-muted); text-wrap: wrap; }
.passage .is-right { color: var(--color-ink); }
.passage .is-wrong { color: var(--color-error); background: color-mix(in oklab, var(--color-error) 22%, transparent); }
.passage .is-at { box-shadow: inset 2px 0 0 var(--color-accent); }
.typed { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: var(--rule-hair) solid var(--color-muted); border-radius: 0; resize: none; overflow: hidden; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; cursor: text; }
.typed::selection { background: transparent; }
.typed:focus { border-color: var(--color-accent); }
.typed:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.typed:read-only { cursor: default; }
.hint { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); font: inherit; font-weight: 500; color: var(--color-ink); background: none; border: var(--rule-hair) solid var(--color-rule); border-radius: 0; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.btn:hover { border-color: var(--color-muted); }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-focus); border-color: var(--color-focus); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .typed:disabled { opacity: 0.5; cursor: not-allowed; }

/* the figures: words a minute at display size, accuracy and backspaces under it, parted by hairlines */
.result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: var(--rule-hair) solid var(--color-rule); }
.m { margin: 0; display: grid; gap: var(--space-2xs); align-content: start; padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.m--wpm { grid-column: 1 / -1; }
.m:nth-child(2) { border-right: var(--rule-hair) solid var(--color-rule); }
.m:nth-child(3) { padding-left: var(--space-md); }
.m__v { font-family: var(--font-outlier); font-size: var(--text-display-s); line-height: 1; letter-spacing: -0.03em; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.m--wpm .m__v { font-size: var(--text-display); }
.m__u { font-size: 0.5em; color: var(--color-muted); }
.m__k { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.is-done .m--wpm .m__v { color: var(--color-accent); }
.result__more, .example { grid-column: 1 / -1; margin: var(--space-sm) 0 0; font-size: var(--text-sm); color: var(--color-muted); max-width: 44ch; }
.example .ref, .result__more .num { color: var(--color-ink-2); }

.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.02; max-width: 18ch; }
.head .lead { margin-top: var(--space-md); max-width: 56ch; }

.sec { padding-block: calc(var(--space-2xl) + var(--space-xs)); border-top: var(--rule-hair) solid var(--color-rule); }
.sec--first { padding-top: var(--space-2xl); }
.sec h2 { font-size: var(--text-section); line-height: 1.02; }
.sec h2 + * { margin-top: var(--space-lg); }
.sec__note { max-width: 64ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; max-width: 64ch; border-top: var(--rule-hair) solid var(--color-rule-2); }
.steps li { padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.steps b { color: var(--color-ink); font-weight: 500; }
kbd { font-family: var(--font-outlier); font-size: 0.85em; padding: 0 0.35em; border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); color: var(--color-ink); white-space: nowrap; }

.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: 500; }
.register blockquote { margin: var(--space-xs) 0 0; padding: var(--space-sm) var(--space-md); background: var(--color-paper-2); color: var(--color-ink-2); border-left: 2px solid var(--color-rule); }
.register blockquote p { margin: 0; }
.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-hair) solid var(--color-rule); background: var(--color-paper-2); }
.foot__in { padding-block: var(--space-2xl) var(--space-xl); display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
.foot__note, .foot__line { margin: 0; max-width: 72ch; }

.og__clock { margin-top: var(--space-md); }

@media (max-width: 900px) {
  .test { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
}
@media (max-width: 600px) {
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .hero { padding-top: var(--space-lg); }
  .test { margin-top: var(--space-lg); }
  .well { padding: var(--space-sm) var(--space-md) var(--space-md); }
  .sec { padding-block: var(--space-xl); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .passage, .well, .minutes span, .typed { transition: none; }
}
