/* Hallmark · shape: Workbench · genre: playful · theme: Squeeze (deal 3/3, seed spirit-level-phone-bubble-f13c·6234272b·2026-12-05·r0) · job: try · draw: manual
 * hero: the head over the tilt set as one figure, beside the instrument on a lighter tile · nav: edge-aligned, the wordmark and two pill links · footer: a ruled note over the credit lines · imagery: none, the instrument drawn in SVG · signature: the bubble that floats to the high side of a round vial and two tubes, with the tilt as one big figure
 * axes: mid/geometric-sans/warm · posture: drenched · copy: verbatim · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one instrument and a page on how to use it; the vial and the big figure carry the look */
/* Hallmark · answered F4 · the level · Turn on the tilt sensor shows only on an iPhone before the sensor is allowed, and the script then takes the fill off Set as level, so one filled button shows at a time */
/* Hallmark · waive 44c · both pages · on the level the square vial stands beside the whole text column (head, actions and readings), centred on it, so it runs past the short head on purpose; on the guide the head is the tilted vial beside the headline, and the first steps start inside the first screen so a reader sees where the page goes */
/* Hallmark · waive 77 · every page · a level and a page on how to use it, not a landing strip: the instrument is the page */
: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(41% 0.100 154); --color-paper-2: oklch(47% 0.105 154); --color-paper-3: oklch(34% 0.090 156);
  --color-ink: oklch(99% 0.005 90); --color-ink-2: oklch(94% 0.020 120); --color-muted: oklch(90% 0.030 150); --color-rule: oklch(55% 0.100 154);
  --color-accent: oklch(83% 0.115 56); --color-accent-2: oklch(74% 0.150 46); --color-accent-ink: oklch(30% 0.070 40); --color-focus: oklch(88% 0.14 85);
  --color-card: oklch(97% 0.012 85); --color-card-ink: oklch(24% 0.05 160);
  --font-display: "Gabarito", ui-sans-serif, system-ui, sans-serif; --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: var(--font-display);
  --radius-card: 24px; --radius-control: 16px; --radius-pill: 999px; --rule-hair: 1px; --rule-bar: 2px;
  --shadow-card: 0 14px 32px -16px oklch(22% 0.05 160 / 0.5);
  --tracking-display: -0.025em; --display-weight: 800;
}

*, *::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) 45%, transparent); color: var(--color-card-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 vib=12 con=4 */
[data-slot] > img { filter: saturate(1.06) contrast(1.04); }

@font-face { font-family: "Gabarito"; src: url("/fonts/gabarito-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

body { font-weight: 500; color: var(--color-muted); }
h1, h2 { color: var(--color-ink); line-height: 1; }
.num { font-variant-numeric: lining-nums tabular-nums; }
.skip { position: absolute; left: var(--space-md); top: -100px; background: var(--color-ink); color: var(--color-card-ink); padding: var(--space-xs) var(--space-md); z-index: var(--z-modal); }
.skip:focus-visible { top: var(--space-md); }
a { color: var(--color-ink); font-weight: 700; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--color-accent); }

.bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs) var(--space-xl); padding-block: var(--space-md); }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; }
.wordmark span { color: var(--color-muted); }
.bar__nav { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.bar__nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--space-md); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); text-decoration: none; transition: background-color var(--dur-micro) var(--ease-out), translate var(--dur-micro) var(--ease-out); }
.bar__nav a:hover { background: var(--color-rule); }
.bar__nav a:active { translate: 0 1px; }
.bar__nav a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.bar__nav a[aria-current="page"] { background: var(--color-paper-3); box-shadow: inset 0 0 0 3px var(--color-accent); }

/* the level: the head and the actions on the left, the instrument and its readings on one tile on the right */
.hero { padding-block: var(--space-xl) var(--space-2xl); min-height: calc(100svh - 4.5rem); display: grid; align-content: center; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: var(--space-xl) var(--space-2xl); align-items: center; }
.hero__head .lead { margin-top: var(--space-sm); color: var(--color-ink-2); }
.hero__act, .level__read { margin-top: var(--space-xl); }
.level__tile { background: var(--color-paper-2); border-radius: var(--radius-card); padding: var(--space-lg); }
.level__vial { background: var(--color-paper-2); border-radius: var(--radius-card); padding: var(--space-lg); }
.vial { width: 100%; height: auto; max-width: 440px; margin-inline: auto; }
.level__tile .vial { max-width: none; }
.v-well { fill: var(--color-paper-3); }
.v-cross, .v-guide { fill: none; stroke: var(--color-rule); stroke-width: 2; }
.v-label { fill: var(--color-muted); font: 700 15px var(--font-body); }
.v-ring { fill: none; stroke: var(--color-muted); stroke-width: 3; transition: stroke var(--dur-short) var(--ease-out); }
.v-mark { fill: none; stroke: var(--color-muted); stroke-width: 3; transition: stroke var(--dur-short) var(--ease-out); }
.v-bubble { fill: var(--color-ink-2); }
.v-shine { fill: var(--color-ink); }
.is-level .v-ring, .is-level .v-mark { stroke: var(--color-accent); }

.figure { display: flex; flex-wrap: wrap; align-items: baseline; margin: var(--space-sm) 0 0; color: var(--color-ink); font-family: var(--font-display); font-weight: 800; }
.figure__n, .figure__u { font-size: clamp(4rem, 6vw, 6rem); line-height: 0.85; letter-spacing: -0.04em; font-variant-numeric: lining-nums tabular-nums; }
.figure__l { margin-left: var(--space-sm); font-family: var(--font-body); font-weight: 700; font-size: var(--text-lg); color: var(--color-muted); }
.axes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); margin: var(--space-md) 0 0; max-width: 30rem; }
.axis { background: var(--color-paper-2); border-radius: var(--radius-control); padding: var(--space-sm) var(--space-md); }
.axis dt { font-size: var(--text-sm); font-weight: 700; }
.axis dd { margin: 0; color: var(--color-ink); font-size: var(--text-sm); font-weight: 700; }
.axis dd b { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); line-height: 1.15; }

.btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.btn { min-height: 48px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; padding: var(--space-xs) var(--space-lg); border: var(--rule-bar) solid var(--color-ink); border-radius: var(--radius-control); background: transparent; color: var(--color-ink); font: 700 var(--text-md)/1.25 var(--font-body); cursor: pointer; transition: translate var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-2); }
.btn:active { translate: 0 1px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; translate: none; }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }
.btn--quiet { border-color: transparent; text-decoration: underline; text-underline-offset: 0.2em; padding-inline: var(--space-sm); }
.tell { margin-top: var(--space-md); max-width: 34rem; }
.say { color: var(--color-ink); font-weight: 700; }
.note { color: var(--color-ink); font-weight: 700; background: var(--color-paper-3); border-radius: var(--radius-control); padding: var(--space-sm) var(--space-md); }

.head { padding-block: var(--space-2xl); }
.head h1 { max-width: 16ch; }
.head .lead { margin-top: var(--space-md); color: var(--color-ink-2); }
.head--split .head__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--space-xl) var(--space-2xl); align-items: center; }
.head__fig { margin: 0; }
.head__fig .level__vial { padding: var(--space-md); }
.head__fig figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); font-weight: 700; color: var(--color-ink-2); }

.sec { padding-block: var(--section-gap-s); }
.sec--first { padding-top: var(--space-2xl); }
.sec--band { background: var(--color-paper-3); color: var(--color-ink-2); }
.sec h2 + * { margin-top: var(--space-xl); }
.sec__note { margin-top: var(--space-lg); max-width: 62ch; font-size: var(--text-lg); }
.sec__text { max-width: 60ch; font-size: var(--text-lg); }
.sec--split .sec__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-lg) var(--space-2xl); align-items: start; }
.sec--split h2 + * { margin-top: 0; }
.sec--statement h2 { font-size: var(--text-display); max-width: 18ch; }
.sec__act { margin-top: var(--space-xl); }
.sec__act .btn { text-decoration: none; }

.rows { margin: 0; max-width: 62rem; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--space-lg); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.row:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.row dt { font-family: var(--font-display); font-weight: 800; font-size: var(--text-title); letter-spacing: var(--tracking-display); color: var(--color-ink); }
.row dd { margin: 0; font-size: var(--text-lg); }

.ex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); margin-top: var(--space-lg); max-width: 46rem; }
.ex__cell { display: grid; gap: var(--space-xs); align-content: start; margin: 0; background: var(--color-paper-2); border-radius: var(--radius-card); padding: var(--space-lg); }
.ex__cell--out { background: var(--color-paper-3); }
.ex__n { font-family: var(--font-display); font-weight: 800; font-size: var(--text-display-s); line-height: 1; letter-spacing: -0.03em; color: var(--color-ink); }
.ex__l { font-size: var(--text-md); font-weight: 700; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); max-width: 62ch; counter-reset: step; }
.steps li { position: relative; background: var(--color-paper-2); border-radius: var(--radius-control); padding: var(--space-md) var(--space-lg); font-size: var(--text-lg); }
.steps b { color: var(--color-ink); font-weight: 700; }
ol.steps li { counter-increment: step; padding-left: calc(var(--space-lg) + 2.25rem); }
ol.steps li::before { content: counter(step); position: absolute; left: var(--space-lg); top: var(--space-md); font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: 1.1; color: var(--color-ink); }

.foot { border-top: var(--rule-bar) solid var(--color-rule); }
.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: 1200px) {
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
}
@media (max-width: 860px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "tile" "read" "act"; gap: var(--space-md); }
  .hero__text { display: contents; }
  .hero__head { grid-area: head; }
  .level__tile { grid-area: tile; max-width: 488px; }
  .level__read { grid-area: read; margin-top: 0; }
  .hero__act { grid-area: act; margin-top: 0; }
  .vial { max-width: 340px; }
  .head--split .head__in { grid-template-columns: minmax(0, 1fr); }
  .sec--split .sec__in { grid-template-columns: minmax(0, 1fr); }
  .head__fig { max-width: 340px; }
}
@media (max-width: 600px) {
  .bar__in { gap: var(--space-xs) var(--space-sm); padding-block: var(--space-sm); }
  .wordmark { font-size: var(--text-lg); }
  .bar__nav a { padding: 0 var(--space-sm); }
  .hero { padding-top: var(--space-sm); }
  .hero__in { gap: var(--space-sm); }
  .level__tile { padding: var(--space-sm); }
  .level__vial { padding: var(--space-sm); }
  .vial, .level__tile .vial { max-width: 250px; }
  .axis dd b { font-size: var(--text-xl); }
  .figure__n, .figure__u { font-size: 3.5rem; }
  .figure { margin-top: var(--space-xs); }
  .axes { margin-top: var(--space-sm); }
  .head { padding-block: var(--space-xl); }
  .head__fig { max-width: 280px; }
  .ex__cell { padding: var(--space-md); }
  .ex__n { font-size: var(--text-3xl); }
  .row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .bar__nav a, .v-ring, .v-mark { transition: none; }
}

/* ---- the guide (2026-12-05, #967): the menu on a phone, crumbs, the kinds, the sets, tables, calculators, drawings ---- */
.bar__menu, .bar__close { display: none; }
.bar__nav a.bar__close { display: none; }   /* .bar__nav a sets inline-flex; the phone rule .bar__nav:target .bar__close still wins with the menu open */
.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: 700; }
.sec__body { display: grid; gap: var(--space-md); min-width: 0; max-width: 60ch; align-content: start; }
.sec__body > p { max-width: 65ch; font-size: var(--text-lg); }
.sec--wide .sec__in { grid-template-columns: minmax(0, 1fr); }
.sec--wide .sec__body { max-width: none; }
.ref { font-size: var(--text-xs); font-weight: 700; color: var(--color-ink-2); white-space: nowrap; }
.head--draw .head__in { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
.head__fig .draw, .draw-fig .draw { width: 100%; height: auto; background: var(--color-paper-2); border-radius: var(--radius-card); padding: var(--space-md); }
.draw-fig { margin: 0; max-width: 640px; }
.draw-fig figcaption { margin-top: var(--space-xs); font-size: var(--text-sm); font-weight: 700; color: var(--color-ink-2); }

/* the drawings: every fill and line from a token */
.d-body { fill: var(--color-accent); }
.d-text { fill: var(--color-ink); font: 700 15px var(--font-body); }
.d-tag { fill: var(--color-accent); font: 800 24px var(--font-display); }
.d-lead { fill: none; stroke: var(--color-muted); stroke-width: 2; }
.d-ground, .d-ground-solid, .d-wall { fill: var(--color-paper-3); }
.d-ground-line { fill: none; stroke: var(--color-ink-2); stroke-width: 3; }
.d-tube { fill: none; stroke: var(--color-muted); stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; }
.d-spirit { fill: none; stroke: var(--color-accent-2); stroke-width: 12; stroke-linecap: round; }
.d-water { fill: none; stroke: var(--color-accent); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.d-dim { fill: none; stroke: var(--color-muted); stroke-width: 2; stroke-dasharray: 6 5; }
.d-mark { fill: none; stroke: var(--color-accent); stroke-width: 4; }
.d-line { fill: none; stroke: var(--color-ink-2); stroke-width: 4; stroke-linecap: round; }
.d-beam { stroke: var(--color-accent); stroke-width: 4; }
.d-beam-fan { fill: var(--color-accent); opacity: 0.2; }
.d-sight { stroke: var(--color-accent); stroke-width: 3; stroke-dasharray: 10 6; }
.d-staff, .d-edge, .d-foot { fill: var(--color-ink-2); }
.d-brick, .d-pack { fill: var(--color-accent-2); }
.d-string { stroke: var(--color-ink); stroke-width: 2; }
.d-ghost { opacity: 0.55; }
.d-arc { fill: none; stroke: var(--color-accent); stroke-width: 3; }
.d-bob { fill: var(--color-accent); }
.d-box { fill: var(--color-paper-2); stroke: var(--color-ink-2); stroke-width: 3; }
.d-door { fill: var(--color-paper-3); stroke: var(--color-ink-2); stroke-width: 3; }
.d-landing { stroke: var(--color-accent); stroke-width: 6; }

/* the kinds and the checks: a ruled list, the name on the left */
.kinds { list-style: none; margin: 0; padding: 0; max-width: 62rem; }
.kinds li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--space-lg); align-items: baseline; padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.kinds li:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.kinds__name { font-family: var(--font-display); font-weight: 800; font-size: var(--text-title); letter-spacing: var(--tracking-display); }
.kinds p { font-size: var(--text-lg); }
/* the sets on the home page: three ruled columns of links */
.sets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.set h3 { font-size: var(--text-2xl); padding-bottom: var(--space-sm); border-bottom: var(--rule-bar) solid var(--color-accent); }
.set h3 a { text-decoration: none; }
.set__list { list-style: none; margin: 0; padding: 0; }
.set__list li { border-bottom: var(--rule-hair) solid var(--color-rule); }
.set__list a { display: flex; align-items: center; min-height: 48px; font-size: var(--text-lg); text-decoration: none; }
.set__list a:hover { text-decoration: underline; }
.more { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.more a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: var(--rule-bar) solid var(--color-rule); text-decoration: none; transition: background-color var(--dur-micro) var(--ease-out); }
.more a:hover { background: var(--color-paper-2); }

/* tables on the green: a row a slope; on a phone one labelled card a row */
.tbl-wrap { min-width: 0; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl caption { text-align: left; margin-bottom: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: var(--space-sm) var(--space-sm) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.tbl thead th { font-size: var(--text-sm); color: var(--color-ink-2); }
.tbl tbody th { color: var(--color-ink); font-weight: 700; }
.tbl small { display: block; font-size: var(--text-xs); color: var(--color-ink-2); }

/* the calculators and the slope finder */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); align-items: start; }
.tool, .calc { background: var(--color-paper-2); border-radius: var(--radius-card); padding: var(--space-lg); display: grid; gap: var(--space-md); min-width: 0; }
.calc { max-width: 52rem; }
.tool__h { font-size: var(--text-2xl); }
.calc__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: var(--space-sm); }
.field { display: grid; grid-template-rows: 1fr auto; gap: var(--space-2xs); min-width: 0; }
.field__l { font-size: var(--text-sm); font-weight: 700; color: var(--color-ink-2); }
.field input { width: 100%; min-height: 48px; padding: 0 var(--space-sm); border: var(--rule-bar) solid var(--color-muted); border-radius: var(--radius-control); background: var(--color-paper-3); color: var(--color-ink); font: 700 var(--text-lg)/1.2 var(--font-body); font-variant-numeric: tabular-nums; }
.field input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-color: var(--color-focus); }
.calc__out { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); gap: var(--space-xs); margin: 0; }
.calc__out div { background: var(--color-paper-3); border-radius: var(--radius-control); padding: var(--space-sm) var(--space-md); }
.calc__out dt { font-size: var(--text-sm); font-weight: 700; }
.calc__out dd { margin: 0; color: var(--color-ink); font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: 1.15; }
.calc__say { color: var(--color-ink); font-weight: 700; }
.tool .figure { margin-top: 0; }

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

@media (max-width: 1100px) {
  .head--draw .head__in { grid-template-columns: minmax(0, 1fr); }
  .head--draw .head__fig { max-width: 560px; }
}
@media (max-width: 900px) {
  .sets, .tools { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .bar__menu { display: inline-flex; min-height: 44px; align-items: center; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: var(--rule-bar) solid var(--color-ink); color: var(--color-ink); text-decoration: none; }
  .bar__menu:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
  .bar__nav { display: none; width: 100%; flex-direction: column; gap: var(--space-2xs); }
  .bar__nav:target { display: flex; }
  .bar__in:has(.bar__nav:target) .bar__menu { display: none; }
  .bar__nav:target .bar__close { display: inline-flex; }
  .bar__nav a { border-radius: var(--radius-control); }
  .kinds li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .tbl caption { display: block; }   /* a block table would squeeze its caption into a one-word column */
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tbl, .tbl tbody, .tbl tr { 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: 8rem minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-3xs) 0; border: 0; }
  .tbl tbody th { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); grid-template-columns: minmax(0, 1fr); }
  .tbl td::before { content: attr(data-label); font-weight: 700; font-size: var(--text-sm); color: var(--color-muted); }
  .tbl td:empty { display: none; }
  .tool, .calc { padding: var(--space-md); }
  .head__fig .draw, .draw-fig .draw { padding: var(--space-xs); }
}
@media (prefers-reduced-motion: reduce) {
  .more a { transition: none; }
}
@media print {
  .bar, .foot, .skip, .crumbs, .more { display: none; }
}
