/* ============================================================================
   Design Tokens — see design-system/MASTER.md for documentation
   ========================================================================= */

:root {
  color-scheme: light;

  /* --- Color: Light theme (only) — "Sand · Navy & Teal" ------------------ */
  --color-bg: #EFE7D6;
  --color-surface: #FBF7EC;
  --color-surface-elev: #FFFFFF;
  --color-ink: #1B2A3F;
  --color-ink-muted: #4B4A44;
  --color-ink-subtle: #68675F;
  --color-accent: #0F726B;
  --color-accent-hover: #0B5D56;
  --color-accent-soft: #CFE6E1;
  --color-on-accent: #FFFFFF;
  --color-border: #DED7C5;
  --color-border-strong: #C8C0AC;
  --color-success: #137638;
  --color-danger: #B91C1C;
  --color-danger-soft: hsl(0 70% 96%);
  --color-danger-border: hsl(0 60% 80%);
  --color-overlay: rgb(27 42 63 / 0.5);

  /* Selection */
  --selection-bg: var(--color-accent-soft);
  --selection-fg: var(--color-ink);

  /* --- Typography ------------------------------------------------------- */
  --font-display: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.375rem, 1.2rem + 0.85vw, 1.625rem);
  --text-2xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.25rem);
  --text-3xl: clamp(2.25rem, 1.85rem + 2vw, 3rem);
  --text-4xl: clamp(2.75rem, 2.2rem + 2.75vw, 4rem);
  --text-display: clamp(3rem, 2rem + 5vw, 6rem);

  --leading-tight: 1.15;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  --tracking-tight: -0.02em;
  --tracking-snug: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.08em;
  --tracking-wider: 0.14em;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* --- Spacing scale (4px base) ----------------------------------------- */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* --- Radii ------------------------------------------------------------ */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* --- Shadows ---------------------------------------------------------- */
  --shadow-sm: 0 1px 2px hsl(30 5% 10% / 0.04);
  --shadow-md: 0 4px 16px -2px hsl(30 5% 10% / 0.06), 0 2px 4px hsl(30 5% 10% / 0.04);
  --shadow-lg: 0 16px 40px -8px hsl(30 5% 10% / 0.1), 0 4px 12px hsl(30 5% 10% / 0.04);
  --shadow-focus: 0 0 0 3px var(--color-accent);
  /* Floating nav pill — bespoke elevation (rest + scrolled) */
  --shadow-nav: 0 10px 30px -8px rgb(27 42 63 / 0.18), 0 2px 8px rgb(27 42 63 / 0.08), inset 0 1px 0 rgb(255 255 255 / 0.6);
  --shadow-nav-strong: 0 16px 40px -10px rgb(27 42 63 / 0.24), 0 3px 10px rgb(27 42 63 / 0.1), inset 0 1px 0 rgb(255 255 255 / 0.7);

  /* --- Layout ----------------------------------------------------------- */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1080px;
  --container-xl: 1280px;
  --hero-max: 1600px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);

  /* --- Motion ----------------------------------------------------------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-instant: 50ms;
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 400ms;
  --dur-slower: 700ms;

  /* --- Z-index ---------------------------------------------------------- */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 50;
  --z-overlay: 100;
  --z-modal: 200;
  --z-toast: 300;
}
