/*
 * Zarvia design tokens (light, plus dark under <html data-theme="dark">).
 * Shared by the website (app.css) and the mobile app (mobile.css).
 */

:root {
  /* Colour */
  --bg: #f4f7f7;
  --bg-2: #eaf3f4;
  --surface: #ffffff;
  --surface-2: #f8fafa;
  --surface-3: #eef2f2;
  --line: #e1e8e8;
  --line-strong: #cdd8d8;
  --line-hover: #b3d4d4;
  --ink: #13232a;
  --ink-2: #31444b;
  --muted: #5b6b70;
  --jade: #0b6a6f;
  --jade-hover: #09595d;
  --jade-press: #064f53;
  --jade-deep: #053a3e;
  --brand-blue: #0885c3;
  --brand-ink: #0b5a60;
  --jade-soft: #e5f2f2;
  --jade-ink: #064f53;
  --gold: #b07d12;
  --gold-bright: #e7c56a;
  --gold-hover: #efd083;
  --gold-soft: #fbf1d9;
  --gold-ink: #6d4e09;
  --clay: #b94a32;
  --clay-soft: #fcebe6;
  --clay-ink: #8f3421;
  --nav: #0b1a1d;
  --nav-2: #132629;
  --nav-ink: #eef1ec;
  --nav-muted: rgba(238, 241, 236, 0.7);
  --nav-line: rgba(238, 241, 236, 0.1);
  --link: var(--jade);
  --link-hover: var(--jade-hover);
  --glass: rgba(255, 255, 255, 0.84);
  --glass-strong: rgba(255, 255, 255, 0.95);
  --bg-fade: rgba(244, 247, 247, 0.94);
  --img-bg: #f6f1e6;
  --logo-bg: #ffffff;
  --track: #ebe6dc;
  --diff-bg: #fff8e8;
  --highlight: rgba(231, 197, 106, 0.5);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235b6b70' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  --focus-ring: 0 0 0 3px rgba(11, 106, 111, 0.28);

  /* Type */
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;

  /* Radii & shadows */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(11, 26, 29, 0.05);
  --shadow-sm: 0 2px 8px rgba(11, 26, 29, 0.06);
  --shadow-md: 0 12px 28px rgba(11, 26, 29, 0.09);
  --shadow-lg: 0 24px 56px rgba(11, 26, 29, 0.16);

  /* Layout */
  --header: 64px;
  --dock: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --wrap: 1200px;

  /* Layers */
  --z-chips: 15;
  --z-header: 30;
  --z-menu: 32;
  --z-tray: 35;
  --z-dock: 40;
  --z-wizard: 41;
  --z-skip: 50;

  /* Motion */
  --fast: 150ms;
  --duration: 220ms;
  --duration-slow: 320ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0d1416;
  --bg-2: #10201f;
  --surface: #141c1e;
  --surface-2: #182123;
  --surface-3: #1f292c;
  --line: #27353a;
  --line-strong: #37474b;
  --line-hover: #36575a;
  --ink: #e6eeef;
  --ink-2: #c2cfd1;
  --muted: #98a8ab;
  --jade: #0f7f84;
  --jade-hover: #128f93;
  --jade-press: #0b6a6f;
  --jade-soft: rgba(40, 170, 175, 0.14);
  --jade-ink: #7fd3d6;
  --brand-blue: #3aa6e0;
  --brand-ink: #e6eeef;
  --gold-soft: rgba(231, 197, 106, 0.13);
  --gold-ink: #f0cf7a;
  --clay: #e0735b;
  --clay-soft: rgba(224, 109, 84, 0.15);
  --clay-ink: #f39c88;
  --nav: #081012;
  --nav-2: #122326;
  --link: #72d0d6;
  --link-hover: #9be0e4;
  --glass: rgba(20, 28, 30, 0.84);
  --glass-strong: rgba(20, 28, 30, 0.95);
  --bg-fade: rgba(13, 20, 22, 0.94);
  --img-bg: #1c2628;
  --track: #27353a;
  --diff-bg: rgba(231, 197, 106, 0.08);
  --highlight: rgba(231, 197, 106, 0.3);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2398a8ab' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  --focus-ring: 0 0 0 3px rgba(114, 208, 214, 0.35);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}
