/* ==========================================================================
   Tour with K.Gem — Design tokens
   Brand direction: "Lake & Light" (see BRANDING_AUDIT.md §2, Direction B)

   Layer 1 = primitives (raw palette — do not use directly in components)
   Layer 2 = semantic roles (use these in styles.css)
   All text/background pairs below were contrast-checked to WCAG AA or better.
   ========================================================================== */

:root {
  color-scheme: light;

  /* ---------- Layer 1: primitives ---------- */
  --teal-500: #0B6E74;   /* Volta Teal */
  --teal-600: #085A5F;
  --teal-800: #0A2E31;
  --teal-50:  #E6F2F2;

  --sun-400: #F2B33D;    /* Sunshine */
  --sun-500: #E5A12A;
  --sun-700: #8A5A00;    /* sunshine as text on light (5.64:1) */
  --sun-50:  #FEF5E2;

  --coral-500: #C2461F;  /* Coral accent (white text 5.01:1) */

  --mist-0:   #FFFFFF;
  --mist-50:  #F6FAFA;
  --mist-100: #EAF2F2;
  --mist-200: #D3E2E3;
  --mist-300: #B2C8CA;
  --mist-400: #87A2A5;
  --mist-500: #587377;   /* lightest step that clears 3:1 for input borders */
  --mist-600: #4A6266;
  --mist-700: #36494C;
  --mist-800: #233234;
  --mist-900: #132022;

  /* ---------- Layer 2: semantic roles ---------- */
  --color-bg: var(--mist-50);
  --color-bg-alt: var(--mist-100);
  --color-surface: var(--mist-0);
  --color-text: var(--mist-900);          /* 15.88:1 on bg */
  --color-text-muted: var(--mist-600);    /* 6.18:1 on bg */
  --color-text-subtle: var(--mist-500);   /* 5.08:1 on white */
  --color-border: var(--mist-200);        /* decorative dividers only */
  --color-border-input: var(--mist-500);  /* form boundaries (≥3:1) */

  --color-brand: var(--teal-500);         /* links, secondary buttons */
  --color-brand-hover: var(--teal-600);
  --color-brand-soft: var(--teal-50);
  --color-on-brand: #FFFFFF;              /* 6.01:1 on teal */

  --color-cta: var(--sun-400);            /* primary "Book" buttons */
  --color-cta-hover: var(--sun-500);
  --color-on-cta: var(--mist-900);        /* 8.98:1 on sunshine */
  --color-cta-text: var(--sun-700);
  --color-cta-soft: var(--sun-50);

  --color-accent: var(--coral-500);
  --color-on-accent: #FFFFFF;

  --color-dark: var(--teal-800);          /* footer, dark bands */
  --color-on-dark: #FFFFFF;               /* 14.50:1 */
  --color-on-dark-muted: var(--mist-300); /* 8.29:1 */

  --color-success: #1F7A4D;
  --color-warning: #A15C00;
  --color-error: #C0362C;
  --color-scrim: rgb(10 46 49 / 0.82);

  /* ---------- Typography ---------- */
  --font-heading: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Minor-third scale (1.2) */
  --text-xs: 0.8125rem;   /* 13px — legal/meta only */
  --text-sm: 0.875rem;    /* small */
  --text-base: 1rem;      /* body */
  --text-lg: 1.125rem;
  --text-h6: 0.875rem;
  --text-h5: 1.2rem;
  --text-h4: 1.44rem;
  --text-h3: 1.728rem;
  --text-h2: clamp(1.75rem, 3.6vw, 2.074rem);
  --text-h1: clamp(2rem, 4.4vw, 2.488rem);
  --text-display: clamp(2.5rem, 6.2vw, 4.25rem);

  --leading-tight: 1.05;
  --leading-heading: 1.15;
  --leading-snug: 1.35;
  --leading-body: 1.6;

  --tracking-display: -0.035em;
  --tracking-heading: -0.02em;

  /* ---------- Spacing (4px base) ---------- */
  --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;
  --section-y: clamp(4rem, 8vw, 7rem);
  --section-x: clamp(1rem, 4vw, 3rem);
  --container: 74rem;
  --site-header-h: 4.5rem; /* overwritten at runtime by js/main.js */
  --header-gap: 12px;      /* floating nav inset from the viewport edge */
  --header-offset: calc(var(--site-header-h) + var(--header-gap)); /* space content must clear */

  /* ---------- Shape & depth ---------- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgb(19 32 34 / 0.06), 0 2px 6px rgb(11 110 116 / 0.06);
  --shadow-md: 0 2px 6px rgb(11 110 116 / 0.08), 0 10px 30px rgb(11 110 116 / 0.12);
  --shadow-lg: 0 4px 12px rgb(11 110 116 / 0.1), 0 24px 56px rgb(11 110 116 / 0.16);
  --shadow-cta: 0 6px 18px rgb(242 179 61 / 0.4);

  --focus-ring: 0 0 0 3px var(--color-surface), 0 0 0 5px var(--color-brand);

  /* ---------- Motion ---------- */
  --dur-fast: 180ms;
  --dur-base: 240ms;
  --dur-slow: 420ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}
