/* ============================================================
   SoftFleet — "Daylight" design tokens · LIGHT  (plain CSS custom properties)

   The default of SoftFleet's two shipped themes. Self-contained on
   purpose: it shares NO tokens with the dark theme's file, so the two
   can never drift into each other. Import exactly one of:

     tokens-light.css  → "SoftFleet Light"  (default)
     tokens-dark.css   → "SoftFleet Dark"

   Warm porcelain neutrals + a teal "signal" accent; system fonts,
   monospace reserved for machine identity (TIDs, kids, figures).
   Consumed by css/theme-softfleet.css, which bridges these onto the
   component variables in components.css (spec §1.4).
   ============================================================ */

:root {
  /* Fonts — system sans; mono is the product's telemetry texture */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;

  /* Brand — deep teal "signal" accent (the white-label token) */
  --brand: #0E7490;
  --brand-dark: #0B5C73;         /* hover / pressed */
  --brand-tint: #E2F1F5;         /* active nav / selected surface */
  --brand-tint-hover: #EDF5F7;   /* hover surface */

  /* Ink & surfaces — warm porcelain, chosen not defaulted */
  --ink: #1B1C18;                /* body text, headings */
  --muted: #55564E;              /* secondary text (4.5:1+ on --surface) */
  --line: #E6E6E0;               /* borders, dividers */
  --bg: #FAFAF8;                 /* page background */
  --surface: #FFFFFF;            /* cards, bars, sidebar */

  /* Semantic — fleet status, kept off the accent; AA on their tints */
  --danger: #C0261C;
  --danger-bg: #FBEBEA;
  --danger-line: #F0C6C2;
  --ok: #157F44;                 /* AA on --ok-bg and white */
  --ok-bg: #E6F4EC;
  --ok-line: #C2E3D2;
  --warn: #8A5308;               /* AA amber ink */
  --warn-bg: #FBF1E1;

  /* Type scale (px, line-height 1.5) */
  --text-xs: 11px;
  --text-sm: 12px;
  --text-md: 13px;   /* default UI text */
  --text-lg: 14px;   /* inputs, body copy */
  --text-xl: 15px;   /* section titles */
  --text-2xl: 21px;  /* page titles */

  /* Radius — crisper than the old design (instrument, not bubbly) */
  --radius-sm: 5px;
  --radius-md: 7px;
  --radius-lg: 8px;   /* buttons, inputs */
  --radius-xl: 10px;  /* cards */
  --radius-full: 999px;

  /* Layout */
  --topbar-h: 56px;
  --sidebar-width: 250px;
  --sidebar-rail: 70px;
  --card-max: 560px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}

/* Both themes honour reduced motion (WCAG 2.3.3 / 2.2 AA practice) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
