/* ==========================================================================
   EmberBite — Design Tokens & Custom Properties
   Wood-Fired Pizza & Smoky Flame Bites
   ========================================================================== */

/* Typography: Self-hosted Fraunces Display & Inter Sans */
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ------------------------------------------------------------------------
     Brand Color Palette
     ------------------------------------------------------------------------ */
  --color-ember: #C63627;
  --color-ember-hover: #AD2D20;
  --color-ember-dark: #8A1E13;
  --color-ember-subtle: rgba(198, 54, 39, 0.08);

  --color-cream: #FFF6E7;
  --color-parchment: #F8EBDC;
  --color-ivory: #FFFBF4;

  --color-espresso: #32251F;
  --color-charcoal: #1E1B18;
  --color-taupe: #75665A;
  --color-sand: #DDC8B1;

  --color-honey: #E5A83B;
  --color-olive: #486341;
  --color-sage: #CED1B2;

  /* Semantic Variables */
  --bg-page: var(--color-cream);
  --bg-surface: var(--color-parchment);
  --bg-elevated: var(--color-ivory);
  --bg-brand: var(--color-ember);
  --bg-dark: var(--color-charcoal);

  --text-primary: var(--color-espresso);
  --text-secondary: var(--color-taupe);
  --text-accent: var(--color-ember);
  --text-on-brand: var(--color-cream);
  --text-on-dark: #FFFFFF;

  --border-subtle: var(--color-sand);
  --border-accent: var(--color-ember);

  /* ------------------------------------------------------------------------
     Typography
     ------------------------------------------------------------------------ */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --fs-xs: 0.75rem;    /* 12px */
  --fs-sm: 0.875rem;   /* 14px */
  --fs-base: 1rem;     /* 16px */
  --fs-md: 1.125rem;   /* 18px */
  --fs-lg: 1.25rem;    /* 20px */
  --fs-xl: 1.5rem;     /* 24px */
  --fs-2xl: 2rem;      /* 32px */
  --fs-3xl: 2.5rem;    /* 40px */
  --fs-4xl: 3.25rem;   /* 52px */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

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

  /* ------------------------------------------------------------------------
     Layout & Radii
     ------------------------------------------------------------------------ */
  --container-max-width: 1280px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* ------------------------------------------------------------------------
     Shadows
     ------------------------------------------------------------------------ */
  --shadow-subtle: 0 2px 8px rgba(50, 37, 31, 0.06);
  --shadow-card: 0 4px 16px rgba(50, 37, 31, 0.08);
  --shadow-elevated: 0 12px 32px rgba(50, 37, 31, 0.12);
  --shadow-drawer: 0 24px 64px rgba(30, 27, 24, 0.25);

  /* ------------------------------------------------------------------------
     Z-Index Layers
     ------------------------------------------------------------------------ */
  --z-base: 1;
  --z-sticky: 10;
  --z-header: 100;
  --z-drawer-backdrop: 200;
  --z-drawer: 210;
  --z-modal: 300;
  --z-toast: 400;

  /* ------------------------------------------------------------------------
     Transitions
     ------------------------------------------------------------------------ */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 150ms var(--ease-smooth);
  --transition-base: 240ms var(--ease-smooth);
}
