/* Boise Recon brand tokens. Source of truth: creative/logo-system/BRAND-DECISIONS.md and LOGO-SYSTEM-SPEC.md.
   Import once (site and Command): <link rel="stylesheet" href="/brand-tokens.css">
   Fonts load from fonts.css (self-hosted woff2). Body uses the system stack on purpose: zero download, native feel. */

:root{
  /* ---- Core palette (locked by Dave) ---- */
  --br-green:#20C659;      /* Recon Green */
  --br-obsidian:#0B0D0C;   /* primary background */
  --br-white:#F6F8F5;      /* Arctic / Paper White (same hex) */
  --br-gunmetal:#343C3A;   /* borders, bars. 1.7:1 on obsidian, never use as text or the only separator */

  /* ---- Derived (spec colors, plus two proposed fixes marked NEW) ---- */
  --br-gunmetal-light:#66726F;  /* bars on dark, decorative only (3.9:1) */
  --br-gunmetal-hi:#9AA5A2;     /* highlight strips on bars, decorative */
  --br-green-deep:#0E7A32;      /* NEW: text/links on LIGHT surfaces, 5.1:1 on #F6F8F5. Spec #12983D is only 3.5:1 (large text only) */
  --br-green-press:#1AA84B;     /* NEW: pressed/hover state of green buttons, obsidian text on it is 6.4:1 */
  --br-panel:#141816;           /* alt section background, already used on site (not in locked brand, keep as derived) */
  --br-panel-2:#1B211E;         /* NEW: card on panel */
  --br-line:#2A322F;            /* NEW: hairlines on obsidian/panel, replaces the stray #222A26 / #4A5551 */
  --br-text:#F6F8F5;            /* 18.3:1 on obsidian */
  --br-text-2:#C8CFCA;          /* body secondary, 12.3:1 on obsidian */
  --br-text-3:#AAB3AE;          /* captions, 8.3:1 on panel */
  --br-text-4:#8A9692;          /* NEW: smallest allowed gray, 6.4:1 on obsidian. Replaces #6F7873 (4.3:1, fails) */
  --br-warn:#F5B942;            /* Command: sample/warning only */
  --br-bad:#FF6B6B;             /* Command: errors only */

  /* ---- Type ---- */
  --font-display:"Saira BR Expanded","Saira","Arial Black",Impact,sans-serif;   /* H1, tagline, price/phone callouts */
  --font-head:"Saira BR","Saira","Arial Narrow",Arial,sans-serif;               /* H2, H3, buttons, nav */
  --font-body:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --fs-0:.8125rem;                         /* 13 caption, minimum for any text */
  --fs-1:1rem;                             /* 16 body (never below 16 for form inputs: stops iOS zoom) */
  --fs-2:1.125rem;                         /* 18 lead */
  --fs-3:clamp(1.25rem,1.1rem + .6vw,1.5rem);   /* H3 */
  --fs-4:clamp(1.75rem,1.3rem + 2vw,2.75rem);   /* H2 */
  --fs-5:clamp(2.5rem,1.2rem + 6.4vw,6rem);     /* H1 hero */
  --lh-tight:.95; --lh-head:1.05; --lh-body:1.55;
  --track-tag:.08em;   /* tagline tracking, expanded face */
  --track-caps:.14em;  /* small uppercase labels */

  /* ---- Spacing (4pt) ---- */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:24px; --sp-6:32px; --sp-7:48px; --sp-8:72px;
  --tap:48px;          /* minimum touch target for all buttons and links in the bottom bar */
  --wrap:1100px; --gutter:20px;

  /* ---- Radii: the brand is sharp, keep corners tight ---- */
  --r-1:2px; --r-2:4px; --r-3:8px; --r-pill:999px;
  --r-app:12px;        /* Command cards */

  /* ---- Slash and bar shapes (from locked bars: sharp tip, clipped slanted end) ---- */
  --clip-slash:polygon(0 100%,5% 0,100% 0,95% 100%);                 /* buttons, tags, italic parallelogram */
  --clip-slash-r:polygon(0 0,95% 0,100% 100%,5% 100%);               /* mirror, for the right-hand button */
  --clip-bar:polygon(0 42%,100% 0,100% 100%,3% 58%);                 /* long wedge bar: tip left, thick right */
  --clip-bar-clip:polygon(0 42%,97% 0,100% 100%,3% 58%);             /* same with slanted right end */
  --clip-notch:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,0 100%); /* cards: one cut corner, echoes the cuts in the letters */
  --clip-tab:polygon(0 0,100% 0,calc(100% - 10px) 100%,0 100%);      /* section label tabs */

  --focus:3px solid var(--br-green);
  --shadow-lift:0 10px 30px rgba(0,0,0,.45);
}

/* ---- Base helpers used by both surfaces ---- */
.br-bar{display:block;height:10px;background:linear-gradient(90deg,var(--br-gunmetal-light),var(--br-gunmetal-hi) 70%,var(--br-green));clip-path:var(--clip-bar-clip)}
.br-btn{display:inline-flex;align-items:center;justify-content:center;min-height:var(--tap);padding:0 28px;
  font:italic 800 1.125rem/1 var(--font-head);letter-spacing:.04em;text-transform:uppercase;text-decoration:none;
  background:var(--br-green);color:var(--br-obsidian);clip-path:var(--clip-slash);border:0;cursor:pointer}
.br-btn:hover{background:var(--br-green-press)}
.br-btn--ghost{background:var(--br-white);color:var(--br-obsidian)}  /* secondary: solid white slash, readable on photo, no clip-path border trick needed */
:where(a,button,input,textarea,select,summary):focus-visible{outline:var(--focus);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* ---- Font recommendation ----
   Display + headings: Saira (Google Fonts, OFL). Brand tagline = Saira Expanded Bold Italic = wdth 125.
   Method: self-host the two woff2 in fonts/ (about 40 KB total, no third-party request, no layout shift with font-display:swap),
   <link rel="preload" as="font" type="font/woff2" crossorigin href="/fonts/saira-expanded-italic-latin.woff2"> for the H1 face only.
   Why: today the site names Barlow Condensed but never loads it, so most phones show Arial Narrow or Impact and the hero looks different from
   the locked logo. Saira matches the approved tagline exactly, so the H1 and the logo agree.
   Body: system-ui stack. No file to load, excellent legibility, fits a repair shop. Revisit only if Dave wants a custom body face (Inter is the safe pick).
   Google Fonts fallback if self-hosting is a hassle:
   <link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Saira:ital,wdth,wght@1,100..125,700..900&display=swap">
   then font-family:"Saira" with font-stretch:125% for the display face. */
