/* ==========================================================================
   The Baker — Design Tokens (Stitch-compatible)
   Generated from DESIGN.md specification
   ========================================================================== */

:root {
  /* ── Color Palette ─────────────────────────────────────────────────────── */

  /* Backgrounds */
  --color-bg-primary: #0D0D0D;
  --color-bg-elevated: #1A1A1A;
  --color-bg-surface: #141414;
  --color-bg-glass: rgba(255, 255, 255, 0.04);
  --color-bg-glass-hover: rgba(255, 255, 255, 0.07);
  --color-bg-agitate: #110B0B;

  /* Accent — Warm Gold (wheat/crust inspired) */
  --color-accent-warm: #E8A838;
  --color-accent-glow: #F4C56B;
  --color-accent-deep: #D4922A;
  --color-accent-muted: rgba(232, 168, 56, 0.12);

  /* Accent — Brick Oven Red */
  --color-accent-red: #E16E52;
  --color-accent-red-glow: rgba(196, 85, 58, 0.25);

  /* Accent — Solve Green */
  --color-accent-green: #4CAF50;
  --color-accent-green-muted: rgba(76, 175, 80, 0.15);

  /* Text */
  --color-text-primary: #F5F0E8;
  --color-text-secondary: #A89B8C;
  --color-text-tertiary: #8A7E74;
  --color-text-accent: #E8A838;
  --color-text-inverse: #0D0D0D;

  /* Borders */
  --color-border: rgba(232, 168, 56, 0.15);
  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(232, 168, 56, 0.35);

  /* Gradients */
  --gradient-cta: linear-gradient(180deg, #F4B150 0%, #E8A838 100%);
  --gradient-cta-hover: linear-gradient(180deg, #F4C56B 0%, #F4B150 100%);
  --gradient-hero: radial-gradient(ellipse at 30% 50%, rgba(232, 168, 56, 0.08) 0%, transparent 70%);
  --gradient-section: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-surface) 100%);
  --gradient-agitate: radial-gradient(ellipse at center, rgba(196, 85, 58, 0.06) 0%, transparent 70%);

  /* ── Typography ────────────────────────────────────────────────────────── */

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Playfair Display', serif;

  /* Font Sizes — Fluid Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.925rem + 0.375vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  --text-3xl: clamp(1.875rem, 1.4rem + 2.375vw, 3rem);
  --text-4xl: clamp(2.25rem, 1.6rem + 3.25vw, 4rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 5.5rem);

  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Line Heights */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;

  /* ── Spacing Scale (4px base) ──────────────────────────────────────────── */

  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Section Padding */
  --section-padding-y: clamp(4rem, 6vw, 8rem);
  --section-padding-x: clamp(1.25rem, 5vw, 3rem);

  /* ── Layout ────────────────────────────────────────────────────────────── */

  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;

  /* ── Border Radius ─────────────────────────────────────────────────────── */

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* ── Shadows ────────────────────────────────────────────────────────────── */

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(232, 168, 56, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(232, 168, 56, 0.25);
  --shadow-card: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 0 0 1px var(--color-border-subtle);
  --shadow-card-hover:
    0 20px 25px -5px rgba(0, 0, 0, 0.2),
    0 10px 10px -5px rgba(0, 0, 0, 0.1),
    0 0 0 1px var(--color-border);

  /* ── Backdrop Blur ─────────────────────────────────────────────────────── */

  --blur-sm: blur(8px);
  --blur-md: blur(16px);
  --blur-lg: blur(32px);

  /* ── Transitions ────────────────────────────────────────────────────────── */

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;

  /* ── Z-Index Scale ─────────────────────────────────────────────────────── */

  --z-base: 1;
  --z-above: 10;
  --z-overlay: 100;
  --z-modal: 1000;
}
