/* ==========================================================================
   Design Tokens — Template Madre Ristorante (3-Layer Architecture)
   ========================================================================== */

:root {
  /* 1. Primitive Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* 1. Primitive Spacing (4px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* 1. Primitive Radii & Motion */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 180ms;
  --duration-base: 280ms;
  --duration-slow: 520ms;

  /* Component Tokens */
  --header-height: 72px;
  --container-max: 1160px;

  /* Default Theme: osteria-calda */
  --bg-page: #FAF7F2;
  --bg-surface: #F3EDE3;
  --bg-elevated: #FFFFFF;
  --bg-dark-band: #1E1A17;
  --text-on-dark: #FAF7F2;

  --text-primary: #1A1816;
  --text-secondary: #4A443E;
  --text-muted: #736B63;

  --accent: #B84A27;
  --accent-hover: #9B3C1E;
  --accent-contrast: #FFFFFF;
  --accent-secondary: #9A6E1C;

  --status-open: #1F6F43;
  --status-closed: #8C3B2B;

  --border-subtle: rgba(26, 24, 22, 0.10);
  --border-strong: rgba(26, 24, 22, 0.22);
  --shadow-soft: 0 10px 30px rgba(26, 24, 22, 0.08);
}

/* Theme B: notte-oro (Amrit Palace / Qissa inspired) */
[data-theme="notte-oro"] {
  --bg-page: #0B1120;
  --bg-surface: #121A2E;
  --bg-elevated: #18223A;
  --bg-dark-band: #070B16;
  --text-on-dark: #F5F2EB;

  --text-primary: #F5F2EB;
  --text-secondary: #CBD2DF;
  --text-muted: #8E98AD;

  --accent: #D4A359;
  --accent-hover: #E1B672;
  --accent-contrast: #0B1120;
  --accent-secondary: #E6C78F;

  --status-open: #34D399;
  --status-closed: #F87171;

  --border-subtle: rgba(245, 242, 235, 0.10);
  --border-strong: rgba(245, 242, 235, 0.22);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.42);
}
