/* ════════════════════════════════════════════════════════════════════
   BUILDOUT · theme.css · the sovereign skin
   Loaded AFTER the shared the design system tokens.css (which stays byte-synced
   with the canonical set). This layer is what makes Buildout feel like
   Buildout while staying one family with the fleet:

     1. The type system. Michroma (the old sci-fi display) is replaced by
        ARCHIVO, a grotesque built from urban signage and industrial
        lettering: the typeface of the jobsite, set wide and heavy for
        display. INTER carries the UI. IBM PLEX MONO carries data, money,
        and meta (the family's instrument voice). All three self-hosted:
        no third-party font request, loads on jobsite Wi-Fi.
     2. The AA ember-as-text token (--ember-text), pending promotion to
        the canonical tokens.css.
   Token NAMES are never invented here beyond the documented Buildout
   locals; values only re-point existing hooks (--disp/--body/--mono).
   ════════════════════════════════════════════════════════════════════ */

/* ── Self-hosted faces ── */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* re-point the shared type hooks to the Buildout faces */
  --disp: "Archivo", "Trebuchet MS", -apple-system, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* display voice: signage weight + slight tightening (Archivo carries
     width in its drawing; no fake letterspacing on the wordmark) */
  --disp-weight: 700;
  --disp-track: -0.015em;

  /* Buildout local (documented in reference_design_system):
     ember used AS TEXT on the warm-paper light ground needs a deeper cut.
     Dark resolves to the shared ember untouched. */
  --ember-text: var(--ember);
}
@media (prefers-color-scheme: light) {
  :root { --ember-text: #7A5D14; }
}
