/* BOMFab design tokens. The single source for color, type, radius and rhythm.
   Every one of the five pages links this file, so a change here reaches all
   of them. Nothing below this file may introduce a raw hex value.

   THREE SEEDS. Everything here is one of these or a step on a ramp between
   one of them and white:
     Forge red   #bf0a30   the one accent, brand-mandated
     Navy        #002868   structure, brand-mandated
     Ink         #17191d   every grey, from hairline to shell

   The audit that produced this file, 2026-09-10: 278 unique raw hex values
   were in use across seven stylesheets, and almost every one appeared
   exactly once. A dozen near-identical off-whites (#fbfcfc, #fcfdff,
   #fafbfd, #f7f9fc, #f6f8fa, #f5f7fb …) had each been picked by hand for a
   single rule. That is not a palette, it is 278 decisions nobody made twice.
   The ramps below are the whole vocabulary. */

:root {
  /* Surfaces. Three, not five: white, one off-white, one near-black.
     `--surface-inset` and `--surface-sunken` were within 2% of each other
     and are now one value. */
  --paper: #f5f6f8;
  --surface: #ffffff;
  --surface-sunken: #f8fafc;
  --surface-inset: var(--surface-sunken);
  --shell: #090a0c;

  /* Ink. One ramp from #17191d toward white, cool-shifted to sit with navy. */
  --ink: #17191d;
  --ink-2: #454b57;
  --muted: #68707d;
  --faint: #8a93a1;
  --ink-inverse: #ffffff;
  --ink-inverse-muted: #a4a7af;

  /* Lines. The same ramp, further up. */
  --line: #e2e5ea;
  --line-strong: #cbd4df;
  --line-shell: #36383e;

  /* Brand. Old Glory. Not ours to re-pick. */
  --navy: #002868;
  --navy-hover: #003a91;
  --red: #bf0a30;
  --red-hover: #a20826;
  /* One accent name, so a page cannot invent a fourth brand colour the way
     quote-demo.html did with #f35325. */
  --accent: var(--red);

  /* Status. Two states, each with a tint, plus the focus ring.
     The audit found these being expressed as roughly forty separate one-off
     hex values in two unsanctioned colour families: an orange/brown family
     (#e8522c, #dd653e, #ca8b55, #bd8220, #d78951 …) and a teal/green family
     (#2b6871, #386960, #5c8070, #4a899a, #275e50 …). Neither was a palette.
     Both were a warning and a success state, spelled differently every time
     somebody needed one. */
  --ok: #1a6c46;
  --ok-mid: #98c3a9;
  --ok-tint: #f1f7f3;
  --warn: #8a5a06;
  --warn-mid: #deb989;
  --warn-tint: #fffbef;
  --focus: #296ade;

  /* Depth. The dot grid was written three times, with three different dot
     colours and three different sizes. One definition now; apply with
     `background-image: var(--dot-grid)`. It sits behind the uploaded
     evidence photo, which is `object-fit: contain`, so the grid reads as
     the drafting paper the part is resting on.

     There is no duotone token here on purpose. The evidence photo is the
     only image on the site, and it is the thing the user is trying to read
     material and finish off. Tinting it would look designed and cost them
     the one job the image has. */
  --dot: var(--line);
  --dot-size: 18px;
  --dot-grid: radial-gradient(var(--dot) 0.75px, transparent 0.75px);

  /* Type scale. Nothing smaller than 11px ships. */
  --fs-mono: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 17px;
  --fs-lg: 21px;
  --fs-xl: 27px;
  --fs-display: clamp(36px, 4.5vw, 56px);

  --font-sans: Geist, system-ui, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  /* Display is Archivo, a variable grotesque carrying a width axis as well
     as weight, set wide. Wide grotesques are what machine nameplates and
     control-panel legends are set in, and almost nothing on the web uses
     the axis, so headings stop reading as a default. It replaces Inter
     Tight, which was a third typeface nobody chose. Geist stays as the
     brand face for body and UI. One 90KB file covers 100..900 weight and
     62..125 width and retires four. */
  --font-display: Archivo, Geist, system-ui, sans-serif;
  --display-stretch: 112%;

  /* Radius. 2px. The 6/8/12 scale was three degrees of the same rounded
     rectangle every generated interface ships with. `--r-full` survives for
     the one true pill; a circle is a different intention than a soft corner. */
  --r-sm: 2px;
  --r-md: 2px;
  --r-lg: 2px;
  --r-full: 999px;

  /* Rhythm */
  --gap: 16px;
  --pad: 18px;
  --container: 1280px;
  --gutter: 32px;

  /* Elevation. Flatter, because a 2px corner under a 12px shadow reads as a
     mistake rather than a choice. */
  --shadow-card: 0 1px 0 rgb(23 35 57 / 6%);
  --shadow-raised: 0 2px 6px rgb(23 35 57 / 7%);
  --shadow-overlay: 0 8px 24px rgb(23 35 57 / 12%);
}
