/* =============================================
   eCook.Wiki — style.css
   Editorial / Magazine Aesthetic
   Palette: Cream, Ink, Vermilion Red
   ============================================= */

/* ---- TOKENS ---- */
:root {
  --cream: #f5f0e8;
  --cream-dark: #ece6d8;
  --ink: #1a1208;
  --ink-soft: #3d3020;
  --ink-muted: #6b5d48;
  --red: #c0392b;
  --red-dark: #8e1a0e;
  --red-light: #e8604d;
  --gold: #c4922a;
  --gold-light: #e8c06a;
  --white: #ffffff;
  --border: #d5cbba;
  --shadow-sm: 0 2px 8px rgba(26,18,8,0.08);
  --shadow-md: 0 6px 24px rgba(26,18,8,0.12);
  --shadow-lg: 0 16px 48px rgba(26,18,8,0.18);
  --radius: 4px;
  --radius-lg: 8px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--ink);
}

p { color: var(--ink-soft); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1.5px solid var(--border);
  padding: 0;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-zh {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--ink);
  border-radius: var(--radius);
}

.logo-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.logo-dot { color: var(--red); }

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.nav-link:hover { color: var(--red); background: rgba(192,57,43,0.06); }
.nav-link.active { color: var(--red); font-weight: 500; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  padding: 80px 0 64px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(192,57,43,0.04) 0, rgba(192,57,43,0.04) 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, rgba(192,57,43,0.04) 0, rgba(192,57,43,0.04) 1px, transparent 0, transparent 50%);
  background-size: 40px 40px;
}

.hero-bg-pattern::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(192,57,43,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
}

.hero-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--gold);
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--red-light);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ---- SEARCH ---- */
.hero-search {
  position: relative;
  max-width: 540px;
  margin-bottom: 48px;
}

.hero-search input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 14px 56px 14px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.hero-search input::placeholder { color: rgba(255,255,255,0.4); }
.hero-search input:focus {
  border-color: var(--red-light);
  background: rgba(255,255,255,0.12);
}

.hero-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--red);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-search button:hover { background: var(--red-dark); }

.hero-search--inline input { color: var(--ink); background: white; border-color: var(--border); }
.hero-search--inline input::placeholder { color: var(--ink-muted); }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  overflow: hidden;
  display: none;
}

.search-results.active { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--cream-dark);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--cream); }

.search-result-item .sri-emoji { font-size: 1.4rem; }
.search-result-item .sri-text strong { display: block; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--ink); }
.search-result-item .sri-text span { font-family: 'DM Sans', sans-serif; font-size: 0.78rem; color: var(--ink-muted); }

.search-no-results {
  padding: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-align: center;
}

/* ---- HERO STATS ---- */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

.hero-scroll-hint {
  position: absolute;
  bottom: 20px;
  right: 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

/* ---- SECTIONS ---- */
.section { padding: 80px 0; }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--red);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title em { font-style: italic; color: var(--red); }

.section-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--red);
  margin-left: auto;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.section-link:hover { opacity: 0.7; }

/* ---- RECIPE CARDS ---- */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.recipe-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.recipe-card--hero {
  grid-column: span 1;
}

.card-image { position: relative; aspect-ratio: 4/3; }

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dish-emoji { font-size: 3.5rem; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); }

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(26,18,8,0.7);
  backdrop-filter: blur(8px);
  color: var(--gold-light);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}

.card-difficulty {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 50px;
}

.card-difficulty.easy { background: #d4edda; color: #155724; }
.card-difficulty.medium { background: #fff3cd; color: #856404; }
.card-difficulty.hard { background: #f8d7da; color: #721c24; }

.card-body { padding: 20px 24px 24px; }

.card-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.card-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.recipe-card:hover .card-cta { gap: 8px; }

/* ---- PHILOSOPHY ---- */
.philosophy { background: var(--ink); }
.philosophy .section-title { color: var(--white); }
.philosophy p { color: rgba(255,255,255,0.65); }
.philosophy .section-tag { color: var(--gold-light); }
.philosophy .section-tag::before { background: var(--gold); }

.philosophy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.philosophy-text { display: flex; flex-direction: column; gap: 16px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  width: fit-content;
  margin-top: 8px;
}

.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ---- FLAVOUR WHEEL ---- */
.flavour-wheel {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
  background: radial-gradient(circle, rgba(192,57,43,0.12) 0%, transparent 70%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fw-center {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  z-index: 2;
}

.fw-center small { display: block; font-size: 0.65rem; color: var(--gold-light); font-family: 'DM Sans', sans-serif; letter-spacing: 0.05em; margin-top: 2px; }

.fw-spoke {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  line-height: 1.2;
}

.fw-spoke small { display: block; font-size: 0.6rem; font-family: 'DM Sans', sans-serif; color: rgba(255,255,255,0.5); letter-spacing: 0.05em; }

.fw-spoke-1 { top: 10px; left: 50%; transform: translateX(-50%); }
.fw-spoke-2 { top: 30%; right: 8px; }
.fw-spoke-3 { bottom: 30%; right: 8px; }
.fw-spoke-4 { bottom: 10px; left: 50%; transform: translateX(-50%); }
.fw-spoke-5 { top: 30%; left: 8px; }

/* ---- REGIONS ---- */
.regions { background: var(--cream-dark); }

.region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.region-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1.5px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.region-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.region-char {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
}

.region-sichuan .region-char { color: var(--red); }
.region-cantonese .region-char { color: var(--gold); }
.region-hunan .region-char { color: #e74c3c; }
.region-jiangsu .region-char { color: #2980b9; }

.region-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.region-card h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 0.85rem;
  display: block;
  margin-top: 2px;
}

.region-card p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* ---- TIPS STRIP ---- */
.tips-strip {
  background: var(--red);
  padding: 40px 0;
}

.tips-inner {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.tip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 280px;
}

.tip-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }

.tip strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.tip span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--cream-dark);
  border-bottom: 1.5px solid var(--border);
  padding: 56px 0 48px;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--ink-muted);
  max-width: 560px;
  margin-bottom: 28px;
}

/* ---- FILTERS ---- */
.filters-bar {
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 64px;
  z-index: 90;
}

.filters-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.filters-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover { border-color: var(--red); color: var(--red); }
.chip.active { background: var(--red); border-color: var(--red); color: var(--white); }

/* ---- RECIPE LIST VIEW ---- */
.recipe-grid--list { grid-template-columns: repeat(3, 1fr); }

.coming-soon-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border);
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.coming-soon-note span { font-size: 1.5rem; flex-shrink: 0; }
.coming-soon-note p { margin: 0; }

/* ---- TECHNIQUE LIST ---- */
.technique-list { display: flex; flex-direction: column; gap: 0; }

.technique-item {
  display: flex;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.technique-item:last-child { border-bottom: none; }

.technique-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  min-width: 72px;
}

.technique-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.technique-body p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---- INGREDIENT GRID ---- */
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ingredient-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.ingredient-icon { font-size: 2rem; margin-bottom: 12px; }
.ingredient-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.ingredient-card p { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.55; }

/* ---- RECIPE HERO (recipe pages) ---- */
.recipe-hero {
  background: linear-gradient(135deg, var(--hero-from, #c0392b), var(--hero-to, #8e1a0e));
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}

.recipe-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.recipe-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.breadcrumb {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

.recipe-region-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

.recipe-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.recipe-chinese {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.recipe-intro {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.recipe-quickstats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.qs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  min-width: 72px;
}

.qs-icon { font-size: 1.1rem; }
.qs-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
}
.qs-lab {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recipe-hero-img {
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.15);
}

/* ---- RECIPE BODY LAYOUT ---- */
.recipe-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  padding-top: 64px;
  padding-bottom: 80px;
  align-items: start;
}

/* ---- SIDEBAR ---- */
.recipe-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 80px; }

.sidebar-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.sidebar-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border);
}

.sidebar-card h2 small {
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 400;
}

.ingredient-section { margin-bottom: 20px; }
.ingredient-section:last-of-type { margin-bottom: 0; }

.ingredient-section h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.ingredient-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ingredient-section li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: flex;
  gap: 8px;
  align-items: baseline;
  line-height: 1.45;
}

.qty {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--red);
  flex-shrink: 0;
  min-width: 52px;
  font-size: 0.82rem;
}

.sidebar-tip {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(192,57,43,0.05);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.sidebar-tip strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--red);
  margin-bottom: 4px;
}

.sidebar-tip p { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }

.nutrition-card { }

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.nutrition-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 10px 6px;
}

.n-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
}

.n-lab {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* ---- RECIPE MAIN ---- */
.recipe-section { margin-bottom: 56px; }
.recipe-section:last-child { margin-bottom: 0; }

.recipe-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border);
}

.recipe-section p { font-size: 0.97rem; color: var(--ink-soft); line-height: 1.8; }

/* ---- STEPS ---- */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  min-width: 48px;
  line-height: 1.1;
  flex-shrink: 0;
}

.step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-body p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

.step-tip {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(196,146,42,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---- NOTES ---- */
.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.note-item {
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1.5px solid var(--border);
}

.note-item h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.note-item p { font-size: 0.85rem; color: var(--ink-muted); margin: 0; line-height: 1.55; }

/* ---- RELATED ---- */
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.related-card {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  align-items: center;
}

.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.related-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.related-region {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 2px;
}

.related-body h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.related-body p { font-size: 0.78rem; color: var(--ink-muted); margin: 0; font-family: 'DM Sans', sans-serif; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--ink);
  padding: 56px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.5); max-width: 240px; }
.footer-brand .logo-text { color: var(--white); }

.footer-links h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .recipe-grid { grid-template-columns: 1fr 1fr; }
  .recipe-card--hero { grid-column: span 2; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 48px; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .ingredient-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .recipe-body { grid-template-columns: 1fr; }
  .recipe-sidebar { position: static; }
  .recipe-hero-inner { grid-template-columns: 1fr; }
  .recipe-hero-img { display: none; }
  .flavour-wheel { display: none; }
}

@media (max-width: 680px) {
  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-card--hero { grid-column: span 1; }
  .recipe-grid--list { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: 1fr 1fr; }
  .ingredient-grid { grid-template-columns: 1fr 1fr; }
  .notes-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .nutrition-grid { grid-template-columns: repeat(4, 1fr); }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--cream); border-bottom: 1.5px solid var(--border); padding: 16px 24px; gap: 4px; box-shadow: var(--shadow-md); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 16px; }
  .technique-item { flex-direction: column; gap: 8px; }
  .technique-num { font-size: 2rem; min-width: unset; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .tips-inner { flex-direction: column; gap: 24px; }
  .recipe-quickstats { gap: 10px; }
  .qs-item { min-width: 60px; padding: 8px 10px; }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tag { animation: fadeUp 0.5s ease both; }
.hero-title { animation: fadeUp 0.5s 0.1s ease both; }
.hero-subtitle { animation: fadeUp 0.5s 0.2s ease both; }
.hero-search { animation: fadeUp 0.5s 0.3s ease both; }
.hero-stats { animation: fadeUp 0.5s 0.4s ease both; }

.recipe-card {
  animation: fadeUp 0.4s ease both;
}

.recipe-card:nth-child(2) { animation-delay: 0.08s; }
.recipe-card:nth-child(3) { animation-delay: 0.16s; }
