/* Hallmark · shape: Instrument · genre: playful · theme: Ribbon (deal 3/3, seed interval-timer-pings-work-c7bb·6c2e9a2a·2026-12-05·r0) · job: try · draw: manual
 * hero: the one-line head beside the machined timer panel · nav: edge-aligned, the wordmark and two links · footer: a ruled note over the credit lines · imagery: none, the product · signature: the sunk face that lights amber for work and teal for rest, over a strip of the whole plan · ribbon: dawn
 * axes: light/grotesk-sans/chromatic-teal · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one tool and one guide; the panel carries the look, the guide reuses its strip */
/* Hallmark · waive 77 · every page · a timer and a guide with two plans, not a landing strip; the notes are short on purpose */
/* Hallmark · waive 44c · every page · the timer panel is the first screen's visual; on the guide the head stands over its first plan */
/* Hallmark · waive 79 · the timer · the space under the panel is the margin before the notes on how it keeps time */
/* Hallmark · dismissed grain · every page · Ribbon's canvas grain and drawn night are left out: no texture behind text (owner rule); the dark face is the night */
: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(98.2% 0.008 82); --color-paper-2: oklch(95.8% 0.011 82); --color-paper-3: oklch(92.3% 0.014 82);
  --color-ink: oklch(18% 0.006 80); --color-ink-2: oklch(30% 0.008 80); --color-muted: oklch(47% 0.012 80);
  --color-rule: oklch(89.5% 0.011 82); --color-rule-2: oklch(93.5% 0.009 82);
  --color-accent: oklch(44% 0.075 190); --color-accent-soft: oklch(92% 0.028 190); --color-accent-ink: oklch(98% 0.006 85); --color-focus: oklch(52% 0.09 190);
  --color-band: oklch(26% 0.045 195); --color-band-ink: oklch(94% 0.012 85);
  --color-slot: oklch(69% 0.07 80);
  --metal-hi: oklch(97% 0.006 85); --metal-lo: oklch(85% 0.01 85);
  --edge-light: inset 0 1px 0 oklch(100% 0 0 / 0.5);
  --shadow-part: 0 1px 0 oklch(20% 0.01 80 / 0.25), 0 10px 18px -6px oklch(20% 0.01 80 / 0.3);
  --shadow-panel: 0 1px 0 oklch(20% 0.01 80 / 0.2), 0 24px 48px -16px oklch(20% 0.02 80 / 0.35);
  --font-display: "Instrument Sans", ui-sans-serif, system-ui, sans-serif; --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: "JetBrains Mono", ui-monospace, monospace;
  --radius-card: 20px; --radius-part: 6px; --radius-pill: 999px; --rule-hair: 1px;
  --shadow-card: none;
  --tracking-display: -0.035em; --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) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
/* photographs: muted sepia=14 */
[data-slot] > img { filter: saturate(0.65) contrast(0.97) sepia(0.14); }

/* the face's colours: one per stretch, lit on the dark bed (Ribbon's band); the script only switches data-phase */
:root {
  --font-outlier: var(--font-display);
  --color-face: var(--color-band); --color-face-ink: var(--color-band-ink);
  --color-face-2: oklch(33% 0.04 195); --color-face-muted: oklch(80% 0.025 190);
  --color-work: oklch(82% 0.095 68); --color-work-ink: oklch(20% 0.03 62);
  --color-rest: oklch(84% 0.07 190); --color-rest-ink: oklch(22% 0.04 195);
  --color-warm: oklch(90% 0.03 85); --color-warm-ink: oklch(22% 0.01 80);
  --color-seg-work: oklch(52% 0.07 68); --color-seg-rest: oklch(50% 0.05 190); --color-seg-warm: oklch(55% 0.02 85);
  --shadow-bed: inset 0 2px 12px oklch(8% 0.02 200 / 0.55);
  --shadow-sunk: inset 0 1px 3px oklch(20% 0.01 80 / 0.22);
  --glow: 0 0 14px;
}

@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

body { color: var(--color-muted); font-size: 1.0625rem; line-height: 1.6; }
h1, h2 { font-weight: 400; color: var(--color-ink); line-height: 1.04; }
b { font-weight: 500; color: var(--color-ink); }
.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); }
a:hover { 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.02em; 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: 500; color: var(--color-muted); }
.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.4em; }

/* the hero: a one-line head beside the instrument */
.hero { padding-block: var(--space-2xl) var(--space-xl); }
.hero__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-xl); align-items: start; }
.hero h1 { font-size: clamp(2.6rem, 4.2vw, 4.4rem); max-width: 10ch; }
.hero .lead { margin-top: var(--space-md); max-width: 26ch; }

/* the instrument: a machined panel lit from above, the sunk face on the left, the parts on the right */
.panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-md); padding: var(--space-md); border-radius: var(--radius-card); background: linear-gradient(var(--color-paper-2), var(--color-paper-3)); box-shadow: var(--edge-light), var(--shadow-panel); }
.face { --phase: var(--color-work); --phase-ink: var(--color-work-ink); display: grid; align-content: center; gap: var(--space-md); padding: var(--space-xl); border-radius: calc(var(--radius-card) - 6px); background: var(--color-face); color: var(--color-face-muted); box-shadow: var(--shadow-bed); }
.face[data-phase="rest"], .face[data-phase="wait"] { --phase: var(--color-rest); --phase-ink: var(--color-rest-ink); }
.face[data-phase="warm"], .face[data-phase="done"] { --phase: var(--color-warm); --phase-ink: var(--color-warm-ink); }
.face__kind { justify-self: start; padding: var(--space-2xs) var(--space-md); border-radius: var(--radius-pill); background: var(--phase); color: var(--phase-ink); font: 500 var(--text-lg)/1.3 var(--font-body); }
.face__clock { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(4.5rem, 8vw, 9.5rem); line-height: 0.92; letter-spacing: -0.045em; color: var(--phase); font-variant-numeric: tabular-nums; }
/* the figures are sized from the face's own width: 59:59 is 2.43em wide in Instrument Sans with tabular figures, 1:00:00 is
   3.2em, so 38cqi and 29cqi leave a margin; a stretch of an hour or more (data-long) takes the smaller size throughout */
.face[data-long] .face__clock { font-size: clamp(3.4rem, 6vw, 7rem); }
@supports (container-type: inline-size) {
  .face { container-type: inline-size; }
  .face__clock { font-size: min(9.5rem, 38cqi); }
  .face[data-long] .face__clock { font-size: min(7rem, 29cqi); }
}
.level { height: 10px; border-radius: var(--radius-pill); background: var(--color-face-2); box-shadow: var(--shadow-sunk); overflow: hidden; }
.level i { display: block; height: 100%; width: 100%; transform: scaleX(var(--p, 0)); transform-origin: left center; background: var(--phase); transition: transform 250ms linear; }
.face__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2xs) var(--space-md); font-size: var(--text-lg); color: var(--color-face-ink); }
.strip { display: flex; gap: var(--space-2xs); height: 14px; }
.strip--tight { gap: 0; }
.seg { flex: 1 1 0; min-width: 0; border-radius: 3px; background: var(--color-face-2); }
.seg[data-kind="work"] { background: var(--color-seg-work); }
.seg[data-kind="rest"], .seg[data-kind="wait"] { background: var(--color-seg-rest); }
.seg[data-kind="warm"] { background: var(--color-seg-warm); }
.seg.is-past { opacity: 0.3; }
.seg.is-now { background: var(--phase); box-shadow: var(--glow) var(--phase); }
.bed { padding: var(--space-xs); border-radius: var(--radius-part); background: var(--color-face); box-shadow: var(--shadow-bed); max-width: 62ch; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-md); margin-top: var(--space-xs); font-size: var(--text-sm); }
.key { display: inline-block; width: 16px; height: 10px; margin-right: var(--space-2xs); border-radius: 3px; }
.key[data-kind="work"] { background: var(--color-seg-work); }
.key[data-kind="rest"] { background: var(--color-seg-rest); }

.controls { display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-sm) var(--space-xs); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xs); margin: 0; padding: var(--space-2xs); border: 0; border-radius: var(--radius-pill); background: var(--color-paper-3); box-shadow: var(--shadow-sunk); }
.modes label { position: relative; }
.modes input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.modes span { display: flex; min-height: 44px; align-items: center; justify-content: center; border-radius: var(--radius-pill); font-weight: 500; color: var(--color-muted); }
.modes input:checked + span { background: linear-gradient(var(--metal-hi), var(--metal-lo)); box-shadow: var(--edge-light), var(--shadow-part); color: var(--color-ink); }
.modes input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.modes input:disabled { cursor: not-allowed; }
.modes input:disabled + span { background: none; box-shadow: none; color: var(--color-muted); cursor: not-allowed; }
.modes input:checked:disabled + span { background: var(--color-paper-2); color: var(--color-ink-2); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin: 0; padding: 0; border: 0; min-width: 0; }
.field { display: grid; gap: var(--space-2xs); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.field input { width: 100%; height: 52px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-part); background: var(--color-paper); box-shadow: var(--shadow-sunk); font: 400 1.5rem/1 var(--font-display); color: var(--color-ink); font-variant-numeric: tabular-nums; }
.field input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--color-error); }
.field input:disabled { background: var(--color-paper-2); color: var(--color-muted); cursor: not-allowed; }
.plan, .lock { font-size: var(--text-sm); max-width: 40ch; }
.plan { color: var(--color-ink-2); }
.lock:empty { display: none; }

.keys { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.btn { min-height: 52px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: linear-gradient(var(--color-paper-2), var(--color-paper-3)); box-shadow: var(--edge-light), var(--shadow-part); color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); cursor: pointer; }
.btn--primary { min-width: 8.5rem; border-color: var(--color-accent); background: var(--color-accent); color: var(--color-accent-ink); }
.btn:active, .switch:active { transform: translateY(1px); }
.btn:focus-visible, .switch:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.switch { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 52px; margin-left: auto; padding: 0 var(--space-xs); border: 0; background: none; color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); cursor: pointer; }
.switch__track { position: relative; width: 46px; height: 28px; border-radius: var(--radius-pill); background: var(--color-paper-3); box-shadow: var(--shadow-sunk); }
.switch__knob { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(var(--metal-hi), var(--metal-lo)); box-shadow: var(--edge-light), var(--shadow-part); transition: transform var(--dur-short) var(--ease-out); }
.switch[aria-pressed="true"] .switch__track { background: var(--color-accent); }
.switch[aria-pressed="true"] .switch__knob { transform: translateX(18px); }

/* reading pages: rules, not boxes */
.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); max-width: 16ch; }
.head .lead { margin-top: var(--space-md); max-width: 46ch; }
.sec { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.sec--first { padding-top: var(--space-2xl); }
.sec h2 { font-size: var(--text-section); }
.sec h2 + * { margin-top: var(--space-lg); }
.sec__note { margin-top: var(--space-lg); max-width: 62ch; }
.steps, .notes { list-style: none; margin: 0; padding: 0; max-width: 62ch; }
.legend + .steps { margin-top: var(--space-lg); }
.steps li, .notes li { padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.steps li:first-child, .notes li:first-child { border-top: var(--rule-hair) solid var(--color-rule); }

.foot { border-top: var(--rule-hair) solid var(--color-rule); }
.foot__in { display: grid; gap: var(--space-xs); padding-block: var(--space-xl); font-size: var(--text-sm); }
.foot__note, .foot__line { margin: 0; max-width: 72ch; }

@media (max-width: 1100px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .hero h1, .hero .lead { max-width: 22ch; }
}
@media (max-width: 760px) {
  .panel { grid-template-columns: minmax(0, 1fr); padding: var(--space-sm); }
  .keys { order: -1; }
  .face { padding: var(--space-lg); gap: var(--space-sm); }
}
@media (max-width: 600px) {
  .hero { padding-top: var(--space-lg); }
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .hero h1 { font-size: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .level i, .switch__knob { transition: none; }
}

/* ---- the expansion (2026-12-05): the menu on a phone, crumbs, the ping test, tables, command output, the directory ---- */
:root {
  --font-code: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --color-code-bg: var(--color-paper-2);
  --color-tick: var(--color-seg-rest); --color-tick-lost: var(--color-error);
}
.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: var(--space-2xs) var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-xs); color: var(--color-muted); }
.crumbs a { font-weight: 500; }
.sec__body { display: grid; gap: var(--space-md); min-width: 0; max-width: 92ch; }
.sec__body > p { max-width: 62ch; }
.sec__body > .tbl-wrap, .sec__body > .cols, .sec__body > .dir, .sec__body > .register { max-width: 72ch; }
.sec h2 + .sec__body { margin-top: var(--space-lg); }
.ref { font-size: var(--text-xs); color: var(--color-muted); text-decoration-color: var(--color-rule); white-space: nowrap; }
.ref:hover { color: var(--color-accent); }
code, .code { font-family: var(--font-code); font-size: 0.92em; }
p code, li code, td code, dd code, .dir__a code { padding: 0 var(--space-3xs); border-radius: 4px; background: var(--color-code-bg); color: var(--color-ink); overflow-wrap: anywhere; }
.code { color: var(--color-ink-2); }

/* the ping test: the face shows the median, a bar for each request, the place that answered */
.unit { margin-left: var(--space-xs); font-size: 0.32em; letter-spacing: 0; color: var(--color-face-muted); }
.face--probe .face__clock { font-size: min(8rem, 30cqi); }
.ticks { display: flex; align-items: flex-end; gap: var(--space-2xs); height: 96px; padding: var(--space-xs); border-radius: var(--radius-part); background: var(--color-face-2); box-shadow: var(--shadow-sunk); }
.tick { flex: 1 1 0; min-width: 0; height: 100%; border-radius: 2px 2px 0 0; background: var(--color-tick); transform: scaleY(var(--h, 0)); transform-origin: 50% 100%; transition: transform var(--dur-short) var(--ease-out); }
.tick.is-done { background: var(--phase); }
.tick.is-lost { background: none; outline: 1px dashed var(--color-tick-lost); outline-offset: -1px; }
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm) var(--space-md); margin: 0; }
.figs div { padding-bottom: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); }
.figs dt { font-size: var(--text-sm); color: var(--color-muted); }
.figs dd { margin: 0; font: 400 1.5rem/1.2 var(--font-display); color: var(--color-ink); font-variant-numeric: tabular-nums; }
.legacy { margin-top: var(--space-md); padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-accent); border-radius: var(--radius-part); background: var(--color-accent-soft); color: var(--color-ink); max-width: 36ch; }
.all { font-size: var(--text-sm); }
.all summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 500; color: var(--color-ink); }
.all summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.all__list { margin: 0; padding-left: var(--space-lg); columns: 2; font-variant-numeric: tabular-nums; }

/* reading pages: steps, link lists, tables, output, the switches, the directory, the register, the foot's index */
.steps--n { list-style: decimal; padding-left: var(--space-lg); }
.steps--n li { padding-left: var(--space-2xs); }
.links { list-style: none; margin: 0; padding: 0; max-width: 62ch; }
.links li { display: grid; gap: var(--space-3xs); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.links li:first-child { border-top: var(--rule-hair) solid var(--color-rule); }
.links a { font-weight: 500; }
.links span { font-size: var(--text-sm); }
.cols { list-style: none; margin: 0; padding: 0; columns: 4 9rem; column-gap: var(--space-xl); }
.cols li { padding-block: var(--space-2xs); break-inside: avoid; color: var(--color-ink-2); }
.tbl-wrap { max-width: 100%; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.tbl caption { caption-side: top; text-align: left; padding-bottom: var(--space-xs); color: var(--color-ink-2); }
.tbl th, .tbl td { padding: var(--space-xs) var(--space-sm) var(--space-xs) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: top; }
.tbl thead th { font-weight: 500; color: var(--color-ink); border-bottom-color: var(--color-ink-2); }
.tbl tbody th { font-weight: 400; color: var(--color-ink); }
.tbl td.num { font-variant-numeric: tabular-nums; }
.tbl--code td.num { font-variant-numeric: normal; }
.out { margin: 0; padding: var(--space-md); overflow-x: auto; border-radius: var(--radius-part); background: var(--color-face); color: var(--color-face-ink); box-shadow: var(--shadow-bed); font-size: var(--text-sm); line-height: 1.5; max-width: 88ch; }
.out code { font-size: inherit; background: none; padding: 0; color: inherit; }
.out:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.sw { display: grid; gap: 0; margin: 0; max-width: 62ch; }
.sw div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.sw div:first-child { border-top: var(--rule-hair) solid var(--color-rule); }
.sw dd { margin: 0; }
.dir { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xl); }
.dir li { display: grid; gap: var(--space-sm); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.dir h3 { color: var(--color-ink); font-weight: 400; }
.dir__a { line-height: 2; }
.dir__a span { display: inline-block; min-width: 3rem; font-size: var(--text-sm); color: var(--color-muted); }
.register { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-lg); max-width: 72ch; }
.register li { display: grid; gap: var(--space-xs); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); scroll-margin-top: var(--space-xl); }
.register li:target { outline: 2px solid var(--color-focus); outline-offset: var(--space-xs); }
.register__claim { color: var(--color-ink); font-weight: 500; }
.register blockquote { margin: 0; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-part); background: var(--color-paper-2); }
.register__src { font-size: var(--text-sm); }
.calc select, .calc input[type="text"] { width: 100%; height: 52px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-part); background: var(--color-paper); box-shadow: var(--shadow-sunk); font: 400 1.25rem/1 var(--font-display); color: var(--color-ink); }
.calc select:focus-visible, .calc input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.calc input[aria-invalid] { border-color: var(--color-error); }

/* on a laptop a reading section gets the theme's long gap and a larger reading size: one idea to a screen */
@media (min-width: 1101px) {
  .sec--read { padding-block: var(--section-gap-l); }
  .sec--read.sec--first { padding-top: var(--space-3xl); }
  .sec__body { font-size: 1.125rem; line-height: 1.75; gap: var(--space-lg); }
  .out { font-size: 0.9375rem; line-height: 1.75; }
  .dir { gap: var(--space-2xl); }
}

@media (max-width: 900px) {
  .bar__menu { display: inline-flex; min-height: 44px; align-items: center; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--color-ink); color: var(--color-ink); text-decoration: none; font-weight: 500; }
  .bar__nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-bottom: var(--space-sm); }
  .bar__nav:target { display: flex; }
  .bar__in:has(.bar__nav:target) .bar__menu { display: none; }
  .bar__nav:target .bar__close { display: inline-flex; min-height: 44px; align-items: center; color: var(--color-muted); }
  .bar__nav a { border-bottom: var(--rule-hair) solid var(--color-rule-2); }
}
@media (max-width: 720px) {
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tbl, .tbl tbody, .tbl tr, .tbl caption { display: block; }
  .tbl tr { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .tbl tbody th, .tbl td { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-3xs) 0; border: 0; }
  .tbl tbody th { grid-template-columns: minmax(0, 1fr); font-weight: 500; }
  .tbl td::before { content: attr(data-label); font-size: var(--text-xs); color: var(--color-muted); }
  .sw div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .figs dd { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tick { transition: none; }
}
