/* =============================================================================
   IVORY & COBALT DESIGN TOKENS — the single source of the product palette
   =============================================================================
   Purpose:
     Every colour, the shared shadow, the font stacks and the two shell offsets
     live here once. Two very different places load this file:
       1. The app itself — `app/layout.tsx` links `/ivory-cobalt-design-tokens.css`
          before `sketch.css`, so every sketch rule resolves `var(--accent)` etc.
       2. Autopilot conversation visuals — charts the autopilot draws run inside a
          sandboxed iframe that cannot see the app's CSS. They load
          `/marketing-ai-system-conversation-visuals.css`, which imports this same file, so a
          drawn chart uses exactly the app's colours in light and dark.
     Change a colour here and both places follow; never copy these values elsewhere.

   Key terms:
     - Token: a CSS custom property (`--name`) other rules read with `var(--name)`.
     - Light / dark: dark values apply when the OS asks for dark mode, unless the page
       forces `data-theme="light"`; `data-theme="dark"` forces dark everywhere.
   ============================================================================= */

/* Layout: a quiet left nav beside one working surface. The inbox is a master list
   with a detail pane, so the user reads one piece of finished work at a time.
   Palette: PRIMARY — warm ivory, the dominant surface. SECONDARY — a warm taupe
   that carries supporting text and every "confirmed" state, so nothing but a real
   decision gets a loud color. ACCENT — one electric cobalt-violet, unexpected
   against warm ivory, spent only on what needs a decision. A separate muted brick
   (urgent) is kept, but narrowly, for genuinely urgent flags — not every gate. */
:root{
  --bg:#f6efdf;
  --surface:#fffcf5;
  --surface-2:#efe6cf;
  --surface-3:#e6dabe;
  --line:#e1d3af;
  --line-soft:#ecdfbe;
  --fg:#241f16;
  --fg-muted:#8c806a;
  --fg-faint:#ad9f81;
  --accent:#3d2bff;
  --accent-ink:#ffffff;
  --accent-soft:#e7e3ff;
  --urgent:#a2401c;
  --urgent-soft:#f7ddcd;
  --good:#53713c;
  --good-soft:#e2e9d2;
  --shadow:0 1px 2px rgba(40,33,18,.05), 0 10px 26px -20px rgba(40,33,18,.4);
  /* Sketch prototype bar height — rail inset so Workspace lines up with the mock. */
  --product-chrome-inset:56px;
  /* Left rail width — overlays that should center in main use this as their left inset. */
  --product-shell-nav-width:262px;

  --display:"Space Grotesk","Helvetica Neue",Arial,sans-serif;
  --body:"Public Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,"SF Mono",Menlo,monospace;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#1c1811;--surface:#241e14;--surface-2:#2b2419;--surface-3:#332b1d;
    --line:#3c331f;--line-soft:#2f2819;
    --fg:#f4ecd9;--fg-muted:#b8ac8c;--fg-faint:#8a7d5e;
    --accent:#9686ff;--accent-ink:#161029;--accent-soft:#2c2650;
    --urgent:#ff8a63;--urgent-soft:#3a2016;
    --good:#9fbb7f;--good-soft:#242d19;
    --shadow:0 1px 2px rgba(0,0,0,.5), 0 12px 32px -22px rgba(0,0,0,.9);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#1c1811;--surface:#241e14;--surface-2:#2b2419;--surface-3:#332b1d;
  --line:#3c331f;--line-soft:#2f2819;
  --fg:#f4ecd9;--fg-muted:#b8ac8c;--fg-faint:#8a7d5e;
  --accent:#9686ff;--accent-ink:#161029;--accent-soft:#2c2650;
  --urgent:#ff8a63;--urgent-soft:#3a2016;
  --good:#9fbb7f;--good-soft:#242d19;
  --shadow:0 1px 2px rgba(0,0,0,.5), 0 12px 32px -22px rgba(0,0,0,.9);
  color-scheme:dark;
}
