/* ==========================================================================
   Recipes for Family — design system
   Warm, appetizing, family-friendly. Fraunces (headings) + Nunito Sans (body).
   ========================================================================== */

:root {
  /* Palette */
  --bg: #FBF6EE;
  --bg-soft: #F4EBDC;
  --surface: #FFFFFF;
  --surface-2: #FFF9F0;
  --ink: #2E2118;
  --ink-soft: #4A3A2E;
  --muted: #8A7766;
  --line: #EDE2D2;
  --brand: #E2613A;
  --brand-dark: #C64A26;
  --brand-soft: #FBE4D8;
  --herb: #3E7C4F;
  --herb-soft: #E3EFE5;
  --gold: #E9A23B;
  --gold-soft: #FCEFD9;
  --berry: #B45A7C;
  --info: #3A6EA5;

  /* Typography */
  --font-head: "Fraunces", "Georgia", serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  /* Radii & shadows */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(46, 33, 24, 0.06), 0 4px 12px rgba(46, 33, 24, 0.05);
  --shadow-md: 0 6px 24px rgba(46, 33, 24, 0.10);
  --shadow-lg: 0 18px 50px rgba(46, 33, 24, 0.14);

  /* Layout */
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 74px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 500px at 85% -10%, rgba(226, 97, 58, 0.07), transparent 60%),
    radial-gradient(900px 420px at -10% 15%, rgba(62, 124, 79, 0.06), transparent 55%);
  background-attachment: fixed;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style-position: inside; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.12rem; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container); margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.28rem; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 38px; height: 38px; }
.brand em { font-style: normal; color: var(--brand); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  color: var(--ink-soft); font-weight: 700; font-size: 0.98rem;
  padding: 9px 14px; border-radius: var(--r-pill); transition: background var(--t-fast), color var(--t-fast);
}
.main-nav a:hover { background: var(--surface-2); text-decoration: none; }  .main-nav a.active { color: var(--brand-dark); background: var(--brand-soft); }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 22px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--t-med) var(--ease), opacity var(--t-med);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  body.nav-open .main-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 13px 16px; font-size: 1.05rem; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner { padding-block: clamp(48px, 8vw, 96px) clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--herb-soft); color: var(--herb);
  font-weight: 800; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--r-pill); margin-bottom: 20px;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--brand); font-style: italic; font-weight: 600; }
.hero .lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 56ch; margin-bottom: 28px; }

.hero-search { display: flex; gap: 10px; max-width: 460px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 6px 6px 6px 20px; box-shadow: var(--shadow-sm); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.hero-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(226, 97, 58, 0.12); }
.hero-search input { flex: 1; border: none; outline: none; background: none; font-size: 1rem; min-width: 0; }
.hero-search button { background: var(--brand); color: #fff; font-weight: 800; padding: 12px 22px; border-radius: var(--r-pill); transition: background var(--t-fast), transform var(--t-fast); }
.hero-search button:hover { background: var(--brand-dark); transform: scale(1.02); }

.hero-stats { display: flex; gap: clamp(20px, 4vw, 44px); margin-top: 34px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--brand-dark); }
.hero-stats .stat span { font-size: 0.9rem; color: var(--muted); font-weight: 700; }

.hero-art { position: relative; }
.hero-art .plate {
  aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.55), transparent 42%),
    linear-gradient(145deg, #FFE9B8, #F6C97E 55%, #EFAF5C);
  box-shadow: var(--shadow-lg), inset 0 -6px 24px rgba(180, 110, 30, 0.18);
  display: grid; place-items: center; font-size: clamp(96px, 16vw, 168px);
  position: relative; overflow: hidden;
  animation: floaty 7s ease-in-out infinite;
}
.hero-art .plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
.hero-art .ring { position: absolute; inset: -5.5%; border-radius: 50%; border: 2px dashed rgba(226, 97, 58, 0.4); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-art .badge {
  position: absolute; background: var(--surface); border-radius: var(--r-md);
  padding: 10px 16px; box-shadow: var(--shadow-md); font-weight: 800; font-size: 0.9rem;
  display: flex; align-items: center; gap: 8px;
}
.hero-art .badge b { color: var(--brand-dark); }
.hero-art .badge.b1 { top: 4%; left: -6%; }
.hero-art .badge.b2 { bottom: 8%; right: -4%; background: var(--ink); color: #fff; }
.hero-art .badge.b2 b { color: var(--gold); }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  /* Big, image-first hero photo on mobile (same sizing language as the recipe gallery slides) */
  .hero-art { width: 100%; max-width: min(560px, 100%); margin-inline: auto; }
  .hero-art .plate { font-size: clamp(110px, 30vw, 200px); }
  .hero-art .badge { font-size: 0.84rem; padding: 9px 13px; }
  .hero-art .badge.b1 { left: 0; }
  .hero-art .badge.b2 { right: 0; }
}

/* ---------- Section shells ---------- */
.section { padding-block: clamp(40px, 6vw, 72px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 6px; }
.section-head p { color: var(--muted); max-width: 52ch; }
.section-head .link-more { font-weight: 800; white-space: nowrap; padding-bottom: 4px; border-bottom: 2px solid var(--brand-soft); transition: border-color var(--t-fast); }
.section-head .link-more:hover { border-color: var(--brand); text-decoration: none; }

/* ---------- Category pills ---------- */
.cat-pills { display: flex; gap: 12px; flex-wrap: wrap; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-pill);
  padding: 11px 20px; font-weight: 800; color: var(--ink-soft);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.cat-pill:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-md); text-decoration: none; }
.cat-pill .ico { font-size: 1.25rem; }

/* ---------- Recipe cards ---------- */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.recipe-card {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med), border-color var(--t-med);
}
.recipe-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(226, 97, 58, 0.35); text-decoration: none; }

.card-art { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 58px; overflow: hidden; }
.card-art::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.5), transparent 50%); pointer-events: none; }
/* Zoom the artwork slightly so the dish fills the card (crops the art's title bar) */
.card-art img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform var(--t-med) var(--ease); }
.recipe-card:hover .card-art img { transform: scale(1.18); }
.card-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255, 255, 255, 0.92); color: var(--ink-soft);
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.22rem; line-height: 1.25; }
.card-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.86rem; color: var(--muted); font-weight: 700; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-desc { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 0.92rem; color: var(--ink-soft); }
.rating .stars { color: var(--gold); letter-spacing: 1px; }
.rating .count { color: var(--muted); font-weight: 700; font-size: 0.82rem; }
.time-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--bg-soft); border-radius: var(--r-pill); padding: 5px 12px; font-weight: 800; font-size: 0.84rem; color: var(--ink-soft); }

/* Art gradients per recipe (set inline via style attr or class) */
.art-lasagna { background: linear-gradient(150deg, #F9D8C0, #EFB28A); }
.art-pancakes { background: linear-gradient(150deg, #FCE9B8, #F2C86C); }
.art-chicken { background: linear-gradient(150deg, #E7F3D8, #BFDCA0); }
.art-soup { background: linear-gradient(150deg, #F9CEC0, #E98A6B); }
.art-cookies { background: linear-gradient(150deg, #EFD9C4, #D9A97E); }
.art-mac { background: linear-gradient(150deg, #FBE5B0, #F0BE6C); }
.art-banana { background: linear-gradient(150deg, #F6E7B8, #E8C56E); }
.art-fajitas { background: linear-gradient(150deg, #F5D8C8, #DE9A6E); }
.art-oats { background: linear-gradient(150deg, #E8E3F5, #BCB2DE); }
.art-minestrone { background: linear-gradient(150deg, #D9EBD8, #9CC89B); }

/* ---------- Featured / how it works ---------- */
.feature-band { background: var(--ink); color: #F7EFE4; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.feature-band::before { content: "🍽️"; position: absolute; right: -20px; top: -30px; font-size: 190px; opacity: 0.08; transform: rotate(12deg); }
.feature-band h2 { color: #fff; }
.feature-band p { color: rgba(247, 239, 228, 0.85); max-width: 60ch; }
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; margin-top: 30px; }
.step-card { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--r-md); padding: 22px; }
.step-card .num { font-family: var(--font-head); font-size: 1.9rem; color: var(--gold); display: block; margin-bottom: 8px; }
.step-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.step-card p { font-size: 0.94rem; color: rgba(247, 239, 228, 0.82); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.faq-item:hover { border-color: rgba(226, 97, 58, 0.4); }
.faq-item.open { box-shadow: var(--shadow-sm); border-color: rgba(226, 97, 58, 0.55); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; text-align: left; font-weight: 800; font-size: 1.04rem; color: var(--ink); }
.faq-q .chev { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; font-size: 0.8rem; transition: transform var(--t-med) var(--ease), background var(--t-fast); }
.faq-item.open .chev { transform: rotate(180deg); background: var(--brand-soft); color: var(--brand-dark); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t-med) var(--ease); }  .faq-a-inner { padding: 6px 22px 24px; color: var(--ink-soft); }
.faq-a-inner p + p { margin-top: 10px; }

/* ---------- Recipe page ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 700; color: var(--muted); padding-top: 26px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-dark); }
.crumbs .sep { opacity: 0.5; }

.recipe-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 60px); align-items: center; padding-block: clamp(26px, 4vw, 48px) clamp(30px, 5vw, 56px); }
.recipe-hero .eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 13px; border-radius: var(--r-pill); margin-bottom: 16px; }
.recipe-hero h1 { margin-bottom: 14px; }
.recipe-hero .deck { color: var(--ink-soft); font-size: 1.08rem; max-width: 56ch; margin-bottom: 22px; }

.recipe-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 24px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.fact b { display: block; font-family: var(--font-head); font-size: 1.12rem; color: var(--brand-dark); }
.fact span { font-size: 0.8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.recipe-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 0.98rem;
  padding: 13px 24px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--brand); background: var(--surface-2); }
.btn.herb { background: var(--herb); }
.btn.herb:hover { background: #2F6540; }
.btn.small { padding: 9px 16px; font-size: 0.9rem; }

.hero-art-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.hero-art-card .inner { aspect-ratio: 1 / 1; display: grid; place-items: center; font-size: clamp(90px, 13vw, 150px); position: relative; overflow: hidden; }
.hero-art-card .inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero-art-card .plate-tag { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.94); border-radius: var(--r-pill); padding: 8px 18px; font-weight: 800; font-size: 0.85rem; box-shadow: var(--shadow-sm); display: flex; gap: 6px; align-items: center; white-space: nowrap; }

/* Jump nav */
.jump-nav { position: sticky; top: calc(var(--header-h) + 8px); z-index: 40; display: flex; gap: 8px; flex-wrap: wrap; background: rgba(251,246,238,0.9); backdrop-filter: blur(10px); border-radius: var(--r-pill); padding: 8px; box-shadow: var(--shadow-sm); margin-bottom: 34px; width: fit-content; max-width: 100%; }
.jump-nav a { font-weight: 800; font-size: 0.88rem; color: var(--ink-soft); padding: 8px 16px; border-radius: var(--r-pill); transition: background var(--t-fast), color var(--t-fast); }
.jump-nav a:hover { background: var(--surface-2); text-decoration: none; }
.jump-nav a.on { background: var(--brand); color: #fff; }

@media (max-width: 920px) {
  /* Mobile TOC: show every section in a tidy grid — no hidden horizontal overflow */
  .jump-nav {
    width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px; overflow: visible; border-radius: var(--r-md); position: static;
    -webkit-mask-image: none; mask-image: none;
  }
  .jump-nav a { white-space: normal; text-align: center; padding: 11px 10px; }
}

/* Two-column recipe body */
.recipe-body { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.recipe-body > .side { position: sticky; top: calc(var(--header-h) + 76px); }
@media (max-width: 920px) { .recipe-body { grid-template-columns: 1fr; } .recipe-body > .side { position: static; } }

/* Mobile: recipe hero collapses to one column (matches the recipe-body breakpoint) */
@media (max-width: 920px) {
  /* Mobile structure: section title → section description → section photo → the rest.
     Desktop keeps the two-column layout (copy left, photo right) — untouched. */
  .recipe-hero { display: flex; flex-direction: column; gap: 22px; }
  .recipe-hero-copy { display: contents; }
  .recipe-hero .eyebrow { order: 1; }
  .recipe-hero h1 { order: 2; margin-bottom: 0; }
  .recipe-hero .deck { order: 3; margin-bottom: 0; }
  /* Main photo goes big on mobile — same width as the gallery slides (min(78%, 560px)) */
  .hero-art-card { order: 4; width: 100%; max-width: 560px; margin-inline: auto; }
  .hero-art-card .inner { aspect-ratio: 16 / 10; font-size: clamp(72px, 18vw, 110px); }
  .hero-art-card .plate-tag { white-space: normal; text-align: center; max-width: calc(100% - 20px); }
  .recipe-facts { order: 5; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .recipe-actions { order: 6; }
}

/* Anchor targets must clear the sticky header + sticky TOC when jumped to */
.panel[id], .related, .gallery, .video-panel, #related, #gallery {
  scroll-margin-top: calc(var(--header-h) + 110px);
}
@media (max-width: 920px) {
  .panel[id], .related, .gallery, .video-panel, #related, #gallery {
    scroll-margin-top: calc(var(--header-h) + 90px);
  }
}

/* Mobile: bigger, image-first thumbnails */
@media (max-width: 640px) {
  .card-art { aspect-ratio: 16 / 11; font-size: 64px; }
  .card-art img { transform: scale(1.18); }
  .recipe-card:hover .card-art img { transform: scale(1.22); }
}

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 24px; }
.panel h2 { font-size: 1.5rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.panel .sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }

/* Ingredient scaling */
.serving-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.serving-row .yield { font-weight: 800; }
.serving-ctrl { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-soft); border-radius: var(--r-pill); padding: 4px; }
.serving-ctrl button { width: 34px; height: 34px; border-radius: 50%; font-size: 1.15rem; font-weight: 800; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform var(--t-fast), background var(--t-fast); display: grid; place-items: center; }
.serving-ctrl button:hover { background: var(--brand); color: #fff; transform: scale(1.06); }
.serving-ctrl .val { min-width: 52px; text-align: center; font-weight: 900; font-size: 1.02rem; }

.ing-list { list-style: none; display: grid; gap: 2px; }
.ing-list li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 8px; border-radius: var(--r-sm); transition: background var(--t-fast); }
.ing-list li:hover { background: var(--surface-2); }
.ing-list li.done { opacity: 0.55; }
.ing-list li.done .txt { text-decoration: line-through; text-decoration-color: var(--brand); }  .ing-check { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; border: 2px solid var(--line); border-radius: 7px; background: var(--surface); cursor: pointer; display: grid; place-items: center; color: transparent; font-size: 0.8rem; transition: all var(--t-fast); }
  .ing-list li.done .ing-check { background: var(--herb); border-color: var(--herb); color: #fff; }
  .ing-list li .ing-group { flex-shrink: 0; font-weight: 900; font-size: 0.8rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--brand-dark); background: var(--brand-soft); border-radius: var(--r-pill); padding: 3px 10px; align-self: flex-start; margin-top: 3px; white-space: nowrap; }
  .ing-icon { flex-shrink: 0; width: 24px; font-size: 1.15rem; line-height: 1.4; margin-top: 1px; text-align: center; }
  .ing-list .txt { min-width: 0; }

/* Instructions */
.steps { list-style: none; counter-reset: step; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.steps li::before {
  content: counter(step); width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark)); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1.35rem;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  grid-column: 1; grid-row: 1;
}
.steps li > * { grid-column: 2; }
.steps li b { display: block; font-size: 1.06rem; margin-bottom: 2px; }
.steps li p { color: var(--ink-soft); max-width: 68ch; overflow-wrap: break-word; }
.step-tip { margin-top: 10px; background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 10px 14px; font-size: 0.92rem; color: var(--ink-soft); }
.step-tip b { color: var(--ink); }

/* Nutrition */
.nutri-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.nutri-table th, .nutri-table td { text-align: left; padding: 10px 4px; border-bottom: 1px dashed var(--line); }
.nutri-table th { font-weight: 800; color: var(--muted); text-transform: uppercase; font-size: 0.76rem; letter-spacing: 0.05em; }
.nutri-table td b { font-family: var(--font-head); font-size: 1.05rem; }
.nutri-note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }

/* Why it works / tips boxes */
.tip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.tip-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.tip-card .emoji { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.tip-card b { display: block; margin-bottom: 4px; font-size: 1.02rem; }
.tip-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Photo gallery (recipe pages, right after the TOC) ---------- */
.gallery { margin: 0 0 36px; }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.gallery-head h2 { font-size: 1.5rem; }
.gallery-head p { color: var(--muted); font-size: 0.95rem; }
.gallery-arrows { display: flex; gap: 8px; }
.g-arrow {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface); border: 1.5px solid var(--line);
  font-size: 1.5rem; line-height: 1; color: var(--ink-soft); font-weight: 800;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.g-arrow:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.g-arrow:disabled { opacity: 0.4; pointer-events: none; }
.gallery-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px;
}
.gallery-track::-webkit-scrollbar { display: none; }
.g-slide {
  flex: 0 0 min(78%, 560px); scroll-snap-align: center; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.g-slide img { aspect-ratio: 16 / 10; width: 100%; height: auto; object-fit: cover; transform: scale(1.08); display: block; }
.g-slide figcaption { padding: 10px 16px; font-weight: 800; font-size: 0.9rem; color: var(--ink-soft); background: var(--surface); }

/* ---------- Video section (after "Why this recipe works") ---------- */
.video-wrap { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Equipment photo cards (with shop links) ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tool-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 10px 10px 12px; overflow: hidden; text-align: center;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast), box-shadow var(--t-fast);
}
.tool-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-sm); text-decoration: none; }
.tool-photo { display: block; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(150deg, #F7F1E6, #E9DEC9); }
.tool-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tool-photo.noimg::before { content: "🍴"; font-size: 2.4rem; display: grid; place-items: center; height: 100%; }
.tool-name { font-size: 0.86rem; font-weight: 800; color: var(--ink); line-height: 1.25; }
.tool-shop { font-size: 0.78rem; font-weight: 800; color: var(--brand-dark); }

@media (max-width: 480px) {
  .tool-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .g-slide { flex-basis: 88%; }
}

/* ---------- Live full catalog ---------- */
.hero-count { margin-top: 16px; font-weight: 800; color: var(--ink-soft); }
.hero-count b { color: var(--brand-dark); font-family: var(--font-head); font-size: 1.18em; }

/* Author box */
.author-box { display: flex; gap: 18px; align-items: center; background: var(--herb-soft); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 28px); }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(145deg, var(--herb), #2F6540); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; flex-shrink: 0; }
.author-box b { font-family: var(--font-head); font-size: 1.12rem; display: block; }
.author-box p { font-size: 0.94rem; color: var(--ink-soft); }

/* Share bar */
.share-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.share-bar .lbl { font-weight: 800; font-size: 0.9rem; color: var(--muted); margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 9px 16px; font-weight: 800; font-size: 0.9rem; color: var(--ink-soft); transition: all var(--t-fast); }
.share-btn:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--brand-dark); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--ink); color: #fff; font-weight: 800; padding: 13px 22px; border-radius: var(--r-pill); box-shadow: var(--shadow-lg); z-index: 99; opacity: 0; transition: all var(--t-med) var(--ease); pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 64px) clamp(24px, 4vw, 40px); text-align: center; }
.page-hero .eyebrow { display: inline-flex; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 13px; border-radius: var(--r-pill); margin-bottom: 16px; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--ink-soft); max-width: 62ch; margin-inline: auto; font-size: 1.08rem; }

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.search-field { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 11px 20px; box-shadow: var(--shadow-sm); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.search-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(226, 97, 58, 0.12); }
.search-field input { flex: 1; border: none; outline: none; background: none; min-width: 0; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-weight: 800; font-size: 0.86rem; color: var(--ink-soft); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 8px 15px; transition: all var(--t-fast); }
.chip:hover { border-color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); font-weight: 700; display: none; }
.empty-state .big { font-size: 3rem; display: block; margin-bottom: 10px; }

/* ---------- About / contact / legal ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; margin-bottom: 12px; }
.prose h3 { margin-top: 28px; margin-bottom: 8px; }
.prose p { margin-bottom: 16px; color: var(--ink-soft); }
.prose ul, .prose ol { margin-bottom: 16px; color: var(--ink-soft); padding-left: 6px; }
.prose li { margin-bottom: 6px; }
.prose a { font-weight: 800; }

.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-block: 30px; }
.value-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; box-shadow: var(--shadow-sm); transition: transform var(--t-med) var(--ease); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card .emoji { font-size: 2rem; display: block; margin-bottom: 10px; }
.value-card b { font-family: var(--font-head); font-size: 1.1rem; display: block; margin-bottom: 6px; }
.value-card p { font-size: 0.94rem; color: var(--ink-soft); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-sm); }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 800; font-size: 0.92rem; margin-bottom: 7px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; background: var(--surface-2); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(226, 97, 58, 0.12); }
.form-field textarea { min-height: 140px; resize: vertical; }

.contact-side .panel { margin-top: 0; }  .contact-side .panel h3 { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
  .contact-side .panel p { font-size: 0.95rem; color: var(--ink-soft); }

.form-note { margin-top: 12px; font-weight: 800; min-height: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247, 239, 228, 0.82); margin-top: clamp(48px, 8vw, 88px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-block: clamp(40px, 6vw, 60px); }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.95rem; max-width: 34ch; }
.footer-col b { display: block; color: #fff; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: rgba(247, 239, 228, 0.8); font-size: 0.95rem; font-weight: 600; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.86rem; }
.footer-bottom a { color: rgba(247, 239, 228, 0.8); font-weight: 700; }
.footer-bottom a:hover { color: var(--gold); }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: grid; place-items: center; font-size: 1.05rem; transition: background var(--t-fast), transform var(--t-fast); }
.social-row a svg { width: 19px; height: 19px; }
.social-row a:hover { background: var(--brand); transform: translateY(-3px); text-decoration: none; }
.social-row a[aria-label="YouTube"]:hover { background: #FF0000; }
.social-row a[aria-label="Facebook"]:hover { background: #1877F2; }
.social-row a[aria-label="X"]:hover { background: #000; }
.social-row a[aria-label="Pinterest"]:hover { background: #E60023; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.back-top { position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1.2rem; box-shadow: var(--shadow-lg); display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(12px); transition: all var(--t-med) var(--ease); }
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: var(--brand); }

.trust-row { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 26px; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.92rem; color: var(--ink-soft); }

.star-line { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }

.review-quote { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--r-md); padding: 18px 22px; box-shadow: var(--shadow-sm); }
.review-quote + .review-quote { margin-top: 14px; }
.review-quote p { font-size: 0.97rem; color: var(--ink-soft); margin-bottom: 8px; }
.review-quote .who { font-weight: 800; font-size: 0.88rem; color: var(--muted); }

/* ---------- GDPR / ePrivacy cookie consent banner (bottom-left) ---------- */
.cookie-banner {
  position: fixed; left: 18px; bottom: 18px; z-index: 90;
  width: min(390px, calc(100vw - 36px));
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 18px 20px 16px;
  display: grid; gap: 12px;
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}
.cookie-banner.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-head { display: flex; align-items: center; gap: 11px; }
.cookie-head svg { width: 42px; height: 42px; flex-shrink: 0; }
.cookie-head b { font-family: var(--font-head); font-size: 1.04rem; line-height: 1.2; display: block; }
.cookie-head small { display: block; font-weight: 800; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-dark); }
.cookie-body { font-size: 0.89rem; color: var(--ink-soft); line-height: 1.55; }
.cookie-body a { font-weight: 800; color: var(--brand-dark); }
.cookie-body a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn {
  flex: 1 1 130px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: var(--r-pill); padding: 11px 16px; font-weight: 800; font-size: 0.92rem;
  border: 1.5px solid transparent; cursor: pointer;
  transition: all var(--t-fast);
}
.cookie-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.cookie-btn.accept { background: var(--brand); color: #fff; }
.cookie-btn.accept:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cookie-btn.decline { background: var(--surface); color: var(--ink-soft); border-color: var(--line); }
.cookie-btn.decline:hover { border-color: var(--muted); transform: translateY(-2px); }
@media (max-width: 480px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

.hidden-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print (recipes print beautifully) ---------- */
@media print {
  .site-header, .site-footer, .jump-nav, .recipe-actions, .share-bar, .back-top, .related, .author-box, .hero-art-card, .toast, .gallery, .video-panel, .video-wrap, .cookie-banner { display: none !important; }
  body { background: #fff; }
  .recipe-hero { grid-template-columns: 1fr; }
  .recipe-body { grid-template-columns: 1fr; }
  .recipe-body > .side { position: static; }
  .panel { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
  a { color: inherit; }
}
