/* ── Tokens ─────────────────────────────────────────────────────────────
   High visibility. A vest is two materials: hi-vis fabric does the shouting,
   retroreflective banding does the reading -- which is the structure of the
   mark, a flat hi-vis shadow cast by a machined steel box. design/identity-
   hivis.html is where this was decided.

   Dark only, on purpose. #D2EF2B against white is about 1.3:1; it is a colour
   engineered for a dark, dirty, distant world, and a light page is the one
   place it was never meant to be. A light theme here would either lose the
   hi-vis or stop being this identity.

   Hi-vis is progress, action and emphasis. Red, amber and green are reserved
   for data, so a reading is never confused with the interface around it.

   Shared by every page. Lives in its own file rather than inline because a
   second page means a second copy, and two copies of a palette drift apart
   the first time one colour changes.                                      */
@font-face {
  /* Velvetyne, SIL OFL 1.1 -- see /fonts/lineal/OFL.txt. The wordmark is cut
     from its Semi-Bold. */
  font-family: "Lineal";
  src: url("/fonts/lineal/LinealVF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ground:     #0D0D10;
  --panel:      #141419;
  --panel-2:    #1B1B21;
  --rule:       #292930;
  --ink:        #F1F0EC;
  --ink-soft:   #9B9BA3;
  --ink-faint:  #7C7C85;
  --hivis:      #D2EF2B;
  --hivis-deep: #9DB800;
  --steel:      #B7BCC3;
  --steel-mid:  #6A707A;
  --steel-dark: #33373F;
  --red:        #E0392C;
  --amber:      #F0A81E;
  --green:      #3FB27F;

  /* The vest device: hi-vis fabric broken by reflective silver. */
  --banding: repeating-linear-gradient(90deg, var(--hivis) 0 26px, var(--steel) 26px 34px);
  --banding-thin: repeating-linear-gradient(90deg, var(--hivis) 0 18px, var(--steel) 18px 24px);

  --display: "Lineal", ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans: ui-sans-serif, system-ui, "Segoe UI Variable Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --measure: 62ch;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
/* A strip of the banding across the top of every page, the way the tape runs
   across a vest. The only place it appears without being asked for. */
body::before { content: ""; display: block; height: 6px; background: var(--banding-thin); }
.sheet { position: relative; max-width: 1020px; margin: 0 auto; padding: 0 26px 100px; }

h1, h2, h3 { font-family: var(--display); font-weight: 650; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.02; letter-spacing: -.03em; }
h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.12; letter-spacing: -.02em; }
h3 { font-size: 18px; letter-spacing: -.01em; }
p  { margin: 0; max-width: var(--measure); }
a  { color: var(--hivis); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--hivis); outline-offset: 3px; }
::selection { background: var(--hivis); color: var(--ground); }

/* ── Shared atoms ─────────────────────────────────────────────────────── */
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--hivis);
}
section { padding: 62px 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; padding-top: 26px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: 42px; }

.band { height: 14px; background: var(--banding); }
.band-thin { height: 6px; background: var(--banding-thin); }

header.mast { display: flex; justify-content: space-between; align-items: center;
              gap: 18px; padding-top: 22px; flex-wrap: wrap; }
.wordmark { display: block; line-height: 0; color: var(--ink); }
.wordmark svg { display: block; height: 30px; width: auto; }

.btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 12px 20px; text-decoration: none; display: inline-block;
  border: 1px solid var(--hivis); background: var(--hivis); color: var(--ground);
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}
/* The pressed box, in miniature: the button lifts and casts its shadow. */
.btn:hover { transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--steel-mid); }
.btn:active { transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--steel-dark); font-weight: 400; }
.btn-ghost:hover { border-color: var(--hivis); box-shadow: 2px 2px 0 var(--hivis); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

code { font-family: var(--mono); font-size: .88em; background: var(--panel-2);
       padding: 1.5px 6px; border: 1px solid var(--rule); }
pre { font-family: var(--mono); font-size: 13px; line-height: 1.65; margin: 0;
      background: var(--panel); border: 1px solid var(--rule);
      padding: 18px 20px; overflow-x: auto; color: var(--ink-soft); }
pre b { color: var(--hivis); font-weight: 400; }

.aside {
  font-size: 15px; color: var(--ink-soft); max-width: var(--measure);
  border-left: 2px solid var(--steel-mid); padding-left: 17px;
}
footer { border-top: 1px solid var(--rule); padding-top: 26px;
         display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
         font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
         text-transform: uppercase; color: var(--ink-faint); }

/* The bake is level; a level butterfly reads as a specimen pinned to a board.
   One number, shared by every place the asset appears, so they cannot drift.
   Positive is clockwise, and this bake faces left, so positive is the one that
   lifts the head -- negative pitches it into a dive. */
:root { --tilt: 14deg; }
.tilt { transform: rotate(var(--tilt)); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
