/* Tokens (direction-v2 §1-2): type (--f-*, --w-*) · colour (--void … --hull) · space (--s4 … --s160) · page (--gutter --col-gap --max) · controls (--h-*, --tap, --pad-ctl) · figure (--tick) · motion (--ease --t --t-fb) */
@font-face { font-family: "Anybody"; src: url("../fonts/anybody-latin-var.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
/* Anybody's × is a 2 px dot at 15 px ("4.0 × 3.2 m" read as "4.0 · 3.2"); borrow Arial's for that one code point.
   At 95% its centre sits on the middle of Anybody's figures (33.6 vs 33.8 per 100 px). No Arial: Anybody's own. */
@font-face { font-family: "Anybody"; src: local("ArialMT"), local("Arial");
  unicode-range: U+00D7; size-adjust: 95%; font-weight: 100 900; font-stretch: 50% 150%; }
/* Format 1452 draws its full stop as a ring ("4∘0"). Leaving U+002E out hands that one glyph to Anybody, next in --f-plate. */
@font-face { font-family: "Format 1452"; src: url("../fonts/format-1452.woff2") format("woff2");
  font-weight: 400; font-display: swap; unicode-range: U+0-2D, U+2F-10FFFF; }
@font-face { font-family: "Mourier"; src: url("../fonts/mourier.woff2") format("woff2");
  font-weight: 400; font-display: block; }

:root {
  /* type */
  --f-type: "Anybody", system-ui, sans-serif;
  --f-plate: "Format 1452", "Anybody", sans-serif;
  --f-fiducial: "Mourier", "Format 1452", sans-serif;
  --w-squash: 60%; --w-text: 100%; --w-display: 150%;
  /* colour: amber is light or the one action; red lead is paint and cut faces, ship and drawings only */
  --void: #05070A; --deck: #0B0E13; --line: #3A4450; --edge: #6B7482;
  --ink: #EDEFF2; --ink-2: #A3ABB8; --ink-3: #7C8594;
  --sun: #FFB454; --sun-hi: #FFC578;
  --lead: #EB5A3C; --lead-paint: #8E2A1B; --hull: #E4E1DA;
  --atmo: #5AB4FF;
  /* space: 8 px step, 4 inside a control */
  --s4: 4px; --s8: 8px; --s12: 12px; --s16: 16px; --s24: 24px; --s32: 32px;
  --s48: 48px; --s64: 64px; --s96: 96px; --s160: 160px;
  /* page */
  --gutter: 48px; --col-gap: 24px; --max: 1344px;
  /* controls */
  --h-nav: 56px; --h-ctl: 48px; --h-ctl-sm: 40px; --tap: 44px; --pad-ctl: 20px;
  /* figure */
  --tick: 12px;
  /* motion: one curve, one time; 120 ms for feedback */
  --ease: cubic-bezier(.16, 1, .3, 1); --t: 300ms; --t-fb: 120ms;
  --ease-exit: cubic-bezier(.4, 0, 1, 1);
  /* ponytail: round-1 aliases kept only until footer.css moves to the names above; delete then */
  --sans: var(--f-type); --mono: var(--f-plate); --radius: 0px;
  --ease-ui: var(--ease); --ease-in: var(--ease-exit); --expo-out: var(--ease);
}
@media (max-width: 1023px) { :root { --gutter: 32px; } }
@media (max-width: 767px)  { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); color: var(--ink); -webkit-text-size-adjust: 100%; --anchor: 72px; scroll-padding-top: var(--anchor); }   /* anchors land under the 64 px bar, not behind it */
html:has(dialog[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 16px/24px var(--f-type); font-stretch: 100%;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img, svg, canvas, video { display: block; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
/* Plate: DIN 1452 lettering. Capitals, numbers and codes; never a sentence */
.plate { font: 400 16px/20px var(--f-plate); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 767px) { .plate { font-size: 15px; } }
.fiducial { font: 400 44px/1 var(--f-fiducial); color: var(--ink); white-space: nowrap; }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 8px; top: -64px; z-index: 100; padding: 12px 16px;
  font: 500 15px/20px var(--f-type); background: var(--sun); color: var(--void); }
.skip:focus { top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; }
/* Corner ticks: crop marks on a figure, never a box */
.ticks { position: relative; }
.ticks::before, .ticks::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  --c: var(--ink-3); --l: var(--tick);
  background:
    linear-gradient(var(--c) 0 0) 0 0 / var(--l) 1px, linear-gradient(var(--c) 0 0) 0 0 / 1px var(--l),
    linear-gradient(var(--c) 0 0) 100% 0 / var(--l) 1px, linear-gradient(var(--c) 0 0) 100% 0 / 1px var(--l);
  background-repeat: no-repeat; }
.ticks::after { transform: scaleY(-1); }

