/* ═══════════════════════════════════════
   STORIED FLAVOURS — Design Tokens
   ═══════════════════════════════════════ */

:root {
  /* ── Colors ── */
  --color-cream:        #FFF8F0;
  --color-warm-white:   #FFFDF9;
  --color-brown-900:    #3E2723;
  --color-brown-700:    #5D4037;
  --color-brown-400:    #8D6E63;
  --color-brown-200:    #BCAAA4;
  --color-brown-100:    #D7CCC8;
  --color-amber:        #F59E0B;
  --color-amber-dark:   #D97706;
  --color-amber-light:  #FEF3C7;
  --color-terracotta:   #C2714F;
  --color-terracotta-light: #F5DDD3;
  --color-sage:         #7C9A6E;
  --color-sage-light:   #E8F0E4;
  --color-dusty-rose:   #C08B8B;
  --color-dusty-rose-light: #F5E6E6;
  --color-red:          #DC2626;
  --color-red-light:    #FEE2E2;
  --color-vintage-grape: #5D3954;
  --color-sunflower-gold: #FFC15E;

  /* ── Surfaces ── */
  --surface-page:       var(--color-cream);
  --surface-card:       var(--color-warm-white);
  --surface-elevated:   #FFFFFF;
  --surface-overlay:    rgba(62, 39, 35, 0.5);
  --surface-sidebar:    #FEFCF8;

  /* ── Text ── */
  --text-primary:       var(--color-brown-900);
  --text-secondary:     var(--color-brown-700);
  --text-muted:         var(--color-brown-400);
  --text-inverse:       #FFFFFF;

  /* ── Borders ── */
  --border-light:       rgba(141, 110, 99, 0.12);
  --border-medium:      rgba(141, 110, 99, 0.2);
  --border-focus:       var(--color-amber);

  /* ── Shadows ── */
  --shadow-sm:    0 1px 3px rgba(62, 39, 35, 0.06);
  --shadow-md:    0 2px 12px rgba(62, 39, 35, 0.08);
  --shadow-lg:    0 8px 30px rgba(62, 39, 35, 0.12);
  --shadow-xl:    0 16px 50px rgba(62, 39, 35, 0.16);

  /* ── Typography ── */
  --font-family: Inter, -apple-system, system-ui, BlinkMacSystemFont, Helvetica, Arial, Segoe UI, Roboto, sans-serif;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-lg:   1.125rem;
  --font-size-xl:   1.25rem;
  --font-size-2xl:  1.5rem;
  --font-size-3xl:  1.875rem;
  --font-size-4xl:  2.25rem;
  --font-size-5xl:  3rem;
  --font-size-6xl:  3.75rem;

  /* ── Spacing ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ── Radii ── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ── Transitions ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* ── Layout ── */
  --sidebar-width: 260px;
  --topbar-height: 64px;
  --max-width: 1200px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-feature-settings: 'liga' on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  color: var(--text-primary);
  background: var(--surface-page);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in    { animation: fadeIn var(--duration-normal) var(--ease-out) both; }
.animate-fade-in-up { animation: fadeInUp var(--duration-slow) var(--ease-out) both; }
.animate-scale-in   { animation: scaleIn var(--duration-normal) var(--ease-out) both; }

/* stagger children */
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 60ms; }
.stagger > *:nth-child(3) { animation-delay: 120ms; }
.stagger > *:nth-child(4) { animation-delay: 180ms; }
.stagger > *:nth-child(5) { animation-delay: 240ms; }
.stagger > *:nth-child(6) { animation-delay: 300ms; }

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-10);
}

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
