/* ================================================================
   PÂTISSERIE PLAIN (patisserie-plain) — base.css
   French Pâtisserie Design System & Flavor Palettes
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ── Core Vanilla Cream Base Palette ── */
  --bg-cream:         #FDFBF7;
  --bg-cream-alt:     #F8F3E9;
  --bg-parchment:     #F3EBDD;
  --bg-card:          rgba(255, 255, 255, 0.88);
  --bg-card-hover:    #FFFFFF;
  
  --text-ink:         #1C1917;   /* Roasted espresso dark charcoal */
  --text-muted:       #665A4F;   /* Warm storybook sepia */
  --text-subtle:      #8F7E70;   /* Delicate captions */
  
  --border-parchment: #E6DCB8;
  --border-gold:      rgba(194, 142, 0, 0.35);
  --border-light:     rgba(143, 126, 112, 0.18);
  
  --gold-accent:      #C28E00;
  --gold-glow:        rgba(194, 142, 0, 0.25);
  --gold-gradient:    linear-gradient(135deg, #DFB13C 0%, #C28E00 100%);
  
  /* ── 6 Flavor Dedicated Accent Palettes ── */
  /* 1. Raspberry (Rose Crimson) */
  --flavor-raspberry-accent: #E11D48;
  --flavor-raspberry-bg:     #FFE4E6;
  --flavor-raspberry-border: #FDA4AF;
  --flavor-raspberry-glow:   rgba(225, 29, 72, 0.22);

  /* 2. Strawberry (Coral Starlight Pink) */
  --flavor-strawberry-accent: #FB7185;
  --flavor-strawberry-bg:     #FFF1F2;
  --flavor-strawberry-border: #FECDD3;
  --flavor-strawberry-glow:   rgba(251, 113, 133, 0.22);

  /* 3. Lemon (Citron Solstice Gold) */
  --flavor-lemon-accent: #D97706;
  --flavor-lemon-bg:     #FEF9C3;
  --flavor-lemon-border: #FDE047;
  --flavor-lemon-glow:   rgba(217, 119, 6, 0.22);

  /* 4. Pistachio (Emerald Forest Green) */
  --flavor-pistachio-accent: #059669;
  --flavor-pistachio-bg:     #ECFDF5;
  --flavor-pistachio-border: #A7F3D0;
  --flavor-pistachio-glow:   rgba(5, 150, 105, 0.22);

  /* 5. Chocolate (Midnight Espresso Velvet Cocoa) */
  --flavor-chocolate-accent: #3D1E16;
  --flavor-chocolate-bg:     #F5EBE6;
  --flavor-chocolate-border: #D7C4BA;
  --flavor-chocolate-glow:   rgba(61, 30, 22, 0.25);

  /* 6. Vanilla-Bean (Crown Bourbon Honey Amber) */
  --flavor-vanilla-accent: #B45309;
  --flavor-vanilla-bg:     #FEF3C7;
  --flavor-vanilla-border: #FCD34D;
  --flavor-vanilla-glow:   rgba(180, 83, 9, 0.22);

  /* ── Typography Tokens ── */
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* ── Spacing & Layout ── */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 3.5vw, 2.5rem);
  --nav-height:    72px;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-full:   9999px;

  /* ── Shadows & Elevation ── */
  --shadow-soft:  0 4px 20px rgba(61, 30, 22, 0.05);
  --shadow-card:  0 10px 30px rgba(61, 30, 22, 0.08), 0 1px 3px rgba(61, 30, 22, 0.04);
  --shadow-hover: 0 20px 40px rgba(61, 30, 22, 0.12), 0 0 25px var(--gold-glow);
  --shadow-modal: 0 25px 60px rgba(28, 25, 23, 0.25), 0 0 0 1px var(--border-gold);

  /* ── Transitions ── */
  --ease: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
  font-size: 16px;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(223, 177, 60, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(225, 29, 72, 0.03) 0%, transparent 45%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Typography Utilities ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-ink);
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

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

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

button, input, select, textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Storybook Badges & Ribbons ── */
.storybook-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-parchment);
  border: 1px solid var(--border-gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-ink);
  box-shadow: var(--shadow-soft);
}

.storybook-badge svg {
  width: 14px;
  height: 14px;
  color: var(--gold-accent);
}

/* ── Buttons (Fairy-tale Elevated) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background: var(--text-ink);
  color: #FFFDF9;
  box-shadow: 0 6px 20px rgba(28, 25, 23, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity var(--ease);
  z-index: 0;
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(28, 25, 23, 0.25), 0 0 20px var(--gold-glow);
}

.btn-primary:hover::after {
  opacity: 0.15;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #1C1917;
  font-weight: 700;
  box-shadow: 0 6px 20px var(--gold-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(194, 142, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-ink);
  border: 1.5px solid var(--border-gold);
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--gold-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

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

:focus-visible {
  outline: 2px solid var(--gold-accent);
  outline-offset: 3px;
}
