/* Design tokens for La Bahia Tacos. Direction: vibrant mercado.
   Palette inspired by Talavera tile, papel picado and Mexican market signage.
   Colors expressed in OKLCH for perceptual consistency. */

:root {
  /* Core palette */
  --c-cream: oklch(97% 0.018 85);
  --c-cream-deep: oklch(93.5% 0.032 80);
  --c-paper: oklch(99% 0.008 85);
  --c-ink: oklch(24% 0.04 50);
  --c-ink-soft: oklch(43% 0.035 50);

  --c-talavera: oklch(52% 0.16 255);
  --c-talavera-deep: oklch(41% 0.15 258);
  --c-rosa: oklch(62% 0.215 355);
  --c-rosa-deep: oklch(52% 0.2 355);
  --c-sunflower: oklch(83% 0.155 85);
  --c-lime: oklch(74% 0.18 142);
  --c-terracotta: oklch(61% 0.165 40);
  --c-aqua: oklch(73% 0.11 205);

  /* Semantic roles */
  --color-bg: var(--c-cream);
  --color-surface: var(--c-paper);
  --color-text: var(--c-ink);
  --color-muted: var(--c-ink-soft);
  --color-primary: var(--c-talavera);
  --color-accent: var(--c-rosa);

  /* Typography */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.82rem);
  --text-sm: clamp(0.86rem, 0.82rem + 0.18vw, 0.95rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.12rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --text-xl: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  --text-2xl: clamp(1.9rem, 1.5rem + 2vw, 3rem);
  --text-3xl: clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem);
  --text-hero: clamp(3.2rem, 1.6rem + 7vw, 8.5rem);

  --leading-tight: 1.05;
  --leading-snug: 1.25;
  --leading-normal: 1.6;

  /* Spacing */
  --space-2xs: 0.35rem;
  --space-xs: 0.6rem;
  --space-sm: 0.9rem;
  --space-md: 1.4rem;
  --space-lg: 2.2rem;
  --space-xl: 3.4rem;
  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --container: 76rem;
  --container-wide: 84rem;

  /* Radii */
  --radius-sm: 0.5rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2.2rem;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px oklch(24% 0.04 50 / 0.08),
    0 4px 12px oklch(24% 0.04 50 / 0.06);
  --shadow-md: 0 6px 20px oklch(24% 0.04 50 / 0.1),
    0 2px 6px oklch(24% 0.04 50 / 0.08);
  --shadow-lg: 0 18px 50px oklch(24% 0.04 50 / 0.16),
    0 6px 16px oklch(24% 0.04 50 / 0.1);
  --shadow-pop: 0 10px 0 var(--c-talavera-deep);

  /* Motion */
  --duration-fast: 160ms;
  --duration-normal: 320ms;
  --duration-slow: 600ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
