/* ──────────────────────────────────────────────────────────────────────────
   DND — Dr Non's Digests · Quiet Signal

   Axiom Design Core tokens, editorial deployment.
   Ground truth: ~/Projects/_docs/DESIGN.md — Bauhaus functionalism × Swiss
   grid. Depth by surface colour only; radius 0; no shadows, no blur; 4px
   spacing grid; mono for every number that changes.

   Quiet Signal (2026-07-30 → 2026-07-31): curation is a judgment, not a
   feed of widgets. Feed = public-care news + why-it-matters. Lab = personal,
   philosophy, collection experiments. Undid Ground-News judgment bars /
   briefing stats as the product. Saffron stays sparse. Light = cool paper.

   Deployment accent: saffron — monk-robe saffron for a Thai correspondent's
   digest desk. Red stays reserved for genuine alerts.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  /* ── dark (default) ─────────────────────────────────────────────── */
  --bg:      #0a0e14;
  --bg-1:    #0d1117;
  --bg-2:    #161b22;
  --bg-3:    #21262d;
  --line:    #30363d;
  --line-2:  #484f58;

  --text:    #e6edf3;
  --text-1:  #c9d1d9;
  --text-2:  #8b949e;
  --text-3:  #7d8590;

  --accent:     #d97706;
  --accent-dim: #92580a;
  --accent-ink: #f5a623;
  --data:    #4d8dff;
  --good:    #16a34a;
  --warn:    #d97706;
  --bad:     #dc2626;
  --info:    #6b7280;

  --left:    #4d8dff;
  --right:   #e8590c;

  --cat-ai:         #3987e5;
  --cat-thai:       #d95926;
  --cat-urban:      #199e70;
  --cat-world:      #199e70;
  --cat-contrarian: #c98500;
  --cat-society:    #d55181;
  --cat-tools:      #008300;
  --cat-repo:       #008300;
  --cat-podcast:    #9085e9;
  --cat-life:       #9085e9;

  /* Space Grotesk for headlines; Plex Sans (+ Thai) for prose;
     JetBrains Mono for numbers and the clock only. Inter banned. */
  --font-sans: "IBM Plex Sans", "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --font-display: "Space Grotesk", "IBM Plex Sans Thai", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --font-serif: "Space Grotesk", "IBM Plex Sans Thai", system-ui, sans-serif;
  --font-thai: "IBM Plex Sans Thai", "IBM Plex Sans", "Noto Sans Thai", sans-serif;

  /* Hierarchy by SIZE. Lead title uses --size-display. */
  --size-display: 3.4rem;
  --size-h1: 2.5rem;
  --size-h2: 1.65rem;
  --size-h3: 1.22rem;
  --size-body: 1.05rem;
  --size-caption: 0.88rem;
  --size-eyebrow: 0.72rem;

  --measure: 68ch;
  --page: 920px;
  --page-wide: 1280px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;

  color-scheme: dark;
}

/* ── light: cool paper, not warm newsprint ─────────────────────────── */
:root[data-theme="light"] {
  --bg:      #f7f6f3;
  --bg-1:    #ffffff;
  --bg-2:    #ecebe7;
  --bg-3:    #e0dfd9;
  --line:    #d0cfc8;
  --line-2:  #a8a79e;

  --text:    #12141a;
  --text-1:  #2e323c;
  --text-2:  #5c616c;
  --text-3:  #787d88;

  --accent:     #b45309;
  --accent-dim: #78350f;
  --accent-ink: #9a3412;
  --data:    #1d4ed8;
  --good:    #15803d;
  --warn:    #92400e;
  --bad:     #b91c1c;
  --info:    #6e7781;

  --left:    #1d4ed8;
  --right:   #c2410c;

  --cat-ai:         #2a78d6;
  --cat-thai:       #eb6834;
  --cat-urban:      #1baf7a;
  --cat-world:      #1baf7a;
  --cat-contrarian: #c98500;
  --cat-society:    #d55181;
  --cat-tools:      #008300;
  --cat-repo:       #008300;
  --cat-podcast:    #6b5fb5;
  --cat-life:       #6b5fb5;

  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:      #f7f6f3;
    --bg-1:    #ffffff;
    --bg-2:    #ecebe7;
    --bg-3:    #e0dfd9;
    --line:    #d0cfc8;
    --line-2:  #a8a79e;

    --text:    #12141a;
    --text-1:  #2e323c;
    --text-2:  #5c616c;
    --text-3:  #787d88;

    --accent:     #b45309;
    --accent-dim: #78350f;
    --accent-ink: #9a3412;
    --data:    #1d4ed8;
    --good:    #15803d;
    --warn:    #92400e;
    --bad:     #b91c1c;
    --info:    #6e7781;

    --left:    #1d4ed8;
    --right:   #c2410c;

    --cat-ai:         #2a78d6;
    --cat-thai:       #eb6834;
    --cat-urban:      #1baf7a;
    --cat-world:      #1baf7a;
    --cat-contrarian: #c98500;
    --cat-society:    #d55181;
    --cat-tools:      #008300;
    --cat-repo:       #008300;
    --cat-podcast:    #6b5fb5;
    --cat-life:       #6b5fb5;

    color-scheme: light;
  }
}

html { font-size: clamp(15px, 0.28vw + 12px, 20px); }

* { border-radius: 0 !important; box-shadow: none !important; backdrop-filter: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
