/* Hallmark · genre: modern-minimal · theme: Vantage (deal: manual) · shape: Map / Diagram · hero: Stage · nav: edge-aligned · footer: colophon · job: try · signature: a real 16-count rotation with its over-striders and its closest pass called out · posture: restrained · v2.0.0 adapted */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: E, a hand-built hero is where this goes wrong; every dot, hash, step size and the closest pass are computed from field measurements in tools/make-drill.mjs rather than placed by eye */
/* Hallmark · vantage: terrain/steel · terrain read in plan, because a drill chart is drawn looking straight down */
/* Hallmark · sweep: Floor 0 open · Reflex 0 open, 0 waived · guards held: 80 and 47c (a labelled diagram of real geometry), 84 (no build exists to capture), 82 (marks differ by distance band), 85 (the close is a statement, the notify sits in the hero where job:try puts it) · linter: not run, no Node script in this account · render: Chrome at 320, 375, 1280, 1440, 1920 · contrast: measured, lowest pair 5.68 against 4.5 · finish-review: in-thread */

:root {
  /* Vantage */
  --color-paper: oklch(13.5% 0.012 235); --color-paper-2: oklch(17% 0.014 235); --color-paper-3: oklch(21% 0.016 235);
  --color-ink: oklch(95% 0.006 230); --color-ink-2: oklch(82% 0.012 230); --color-muted: oklch(66% 0.016 230);
  --color-rule: oklch(27% 0.014 235); --color-rule-2: oklch(34% 0.016 235);
  --color-accent: oklch(89% 0.19 126); --color-accent-hi: oklch(93% 0.17 126); --color-accent-ink: oklch(19% 0.04 126); --color-focus: oklch(89% 0.19 126);
  --point-lo: oklch(42% 0.04 245); --point-mid: oklch(70% 0.04 232); --point-hi: oklch(96% 0.02 215);
  --color-slot: oklch(21% 0.016 235);
  --mask-opaque: oklch(0% 0 0);   /* mask alpha only, never painted */
  --color-error: oklch(72% 0.15 28);
  --font-display: "Geologica", ui-sans-serif, system-ui, sans-serif; --font-body: "Geologica", ui-sans-serif, system-ui, sans-serif;
  --radius-card: 4px; --radius-pill: 999px; --rule-hair: 1px; --tick: 10px;
  --shadow-card: none;
  --tracking-display: -0.035em; --display-weight: 300;

  /* Scale */
  --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-sm: 0.875rem; --text-md: 1rem;
  --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;
  --container: 1440px; --gutter: 64px; --gap-columns: 32px;
  --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --nav-h: 72px;
  --z-base: 1; --z-sticky: 200; --z-toast: 500;
}

@media (max-width: 60rem) {
  :root { --gutter: 24px; --section-gap-s: 88px; --section-gap: 104px; --section-gap-l: 120px; --nav-h: 64px; }
}
@media (max-width: 40rem) {
  :root { --gutter: 16px; --section-gap-s: 72px; --section-gap: 84px; --section-gap-l: 96px; }
}

@font-face {
  font-family: "Geologica";
  src: url("/fonts/geologica-latin.woff2") format("woff2");
  font-weight: 200 500;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + var(--space-lg)); }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink-2);
  font: 300 var(--text-md)/1.6 var(--font-body);
  font-variation-settings: "SHRP" 0;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

::selection { background: var(--color-accent); color: var(--color-accent-ink); }
:root { caret-color: var(--color-accent); scrollbar-color: var(--color-rule-2) var(--color-paper); accent-color: var(--color-accent); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "SHRP" 100;
  letter-spacing: var(--tracking-display);
  line-height: 1;
  color: var(--color-ink);
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}
h1 { font-size: var(--text-display-s); max-width: 20ch; }
h2 { font-size: var(--text-section); max-width: 30ch; }
h3 { font-size: var(--text-title); font-weight: 400; max-width: 40ch; }
p { margin: 0; }
a { color: inherit; }

.num { font-variant-numeric: tabular-nums; font-weight: 400; }
.u { color: var(--color-muted); font-size: 0.75em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl));
  z-index: var(--z-toast);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-accent); color: var(--color-accent-ink);
  border-radius: var(--radius-card); text-decoration: none;
}
.skip:focus-visible { top: var(--space-md); outline: 2px solid var(--color-focus); outline-offset: 2px; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* ---- corner ticks ---- */
.ticks { position: relative; }
.ticks::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: var(--rule-hair) solid var(--color-rule-2);
  -webkit-mask: conic-gradient(at var(--tick) var(--tick), transparent 75%, var(--mask-opaque) 0) 0 0 / calc(100% - var(--tick)) calc(100% - var(--tick));
  mask: conic-gradient(at var(--tick) var(--tick), transparent 75%, var(--mask-opaque) 0) 0 0 / calc(100% - var(--tick)) calc(100% - var(--tick));
}

/* ---- nav: edge-aligned ---- */
.nav {
  position: relative; z-index: var(--z-sticky);
  height: var(--nav-h);
  display: flex; align-items: center;
}
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.mark {
  font-family: var(--font-display); font-weight: 400; font-variation-settings: "SHRP" 100;
  letter-spacing: -0.02em; font-size: 1.0625rem; color: var(--color-ink); text-decoration: none;
}
.mark:hover { color: var(--color-accent); }
.nav__link {
  font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none;
  text-underline-offset: 0.25em; white-space: nowrap;
}
.nav__link:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* ---- hero: Stage ---- */
.hero { padding-block: var(--space-xl) var(--space-2xl); }
.hero__in {
  min-height: calc(100dvh - var(--nav-h) - var(--space-xl) - var(--space-2xl));
  display: grid; align-content: center;
  grid-template-columns: 5fr 7fr; gap: var(--space-3xl);
}
.hero__text { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: var(--space-lg); min-width: 0; }
.hero .lead {
  font-size: var(--text-lead); color: var(--color-ink-2); max-width: 34ch; line-height: 1.45;
}
.hero__vis { margin: 0; min-width: 0; align-self: center; }

@media (max-width: 60rem) {
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); min-height: 0; }
}

/* ---- the charting desk (the product, built) ---- */
.desk {
  background: var(--color-slot);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm);
}
.desk__bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-lg); }
.desk__name { font-size: var(--text-sm); color: var(--color-ink); font-weight: 400; }
.desk__meta { font-size: var(--text-sm); color: var(--color-muted); }
.desk__stage { position: relative; background: var(--color-paper); border-radius: 3px; padding: var(--space-xs); }
.desk__foot { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); align-items: center; justify-content: space-between; }

.layers { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); margin: 0; padding: 0; border: 0; }
.layers legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.layers input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.layers label {
  position: relative;
  display: inline-flex; align-items: center; gap: var(--space-xs);
  min-height: 32px; font-size: var(--text-sm); color: var(--color-muted); cursor: pointer;
}
.layers label::before {
  content: ""; width: 26px; height: 15px; border-radius: var(--radius-pill);
  background: var(--color-paper-3); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule-2);
  position: relative; flex-shrink: 0;
  transition: background-color var(--dur-short) var(--ease-out);
}
.layers label::after {
  content: ""; position: absolute; left: 3px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--color-muted);
  transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.layers input:checked + label { color: var(--color-ink-2); }
.layers input:checked + label::before { background: var(--color-accent); }
.layers input:checked + label::after { background: var(--color-accent-ink); transform: translateX(11px); }
.layers input:focus-visible + label::before { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.readout { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: var(--text-sm); }
.readout > span { color: var(--color-muted); }
.readout b { font-weight: 400; color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
.readout .is-flagged b { color: var(--color-accent); }

/* ---- the field ---- */
.field, .detail { display: block; width: 100%; height: auto; }
.fb { fill: var(--color-paper-2); }
.fl { stroke: var(--color-rule-2); stroke-width: 0.11; }
.fl--major { stroke: var(--color-muted); stroke-width: 0.17; opacity: 0.75; }
.fh { stroke: var(--color-rule-2); stroke-width: 0.12; }
.fn {
  fill: var(--color-muted); font-family: var(--font-body); font-size: 2.1px; font-weight: 400;
  text-anchor: middle; font-variant-numeric: tabular-nums;
}
/* Distance travelled, in eight bands from the near point colour to the far one.
   Banded rather than continuous so no element needs an inline style, which
   keeps style-src free of 'unsafe-inline'. */
.k0 { --pt: var(--point-lo); }
.k1 { --pt: color-mix(in oklab, var(--point-lo), var(--point-mid) 30%); }
.k2 { --pt: color-mix(in oklab, var(--point-lo), var(--point-mid) 60%); }
.k3 { --pt: var(--point-mid); }
.k4 { --pt: color-mix(in oklab, var(--point-mid), var(--point-hi) 25%); }
.k5 { --pt: color-mix(in oklab, var(--point-mid), var(--point-hi) 50%); }
.k6 { --pt: color-mix(in oklab, var(--point-mid), var(--point-hi) 75%); }
.k7 { --pt: var(--point-hi); }

.dp { stroke: var(--pt, var(--point-mid)); stroke-width: 0.11; opacity: 0.6; }
.dp--over { stroke: var(--color-accent); opacity: 0.9; }
.da { fill: var(--color-paper); stroke: var(--color-muted); stroke-width: 0.17; }
.db { fill: var(--pt, var(--point-mid)); }
.db--over { fill: var(--color-accent); }
.gap { stroke: var(--color-accent); stroke-width: 0.1; stroke-dasharray: 0.3 0.3; }
.co__lead { stroke: var(--color-accent); stroke-width: 0.08; }
.co__n {
  fill: var(--color-accent); font-family: var(--font-body); font-size: 2.3px; font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.co__u { fill: var(--color-muted); font-size: 1.7px; }

/* The crop is authored in its own units: nothing here inherits the field's. */
.detail .fl--major { stroke-width: 0.035; }
.detail .dp { stroke-width: 0.045; opacity: 0.75; }
.detail .da { stroke-width: 0.045; }
.detail .gap { stroke-width: 0.04; stroke-dasharray: 0.12 0.12; }
.detail .co__n { font-size: 0.62px; }
.detail .co__u { font-size: 0.42px; }
.detail .dlab {
  fill: var(--color-muted); font-family: var(--font-body); font-size: 0.42px;
  font-variant-numeric: tabular-nums; text-anchor: middle; dominant-baseline: middle;
}

/* layer toggles really hide what they name */
.desk:has(#lay-paths:not(:checked)) .dp { display: none; }
.desk:has(#lay-start:not(:checked)) .da { display: none; }
.desk:has(#lay-hash:not(:checked)) .fh { display: none; }
.desk:has(#lay-flag:not(:checked)) .co { display: none; }

/* the count sweep */
.sweep line { stroke: var(--color-ink); stroke-width: 0.12; opacity: 0.5; }
.sweep { animation: sweep 7s var(--ease-in-out) infinite; }
@keyframes sweep { 0% { transform: translateX(-4px); } 100% { transform: translateX(104px); } }
[data-loop]:not(.is-running) .sweep { animation-play-state: paused; }
html:not(.js) [data-loop-toggle] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .sweep { animation: none; transform: translateX(50px); }
  [data-loop-toggle] { display: none; }
}

.ghost {
  background: transparent; color: var(--color-muted);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  min-height: 32px; padding: 0 var(--space-sm);
  font: 400 var(--text-sm)/1 var(--font-body); cursor: pointer;
  transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.ghost:hover { color: var(--color-ink); border-color: var(--color-rule-2); }
.ghost:active { transform: translateY(1px); }
.ghost:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
@media (prefers-reduced-motion: reduce) { .ghost { transition: none; } }

/* ---- the notify form ---- */
.signup { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); max-width: 30rem; }
.signup__label { font-size: var(--text-sm); color: var(--color-muted); }
.signup__row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.signup input {
  flex: 1 1 13rem; min-width: 0; min-height: 48px; padding: 0 var(--space-md);
  border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-pill);
  background: var(--color-paper-2); color: var(--color-ink);
  font: 300 var(--text-md)/1 var(--font-body);
  outline: 2px solid transparent; outline-offset: -3px;
}
.signup input::placeholder { color: var(--color-muted); }
.signup input:focus-visible { outline-color: var(--color-focus); }
.signup input[aria-invalid="true"] { border-color: var(--color-error); }
.signup__help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-muted); }
.signup__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--space-lg); border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent); color: var(--color-accent-ink);
  font: 400 var(--text-md)/1 var(--font-body); white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-accent-hi); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color var(--dur-short) linear; } }

/* ---- sections ---- */
.s { padding-block: var(--section-gap); }
.s--tight { padding-block: var(--section-gap-s); }
.s--wide { padding-block: var(--section-gap-l); }

.head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); max-width: 46ch; margin-bottom: var(--space-2xl); }
.head p { color: var(--color-ink-2); max-width: 54ch; }

/* Split: checks */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-3xl); align-items: center; }
@media (max-width: 60rem) { .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }
.split__vis { margin: 0; min-width: 0; background: var(--color-slot); border-radius: var(--radius-card); padding: var(--space-md); }
.split__cap { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

.checks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.checks > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.checks > div:first-child { border-top: 0; padding-top: 0; }
.checks > div:last-child { padding-bottom: 0; }
.checks dt { font-size: var(--text-title); font-weight: 400; color: var(--color-ink); font-family: var(--font-display); letter-spacing: -0.02em; }
.checks dd { margin: 0; color: var(--color-ink-2); max-width: 46ch; }
.checks .fig { color: var(--color-accent); font-variant-numeric: tabular-nums; font-weight: 400; }

/* Table: dot sheet */
.sheet-wrap { overflow-x: auto; }
.sheet { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.sheet caption { text-align: left; font-size: var(--text-sm); color: var(--color-muted); padding-bottom: var(--space-md); }
.sheet th {
  text-align: left; font-size: var(--text-sm); font-weight: 400; color: var(--color-muted);
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule-2);
  white-space: nowrap;
}
.sheet td {
  padding: var(--space-md) var(--space-md) var(--space-md) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  color: var(--color-ink-2); vertical-align: baseline;
}
.sheet td.num { color: var(--color-ink); font-variant-numeric: tabular-nums; width: 1%; }
.sheet tr.is-flagged td { color: var(--color-ink); }
.sheet tr.is-flagged td.num { color: var(--color-accent); }

/* Rows: build log */
.log { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.log__row {
  display: grid; grid-template-columns: 4fr 8fr; gap: var(--space-lg);
  padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule);
  align-items: baseline;
}
.log__row:first-child { border-top: 0; }
.log__row h3 { font-size: var(--text-title); }
.log__row p { color: var(--color-ink-2); max-width: 60ch; }
.log__state { font-size: var(--text-sm); color: var(--color-muted); }
.log__state.is-live { color: var(--color-accent); }
@media (max-width: 60rem) { .log__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); } }

/* Close band */
.band { background: var(--color-paper-2); padding-block: var(--section-gap-s); }
.band__in { display: grid; grid-template-columns: 6fr 6fr; gap: var(--space-3xl); align-items: center; }
@media (max-width: 60rem) { .band__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }
.band h2 { font-size: var(--text-section); }
.band p { color: var(--color-ink-2); max-width: 46ch; margin-top: var(--space-md); }

/* Footer: colophon */
.foot { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-xl); }
.foot__in { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); justify-content: space-between; align-items: baseline; }
.foot p, .foot a { font-size: var(--text-sm); color: var(--color-muted); }
.foot a { text-underline-offset: 0.25em; }
.foot a:hover { color: var(--color-ink); }

