/* ==========================================================================
   base.css — Honolulu Blue System (base layer)

   This file rarely changes. It defines the constants of the brand:
   the core palette, type stack, spacing scale, and radii.

   Per-app tweaks (a warmer gray, a different accent tone, etc.) belong in
   an override file in /overrides, loaded AFTER this one. Never edit the
   values below directly for a single app — that turns this into another
   one-off file instead of a system.
   ========================================================================== */

:root {
  /* ---- Core palette ---- */
  --black: #0B0D0F;
  --charcoal: #1A1D20;
  --steel: #4A5259;
  --silver: #AEB4B8;
  --fog: #E7E9EA;
  --white: #FAFAFA;

  --blue: #0076B6;        /* Honolulu Blue — primary accent */
  --blue-bright: #3FA9E0; /* hover / active highlight */
  --blue-deep: #00527D;   /* pressed / dark accent */
  --blue-glow: rgba(0, 118, 182, 0.35);

  /* ---- Semantic tokens (dark mode default) ----
     Apps should style against these, not the raw palette above,
     so an override file only ever has to touch this layer. */
  --bg: var(--black);
  --surface: var(--charcoal);
  --surface-raised: #22262A;
  --border: #2C3033;
  --text-primary: var(--white);
  --text-secondary: var(--silver);
  --text-muted: var(--steel);
  --accent: var(--blue);
  --accent-hover: var(--blue-bright);
  --accent-active: var(--blue-deep);

  /* ---- Typography ---- */
  --font-display: 'Barlow Condensed', sans-serif; /* headlines only */
  --font-body: 'Inter', sans-serif;                /* everything you read */
  --font-mono: 'IBM Plex Mono', monospace;         /* data, tags, labels */

  /* ---- Spacing (8px base scale) ---- */
  --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;

  /* ---- Radius ---- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  /* ---- Stroke (outlined-numeral signature) ----
     For the jersey-numeral treatment only — see README/CLAUDE.md.
     Not used anywhere else in the system. */
  --stroke-width: 2px;
}

/* ---- Light mode ----
   Apply with <html data-theme="light">. */
[data-theme="light"] {
  --bg: var(--white);
  --surface: var(--fog);
  --surface-raised: #FFFFFF;
  --border: #D5D9DB;
  --text-primary: var(--black);
  --text-secondary: var(--steel);
  --text-muted: #7A8288;
  --accent: var(--blue);
  --accent-hover: var(--blue-deep);
  --accent-active: var(--blue-deep);
}
