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

   The dark half of SoftFleet's two shipped themes. Self-contained on
   purpose: it shares NO tokens with the light 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"   (this file)

   Warm-neutral dark ground + a brightened teal "signal" accent. Same
   variable NAMES as the light file so ONE bridge (theme-softfleet.css)
   serves both — only the values differ (spec §1.4).
   ============================================================ */

:root {
  /* Fonts — identical stacks to the light theme */
  --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 — teal lifted for contrast on the dark ground */
  --brand: #2AAAC6;
  --brand-dark: #1F8BA3;
  --brand-tint: #12313A;         /* active nav / selected surface */
  --brand-tint-hover: #17323B;   /* hover surface */

  /* Ink & surfaces — warm-neutral dark */
  --ink: #ECECE3;                /* body text, headings */
  --muted: #A6A79C;              /* secondary text (AA on --surface) */
  --line: #2C2C25;               /* borders, dividers */
  --bg: #13130F;                 /* page background */
  --surface: #1B1B17;            /* cards, bars, sidebar */

  /* Semantic — brightened for the dark ground; AA on their tints */
  --danger: #F2857B;
  --danger-bg: #38201D;
  --danger-line: #5A2D28;
  --ok: #4FC985;
  --ok-bg: #10281C;
  --ok-line: #1E4634;
  --warn: #E3A54B;
  --warn-bg: #33260F;

  /* Type scale (px, line-height 1.5) */
  --text-xs: 11px;
  --text-sm: 12px;
  --text-md: 13px;
  --text-lg: 14px;
  --text-xl: 15px;
  --text-2xl: 21px;

  /* Radius */
  --radius-sm: 5px;
  --radius-md: 7px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --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);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
