/* ==========================================================================
   Easy Cooking — design system
   Brand colour comes straight from the logo (#B8321A on cream #FDF5EA).
   ========================================================================== */

:root {
  --brand: #B8321A;
  --brand-600: #9E2914;
  --brand-50: #FBE9E4;
  --cream: #FDF5EA;
  --cream-2: #F7EBDA;
  --paper: #FFFFFF;
  --ink: #2B1E18;
  --ink-2: #5A4A41;
  --muted: #7C6B61;
  --line: #EADCC9;
  --herb: #3F7D4E;
  --herb-50: #E8F2EA;
  --butter: #F6D58A;
  --amazon: #FF9900;
  --amazon-ink: #131921;
  --walmart: #0071DC;

  --font-display: "Fredoka", "Nunito", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(43, 30, 24, .06), 0 2px 8px rgba(43, 30, 24, .05);
  --shadow: 0 2px 6px rgba(43, 30, 24, .06), 0 12px 32px rgba(43, 30, 24, .08);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }
.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; }
mark { background: #FCE3C4; color: inherit; padding: 0 .15em; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .6em 1.15em;
  border-radius: 999px; border: 2px solid var(--b);
  background: var(--b); color: #fff;
  font: 600 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { color: #fff; background: var(--brand-600); border-color: var(--brand-600); transform: translateY(-1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand-50); color: var(--brand-600); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn--light:hover { background: var(--cream-2); color: var(--ink); border-color: var(--line); }
.btn--sm { min-height: 38px; font-size: .9rem; padding: .45em .9em; }
.btn--block { width: 100%; }
.btn--amazon { --b: var(--amazon); color: var(--amazon-ink); }
.btn--amazon:hover { background: #F08804; border-color: #F08804; color: var(--amazon-ink); }
.btn--walmart { --b: var(--walmart); }
.btn--walmart:hover { background: #005CB4; border-color: #005CB4; }
.btn--pin { --b: #E60023; }
.btn--pin:hover { background: #AD081B; border-color: #AD081B; }

.chip { display: inline-flex; align-items: center; gap: .35em; padding: .25em .7em; border-radius: 999px; background: var(--brand-50); color: var(--brand-600); font-weight: 600; font-size: .82rem; }
.chip--herb { background: var(--herb-50); color: var(--herb); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(253, 245, 234, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); flex: none; }
.logo:hover { color: var(--brand); }
.logo svg { width: 46px; height: 46px; }
.logo span { font: 600 1.6rem/1 var(--font-display); letter-spacing: -.02em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; padding: 8px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--cream-2); color: var(--brand); }
.nav .btn { margin-left: 8px; color: #fff; padding: .55em 1.05em; min-height: 42px; }
.nav .btn:hover { color: #fff; background: var(--brand-600); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .logo svg { width: 38px; height: 38px; }
  .logo span { font-size: 1.35rem; }
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .88rem; color: var(--muted); margin: 18px 0 10px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Generic sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.section--paper { background: var(--paper); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section__head p { color: var(--ink-2); margin: 0; max-width: 56ch; }
.eyebrow { font: 600 .8rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: 12px; display: block; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-s); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.05; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 30px; padding: 0; list-style: none; color: var(--ink-2); font-size: .95rem; }
.hero__proof li { display: flex; align-items: center; gap: 8px; }
.hero__proof svg { width: 20px; height: 20px; color: var(--herb); flex: none; }
.hero__media { position: relative; }
.hero__media .media { border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3.4; }
.hero__media .media img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge { position: absolute; left: -14px; bottom: 26px; background: var(--paper); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; }
.hero__badge strong { font: 600 1.6rem/1 var(--font-display); color: var(--brand); }
.hero__badge span { font-size: .85rem; color: var(--ink-2); line-height: 1.3; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__badge { left: 12px; bottom: 12px; }
}

/* ---------- Recipe cards (listing) ---------- */
[hidden] { display: none !important; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rcard { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.rcard__img { aspect-ratio: 4/3; overflow: hidden; background: var(--cream-2); }
.rcard__img img { width: 100%; height: 100%; object-fit: cover; }
.rcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rcard__body h3 { margin: 0; font-size: 1.2rem; }
.rcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .82rem; line-height: 1.3; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.rcard__meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; flex: none; }
.rcard__meta svg { width: 15px; height: 15px; flex: none; }
.rcard--soon { border-style: dashed; background: transparent; justify-content: center; align-items: center; text-align: center; padding: 32px; color: var(--muted); min-height: 260px; }
.rcard--soon:hover { transform: none; box-shadow: none; color: var(--muted); }

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; text-align: center; transition: .2s; }
.cat:hover { border-color: var(--brand); color: var(--brand); }
.cat__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--brand-50); display: grid; place-items: center; font-size: 1.6rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px; }
.feature__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--ink-2); margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--brand); color: #fff; border-radius: 32px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.newsletter h2 { color: #fff; }
.newsletter p { color: #FBE0D8; margin: 0; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input { flex: 1 1 220px; min-height: 52px; border-radius: 999px; border: 0; padding: 0 20px; font: inherit; color: var(--ink); }
.newsletter .btn { --b: var(--ink); min-height: 52px; }
.newsletter .btn:hover { background: #000; border-color: #000; }
.newsletter small { display: block; width: 100%; color: #F6CFC4; font-size: .82rem; }
.newsletter__ok { font-weight: 600; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E9DDD3; padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: #E9DDD3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer__brand .logo { color: #fff; }
.footer__brand p { color: #BCAEA4; font-size: .95rem; margin-top: 14px; max-width: 34ch; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.footer__legal { border-top: 1px solid #44352D; margin-top: 40px; padding-top: 22px; font-size: .82rem; color: #A89A90; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ==========================================================================
   Recipe page
   ========================================================================== */
.recipe-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-bottom: 28px; }
.recipe-head h1 { margin-bottom: .35em; }
.recipe-head .lead { margin-bottom: 18px; }
.byline { display: flex; align-items: center; gap: 8px 14px; font-size: .9rem; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.byline__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.byline__avatar svg { width: 22px; height: 22px; }
.byline strong { color: var(--ink); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); margin: 0 0 20px; padding: 0; }
.stats div { padding: 12px 10px; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.stats dd { margin: 2px 0 0; font: 600 1.15rem/1.2 var(--font-display); color: var(--ink); }
.recipe-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.recipe-media { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--cream-2); }
.recipe-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pin-btn { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: #E60023; color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.2); opacity: .96; }
.pin-btn:hover { color: #fff; background: #AD081B; }
.pin-btn svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .recipe-head { grid-template-columns: 1fr; }
  .recipe-media { order: -1; border-radius: 20px; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .recipe-actions .btn { flex: 1 1 calc(50% - 10px); }
}

.disclosure { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: var(--muted); background: var(--cream-2); border-radius: var(--radius-s); padding: 10px 14px; margin: 0 0 28px; }
.disclosure a { color: var(--ink-2); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.sidebar { display: grid; gap: 18px; align-self: stretch; align-content: start; }
.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
@media (max-width: 1020px) { .layout { grid-template-columns: 1fr; } .sidebar { display: none; } }

/* Quick answer (GEO-friendly summary) */
.quick-answer { border-left: 5px solid var(--brand); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px; margin-bottom: 32px; box-shadow: var(--shadow-s); }
.quick-answer h2 { font-size: 1.15rem; margin-bottom: .4em; display: flex; align-items: center; gap: 8px; }
.quick-answer p:last-child { margin-bottom: 0; }

.love { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; list-style: none; margin: 0 0 8px; }
.love li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: .95rem; color: var(--ink-2); }
.love strong { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
@media (max-width: 640px) { .love { grid-template-columns: 1fr; } }

/* Ingredient notes with inline product picks */
.notes-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.notes-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.notes-list .emoji { width: 44px; height: 44px; border-radius: 12px; background: var(--cream-2); display: grid; place-items: center; font-size: 1.4rem; }
.notes-list p { margin: 0; font-size: .97rem; color: var(--ink-2); }
.notes-list strong { color: var(--ink); }
.inline-pick { white-space: nowrap; font-weight: 600; }

/* ---------- Recipe card ---------- */
.recipe-card { background: var(--paper); border: 2px solid var(--line); border-radius: 28px; overflow: hidden; margin: 40px 0; scroll-margin-top: calc(var(--header-h) + 12px); }
.recipe-card__top { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 28px; background: linear-gradient(180deg, var(--cream-2), var(--paper)); border-bottom: 1px solid var(--line); align-items: center; }
.recipe-card__top img { border-radius: 18px; aspect-ratio: 1; object-fit: cover; }
.recipe-card__top h2 { margin-bottom: .3em; }
.recipe-card__top p { color: var(--ink-2); margin-bottom: 14px; font-size: .97rem; }
.recipe-card__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.recipe-card__body { padding: 28px; }
.recipe-card .stats { margin-bottom: 28px; }
@media (max-width: 640px) {
  .recipe-card { border-radius: 22px; margin-left: calc(var(--gutter) * -0.5); margin-right: calc(var(--gutter) * -0.5); }
  .recipe-card__top { grid-template-columns: 1fr; padding: 20px; }
  .recipe-card__top img { max-width: 140px; }
  .recipe-card__body { padding: 20px; }
}

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.toolbar h3 { margin: 0; font-size: 1.45rem; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; }
.seg { display: inline-flex; background: var(--cream-2); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 7px 13px; font-weight: 600; font-size: .88rem; color: var(--ink-2); min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--brand); box-shadow: var(--shadow-s); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.filters button { display: inline-flex; align-items: center; gap: .4em; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 14px; min-height: 38px; font-weight: 600; font-size: .9rem; color: var(--ink-2); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.filters button:hover { border-color: var(--brand); color: var(--brand); }
.filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filters button[hidden] { display: none; }
.filters__n { font-size: .78rem; opacity: .75; font-weight: 600; }
.stepper { display: inline-flex; align-items: center; background: var(--cream-2); border-radius: 999px; padding: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--paper); font-weight: 700; font-size: 1.1rem; display: grid; place-items: center; box-shadow: var(--shadow-s); }
.stepper output { min-width: 92px; text-align: center; font-weight: 600; font-size: .9rem; }

.ingredients { list-style: none; padding: 0; margin: 0 0 18px; }
.ing { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px dashed var(--line); }
.ing:last-child { border-bottom: 0; }
.ing input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid #D5C3AE; background: var(--paper); flex: none; display: grid; place-items: center; cursor: pointer; margin: 0; transition: .15s; }
.ing input:checked { background: var(--herb); border-color: var(--herb); }
.ing input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.ing label { flex: 1; cursor: pointer; line-height: 1.45; }
.ing .qty { font-weight: 700; color: var(--ink); }
.ing .note { color: var(--muted); font-size: .9em; }
.ing input:checked + label { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.ing input:checked + label .qty { color: var(--muted); }
.shop-toggle { flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.shop-toggle svg { width: 16px; height: 16px; }
.shop-toggle:hover, .shop-toggle[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); }
.shop-pop { flex-basis: 100%; display: none; gap: 8px; padding: 6px 0 2px 36px; flex-wrap: wrap; }
.ing.is-open { flex-wrap: wrap; }
.ing.is-open .shop-pop { display: flex; }
.shop-pop .btn { min-height: 34px; font-size: .82rem; padding: .35em .85em; }
@media (max-width: 480px) { .shop-toggle span { display: none; } .shop-toggle { width: 34px; padding: 0; justify-content: center; } }

/* Shop-the-list box */
.shopbox { border-radius: var(--radius-l); background: var(--cream); border: 1px solid var(--line); padding: 20px; margin: 18px 0 30px; }
.shopbox h4 { font-size: 1.1rem; margin-bottom: .3em; display: flex; align-items: center; gap: 8px; }
.shopbox p { color: var(--ink-2); font-size: .93rem; margin-bottom: 14px; }
.shopbox__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.shopbox__btns .btn { flex: 1 1 180px; }
.shopbox__extra { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: .88rem; }
.linkish { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Equipment */
.equip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 30px; padding: 0; list-style: none; }
.equip li { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.equip .emoji { font-size: 1.5rem; }
.equip strong { font-size: .95rem; line-height: 1.3; }
.equip a { font-size: .85rem; font-weight: 600; margin-top: auto; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 28px; counter-reset: step; }
.step { position: relative; padding: 0 0 26px 58px; counter-increment: step; }
.step::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font: 600 1.15rem/40px var(--font-display); text-align: center; }
.step::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step h4 { font-size: 1.12rem; margin: 6px 0 .4em; }
.step p { margin-bottom: .6em; }
.step__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.cue { display: flex; gap: 10px; background: var(--herb-50); color: #24502F; border-radius: 12px; padding: 10px 12px; font-size: .92rem; margin: 10px 0 8px; }
.cue b { flex: none; }
.timer-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--brand); color: var(--brand); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: .86rem; min-height: 36px; }
.timer-btn svg { width: 16px; height: 16px; }
.timer-btn.is-running { background: var(--brand); color: #fff; }
.timer-btn.is-done { background: var(--herb); border-color: var(--herb); color: #fff; animation: pulse 1s ease-in-out 3; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.step.is-done h4, .step.is-done p { opacity: .55; }
.step.is-done::before { background: var(--herb); content: "✓"; }
.step-check { border: 0; background: none; padding: 0; color: var(--muted); font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; }

.cook-cta { display: flex; align-items: center; gap: 20px; background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: 22px 24px; margin: 8px 0 28px; }
.cook-cta__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--brand); display: grid; place-items: center; flex: none; }
.cook-cta__icon svg { width: 30px; height: 30px; }
.cook-cta h4 { color: #fff; margin: 0 0 4px; font-size: 1.15rem; }
.cook-cta p { margin: 0; color: #CDBFB5; font-size: .92rem; }
.cook-cta .btn { margin-left: auto; }
@media (max-width: 640px) { .cook-cta { flex-wrap: wrap; } .cook-cta .btn { margin-left: 0; width: 100%; } }

.tips { background: var(--cream); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 26px; }
.tips ul { margin: 0; }
.tips li { margin-bottom: .5em; }

.nutrition { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 0; }
.nutrition div { border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.nutrition dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.nutrition dd { margin: 0; font: 600 1.1rem/1.3 var(--font-display); }
.fine { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* Shop cards (equipment & pantry) */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.product { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.product__img { aspect-ratio: 1.5; border-radius: 14px; background: var(--cream-2); display: grid; place-items: center; font-size: 3rem; }
.product h3 { font-size: 1.05rem; margin: 0; }
.product p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.product__tag { align-self: flex-start; }
.product__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.product__btns .btn { min-height: 40px; font-size: .86rem; padding: .4em .6em; }

/* Sidebar widgets */
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px; }
.side-card h3 { font-size: 1.1rem; }
.side-card p { font-size: .92rem; color: var(--ink-2); }
.side-card .btn + .btn { margin-top: 8px; }
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; font-size: .93rem; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a.is-active { background: var(--cream-2); color: var(--brand); }

/* FAQ */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 600; position: relative; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font-size: 1.2rem; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq__a { padding: 0 18px 16px; color: var(--ink-2); }
.faq .faq__a p:last-child { margin: 0; }

/* Save-for-later Pinterest block */
.pin-save { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; background: #FFF0F2; border-radius: var(--radius-l); padding: 22px; margin: 36px 0; }
.pin-save img { border-radius: 14px; box-shadow: var(--shadow); }
.pin-save h2 { font-size: 1.4rem; }
@media (max-width: 560px) { .pin-save { grid-template-columns: 110px 1fr; gap: 16px; padding: 16px; } .pin-save h2 { font-size: 1.15rem; } .pin-save p { font-size: .9rem; } }

/* Author box (E-E-A-T) */
.author { display: flex; gap: 18px; align-items: flex-start; padding: 22px; }
.author__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; flex: none; color: #fff; }
.author__avatar svg { width: 40px; height: 40px; }
.author h3 { margin-bottom: .25em; }
.author p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Mobile sticky action bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { flex: 1; min-height: 48px; font-size: .95rem; }
@media (max-width: 1020px) { .mobile-bar { display: flex; } body.has-mobile-bar .site-footer { padding-bottom: 96px; } }

/* Pinterest welcome toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 24px); opacity: 0; visibility: hidden; z-index: 60; background: var(--ink); color: #fff; padding: 12px 12px 12px 18px; border-radius: 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); width: max-content; max-width: calc(100vw - 32px); transition: transform .3s ease, opacity .3s ease, visibility .3s; font-size: .95rem; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast .btn { min-height: 38px; font-size: .88rem; }
.toast__close { border: 0; background: transparent; color: #BCAEA4; font-size: 1.4rem; line-height: 1; padding: 4px 6px; }
@media (max-width: 1020px) { .toast { bottom: 84px; } }

/* Shopping list dialog */
.dialog { border: 0; border-radius: var(--radius-l); padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow); color: var(--ink); }
.dialog::backdrop { background: rgba(43, 30, 24, .5); }
.dialog__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dialog__head h2 { font-size: 1.3rem; margin: 0; }
.dialog__body { padding: 18px 22px 22px; max-height: 70vh; overflow: auto; }
.dialog__close { border: 0; background: var(--cream-2); width: 36px; height: 36px; border-radius: 50%; font-size: 1.3rem; }
.shoplist { list-style: none; padding: 0; margin: 0 0 16px; }
.shoplist li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: center; font-size: .95rem; }
.shoplist li div { display: flex; gap: 6px; flex: none; }
.shoplist a { font-size: .8rem; font-weight: 700; text-decoration: none; padding: 4px 9px; border-radius: 999px; }
.shoplist a.am { background: var(--amazon); color: var(--amazon-ink); }
.shoplist a.wm { background: var(--walmart); color: #fff; }

/* ==========================================================================
   Cook Mode (full-screen, voice-guided)
   ========================================================================== */
.cook { position: fixed; inset: 0; z-index: 100; background: #1E1612; color: #FBF3EA; display: none; flex-direction: column; }
.cook.is-open { display: flex; }
body.cook-open { overflow: hidden; }
.cook__top { display: flex; align-items: center; gap: 12px; padding: 12px clamp(14px, 3vw, 28px); border-bottom: 1px solid #3A2C25; }
.cook__title { font: 600 1rem/1.2 var(--font-display); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.cook__title small { display: block; font: 500 .78rem/1.3 var(--font-body); color: #B9A79B; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid #3A2C25; background: #2A201B; color: #FBF3EA; display: grid; place-items: center; flex: none; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); }
.icon-btn:hover { border-color: #6B5244; }
.cook__progress { height: 4px; background: #3A2C25; }
.cook__progress span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .35s ease; }
.cook__dots { display: flex; gap: 6px; justify-content: center; padding: 12px; flex-wrap: wrap; }
.cook__dots button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #4A3930; background: transparent; color: #B9A79B; font-weight: 600; font-size: .85rem; }
.cook__dots button.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.cook__dots button.is-past { background: #3A2C25; color: #FBF3EA; }

.cook__main { flex: 1; overflow: auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); padding: clamp(16px, 3vw, 36px) clamp(16px, 4vw, 56px); align-items: start; max-width: 1280px; width: 100%; margin: 0 auto; }
.cook__label { font: 600 .8rem/1 var(--font-body); color: #F4A38F; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cook__label .chip { background: #3A2C25; color: #FBF3EA; letter-spacing: 0; text-transform: none; }
.cook__step-title { font: 600 clamp(1.6rem, 3.6vw, 2.5rem)/1.12 var(--font-display); color: #fff; margin: 0 0 14px; }
.cook__text { font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.55; color: #F3E8DE; margin-bottom: 18px; }
.cook__text mark { background: rgba(184, 50, 26, .35); color: #fff; padding: 0 .2em; border-radius: 4px; }
.cook__cue { background: #23382A; color: #CFEBD5; border-radius: 14px; padding: 14px 16px; font-size: 1.02rem; margin-bottom: 12px; display: flex; gap: 10px; }
.cook__tip { background: #2A201B; color: #E6D6CA; border-radius: 14px; padding: 14px 16px; font-size: .98rem; display: flex; gap: 10px; }
.cook__side { display: grid; gap: 16px; }
.cook__visual { position: relative; border-radius: 22px; overflow: hidden; background: #2A201B; aspect-ratio: 4/3; }
.cook__visual svg, .cook__visual video { width: 100%; height: 100%; object-fit: cover; }
.cook__visual figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.55); padding: 5px 10px; border-radius: 999px; font-size: .78rem; color: #fff; }
.cook__ings { background: #2A201B; border-radius: 18px; padding: 14px 16px; }
.cook__ings h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.cook__ings ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 1rem; }
.cook__ings li b { color: #F4A38F; }
.cook__ings .none { color: #B9A79B; font-size: .95rem; }

.cook__timer { display: flex; align-items: center; gap: 16px; background: #2A201B; border-radius: 18px; padding: 14px 16px; }
.ring { position: relative; width: 84px; height: 84px; flex: none; }
.ring svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .bg { stroke: #3A2C25; }
.ring .fg { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring output { position: absolute; inset: 0; display: grid; place-items: center; font: 600 1.15rem/1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.cook__timer.is-done .fg { stroke: #5CB270; }
.cook__timer-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cook__timer p { margin: 0 0 8px; font-size: .92rem; color: #CDBFB5; }

.cook__bottom { display: flex; align-items: center; gap: 12px; padding: 12px clamp(14px, 3vw, 28px) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #3A2C25; }
.cook__bottom .btn { min-height: 54px; font-size: 1.05rem; }
.cook__bottom .btn--light { background: #2A201B; color: #FBF3EA; border-color: #3A2C25; }
.cook__bottom .btn--light:hover { background: #3A2C25; color: #fff; }
.cook__speak { margin: 0 auto; display: flex; gap: 10px; }
.cook__next { min-width: 160px; }
.cook__listening { display: none; align-items: center; gap: 8px; font-size: .85rem; color: #CFEBD5; }
.cook__listening.is-on { display: inline-flex; }
.cook__listening i { width: 9px; height: 9px; border-radius: 50%; background: #5CB270; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.cook__heard { position: absolute; bottom: calc(96px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 3; width: max-content; max-width: calc(100vw - 32px); text-align: center; background: #3A2C25; color: #F3E8DE; padding: 8px 16px; border-radius: 16px; font-size: .9rem; line-height: 1.35; box-shadow: 0 6px 20px rgba(0,0,0,.35); opacity: 0; transition: opacity .2s; pointer-events: none; }
.cook__heard.is-visible { opacity: 1; }
.cook__heard.is-ok { background: #23382A; color: #CFEBD5; }
.cook__heard.is-error { background: #5C1D12; color: #FFE1D9; }

.timer-dock { position: absolute; right: clamp(14px, 3vw, 28px); top: 76px; display: grid; gap: 8px; z-index: 2; }
.timer-dock button { border: 0; background: var(--brand); color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: .85rem; font-variant-numeric: tabular-nums; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.timer-dock button.is-done { background: #3E9A55; animation: pulse 1s ease-in-out infinite; }

.cook__done { text-align: center; max-width: 560px; margin: 0 auto; grid-column: 1 / -1; padding: 20px 0; }
.cook__done h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cook__done p { color: #E6D6CA; }
.cook__done .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

.cook__help { font-size: .82rem; color: #9C8A7E; text-align: center; padding: 0 16px 6px; }
.cook__help kbd { background: #2A201B; border: 1px solid #3A2C25; border-radius: 5px; padding: 1px 6px; font-family: inherit; color: #E6D6CA; }

@media (max-width: 860px) {
  .cook__main { grid-template-columns: 1fr; }
  .cook__side { grid-template-columns: 1fr; }
  .cook__visual { aspect-ratio: 16/9; max-height: 28vh; }
  .cook__dots { display: none; }
  .cook__bottom .btn--light span { display: none; }
  .cook__bottom .btn { min-height: 52px; padding: .5em .9em; }
  .cook__next { min-width: 0; flex: 1; }
  .cook__help { display: none; }
}
@media (max-width: 860px) and (max-height: 700px) { .cook__visual { display: none; } }

/* Scene animations used in Cook Mode step visuals */
.scene .bubble { animation: rise 1.6s ease-in infinite; transform-box: fill-box; }
.scene .bubble:nth-child(2n) { animation-delay: .5s; }
.scene .bubble:nth-child(3n) { animation-delay: .9s; }
@keyframes rise { 0% { transform: translateY(8px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-34px); opacity: 0; } }
.scene .steam { animation: steam 3s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.scene .steam + .steam { animation-delay: 1s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px) scaleY(.8); } 40% { opacity: .8; } 100% { opacity: 0; transform: translateY(-26px) scaleY(1.1); } }
.scene .stir { animation: stir 2.4s ease-in-out infinite; transform-box: view-box; }
@keyframes stir { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.scene .shake { animation: shake 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes shake { 0%, 100% { transform: rotate(-14deg) translateY(0); } 50% { transform: rotate(10deg) translateY(-6px); } }
.scene .fall { animation: fall 1.2s linear infinite; }
.scene .fall:nth-child(2n) { animation-delay: .4s; }
.scene .fall:nth-child(3n) { animation-delay: .8s; }
@keyframes fall { 0% { transform: translateY(-10px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(70px); opacity: 0; } }
.scene .flip { animation: flip 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes flip { 0%, 35% { transform: translateY(0) rotate(0); } 55% { transform: translateY(-40px) rotate(180deg); } 75%, 100% { transform: translateY(0) rotate(360deg); } }
.scene .sizzle { animation: sizzle .5s steps(2) infinite; }
@keyframes sizzle { 50% { opacity: .3; } }
.scene .toss { animation: toss 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
@keyframes toss { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-22px) rotate(-4deg); } 60% { transform: translateY(-14px) rotate(3deg); } }
.scene .drip { animation: drip 1.6s ease-in infinite; }
@keyframes drip { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(60px); opacity: 0; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .sidebar, .mobile-bar, .toast, .recipe-actions, .pin-btn, .no-print, .shop-toggle, .shop-pop, .shopbox, .cook-cta, .timer-btn, .step-check, .controls, .newsletter, .pin-save, .disclosure, .crumbs { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  body.print-card * { visibility: hidden; }
  body.print-card .recipe-card, body.print-card .recipe-card * { visibility: visible; }
  body.print-card .recipe-card { position: absolute; left: 0; top: 0; width: 100%; }
  .layout { display: block; }
  .recipe-card { border: 1px solid #ccc; margin: 0; }
  .step::after { display: none; }
  a { color: inherit; text-decoration: none; }
}

/* small-screen refinements */
.rcard__body .chip { align-self: flex-start; }
@media (max-width: 560px) { .product__img { aspect-ratio: 2.4; font-size: 2.4rem; } }
