/* ==========================================================================
   Design tokens — dark theme is the default, light theme overrides below.
   ========================================================================== */
:root {
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --gap: 16px;
  --topbar-h: 60px;
  --sidebar-w: 300px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Dark */
  --bg: #0d1014;
  --bg-2: #11151a;
  --surface: #151a20;
  --surface-2: #1b2128;
  --surface-3: #222a33;
  --border: #252d36;
  --border-strong: #33404c;
  --text: #e6edf3;
  --text-2: #a7b3bf;
  --text-3: #73808d;
  --accent: #3ddc97;
  --accent-2: #2bb97c;
  --accent-ink: #062b1c;
  --accent-soft: rgba(61, 220, 151, .12);
  --amber: #f5b14c;
  --amber-soft: rgba(245, 177, 76, .12);
  --red: #ff6b6b;
  --red-soft: rgba(255, 107, 107, .12);
  --blue: #6cb6ff;
  --violet: #c4a7ff;

  --code-bg: #0a0d10;
  --code-gutter: #3a4652;
  --syn-kw: #ff8f6b;
  --syn-fn: #6cb6ff;
  --syn-str: #a5e07a;
  --syn-num: #f5b14c;
  --syn-id: #c4a7ff;
  --syn-com: #5c6b78;
  --syn-op: #8b98a5;

  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
  --focus: 0 0 0 3px rgba(61, 220, 151, .35);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f6f8;
  --bg-2: #eef1f4;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --surface-3: #eceff3;
  --border: #e1e6eb;
  --border-strong: #c9d1d9;
  --text: #15202b;
  --text-2: #4a5866;
  --text-3: #7a8794;
  --accent: #12a66a;
  --accent-2: #0e8a58;
  --accent-ink: #ffffff;
  --accent-soft: rgba(18, 166, 106, .1);
  --amber: #b26b00;
  --amber-soft: rgba(214, 140, 20, .12);
  --red: #d33a3a;
  --red-soft: rgba(211, 58, 58, .09);
  --blue: #1f6feb;
  --violet: #7a4fd6;

  --code-bg: #fbfcfd;
  --code-gutter: #b8c2cc;
  --syn-kw: #c2410c;
  --syn-fn: #1f6feb;
  --syn-str: #2f7d1e;
  --syn-num: #a35c00;
  --syn-id: #7a4fd6;
  --syn-com: #8a96a3;
  --syn-op: #5a6876;

  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -12px rgba(16, 24, 40, .12);
  --focus: 0 0 0 3px rgba(18, 166, 106, .28);
  color-scheme: light;
}
