/* ==========================================================================
   DESIGN TOKENS — the "theme.json" of this site.
   Blue-team palette: calm defender blues, slate neutrals, a teal "secure" accent.
   Change colors, fonts and spacing here; every page reads from these.
   ========================================================================== */

:root {
  /* Brand */
  --primary: #1d5fb8;          /* defender blue: buttons, links */
  --primary-strong: #144a93;   /* hover */
  --primary-soft: #e3edfa;     /* tinted backgrounds */
  --secure: #0e7268;           /* teal: "protected / verified" accents (AA contrast on light) */
  --on-primary: #ffffff;

  /* Surfaces (light is default) */
  --bg: #f4f7fb;
  --bg-alt: #eaf0f7;
  --surface: #ffffff;
  --border: #d6e0ec;

  /* Text */
  --text: #0f1e2e;
  --text-muted: #4a5b6e;
  --text-faint: #7b8a9b;

  /* Illustration */
  --ill-1: #1d5fb8;
  --ill-2: #5b8fd6;
  --ill-3: #a9c5ec;
  --ill-bg: #dfe9f6;

  /* Type */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --fs-sm: 0.9rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.2rem;
  --fs-xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  --fs-2xl: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);

  /* Spacing */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 5rem;

  /* Layout */
  --content-width: 1120px;
  --narrow-width: 720px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 30, 46, 0.05), 0 8px 24px rgba(15, 30, 46, 0.06);
  --header-h: 68px;
}

/* Dark theme — "SOC at night" navy, toggled from the header */
[data-theme="dark"] {
  --primary: #5b9bf0;
  --primary-strong: #7fb2f5;
  --primary-soft: #15294a;
  --secure: #3cc2b1;
  --on-primary: #06121f;

  --bg: #0b1626;
  --bg-alt: #0f1d31;
  --surface: #12223a;
  --border: #22375a;

  --text: #e4ecf6;
  --text-muted: #a3b3c7;
  --text-faint: #6f8199;

  --ill-1: #5b9bf0;
  --ill-2: #3f74c2;
  --ill-3: #274b80;
  --ill-bg: #12233d;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
}
