/* ==========================================================================
   Ramen Noir — Design Tokens
   --------------------------------------------------------------------------
   Every color, type, spacing and motion value used across the template
   lives here as a CSS custom property. This is the ONLY file (besides the
   theme files in css/themes/) you should need to touch to restyle the site
   globally. Component CSS files never hardcode a hex value — they always
   reference a token defined here.

   Accent colors (--color-primary / -hover / -active / -on-primary) are
   deliberately NOT defined in this file — they live in css/themes/*.css so
   a buyer can swap the whole accent by loading a different theme stylesheet
   without touching this file. See css/themes/noir-amber.css (default).
   ========================================================================== */

:root {
  /* ---- Core color (identical across every theme variant) ---- */
  --color-bg: #07101E;
  --color-surface: #0C1A30;
  --color-surface-raised: #101F38;
  --color-border: rgba(245, 245, 245, 0.10);
  --color-border-strong: rgba(245, 245, 245, 0.22);
  --color-text: #F5F5F5;
  --color-text-muted: #B5B5B5;
  --color-text-faint: #7C8494;
  --shadow-elevated: 0 16px 50px rgba(0, 0, 0, 0.32);

  /* ---- Semantic ---- */
  --color-success: #4C9A6A;
  --color-error: #D84D4D;
  --color-warning: #C97C3D;
  --color-info: #5B8DBE;

  /* ---- Overlay / scrim (the only gradient permitted in the system) ---- */
  --overlay-hero: linear-gradient(180deg, rgba(7, 16, 30, 0.15) 0%, rgba(7, 16, 30, 0.75) 100%);

  /* ---- Typography ---- */
  --font-heading: 'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Raleway', 'Segoe UI', Arial, sans-serif;

  /* Desktop type scale */
  --fs-h1: 56px;
  --fs-h2: 38px;
  --fs-h3: 24px;
  --fs-h4: 17px;
  --fs-body-lg: 18px;
  --fs-body: 15px;
  --fs-caption: 13px;
  --fs-button: 14px;
  --fs-nav: 14px;
  --fs-price: 16px;

  /* Mobile type scale */
  --fs-h1-mobile: 34px;
  --fs-h2-mobile: 26px;
  --fs-h3-mobile: 20px;
  --fs-h4-mobile: 16px;
  --fs-body-lg-mobile: 16px;

  --lh-h1: 1.05;
  --lh-h2: 1.1;
  --lh-h3: 1.25;
  --lh-h4: 1.3;
  --lh-body-lg: 1.6;
  --lh-body: 1.6;
  --lh-caption: 1.4;
  --lh-button: 1;
  --lh-nav: 1;
  --lh-price: 1;

  --ls-h1: 0.06em;
  --ls-h2: 0.08em;
  --ls-h3: 0.05em;
  --ls-h4: 0.04em;
  --ls-caption: 0.03em;
  --ls-button: 0.08em;
  --ls-nav: 0.06em;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  --max-line-length: 65ch;

  /* ---- Spacing (8px base unit) ---- */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  --space-9: 72px;
  --space-10: 80px;
  --space-11: 88px;
  --space-12: 96px;

  --container-max: 1280px;
  --container-max-dense: 1200px; /* Menu / Merch / Gallery grids */
  --container-padding: 64px;      /* desktop default, overridden per-breakpoint in layout.css */
  --section-padding-y: 96px;      /* desktop default, overridden per-breakpoint in layout.css */
  --gap-card: 24px;

  /* .site-header is position: fixed (css/components/header.css) so it can
     overlay the Home hero. This token is the single source of truth for
     its height — consumed by
     header.css (actual height), base.css (main's compensating padding-top
     on every page) and hero-carousel.css (negative margin-top that cancels
     that padding on Home only, so the hero still starts at viewport y=0
     behind the transparent header). Overridden to 64px alongside the other
     tablet/mobile breakpoint tokens in layout.css. */
  --header-height: 88px;

  /* ---- Radius ---- */
  --radius: 0; /* applied globally — no exceptions except the mobile modal sheet, see components/modal.css */

  /* ---- Motion ---- */
  --ease-standard: ease;
  --ease-drawer: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-mid: 220ms;
  --duration-250: 250ms;
  --duration-280: 280ms;
  --duration-400: 400ms;
  --duration-500: 500ms;
  --duration-600: 600ms;
  --duration-900: 900ms;

  /* ---- Hero motion (v1.2 — strengthened Ken Burns + logo reveal) ---- */
  --duration-hero-fade: 1100ms;   /* slide crossfade */
  --duration-hero-zoom: 7500ms;   /* Ken Burns micro-zoom, matches per-slide dwell */
  --hero-zoom-scale: 1.08;        /* desktop — up from 1.06 in v1.1; overridden to 1.04 below 768px */
  --hero-parallax-cap: 80px;      /* clamp for the hero text-column parallax drift, see js/hero-carousel.js */
  --duration-marquee: 32s;        /* desktop dish-name marquee loop */
  --duration-marquee-mobile: 24s; /* mobile marquee loop, shortened per Responsive Behavior Notes */

  /* ---- Z-index scale ---- */
  --z-header: 100;
  --z-subnav: 90;
  --z-overlay-nav: 200;
  --z-drawer: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* Mobile Ken Burns simplification: reduced zoom range keeps the compositor cost low on
   lower-powered devices — the effect must never be the reason a low-end
   phone drops frames on the very first screen a visitor sees. */
@media (max-width: 767px) {
  :root {
    --hero-zoom-scale: 1.04;
  }
}
