/* Hallmark · shape: Stat-Led · genre: modern-minimal · theme: Rim (deal 2/3, seed hams-morse-code-trainer-21a0·013055fe·2026-11-23·r0) · job: try · draw: 0cc5cf
 * hero: Counter · nav: banner over a retracting bar · footer: mast · imagery: the product (a working Morse key, and the code drawn on a unit axis; no photographs) · signature: a Morse key on the first screen that reads back what you send, drawn on the same unit axis the code is counted on
 * rim: night · axes: dark/grotesk-sans/warm · posture: committed · copy: verbatim · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a trainer and a rule book argue little; the argument is the figure, 8 words a minute, and the key under it that lets you try for it at once */
/* Hallmark · waive 39b · the tall controls are the product's own keys (the Morse key, pressed and held to send, and the chart's character cells that sound a letter); every link and button around them stands 44 to 48px · a telegraph key is a pressing surface for the hand, and a chart cell holds a character with its code */
/* No grain, no glow and nothing round: plain warm black behind every word (owner, 2026-11-19). The only pictures are
   the product: the key, and the code as bars on a unit axis. Switzer (Fontshare) and Geist Mono are served from here. */
: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: "Switzer", 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: "Switzer"; src: url("/fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/fonts/switzer-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; }

:root { --bar-h: 64px; --banner-h: 37px; --key-h: 48px; --row-h: 148px; --u: 11px; }

body { font-weight: 400; font-size: 1.0625rem; color: var(--color-ink-2); }
h1, h2, h3 { color: var(--color-ink); line-height: 1.02; }
h2 { letter-spacing: -0.03em; }
h3 { letter-spacing: -0.02em; line-height: 1.2; }
b, strong { font-weight: 500; }
.num { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; }
.lead { color: var(--color-ink-2); }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-4xl)); 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); }

/* the banner: who this is, and the time on the two clocks a station keeps; it scrolls away, the bar stays */
.banner { background: var(--color-paper-3); border-bottom: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-sm); color: var(--color-muted); }
.banner__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-lg); min-height: calc(var(--banner-h) - 1px); }
.banner p { max-width: none; }
.banner__narrow { display: none; }
.banner__clock { display: flex; gap: var(--space-md); font-family: var(--font-outlier); font-size: var(--text-xs); white-space: nowrap; }

/* the bar: every link stays in view on a phone; on a wide screen it draws back while the page is read downward */
.bar { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); transition: transform var(--dur-short) var(--ease-out); }
.bar--away { transform: translateY(-100%); }
.bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-xl); min-height: var(--bar-h); }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; 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; align-items: center; gap: 0 var(--space-lg); }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-md); font-weight: 500; color: var(--color-ink-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.bar nav a:hover { color: var(--color-ink); border-bottom-color: var(--color-rule); }
.bar nav a[aria-current] { color: var(--color-ink); border-bottom-color: var(--color-accent); }

/* controls: square; the primary an orange fill, the second an outline */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--key-h); padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: none; color: var(--color-ink); font-weight: 500; font-size: var(--text-md); line-height: 1.2; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-paper-2); border-color: var(--color-muted); }
.btn:active { background: var(--color-paper-3); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled { color: var(--color-muted); border-color: var(--color-rule-2); background: none; cursor: default; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 88%, var(--color-ink)); border-color: color-mix(in oklab, var(--color-accent) 88%, var(--color-ink)); }
.btn--primary:active { background: color-mix(in oklab, var(--color-accent) 82%, var(--color-paper)); }
.btn--quiet { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn.is-playing { border-color: var(--color-accent); color: var(--color-accent); }

/* links in running text; a reference names its place in the rules and jumps to the source's own words */
main a:not([class]), .mast__legal a, .mast__house a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-muted); transition: text-decoration-color var(--dur-short) var(--ease-out); }
main a:not([class]):hover, .mast__legal a:hover, .mast__house a:hover { text-decoration-color: var(--color-accent); }
.ref { font-family: var(--font-outlier); font-size: var(--text-xs); line-height: 1.5; color: var(--color-muted); text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.25em; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.ref:hover { color: var(--color-ink); }

/* a well: a lifted surface with two corner ticks set just outside it */
.well { position: relative; background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); }
.ticks { position: relative; }
.ticks::before, .ticks::after { content: ""; position: absolute; width: 12px; height: 12px; border: 0 solid var(--color-muted); pointer-events: none; z-index: var(--z-raised); }
.ticks::before { top: calc(-1 * var(--space-xs)); left: calc(-1 * var(--space-xs)); border-width: 1px 0 0 1px; }
.ticks::after { right: calc(-1 * var(--space-xs)); bottom: calc(-1 * var(--space-xs)); border-width: 0 1px 1px 0; }

/* ---- the code on a unit axis: a bar is a key-down, its width a number of dots ------------------------------------- */
.trace { position: relative; display: flex; align-items: stretch; height: 18px; min-width: 0; }
.trace > .on, .trace > .off { flex: 0 0 calc(var(--w) * var(--u)); position: relative; min-width: 0; }
.trace--fluid > .on, .trace--fluid > .off { flex-basis: calc(var(--w) * 100% / var(--units)); }
.trace > .on { background: var(--color-ink); }
.trace--named { margin-top: var(--space-xl); }
.trace > .on[data-ch]::before { content: attr(data-ch); position: absolute; left: 0; bottom: calc(100% + var(--space-sm)); font-family: var(--font-outlier); font-size: var(--text-md); line-height: 1; color: var(--color-ink); }
.trace > .off--3::after, .trace > .off--7::after { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-outlier); font-size: var(--text-xs); line-height: 1; color: var(--color-muted); }
.trace > .off--3::after { content: "3"; }
.trace > .off--7::after { content: "7"; }
.trace > .off--7 { background: color-mix(in oklab, var(--color-accent-2) 22%, transparent); }
.trace--ruled { height: 34px; padding-bottom: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); background: linear-gradient(to right, var(--color-rule) 1px, transparent 1px) left bottom / calc(100% / var(--units)) 7px repeat-x; }
.trace--live { justify-content: flex-end; overflow: hidden; }
.trace--live > .on { background: var(--color-accent-2); }
.trace--mid { justify-content: center; }
.trace__now { position: absolute; top: -6px; bottom: -6px; left: 0; width: 2px; background: var(--color-accent); pointer-events: none; }
.bars { display: inline-flex; align-items: center; gap: var(--space-2xs); height: 8px; }
.bars .dit { width: 5px; height: 5px; background: currentColor; }
.bars .dah { width: 15px; height: 5px; background: currentColor; }
.capt { margin-top: var(--space-md); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-lg); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }

/* ---- a drill: the product, built ------------------------------------------------------------------------------------ */
.tool { display: flex; flex-direction: column; gap: var(--space-lg); padding: var(--space-lg); background: var(--color-paper-2); color: var(--color-ink-2); border: var(--rule-hair) solid var(--color-rule); }
.tool__top { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-lg); }
.tool__name, .tool__meta { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); line-height: 1.3; max-width: none; }
.tool__meta { text-align: right; }
.tool__name b, .tool__meta b { display: block; margin-top: var(--space-2xs); font-family: var(--font-outlier); font-weight: 400; color: var(--color-ink); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tool__name b { font-size: var(--text-display-s); }
.tool__meta b { font-size: var(--text-2xl); }
.tool__name b small, .tool__meta b small { font-size: 0.5em; color: var(--color-muted); letter-spacing: 0; }
.tool__stage { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: var(--space-lg); min-height: 11rem; padding: var(--space-lg); background: var(--color-paper-3); border: var(--rule-hair) solid var(--color-rule-2); min-width: 0; }
.tool__scroll { overflow-x: auto; padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.tool__big { font-family: var(--font-outlier); font-size: clamp(4rem, 8vw, 6.5rem); line-height: 1; color: var(--color-ink); text-align: center; max-width: none; }
.tool__big.is-right { color: var(--color-accent-2); }
.tool__big.is-wrong { color: var(--color-error); }
.tool__read { min-height: 1.1em; font-family: var(--font-outlier); font-size: var(--text-2xl); line-height: 1.1; color: var(--color-ink); letter-spacing: 0.08em; max-width: none; overflow-wrap: anywhere; }
.tool__note { font-size: var(--text-sm); color: var(--color-muted); max-width: none; }
.tool__stage .tool__note { text-align: center; }
.tool--text .tool__stage .tool__note, .tool--key .tool__note { text-align: left; }
.tool__text { font-family: var(--font-outlier); font-size: var(--text-md); line-height: 1.7; color: var(--color-ink); max-width: none; overflow-wrap: anywhere; }
.tool__go { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.tool__go .tool__note { flex: 1 1 14rem; }
.tool.is-sent .tool__stage { border-color: var(--color-accent-2); }
.tool__stage--rows { gap: var(--space-md); }
.tool__row { display: grid; grid-template-columns: 4rem minmax(0, 1fr); column-gap: var(--space-md); align-items: end; min-height: 3rem; }
.tool__row > span:first-child { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); line-height: 1.3; }
.tool--key .trace { --u: 15px; height: 22px; }
.tool__in { flex: 1 1 12rem; min-width: 0; min-height: var(--key-h); padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); font-family: var(--font-outlier); font-size: var(--text-lg); letter-spacing: 0.04em; }
.tool__in:hover { border-color: var(--color-ink-2); }
.key { width: 100%; min-height: 7.5rem; font-size: var(--text-xl); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.key.is-down { background: color-mix(in oklab, var(--color-accent) 72%, var(--color-paper)); border-color: var(--color-ink); }
.caps { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.caps .cap { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); font-family: var(--font-outlier); font-size: var(--text-lg); font-weight: 400; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.caps .cap:hover { border-color: var(--color-muted); }
.caps .cap:active { background: var(--color-paper-3); }
.field { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.field select, .field input { min-height: var(--key-h); padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); font-family: var(--font-outlier); font-size: var(--text-md); }
.field select:hover, .field input:hover { border-color: var(--color-ink-2); }
.field--wide { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-xs); }
.field--wide input { width: 100%; font-size: var(--text-lg); letter-spacing: 0.04em; }
.nojs { font-size: var(--text-sm); color: var(--color-muted); max-width: none; }
.tool.is-live .nojs { display: none; }

/* ---- the hero: the figure and what it means; beside it, the key ---------------------------------------------------- */
.hero__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-2xl); align-items: stretch; min-height: min(calc(100svh - var(--bar-h) - var(--banner-h)), 800px); padding-block: var(--space-2xl); }
.hero__text { align-self: center; }
.stat { display: flex; align-items: baseline; gap: var(--space-sm); margin-bottom: var(--space-xl); font-family: var(--font-outlier); font-weight: 400; letter-spacing: 0; color: var(--color-ink); line-height: 0.82; }
.stat__n { font-size: clamp(6rem, 13vw, 12.5rem); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat__u { font-size: clamp(2.25rem, 4.4vw, 4rem); font-variant-numeric: tabular-nums; }
.stat__of { margin-top: var(--space-md); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.hero h1 { font-size: var(--text-display-s); letter-spacing: var(--tracking-display); max-width: none; }
.hero__text .lead { margin-top: var(--space-lg); max-width: none; }
.hero__go { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero__tool { display: flex; min-width: 0; }
.hero__tool .tool { flex: 1 1 auto; min-width: 0; }
.hero + .sec { padding-top: var(--space-lg); }

/* ---- sections: a hairline above each head ----------------------------------------------------------------------------- */
.sec { padding-top: var(--section-gap-s); }
.sec--l { padding-top: var(--section-gap); }
.sec__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-md); align-items: end; padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); margin-bottom: var(--space-2xl); }
.sec__head h2 { grid-column: 1 / span 7; }
.sec__head .lead { grid-column: 8 / -1; }

/* measurements as figures: the number in mono at display size, its unit at half size */
.figures { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin: 0; }
.figures > div { display: flex; flex-direction: column; gap: var(--space-xs); min-height: 13rem; padding: 0 var(--space-lg) var(--space-md); border-left: var(--rule-hair) solid var(--color-rule); }
.figures > div:first-child { padding-left: 0; border-left: 0; }
.figures dd { margin: 0 0 auto; display: flex; align-items: baseline; gap: var(--space-xs); font-family: var(--font-outlier); color: var(--color-ink); line-height: 0.9; }
.figures dd .num { font-size: var(--text-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.figures dd small { font-size: var(--text-2xl); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.figures dt { font-size: var(--text-lg); font-weight: 500; color: var(--color-ink); line-height: 1.3; }
.figures .row__ref { align-items: flex-start; text-align: left; }
.axis { margin: var(--space-3xl) 0 0; }

/* the drills, one at a time: three names on the left, the drill on the right */
.switch { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-items: start; }
.switch__tabs { grid-column: 1 / span 4; display: grid; border-top: var(--rule-hair) solid var(--color-rule); }
.switch__tabs label { display: grid; gap: var(--space-2xs); padding: var(--space-lg) 0 var(--space-lg) var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule-2); border-left: 2px solid transparent; cursor: pointer; transition: border-color var(--dur-short) var(--ease-out); }
.switch__h { font-family: var(--font-display); font-weight: 500; font-size: var(--text-title); line-height: 1.2; letter-spacing: -0.02em; color: var(--color-muted); transition: color var(--dur-short) var(--ease-out); }
.switch__p { font-size: var(--text-md); color: var(--color-muted); }
.switch__tabs label:hover .switch__h { color: var(--color-ink); }
.switch__panes { grid-column: 6 / -1; min-width: 0; }
.switch__pane { display: none; }
.switch__r:nth-of-type(1):checked ~ .switch__panes .switch__pane:nth-of-type(1), .switch__r:nth-of-type(2):checked ~ .switch__panes .switch__pane:nth-of-type(2), .switch__r:nth-of-type(3):checked ~ .switch__panes .switch__pane:nth-of-type(3) { display: block; }
.switch__r:nth-of-type(1):checked ~ .switch__tabs label:nth-of-type(1), .switch__r:nth-of-type(2):checked ~ .switch__tabs label:nth-of-type(2), .switch__r:nth-of-type(3):checked ~ .switch__tabs label:nth-of-type(3) { border-left-color: var(--color-accent); }
.switch__r:nth-of-type(1):checked ~ .switch__tabs label:nth-of-type(1) .switch__h, .switch__r:nth-of-type(2):checked ~ .switch__tabs label:nth-of-type(2) .switch__h, .switch__r:nth-of-type(3):checked ~ .switch__tabs label:nth-of-type(3) .switch__h { color: var(--color-ink); }
.switch__r:nth-of-type(1):focus-visible ~ .switch__tabs label:nth-of-type(1), .switch__r:nth-of-type(2):focus-visible ~ .switch__tabs label:nth-of-type(2), .switch__r:nth-of-type(3):focus-visible ~ .switch__tabs label:nth-of-type(3) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.switch__pane .tool { min-height: 30rem; }
.switch__more { margin-top: var(--space-md); font-size: var(--text-sm); text-align: right; max-width: none; }

/* rows: a name on the left, the line in the middle, where it is written on the right; hairlines between */
.rows, .glance, .steps, .sigs, .qcodes { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.rows > li, .glance > div, .steps > li, .sigs > li, .qcodes > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: baseline; min-height: var(--row-h); padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.rows h3 { grid-column: 1 / span 4; }
.rows h3 a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.rows h3 a:hover { text-decoration-color: var(--color-accent); }
.rows p:not([class]) { grid-column: 5 / span 6; font-size: var(--text-lead); max-width: none; }
.row__ref { grid-column: 11 / -1; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2xs); text-align: right; max-width: none; }
.steps__h { font-family: var(--font-display); font-weight: 500; font-size: var(--text-title); line-height: 1.25; letter-spacing: -0.02em; color: var(--color-ink); }

/* the close: the chart beside the way in */
.band { margin-top: var(--section-gap); padding-block: var(--section-gap-s); background: var(--color-paper-2); color: var(--color-ink-2); border-block: var(--rule-hair) solid var(--color-rule); }
.band__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--space-3xl); row-gap: var(--space-2xl); align-items: center; }
.band .lead { margin-top: var(--space-md); }
.band__go { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* the chart: every character a key that sounds; hairlines, nothing round */
.chart { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr)); border-top: var(--rule-hair) solid var(--color-rule); border-left: var(--rule-hair) solid var(--color-rule-2); }
.chart > li { border-right: var(--rule-hair) solid var(--color-rule-2); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.chart button { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: var(--space-md); width: 100%; min-height: 7.25rem; padding: var(--space-md); border: 0; border-radius: var(--radius-card); background: none; color: var(--color-ink); text-align: left; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.chart button:hover { background: var(--color-paper-2); }
.chart button:active { background: var(--color-paper-3); }
.chart button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.chart button.is-playing { color: var(--color-accent); }
.chart b { font-family: var(--font-outlier); font-weight: 400; font-size: var(--text-3xl); line-height: 1; }
.chart small { font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); }
.chart--marks { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.chart--figures { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.chart--spell { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.chart--spell button { min-height: 10.5rem; gap: var(--space-xs); justify-content: flex-start; }
.chart--spell .bars { margin-top: auto; }
.chart__w { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); line-height: 1.2; letter-spacing: -0.02em; }
.plan__ref { margin-top: var(--space-md); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2xs) var(--space-md); max-width: none; }
.tool__spell { font-family: var(--font-display); font-weight: 500; font-size: var(--text-3xl); line-height: 1.25; letter-spacing: -0.02em; color: var(--color-ink); max-width: none; overflow-wrap: anywhere; }
.chart--small { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.chart--small button { min-height: 5.5rem; padding: var(--space-sm); }
.chart--small b { font-size: var(--text-2xl); }
.band .chart button:hover { background: var(--color-paper); }

/* the foot: the wordmark large over the links */
.mast { margin-top: var(--section-gap-l); padding-block: var(--space-2xl) var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.band + .mast, main:has(> .band:last-child) + .mast { margin-top: 0; border-top: 0; }
.mast__in { display: grid; row-gap: var(--space-xl); }
.mast__name { font-family: var(--font-display); font-weight: 500; font-size: clamp(3.5rem, 11vw, 9.5rem); line-height: 0.88; letter-spacing: -0.05em; color: var(--color-ink); max-width: none; }
.mast__name span { color: var(--color-muted); }
.mast__links { list-style: none; margin: 0; padding: var(--space-md) 0 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.mast__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--color-ink-2); text-decoration: none; border-bottom: 1px solid transparent; transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.mast__links a:hover { color: var(--color-ink); border-bottom-color: var(--color-accent); }
.mast__legal, .mast__house { font-size: var(--text-sm); color: var(--color-muted); max-width: 90ch; }
.mast__house { margin-top: calc(-1 * var(--space-md)); }

/* ---- reading pages ---------------------------------------------------------------------------------------------------- */
/* the head is the page's first screen: the title, the answer and the way on; beside it the record, the code or the drill */
.head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--space-2xl); align-items: center; min-height: min(78svh, 700px); padding-block: var(--space-3xl) var(--space-2xl); }
.head--tool { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; min-height: min(calc(100svh - var(--bar-h) - var(--banner-h)), 800px); padding-block: var(--space-2xl); }
.head--tool .head__text { align-self: center; }
.head--axis { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.head + .sec { padding-top: 0; }
.head--tool + .sec { padding-top: var(--space-lg); }
.crumbs { font-size: var(--text-sm); }
main .crumbs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--color-muted); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--dur-short) var(--ease-out); }
main .crumbs a:hover { border-bottom-color: var(--color-accent); }
.head h1 { font-size: var(--text-display); max-width: none; margin-top: var(--space-xs); letter-spacing: var(--tracking-display); }
.head--tool h1 { font-size: var(--text-display-s); }
.head .lead { margin-top: var(--space-lg); max-width: none; }
.head__ref { margin-top: var(--space-sm); display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); }
.head__go { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); }
.head__go small { font-size: var(--text-sm); color: var(--color-muted); }
.head__pic { width: 100%; margin: 0; min-width: 0; }
.head__pic--tool { display: flex; }
.head__pic--tool .tool { flex: 1 1 auto; min-width: 0; }
.head__pic--trace .well { display: grid; align-content: center; min-height: 26rem; padding: var(--space-2xl) var(--space-lg); }
.card { background: var(--color-paper-2); color: var(--color-ink-2); border: var(--rule-hair) solid var(--color-rule); }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding: var(--space-md) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.card__head b { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: -0.02em; color: var(--color-ink); }
.card__facts { margin: 0; }
.card__facts > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: var(--space-md); align-items: center; min-height: 96px; padding: var(--space-md) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.card__facts > div:last-child { border-bottom: 0; }
.card__facts dt { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); line-height: 1.4; }
.card__facts dd { margin: 0; font-family: var(--font-outlier); font-size: var(--text-lg); line-height: 1.35; color: var(--color-ink); }

/* at a glance: one fact a row */
.glance dt { grid-column: 1 / span 4; font-weight: 500; color: var(--color-muted); }
.glance dd { grid-column: 5 / span 6; margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--text-title); line-height: 1.3; letter-spacing: -0.02em; color: var(--color-ink); }

/* the order of things, when there is a real order */
.steps { counter-reset: step; }
.steps > li { counter-increment: step; }
.steps > li::before { content: counter(step); grid-column: 1; font-family: var(--font-outlier); font-size: var(--text-2xl); line-height: 1; color: var(--color-muted); }
.steps .steps__h { grid-column: 2 / span 3; }
.steps p:not([class]) { grid-column: 5 / span 6; font-size: var(--text-lead); max-width: none; }

/* a signal: its letters, its bars, what it is for, and its sound */
.sigs > li { align-items: center; }
.sig__g { grid-column: 1 / span 2; font-family: var(--font-outlier); font-size: var(--text-2xl); line-height: 1.1; color: var(--color-ink); }
.sig__t { grid-column: 3 / span 4; min-width: 0; overflow: hidden; }
.sig__t .trace--named { margin-top: var(--space-xl); }
.sig__p { grid-column: 7 / span 3; font-size: var(--text-lead); line-height: 1.35; }
.sigs .row__ref { grid-column: 10 / span 2; }
.sigs .btn { grid-column: 12; justify-self: end; }

/* the Q code: the group, the question and the answer as the ITU prints them */
.qcodes > div { min-height: 0; }
.qcodes dt { grid-column: 1 / span 2; font-size: var(--text-2xl); line-height: 1.1; color: var(--color-ink); }
.qcodes dd { grid-column: 3 / span 8; margin: 0; display: grid; gap: var(--space-xs); }
.q__q { font-family: var(--font-display); font-weight: 500; font-size: var(--text-title); line-height: 1.3; letter-spacing: -0.02em; color: var(--color-ink); max-width: 44ch; }
.q__a { max-width: 60ch; }

/* where it is written: each document once, the places cited from it as keys into the register of sources */
.srcs { margin-top: var(--section-gap-s); }
.srcs__h { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); padding-bottom: var(--space-sm); max-width: none; }
.sources { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.sources > li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xs); align-items: baseline; padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.sources cite { grid-column: 1 / span 4; grid-row: 1 / span 2; font-style: normal; font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); line-height: 1.3; }
.sources cite a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-muted); }
.sources__where { grid-column: 1 / span 4; font-size: var(--text-sm); color: var(--color-muted); }
.sources__places { grid-column: 5 / -1; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.keyref { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); background: none; color: var(--color-ink-2); font-family: var(--font-outlier); font-size: var(--text-xs); text-decoration: none; white-space: nowrap; transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.keyref:hover { border-color: var(--color-muted); color: var(--color-ink); }
.keyref:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* the register of sources: the place on the left, the source's own words on the right */
.register { margin: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.register > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule-2); scroll-margin-top: var(--space-3xl); }
.register > div:target { background: var(--color-paper-2); box-shadow: 0 0 0 var(--space-md) var(--color-paper-2); }
.register dt { grid-column: 1 / span 3; font-family: var(--font-outlier); font-size: var(--text-md); color: var(--color-ink); }
.register dd { grid-column: 4 / -1; margin: 0; }
.register blockquote { margin: 0; }
.register blockquote p { max-width: 58ch; font-size: var(--text-lead); line-height: 1.55; color: var(--color-ink); }
.register__seen, .register__on { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); max-width: 70ch; }

/* a few things side by side, each a title and a line, boxed by hairlines */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--across, 3), minmax(0, 1fr)); border-top: var(--rule-hair) solid var(--color-rule); border-left: var(--rule-hair) solid var(--color-rule-2); }
.tiles > li { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; padding: var(--space-lg); border-right: var(--rule-hair) solid var(--color-rule-2); border-bottom: var(--rule-hair) solid var(--color-rule-2); transition: background-color var(--dur-short) var(--ease-out); }
.tiles h3 { font-size: var(--text-xl); }
.tiles h3 a { color: var(--color-ink); text-decoration: none; }
.tiles h3 a::after { content: ""; position: absolute; inset: 0; }
.tiles h3 a:focus-visible { outline: none; }
.tiles > li:has(h3 a):hover { background: var(--color-paper-2); }
.tiles > li:has(a:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.tiles p { margin-top: var(--space-xs); }

/* what to read next: three across */
.more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule-hair) solid var(--color-rule); border-left: var(--rule-hair) solid var(--color-rule-2); }
.more > li { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 144px; padding: var(--space-lg); border-right: var(--rule-hair) solid var(--color-rule-2); border-bottom: var(--rule-hair) solid var(--color-rule-2); transition: background-color var(--dur-short) var(--ease-out); }
.more > li:hover { background: var(--color-paper-2); }
.more h3 { font-size: var(--text-xl); }
.more h3 a { color: var(--color-ink); text-decoration: none; }
.more h3 a::after { content: ""; position: absolute; inset: 0; }
.more h3 a:focus-visible { outline: none; }
.more > li:has(a:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: -2px; }

.lost { padding-block: var(--section-gap) var(--space-2xl); }
.lost p { margin-top: var(--space-lg); font-size: var(--text-lead); }

/* ---- narrower screens ------------------------------------------------------------------------------------------------- */
@media (max-width: 60rem) {
  :root { --row-h: 0px; --u: 9px; }
  .hero__in, .head, .head--tool, .head--axis { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); min-height: 0; padding-block: var(--space-xl); }
  .sec__head h2, .sec__head .lead { grid-column: 1 / -1; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .figures > div { min-height: 9rem; }
  .figures > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .switch__tabs, .switch__panes { grid-column: 1 / -1; }
  .switch__pane .tool { min-height: 0; }
  .rows > li, .glance > div, .steps > li, .sigs > li, .qcodes > div { padding-block: var(--space-lg); row-gap: var(--space-2xs); }
  .rows h3, .rows p:not([class]), .glance dt, .glance dd, .steps .steps__h, .steps p:not([class]), .row__ref, .sig__g, .sig__t, .sig__p, .sigs .row__ref, .sigs .btn, .qcodes dt, .qcodes dd { grid-column: 1 / -1; }
  .steps > li::before { grid-column: 1 / -1; }
  .row__ref { justify-self: start; flex-direction: row; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); text-align: left; }
  .sigs .btn { justify-self: start; margin-top: var(--space-xs); }
  .sig__t { padding-block: var(--space-xs); }
  .band__in { grid-template-columns: minmax(0, 1fr); }
  .head__pic { max-width: 34rem; }
  .sources cite, .sources__where, .sources__places { grid-column: 1 / -1; grid-row: auto; }
  .sources__places { margin-top: var(--space-sm); }
  .register dt, .register dd { grid-column: 1 / -1; }
  .register dd { margin-top: var(--space-xs); }
  .more { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles > li, .more > li { min-height: 0; }
}
@media (max-width: 40rem) {
  :root { --u: 7px; }
  .bar__in { padding-block: var(--space-2xs); }
  .banner__wide { display: none; }
  .banner__narrow { display: inline; }
  .stat { margin-bottom: var(--space-lg); }
  .stat__n { font-size: 5.5rem; }
  .hero__go .btn, .head__go .btn { padding-inline: var(--space-md); }
  .tool--key .trace { --u: 9px; }
  .tool__row { grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: var(--space-sm); }
  .bar nav { width: 100%; justify-content: space-between; gap: 0 var(--space-sm); }
  .banner__in { padding-block: var(--space-xs); }
  .tool { padding: var(--space-md); gap: var(--space-md); }
  .tool__stage { padding: var(--space-md); }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .chart { grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); }
  .chart--marks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart--figures { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .chart--spell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart--spell button { min-height: 9rem; }
  .chart--small { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bars { gap: var(--space-3xs); }
  .bars .dit { width: 3px; height: 4px; }
  .bars .dah { width: 8px; height: 4px; }
  .head__pic--trace .well { min-height: 14rem; }
  .chart button { min-height: 6rem; padding: var(--space-sm); }
  .trace > .off--3::after { content: none; }
  .mast__links { gap: 0 var(--space-lg); }
}
