/* ============================================================================
   SEC Carpentry — design tokens
   World: "Workshop — Grain & Precision"
   Ground = warm sanded-ply neutral · Accent = logo orange (the wedge "A")
   Dark = walnut-workshop interludes · Type = Archivo (display) + Metropolis (body)
   Family thread: Metropolis body, numbered drawing-set index, espresso/walnut
   dark bands — distinct from SECi (plaster+maroon), SEC (corporate white),
   Group (charcoal). Carpentry owns timber + orange.
   ============================================================================ */

/* ---- Display: Archivo (industrial signage grotesque, self-hosted variable) ---- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

/* ---- Body / UI: Metropolis (the shared family face, self-hosted woff2) ---- */
@font-face { font-family:"Metropolis"; src:url("../fonts/Metropolis-Light.woff2") format("woff2");    font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:"Metropolis"; src:url("../fonts/Metropolis-Regular.woff2") format("woff2");  font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Metropolis"; src:url("../fonts/Metropolis-Medium.woff2") format("woff2");   font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Metropolis"; src:url("../fonts/Metropolis-SemiBold.woff2") format("woff2"); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:"Metropolis"; src:url("../fonts/Metropolis-Bold.woff2") format("woff2");     font-weight:700; font-style:normal; font-display:swap; }

:root {
  /* ---------- Ground (warm sanded-ply / sawdust light world) ---------- */
  --ground:        #F3EDE3;  /* page base — warm ply neutral */
  --ground-deep:   #E9E0D1;  /* alternating bands, image mats */
  --ground-sink:   #DED3C1;  /* deepest light tone, insets */
  --raised:        #FBF8F2;  /* lifted cards on the ground */

  /* ---------- Walnut (workshop-dark interludes, footer, menu) ---------- */
  --walnut:        #211A13;  /* dark band ground — warm near-black */
  --walnut-raised: #2C2318;  /* lifted dark surface */
  --walnut-deep:   #16110B;  /* footer floor */

  /* ---------- Ink & text ---------- */
  --ink:        #24201C;  /* body text on light (warm graphite) */
  --ink-soft:   #4C453C;  /* secondary text on light */
  --graphite:   #5E584E;  /* logo-gray family — labels/captions ≥14px on light */
  --bone:       #EFE7DA;  /* primary text on walnut */
  --bone-soft:  #B6AB99;  /* secondary text on walnut */
  --bone-faint: #948A7A;  /* tertiary on walnut — AA on walnut (5.0:1) */

  /* ---------- Orange — THE accent (logo wedge) ---------- */
  --orange:        #E86F26;  /* brand orange — the wedge "A", fills, active */
  --orange-bright: #F5873B;  /* hover / on-walnut accent (lifted) */
  --orange-ink:    #A84410;  /* orange as text/links on light — AA for small text (5.1:1) */
  --orange-deep:   #AE4A12;  /* pressed / deep edge */

  /* ---------- Hairlines & borders ---------- */
  --line:        color-mix(in srgb, var(--graphite) 34%, transparent); /* on light */
  --line-strong: color-mix(in srgb, var(--graphite) 55%, transparent);
  --line-dark:   color-mix(in srgb, var(--bone) 16%, transparent);      /* on walnut */

  /* ---------- Semantic aliases (so copied shell CSS keeps working) ---------- */
  --color-surface-base:        var(--walnut);
  --color-surface-muted:       var(--walnut-raised);
  --color-surface-raised:      var(--raised);
  --color-surface-strong:      var(--orange);
  --color-surface-strong-hover:var(--orange-bright);
  --color-surface-strong-deep: var(--orange-deep);
  --color-surface-neutral:     var(--ground-deep);
  --color-surface-stone:       var(--graphite);
  --color-text-primary:        var(--bone);
  --color-text-inverse:        var(--bone-soft);
  --color-text-tertiary:       var(--bone-faint);
  --color-text-on-strong:      #1A120B;   /* ink on orange — high contrast */
  --color-text-on-neutral:     var(--ink);
  --color-border-muted:        var(--line-dark);
  --color-border-strong:       var(--orange);

  /* ---------- Typography ---------- */
  --font-display: "Archivo", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-primary: "Metropolis", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; /* measurement figures only */

  --fs-xs: 11px;
  --fs-sm: 13.5px;
  --fs-md: 16px;
  --fs-body: 1.0625rem;  /* 17px — confident body base (SECi-grade body weight) */
  --fs-lead: clamp(1.2rem, 1.55vw, 1.45rem);  /* ~19–23px lead paragraphs */
  --fs-lg: 20px;
  --fs-xl: clamp(1.4rem, 3.4vw, 1.75rem);   /* 22 → 28px */
  --fs-2xl: clamp(1.6rem, 4.6vw, 2.25rem);  /* 25.6 → 36px */
  --fs-3xl: clamp(1.85rem, 5.4vw, 2.5rem);  /* 29.6 → 40px */
  --fs-4xl: clamp(2.05rem, 6.4vw, 3.25rem); /* 32.8 → 52px — scales down on mobile */
  --fs-5xl: clamp(2.75rem, 6vw, 5.5rem);
  --fs-6xl: clamp(3.4rem, 9.5vw, 8.5rem);
  --lh-tight: 1.02;
  --lh-snug: 1.18;
  --lh-base: 1.62;

  /* label (drawing-set annotation) */
  --label-size: 0.72rem;
  --label-track: 0.16em;

  /* ---------- Space ---------- */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  /* ---------- Radius / shadow ---------- */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow-1: 0 14px 34px rgba(33,26,19,.16), 0 4px 12px rgba(33,26,19,.10);
  --shadow-2: 0 30px 70px rgba(22,17,11,.30), 0 10px 24px rgba(22,17,11,.18);

  /* ---------- Motion ---------- */
  --motion-instant: 240ms;
  --motion-fast: 320ms;
  --motion-normal: 480ms;
  --motion-slow: 760ms;
  --ease-out:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-accelerate: cubic-bezier(0.3, 0, 1, 1);
  --ease-in-out:     cubic-bezier(0.4, 0, 0.2, 1);

  /* ---------- Layout ---------- */
  --container-max: 1440px;
  --container-pad: clamp(20px, 4vw, 64px);
  --header-h: 84px;
}
