/* ==========================================================================
   Design tokens.
   One block per theme. To add a theme: copy a block, change the values, add
   the id to app/web/themes.py. Nothing else in the codebase knows the colours.
   ========================================================================== */

:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: var(--font-sans);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --space: 1rem;
  --maxw: 1120px;
  --transition: 180ms cubic-bezier(.22,.61,.36,1);
}

/* ---------- aurora (default, light) ---------- */
[data-theme="aurora"] {
  color-scheme: light;
  --bg: #f7f8fc;
  --bg-mesh-1: rgba(99,102,241,.22);
  --bg-mesh-2: rgba(249,115,22,.18);
  --bg-mesh-3: rgba(14,165,233,.16);
  --surface: #ffffff;
  --surface-2: #f2f4fa;
  --surface-3: #e9ecf6;
  --border: rgba(20,24,50,.10);
  --border-strong: rgba(20,24,50,.18);
  --text: #141a33;
  --text-soft: #4b5372;
  --text-mute: #858da8;
  --brand: #5b5bf5;
  --brand-soft: rgba(91,91,245,.12);
  --brand-ink: #ffffff;
  --accent: #f97316;
  --accent-soft: rgba(249,115,22,.14);
  --accent-ink: #ffffff;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --info: #0284c7;
  --ring: rgba(91,91,245,.45);
  --shadow-1: 0 1px 2px rgba(16,20,45,.06), 0 4px 14px rgba(16,20,45,.06);
  --shadow-2: 0 12px 40px rgba(16,20,45,.12);
  --shadow-brand: 0 10px 30px rgba(91,91,245,.28);
}

/* ---------- midnight (dark) ---------- */
[data-theme="midnight"] {
  color-scheme: dark;
  --bg: #080c17;
  --bg-mesh-1: rgba(56,189,248,.20);
  --bg-mesh-2: rgba(244,114,182,.16);
  --bg-mesh-3: rgba(99,102,241,.18);
  --surface: #101728;
  --surface-2: #162034;
  --surface-3: #1d2942;
  --border: rgba(148,178,255,.14);
  --border-strong: rgba(148,178,255,.26);
  --text: #eaf0ff;
  --text-soft: #a8b6d8;
  --text-mute: #71809f;
  --brand: #38bdf8;
  --brand-soft: rgba(56,189,248,.16);
  --brand-ink: #04121d;
  --accent: #f472b6;
  --accent-soft: rgba(244,114,182,.16);
  --accent-ink: #1a0512;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --info: #60a5fa;
  --ring: rgba(56,189,248,.55);
  --shadow-1: 0 1px 2px rgba(0,0,0,.5), 0 6px 18px rgba(0,0,0,.35);
  --shadow-2: 0 18px 50px rgba(0,0,0,.55);
  --shadow-brand: 0 10px 30px rgba(56,189,248,.25);
}

/* ---------- paper (light, editorial) ---------- */
[data-theme="paper"] {
  color-scheme: light;
  --font-display: ui-serif, Georgia, "Times New Roman", serif;
  --bg: #faf7f2;
  --bg-mesh-1: rgba(194,65,12,.12);
  --bg-mesh-2: rgba(31,41,55,.08);
  --bg-mesh-3: rgba(180,150,110,.16);
  --surface: #fffdf9;
  --surface-2: #f4efe6;
  --surface-3: #ece5d8;
  --border: rgba(60,45,25,.14);
  --border-strong: rgba(60,45,25,.26);
  --text: #211c16;
  --text-soft: #55483a;
  --text-mute: #8b7c6a;
  --brand: #1f2937;
  --brand-soft: rgba(31,41,55,.10);
  --brand-ink: #fffdf9;
  --accent: #c2410c;
  --accent-soft: rgba(194,65,12,.12);
  --accent-ink: #fffdf9;
  --ok: #15803d;
  --warn: #b45309;
  --danger: #b91c1c;
  --info: #0369a1;
  --ring: rgba(194,65,12,.4);
  --shadow-1: 0 1px 2px rgba(80,60,30,.08), 0 4px 12px rgba(80,60,30,.07);
  --shadow-2: 0 14px 40px rgba(80,60,30,.14);
  --shadow-brand: 0 10px 26px rgba(31,41,55,.22);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* ---------- forest (dark, warm) ---------- */
[data-theme="forest"] {
  color-scheme: dark;
  --bg: #08150f;
  --bg-mesh-1: rgba(52,211,153,.20);
  --bg-mesh-2: rgba(251,191,36,.14);
  --bg-mesh-3: rgba(16,185,129,.16);
  --surface: #0f2018;
  --surface-2: #142a20;
  --surface-3: #1b382a;
  --border: rgba(134,239,172,.16);
  --border-strong: rgba(134,239,172,.28);
  --text: #e8fff4;
  --text-soft: #a7cfba;
  --text-mute: #6f947f;
  --brand: #34d399;
  --brand-soft: rgba(52,211,153,.16);
  --brand-ink: #042014;
  --accent: #fbbf24;
  --accent-soft: rgba(251,191,36,.16);
  --accent-ink: #1e1503;
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;
  --info: #5eead4;
  --ring: rgba(52,211,153,.5);
  --shadow-1: 0 1px 2px rgba(0,0,0,.45), 0 6px 18px rgba(0,0,0,.3);
  --shadow-2: 0 18px 50px rgba(0,0,0,.5);
  --shadow-brand: 0 10px 30px rgba(52,211,153,.22);
}
