/* ==========================================================================
   Beam & Bevel — design tokens. Source of truth: owner's BRAND.md + brand-tokens.css.
   Mostly Paper/Ash and Ink, Walnut for warmth, Scribe Red the smallest share:
   RED ONCE PER SCREEN = the call button (white text on red).
   Contrast (WCAG): ink/paper 14.9 · ink/ash 12.7 · walnut/paper 7.1 · walnut/ash 6.1 ·
   muted/paper 6.7 · white/red 5.3 · tan/ink 5.4 · ash/ink 12.7. All pass AA.
   Zero corner radius everywhere (logos use chamfered corners, never rounded).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette (names from BRAND.md) */
  --bb-ash:    #E8E0D5;   /* ground: plates, cards, light surfaces */
  --bb-ink:    #201E1D;   /* type and structure: all body text */
  --bb-walnut: #6B4A2F;   /* detail: rules, frames, small labels */
  --bb-tan:    #B98A55;   /* walnut's stand-in on dark grounds */
  --bb-red:    #C8341C;   /* Scribe Red: the call button only */
  --bb-paper:  #F3F2F2;   /* page background */
  --bb-ring:   #DBD0C0;   /* growth rings */
  --bb-muted:  #5C534B;   /* secondary text on light (ink, softened) */
  --bb-white:  #FFFFFF;
  --focus:     #1F6FD6;   /* focus ring: high-visibility blue, never red */

  --bb-rule: 2px solid var(--bb-ink);
  --bb-hair: 1px solid rgb(32 30 29 / 0.18);
  --bb-radius: 0;

  /* Type: Archivo. Headlines 900 tight; labels 700 caps wide; body 400–500 */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tracking-head: -0.025em;
  --tracking-caps: 0.15em;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3:  clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  --step-4:  clamp(2.5rem, 1.7rem + 3.6vw, 4.75rem);
  --phone-size: clamp(2.25rem, 1.9rem + 1.6vw, 3rem);   /* the number: always ≥36px */

  --leading-tight: 1.02;
  --leading-body:  1.65;
  --measure:       64ch;

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-y: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --gutter:    clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --container: 74rem;

  /* Motion */
  --ease:     cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 150ms;
  --dur:      300ms;
  --dur-slow: 700ms;

  --header-h: 4.5rem;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur: 0ms; --dur-slow: 0ms; }
}
