/* ==========================================================================
   Okame Sushi — Design Tokens
   Warm, airy palette: beige/cream surfaces + deep forest green ink + a
   restrained touch of antique gold. Inspired by Okame's brand green, the
   koi-flag logo and warm timber — now in daylight instead of night.

   The hero/menu-hero/res-hero/final-cta/site-header sit on photography with
   a deep-green scrim, so they locally re-declare the --color-fg-* family to
   their "onphoto" (light) counterparts — see components.css / home.css /
   menu.css / reservas.css for the `--color-fg: var(--color-fg-onphoto);`
   scoping blocks. Everywhere else inherits this beige/green default.
   ========================================================================== */

:root {
  /* ---- Color: surfaces (warm beige) ---- */
  --color-bg: #f5eedc;
  --color-bg-raised: #ece0c3;
  --color-surface: #fbf8f0;
  --color-surface-2: #e6d9b7;
  --color-border: rgba(32, 52, 42, 0.13);
  --color-border-strong: rgba(32, 52, 42, 0.26);

  /* ---- Color: text (deep forest green ink) ---- */
  --color-fg: #20342a;
  --color-fg-soft: #3a5347;
  --color-fg-muted: #495a4f;
  --color-fg-faint: #636d5f;

  /* ---- Color: text on photography (dark-green scrim contexts) ---- */
  --color-fg-onphoto: #f5eedc;
  --color-fg-soft-onphoto: #e3d9bc;
  --color-fg-muted-onphoto: #c4b99a;
  --color-fg-faint-onphoto: #a69c80;
  --color-border-onphoto: rgba(245, 238, 220, 0.18);
  --color-border-strong-onphoto: rgba(245, 238, 220, 0.3);

  /* ---- Color: brand green (primary accent) ---- */
  --color-green: #07272d;
  --color-green-bright: #67b3c1;
  --color-green-deep: #6f9990;
  --color-terracotta: #8b5a34;

  /* ---- Color: gold (restrained secondary accent — CTA, prices, kickers) ---- */
  --color-gold: #875e1c;
  --color-gold-bright: #e4bf63;

  /* ---- Color: functional ---- */
  --color-whatsapp: #3fae5a;
  --color-success: #4f7a5c;
  --color-error: #924430;

  /* ---- Light popover surfaces (date picker etc.) ---- */
  --color-paper: #fbf8f0;
  --color-paper-fg: #20342a;

  /* ---- Typography ---- */
  --font-display: "Cormorant Garamond", "Iowan Old Style", serif;
  --font-body: "Karla", -apple-system, "Segoe UI", sans-serif;

  --fs-2xs: 0.6875rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  --fs-3xl: clamp(2.6rem, 1.9rem + 2.8vw, 4rem);
  --fs-4xl: clamp(3.4rem, 2.2rem + 4.8vw, 6rem);

  --lh-tight: 1.08;
  --lh-snug: 1.28;
  --lh-normal: 1.55;
  --lh-loose: 1.75;

  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.06em;
  --tracking-wider: 0.14em;
  --tracking-widest: 0.28em;

  /* ---- Spacing scale (4px rhythm) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --section-pad-y: clamp(4rem, 3rem + 4vw, 7rem);
  --container-w: 1280px;
  --container-w-narrow: 860px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* ---- Radius ---- */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* ---- Shadow (soft, green-tinted for a light UI) ---- */
  --shadow-sm: 0 2px 10px rgba(7, 39, 45, 0.12);
  --shadow-md: 0 12px 32px rgba(7, 39, 45, 0.16);
  --shadow-lg: 0 24px 64px rgba(7, 39, 45, 0.2);
  --shadow-gold-glow: 0 0 0 1px rgba(151, 105, 31, 0.4), 0 8px 28px rgba(151, 105, 31, 0.18);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 420ms;

  /* ---- Z-index scale ---- */
  --z-nav: 100;
  --z-float: 150;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;

  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
  }
}
