/* ==========================================================================
   SLK — design tokens  ·  DIRECTION A (Workshop / Engineering)
   Single source of colour, type and space. Every page reads from this file
   only; no page CSS should hard-code a colour, font-family or pixel size.

   Status: implemented 2026-11-23.
   Fonts are self-hosted woff2 in /assets/fonts (OFL: Archivo, Inter,
   IBM Plex Mono).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-normal-600.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-normal-400.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plexmono-normal-400.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* type ---------------------------------------------------------------- */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: "Archivo", "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 600;

  --fs-mono: 0.75rem;        /* 12px — labels, numbers, captions; 11px was
                                unreadable on a phone in daylight */
  --fs-xs: 0.75rem;          /* 12px */
  --fs-sm: 0.875rem;         /* 14px */
  --fs-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-h2: clamp(1.625rem, 1.25rem + 1.6vw, 2.5rem);
  --fs-h1: clamp(2.25rem, 1.35rem + 3.6vw, 4.25rem);
  --fs-display: clamp(2.75rem, 1.4rem + 5vw, 5.5rem);

  --lh-tight: 1.02;
  --lh-heading: 1.08;
  --lh-body: 1.65;

  --tracking-tight: -0.028em;
  --tracking-mono: 0.10em;
  --tracking-wide: 0.08em;

  /* space — 4px base ---------------------------------------------------- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: clamp(3rem, 2rem + 5vw, 6rem);
  --sp-9: clamp(4rem, 2.5rem + 7vw, 8rem);

  --maxw: 97.5rem;           /* 1560px */
  --maxw-narrow: 46rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);

  /* colour — paper, ink, one accent ------------------------------------- */
  --c-bg: #F2F1EE;           /* paper */
  --c-bg-2: #E9E8E2;         /* recessed panel */
  --c-ink: #15171A;          /* ink */
  --c-ink-2: #5A6065;        /* steel — secondary text */
  --c-line: #CFCEC6;         /* 1px rule, the only decoration */
  --c-accent: #BE4B2C;       /* oxide — numbers, hover, marks (<2% of a page) */
  --c-accent-ink: #F2F1EE;
  --c-ph: #E4E3DD;           /* image placeholder */

  /* edges — A has no rounded corners and no shadows */
  --radius: 0px;
  --radius-lg: 0px;
  --shadow: none;
  --border: 1px solid var(--c-line);
  --rule-strong: 1px solid var(--c-ink);
}

/* type primitives -------------------------------------------------------- */
.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  font-weight: 400;
  color: var(--c-ink-2);
}
.num {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  color: var(--c-accent);
}
