/*
  variables.css
  [KPZ] PURPOSE: Global design tokens — single source of truth for colors, type, spacing.
  [KPZ] SCOPE: Site-wide.
  [KPZ] DEPENDENCY: None (loaded first, before base/layout/components/responsive).
*/

:root{
  /* Brand accents (Theme A identity — preserved from existing corporate identity) */
  --amber-1:#F5A623;
  --amber-2:#E8850E;
  --teal-1:#2DD4C8;
  --teal-2:#0F9E93;

  /* Global Section Heading accent — deliberately distinct green, not teal (K-030 confirmed) */
  --green-1:#22C55E;
  --green-2:#16A34A;
  --green-bg:rgba(34,197,94,.12);
  --green-border:rgba(34,197,94,.35);

  /* Status red — added 2026-08-14 for dashboard "critical" tone (dispatch dots, badges) */
  --red-1:#F0475B;
  --red-2:#D62E42;

  /* Backgrounds */
  --void:#0A0B0D;
  --void-2:#111318;
  --void-3:#181B22;

  /* Text */
  --text:#F2F3F5;
  --text-dim:#9497A0;

  /* Lines */
  --line:rgba(255,255,255,.08);
  --line-strong:rgba(255,255,255,.14);

  /* Header background (translucent, blurred) — separate token so light mode can invert it */
  --header-bg:rgba(10,11,13,.85);

  /* Typography */
  --font-sans:'IBM Plex Sans', sans-serif;
  --font-mono:'IBM Plex Mono', monospace;

  /* Spacing scale */
  --space-xs:8px;
  --space-sm:16px;
  --space-md:24px;
  --space-lg:40px;
  --space-xl:64px;
  --space-2xl:96px;

  /* Layout */
  --container-width:1220px;
  --container-padding:32px;
  --header-height:74px;

  /* Radius */
  --radius-sm:2px;
  --radius-md:8px;
  --radius-full:999px;

  /* Shadow */
  --shadow-soft:0 24px 48px -18px rgba(0,0,0,.6);
  --shadow-glow-amber:0 6px 28px -4px rgba(245,166,35,.55);
  --shadow-glow-teal:0 0 22px -6px rgba(45,212,200,.5);

  /* Transitions */
  --transition-fast:.2s ease;
  --transition-med:.25s ease;
}

/* [KPZ] LIGHT THEME (2026-08-13) — same token set, inverted values only. Every color in the
   site is consumed through these custom properties (see PURPOSE note above), so switching
   the whole site to light mode is just: put data-theme="light" on <html> (see
   assets/js/theme.js + the toggle button in includes/navigation.php) and these values take
   over — no other CSS file needs to know which theme is active.
   [KPZ] 2026-09-05, user request (theme refresh): light is now the site's DEFAULT look (see
   the inline early-theme script in each page's <head> — first-time visitors now land on
   light regardless of OS preference; a visitor's own prior toggle choice, saved in
   localStorage, is always respected first). Retuned this block into a warm off-white,
   "premium/layered" palette per that request — broken-white background, a whiter elevated
   surface for cards so panels visibly sit above the page, anthracite text, and softer,
   more controlled shadow/glow values (amber only; the teal glow token is kept defined for
   compatibility but no longer used for a page-wide glow — see base.css). Dark theme
   (reached via the toggle) is intentionally left exactly as it was. */
[data-theme="light"]{
  --void:#F7F5F0;
  --void-2:#FFFFFF;
  --void-3:#F0ECE3;

  --text:#23262B;
  --text-dim:#6B6F76;

  --line:rgba(35,38,43,.10);
  --line-strong:rgba(35,38,43,.18);

  --header-bg:rgba(247,245,240,.88);

  --shadow-soft:0 20px 44px -22px rgba(35,38,43,.16);
  --shadow-glow-amber:0 8px 22px -8px rgba(196,120,10,.32);
  --shadow-glow-teal:0 0 16px -8px rgba(15,158,147,.22);
}
