/* NOVA AI · tokens.css
   Design tokens. Every colour, size, radius and timing used by the app lives here.
   Palette idea: warm paper and ink, with one amber "spark" as the only accent. */

:root {
  /* Typography: two voices. UI + your messages use the grotesque, NOVA's replies use the reading serif. */
  --font-ui: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-read: "Literata", "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Roboto Mono", "Liberation Mono", monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-md: 0.9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-hero: clamp(1.95rem, 1.3rem + 2.8vw, 2.8rem);
  --fs-read: 1.0625rem;
  --lh-read: 1.7;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 140ms;
  --t-med: 260ms;
  --t-slow: 420ms;

  /* Layout */
  --sidebar-w: 292px;
  --content-w: 42rem;
  --topbar-h: 56px;
  --tap: 44px;

  /* Layers */
  --z-scrim: 25;
  --z-sidebar: 30;
  --z-menu: 50;
  --z-toast: 60;

  /* Colour: light ("paper") */
  --bg: #f7f4ef;
  --bg-side: #efebe4;
  --surface: #fffdf9;
  --sunken: #ebe6dd;
  --bubble: #ece6dc;
  --code-bg: #f1ede5;

  --ink: #241f1a;
  --ink-2: #5a5148;
  --ink-3: #6f665b;
  --on-ink: #f7f4ef;

  --line: rgba(36, 31, 26, 0.12);
  --line-strong: rgba(36, 31, 26, 0.26);
  --field-line: rgba(36, 31, 26, 0.5);
  --hover: rgba(36, 31, 26, 0.06);
  --press: rgba(36, 31, 26, 0.11);

  --spark: #f2a900;
  --spark-ink: #8a5600;
  --spark-soft: rgba(242, 169, 0, 0.2);

  --danger: #b3341f;
  --danger-soft: rgba(179, 52, 31, 0.1);
  --focus: #241f1a;

  --scrim: rgba(36, 28, 18, 0.42);
  --toast-bg: #241f1a;
  --toast-ink: #f7f4ef;

  --shadow-sm: 0 1px 2px rgba(60, 40, 10, 0.07), 0 1px 1px rgba(60, 40, 10, 0.04);
  --shadow-md: 0 8px 24px rgba(60, 40, 10, 0.1), 0 2px 6px rgba(60, 40, 10, 0.06);
  --shadow-lg: 0 24px 60px rgba(40, 25, 5, 0.24), 0 4px 14px rgba(40, 25, 5, 0.1);
  --shadow-composer: 0 1px 2px rgba(60, 40, 10, 0.06), 0 10px 30px rgba(60, 40, 10, 0.07);

  color-scheme: light;
}

/* Colour: dark ("night"). Still warm: brown-black, never blue-black. */
[data-theme="dark"] {
  --bg: #1a1714;
  --bg-side: #141210;
  --surface: #25211c;
  --sunken: #211d19;
  --bubble: #2d2823;
  --code-bg: #131110;

  --ink: #f3eee6;
  --ink-2: #cfc6b9;
  --ink-3: #a1978a;
  --on-ink: #1a1714;

  --line: rgba(243, 238, 230, 0.1);
  --line-strong: rgba(243, 238, 230, 0.24);
  --field-line: rgba(243, 238, 230, 0.45);
  --hover: rgba(243, 238, 230, 0.07);
  --press: rgba(243, 238, 230, 0.12);

  --spark: #ffb81f;
  --spark-ink: #ffc95e;
  --spark-soft: rgba(255, 184, 31, 0.2);

  --danger: #ff8f78;
  --danger-soft: rgba(255, 143, 120, 0.14);
  --focus: #f3eee6;

  --scrim: rgba(0, 0, 0, 0.58);
  --toast-bg: #f3eee6;
  --toast-ink: #1a1714;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow-composer: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.3);

  color-scheme: dark;
}

/* Reply text size (Settings → Reply text size) */
[data-text="sm"] { --fs-read: 0.975rem; }
[data-text="lg"] { --fs-read: 1.1875rem; }
