/* ==========================================================================
   STACK Overflow — design tokens
   Engineering micro-blog and open-source hub.
   Sub-brand of STACK Construction Technologies.

   Dark is the DEFAULT theme. Light is applied with [data-theme="light"]
   on <html>. Every pairing below meets WCAG AA for body text.
   ========================================================================== */

:root {
  /* ---------- surfaces ---------- */
  --ov-canvas:        #1C1C1C;
  --ov-inset:         #141414;   /* status rail, code blocks, tables, footer */
  --ov-raised:        #232323;   /* cards, hover fill, active nav chip */
  --ov-border:        #2C2C2C;   /* hairlines between rows and sections */
  --ov-border-strong: #393939;   /* inputs, chips, grouped panels */

  /* ---------- text ---------- */
  --ov-text:          #FFFFFF;   /* 17.0:1 — headings, body */
  --ov-text-muted:    #B4B4B4;   /*  9.2:1 — secondary prose, bylines */
  --ov-text-meta:     #8C8C8C;   /*  5.1:1 — CONTRAST FLOOR. never lighter. */

  /* ---------- brand ---------- */
  /* Purple leads for Overflow (accent bar, buttons, shipped tags); green is
     held back for parent-identity marks only (the lockup slash, the rail's
     "all systems green" status) — see brand/CLAUDE.md's Color section. */
  --ov-green:         #33B270;   /*  6.3:1 — the slash, the rail status dot (parent identity only) */
  --ov-green-text:    #66CC99;   /*  8.6:1 — secondary accent: links, repo names, AI labels, code */
  --ov-purple:        #7680CF;   /*  4.7:1 — primary accent: accent bar, buttons, shipped-class tags */
  --ov-purple-text:   #A0A9D9;   /*  7.3:1 — shipped-tag text, outline-button text */
  --ov-purple-deep:   #1A1830;   /*  4.7:1 on --ov-purple fill — text sitting on the fill */
  --ov-signal:        #FF6633;   /*  5.8:1 — breakage, deprecation */

  /* ---------- type ---------- */
  --ov-font-sans: "Proxima Nova", Helvetica, Arial, sans-serif;
  --ov-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ov-display:  48px;  /* 1.06 / -0.025em / 800 */
  --ov-h1:       32px;  /* 1.15 / -0.020em / 700 */
  --ov-h2:       27px;  /* 1.18 / -0.018em / 700 — post titles */
  --ov-h3:       22px;  /* 1.20 / -0.010em / 700 */
  --ov-body:     17px;  /* 1.60 / 0        / 400 */
  --ov-body-sm:  16px;  /* 1.60 / 0        / 400 */
  --ov-code:     13px;  /* 1.90 / 0        / 400 mono */
  --ov-meta:     12px;  /* 1.40 / 0.040em  / 400 mono */
  --ov-micro:    11px;  /* 1.40 / 0.080em  / 400 mono, uppercase */

  /* ---------- shape ---------- */
  --ov-radius-tag:   3px;
  --ov-radius-chip:  4px;
  --ov-radius-input: 5px;
  --ov-radius-panel: 6px;

  /* ---------- space (4px base) ---------- */
  --ov-space-1: 4px;   --ov-space-2: 8px;   --ov-space-3: 12px;
  --ov-space-4: 16px;  --ov-space-5: 20px;  --ov-space-6: 24px;
  --ov-space-8: 32px;  --ov-space-12: 48px; --ov-space-16: 64px;
  --ov-space-24: 96px;

  /* ---------- layout ---------- */
  --ov-measure: 1120px;  /* page max-width */
  --ov-prose:   640px;   /* body copy max-width, ~68 characters */

  /* ---------- motion (inherited from STACK) ---------- */
  --ov-dur:  160ms;
  --ov-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="light"] {
  --ov-canvas:        #FFFFFF;
  --ov-inset:         #F4F4F4;
  --ov-raised:        #F4F4F4;
  --ov-border:        #D4D4D4;
  --ov-border-strong: #C4C4C4;

  --ov-text:          #1C1C1C;   /* 17.0:1 */
  --ov-text-muted:    #4C4C4C;   /*  8.9:1 */
  --ov-text-meta:     #6C6C6C;   /*  5.6:1 — floor */

  /* green and purple DARKEN on white for text use — both raw fills stay too
     light for body text: #33B270 is 2.9:1, #7680CF is 3.6:1. Fills and
     display type only, same as dark mode. */
  --ov-green-text:    #005939;   /*  8.4:1 */
  --ov-purple-text:   #4341BC;   /*  7.7:1 */
  --ov-signal:        #A33C10;   /*  6.6:1 — #FF6633 stays for borders and fills */
}
