/* Quarantine Cravings — site styles
   Ported from the Claude Design prototype in design/Quarantine Cravings.dc.html.
   Every value here comes from that file; the only additions are the responsive
   breakpoints and print rules (the prototype had neither). */

/* ------------------------------------------------------------------ tokens */
:root {
  --cream: #F5EFE7;
  --paper: #fff;

  --ink: #33302C;
  --ink-soft: #4A453E;
  --muted: #5C564E;
  --muted-2: #857E75;
  --muted-3: #A9A29A;

  --rose: #C9556F;
  --rose-dark: #A8405A;
  --rose-mid: #D4657F;
  --rose-pale: #F2DDE3;

  --sand: #EFE7DC;
  --blue-pale: #E4EBF5;
  --blue-mid: #A9C0E0;
  --green-pale: #E9F1E2;
  --green-mid: #C4DCB0;

  --on-dark: #EDE6DC;
  --on-dark-muted: #B5ADA2;

  --hair: rgba(51, 48, 44, .1);
  --hair-soft: rgba(51, 48, 44, .08);
  --hair-card: rgba(51, 48, 44, .09);
  --hair-strong: rgba(51, 48, 44, .18);
  --hair-btn: rgba(51, 48, 44, .25);

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: Karla, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad-x: 56px;
  --header-h: 82px;
}

/* ------------------------------------------------------------------- base */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding: 0 0 1px;
}

/* Headings carry document structure, not size — every one of them is sized by
   a class below, so the UA's margins and bold would only fight the design.
   Instrument Serif ships one weight; leaving bold on would synthesise it. */
h1, h2, h3 { margin: 0; font-weight: 400; }

a { color: var(--rose); text-decoration: none; }
a:hover { color: var(--rose-dark); }
::selection { background: var(--rose-pale); }

img { max-width: 100%; }

/* Class selectors below set `display`, which would otherwise out-rank the UA
   sheet's rule for [hidden] and leave hidden elements visible. */
[hidden] { display: none !important; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

@keyframes qcfade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 2px solid var(--rose-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 0 0 12px 12px;
}
.skip-link:focus { top: 0; color: var(--cream); }

/* ------------------------------------------------------------- typography */
.display {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.meta-line {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 28px;
  background: rgba(245, 239, 231, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 26px; width: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  letter-spacing: .02em;
}
.site-nav a {
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
  border-bottom-color: var(--rose-mid);
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 14px;
  letter-spacing: .02em;
}
.search-trigger:hover { border-color: var(--rose-mid); color: var(--ink); }

/* ----------------------------------------------------------------- footer */
.site-footer {
  padding: 52px var(--pad-x) 44px;
  background: var(--ink);
  color: var(--on-dark);
}
.site-footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer-brand { flex: 1 1 260px; }
.site-footer-brand img {
  height: 34px;
  width: auto;
  display: block;
  margin-bottom: 16px;
  filter: brightness(1.6);
}
.site-footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--on-dark-muted);
  margin: 0;
  max-width: 34ch;
}
.site-footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  font-size: 14px;
}
.site-footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.site-footer-col h2 {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0;
}
.site-footer-col a { color: var(--on-dark); }
.site-footer-col a:hover { color: var(--rose-pale); }
.site-footer-col span { color: var(--on-dark-muted); }
.site-footer-legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(237, 230, 220, .15);
  font-size: 12.5px;
  color: var(--muted-2);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
}
.btn-solid { background: var(--ink); color: var(--cream); }
.btn-solid:hover { background: var(--rose); color: var(--cream); }
.btn-outline { border: 1px solid var(--hair-btn); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

/* recipe-hero action row uses slightly tighter padding */
.recipe-actions .btn { padding: 13px 24px; gap: 8px; }
.recipe-actions .btn-outline { padding: 13px 22px; }
.recipe-actions .btn-save.is-saved {
  border-color: var(--rose-mid);
  background: var(--rose-pale);
  color: var(--rose-dark);
}

.link-underline {
  align-self: flex-start;
  font-size: 15px;
  border-bottom: 1px solid var(--rose);
  color: var(--rose);
  padding-bottom: 2px;
}

/* ------------------------------------------------------------ recipe card */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 30px;
}
.card-grid.is-spaced { gap: 34px 30px; }

.recipe-card { display: block; color: inherit; }
.recipe-card:hover { color: inherit; }
.recipe-card-media {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--blue-pale);
  margin-bottom: 14px;
}
.recipe-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.recipe-card:hover .recipe-card-media img { transform: scale(1.03); }
.recipe-card-meta { margin-bottom: 6px; }
.recipe-card-title {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 7px;
}
.recipe-card:hover .recipe-card-title { color: var(--rose); }
.recipe-card-blurb {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* ------------------------------------------------------------------- home */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--hair);
}
.hero-copy {
  flex: 1 1 400px;
  padding: 72px var(--pad-x) 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: qcfade .5s ease both;
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-title {
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 22px;
  text-wrap: pretty;
}
.hero-title em { color: var(--rose); }
.hero-copy p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 44ch;
  margin: 0 0 30px;
  text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media {
  flex: 1 1 420px;
  min-height: 460px;
  position: relative;
  background: var(--blue-pale);
}
.hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-badge {
  position: absolute;
  left: 22px; bottom: 22px; right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(245, 239, 231, .94);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  color: var(--ink);
}
.hero-badge:hover { color: var(--ink); background: var(--cream); }
.hero-badge-label {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 5px;
}
.hero-badge-title {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.1;
}
.hero-badge svg { flex: none; }

.section { padding: 56px var(--pad-x) 64px; }
.section-collections { padding: 64px var(--pad-x) 20px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.section-title { font-size: 34px; }
.section-title-lone { font-size: 34px; margin: 0 0 30px; }
.section-head-link { font-size: 14px; color: var(--muted-2); }
.section-head-link:hover { color: var(--rose); }

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.collection-tile {
  padding: 26px 22px;
  border-radius: 16px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  transition: transform .18s ease;
}
.collection-tile:hover { transform: translateY(-3px); color: var(--ink); }
.collection-tile-name {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
}
.collection-tile-count { font-size: 13px; color: var(--muted); }
.tile-green { background: var(--green-pale); }
.tile-rose { background: var(--rose-pale); }
.tile-blue { background: var(--blue-pale); }
.tile-sand { background: var(--sand); }

.story-strip {
  display: flex;
  flex-wrap: wrap;
  background: var(--sand);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.story-strip-media {
  flex: 1 1 380px;
  min-height: 380px;
  position: relative;
}
.story-strip-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-strip-copy {
  flex: 1 1 420px;
  padding: 64px var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.story-strip-copy .eyebrow { margin-bottom: 20px; }
.story-strip-lede {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.32;
  margin: 0 0 20px;
  text-wrap: pretty;
}
.story-strip-copy p:not(.story-strip-lede) {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 48ch;
}

/* ---------------------------------------------------------- all recipes */
.page-head {
  padding: 56px var(--pad-x) 30px;
  border-bottom: 1px solid var(--hair);
}
.page-head h1 { font-size: 52px; margin: 0 0 12px; }
.page-head p { font-size: 16px; color: var(--muted); margin: 0 0 30px; }

.filter-row { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-pill {
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 13.5px;
  border: 1px solid var(--hair-strong);
  color: var(--muted);
  background: transparent;
}
.filter-pill:hover { border-color: var(--ink); color: var(--ink); }
.filter-pill[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.recipe-list-section { padding: 40px var(--pad-x) 70px; }
.empty-note { font-size: 15px; color: var(--muted-2); }

/* ------------------------------------------------------------- collection */
.collection-head {
  padding: 60px var(--pad-x);
  background: var(--green-pale);
  border-bottom: 1px solid var(--hair);
}
.collection-head .eyebrow { color: var(--muted); }
.collection-head h1 { font-size: 52px; margin: 14px 0; }
.collection-head p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
  max-width: 58ch;
}
.collection-body { padding: 48px var(--pad-x) 70px; }
.collection-rows {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 900px;
}
.collection-row {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--hair-card);
  border-radius: 18px;
  color: inherit;
}
.collection-row:hover { border-color: var(--green-mid); color: inherit; }
.collection-row-media {
  flex: 0 1 260px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--green-pale);
}
.collection-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.collection-row-copy { flex: 1 1 260px; padding-right: 14px; }
.collection-row-copy .meta-line { margin-bottom: 8px; }
.collection-row-title {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.12;
  margin-bottom: 10px;
}
.collection-row:hover .collection-row-title { color: var(--rose); }
.collection-row-blurb { font-size: 15px; line-height: 1.6; color: var(--muted); }
.collection-footnote { margin-top: 34px; font-size: 14px; color: var(--muted-2); }

/* ------------------------------------------------------------------ about */
.about-intro {
  padding: 70px var(--pad-x) 50px;
  max-width: calc(760px + var(--pad-x) * 2);
}
.about-intro h1 {
  font-size: 54px;
  line-height: 1.06;
  margin: 16px 0 26px;
  text-wrap: pretty;
}
.about-intro p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.about-intro p:last-child { margin-bottom: 0; }

.about-media {
  padding: 0 var(--pad-x) 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.about-photo-placeholder {
  flex: 1 1 300px;
  aspect-ratio: 4 / 3;
  border: 1px dashed rgba(51, 48, 44, .3);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted-2);
  background: var(--sand);
  font-size: 13px;
}
.about-photo {
  flex: 1 1 300px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--blue-pale);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timeline {
  padding: 52px var(--pad-x) 74px;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  max-width: 1000px;
}
.timeline-item { padding-top: 18px; border-top: 2px solid var(--blue-mid); }
.timeline-item + .timeline-item { border-top-color: var(--rose-mid); }
.timeline-item + .timeline-item + .timeline-item { border-top-color: var(--green-mid); }
.timeline-year {
  font-family: var(--serif);
  font-size: 30px;
  margin-bottom: 8px;
}
.timeline-item p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------- recipe detail */
.recipe-hero {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--hair);
}
.recipe-hero-copy {
  flex: 1 1 420px;
  padding: 52px var(--pad-x) 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.back-link {
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 20px;
  align-self: flex-start;
}
.back-link:hover { color: var(--rose); }
.tag-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--sand);
}
.tag-primary { background: var(--rose-pale); }
.recipe-title { font-size: 60px; line-height: 1.02; margin: 0 0 18px; }
.recipe-lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 26px;
}
.recipe-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  padding: 20px 0;
  border-top: 1px solid rgba(51, 48, 44, .12);
  border-bottom: 1px solid rgba(51, 48, 44, .12);
  margin-bottom: 26px;
}
.recipe-facts dt {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 5px;
}
.recipe-facts dd { font-size: 17px; margin: 0; }
.recipe-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.recipe-hero-media {
  flex: 1 1 400px;
  min-height: 520px;
  position: relative;
  background: var(--sand);
}
.recipe-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recipe-body {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  padding: 56px var(--pad-x) 40px;
  align-items: flex-start;
  scroll-margin-top: var(--header-h);
}
.ingredients-col {
  flex: 1 1 320px;
  max-width: 420px;
  position: sticky;
  top: var(--header-h);
}
.ingredients-card {
  background: var(--paper);
  border: 1px solid var(--hair-card);
  border-radius: 20px;
  padding: 26px 26px 22px;
}
.ingredients-card h2 { font-size: 30px; margin: 0 0 18px; }

.toggle-groups { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.toggle-group {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--cream);
  border-radius: 999px;
}
.toggle-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--muted);
  transition: .15s;
}
.toggle-pill[aria-pressed='true'] { background: var(--ink); color: var(--cream); }

.ingredients-hint { font-size: 12px; color: var(--muted-2); margin-bottom: 18px; }

.ingredient-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ingredient-group {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 18px 0 4px;
}
.ingredient-list > li:first-child .ingredient-group { padding-top: 4px; }

.ingredient {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--hair-soft);
  width: 100%;
  text-align: left;
}
.ingredient-box {
  flex: none;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: .15s;
  background: transparent;
  border: 1px solid rgba(51, 48, 44, .28);
  color: transparent;
}
.ingredient-text {
  font-size: 15.5px;
  line-height: 1.5;
  transition: .15s;
  color: var(--ink);
}
.ingredient-text strong { font-weight: 700; }
.ingredient[aria-pressed='true'] .ingredient-box {
  background: var(--rose-mid);
  border-color: var(--rose-mid);
  color: #fff;
}
.ingredient[aria-pressed='true'] .ingredient-text {
  color: var(--muted-3);
  text-decoration: line-through;
}
.reset-checklist {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted-2);
}
.reset-checklist:hover { color: var(--rose); }

.method-col { flex: 1 1 420px; }
.method-col h2 { font-size: 30px; margin: 0 0 8px; }
.method-sub { font-size: 13px; color: var(--muted-2); margin-bottom: 26px; }
.step-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-n {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rose-pale);
  color: var(--rose-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}
.step-body { flex: 1; }
.step-body p {
  font-size: 16.5px;
  line-height: 1.68;
  margin: 0 0 10px;
  text-wrap: pretty;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.chip {
  font-size: 12.5px;
  padding: 5px 11px;
  background: var(--sand);
  border-radius: 999px;
  color: var(--muted);
}
.timer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  padding: 8px 15px;
  border: 1px solid rgba(51, 48, 44, .2);
  border-radius: 999px;
}
.timer-btn:hover { border-color: var(--rose); color: var(--rose); }

.testing-notes {
  margin-top: 38px;
  padding: 22px 24px;
  background: var(--blue-pale);
  border-radius: 16px;
}
.testing-notes h2 {
  font-size: 11px;
  font-weight: 400;
  font-family: var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.testing-notes p { font-size: 15px; line-height: 1.65; margin: 0 0 10px; }
.testing-notes p:last-child { margin-bottom: 0; }

.next-up { padding: 20px var(--pad-x) 74px; }
.next-up h2 { font-size: 30px; margin: 0 0 24px; }
.next-up-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}
.next-up-card { color: inherit; }
.next-up-card:hover { color: inherit; }
.next-up-media {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--blue-pale);
  margin-bottom: 12px;
}
.next-up-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.next-up-card:hover .next-up-media img { transform: scale(1.03); }
.next-up-title {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.15;
}
.next-up-card:hover .next-up-title { color: var(--rose); }

/* -------------------------------------------------------------- cook mode */
.cook-mode {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 34px 40px;
  animation: qcfade .25s ease both;
}
.cook-mode[hidden] { display: none; }
.cook-mode :focus-visible { outline-color: var(--rose-pale); }
.cook-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cook-label {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.cook-ghost {
  font-size: 14px;
  padding: 8px 16px;
  border: 1px solid rgba(237, 230, 220, .3);
  border-radius: 999px;
  color: var(--cream);
}
.cook-ghost:hover { border-color: var(--cream); color: var(--cream); }
.cook-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  /* a long step (browning butter) must scroll, not push the nav off-screen */
  overflow: auto;
  padding: 8px 0;
}
.cook-counter {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose-mid);
  margin-bottom: 22px;
}
.cook-text {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.28;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.cook-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 8px; }
.cook-chips span {
  font-size: 14px;
  padding: 8px 15px;
  background: rgba(237, 230, 220, .12);
  border-radius: 999px;
}
.cook-timer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}
.cook-timer-digits {
  font-family: var(--serif);
  font-size: 56px;
  color: var(--rose-pale);
  font-variant-numeric: tabular-nums;
}
.cook-timer-stop {
  font-size: 13px;
  color: var(--on-dark-muted);
  border-bottom: 1px solid rgba(181, 173, 162, .5);
}
.cook-timer-start {
  align-self: flex-start;
  margin-top: 18px;
  font-size: 15px;
  padding: 12px 22px;
  border: 1px solid rgba(237, 230, 220, .3);
  border-radius: 999px;
  color: var(--cream);
}
.cook-timer-start:hover { border-color: var(--cream); }
.cook-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cook-nav-btn {
  font-size: 15px;
  padding: 14px 26px;
  border: 1px solid rgba(237, 230, 220, .3);
  border-radius: 999px;
  color: var(--cream);
}
.cook-nav-btn:hover { border-color: var(--cream); color: var(--cream); }
.cook-nav-btn:disabled { opacity: .4; cursor: default; }
.cook-nav-btn:disabled:hover { border-color: rgba(237, 230, 220, .3); }
.cook-nav-next {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.cook-nav-next:hover { background: #fff; color: var(--ink); }
.cook-progress {
  flex: 1;
  height: 3px;
  background: rgba(237, 230, 220, .15);
  border-radius: 2px;
  margin: 0 8px;
  overflow: hidden;
}
.cook-progress-bar {
  height: 100%;
  background: var(--rose-mid);
  border-radius: 2px;
  transition: width .3s ease;
}

/* ---------------------------------------------------------------- search */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(51, 48, 44, .42);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  padding: 12vh 20px 20px;
  animation: qcfade .2s ease both;
}
.search-overlay[hidden] { display: none; }
.search-panel {
  width: 100%;
  max-width: 620px;
  max-height: 100%;
  overflow: auto;
  background: var(--cream);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 30px 70px rgba(51, 48, 44, .28);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  color: var(--muted-2);
}
.search-field input {
  flex: 1;
  border: none;
  background: none;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.search-results {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 6px;
  border-top: 1px solid var(--hair-soft);
  color: inherit;
}
.search-result:hover,
.search-result:focus-visible { background: var(--rose-pale); color: inherit; }
.search-result img {
  width: 54px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
  background: var(--blue-pale);
}
.search-result-title {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.15;
}
.search-empty { padding: 18px 6px 6px; font-size: 14px; color: var(--muted-2); }

/* ----------------------------------------------------------- breakpoints */
@media (max-width: 1080px) {
  :root { --pad-x: 40px; }
  .hero-title { font-size: 54px; }
  .recipe-title { font-size: 52px; }
  .recipe-body { gap: 40px; }
}

@media (max-width: 860px) {
  :root { --pad-x: 28px; }
  .site-header { padding: 12px 20px; }
  .site-nav { gap: 16px; font-size: 13.5px; }
  .hero-copy { padding: 48px var(--pad-x) 44px; }
  .hero-title { font-size: 42px; }
  .hero-media { min-height: 340px; }
  .section, .section-collections, .story-strip-copy { padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .section-title, .section-title-lone { font-size: 28px; }
  .page-head h1, .collection-head h1 { font-size: 40px; }
  .about-intro h1 { font-size: 38px; }
  .story-strip-lede { font-size: 24px; }
  .recipe-hero-copy { padding: 36px var(--pad-x) 34px; }
  .recipe-title { font-size: 40px; }
  .recipe-hero-media { min-height: 320px; }
  .ingredients-col { position: static; max-width: none; }
  .recipe-body { padding-top: 40px; }
  .cook-mode { padding: 22px 20px; }
  .cook-text { font-size: 28px; }
  .cook-timer-digits { font-size: 40px; }
  .cook-nav-btn { padding: 12px 18px; font-size: 14px; }
}

@media (max-width: 520px) {
  :root { --pad-x: 20px; }
  .site-header { gap: 10px; }
  .site-nav { gap: 14px; width: 100%; justify-content: space-between; }
  .hero-title { font-size: 34px; }
  .hero-badge { left: 14px; right: 14px; bottom: 14px; padding: 13px 16px; }
  .hero-badge-title { font-size: 20px; }
  .card-grid, .card-grid.is-spaced, .next-up-grid { grid-template-columns: 1fr; gap: 26px; }
  .collection-row { padding: 14px; }
  .recipe-facts { gap: 18px; }
  .cook-nav { gap: 8px; }
  .cook-progress { margin: 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .recipe-card:hover .recipe-card-media img,
  .next-up-card:hover .next-up-media img { transform: none; }
}

/* ------------------------------------------------------------------ print */
@media print {
  :root { --pad-x: 0; }

  .site-header,
  .site-footer,
  .recipe-actions,
  .back-link,
  .toggle-groups,
  .ingredients-hint,
  .reset-checklist,
  .timer-btn,
  .next-up,
  .cook-mode,
  .search-overlay,
  .skip-link { display: none !important; }

  body { background: #fff; }

  .recipe-hero { display: block; border: none; }
  .recipe-hero-copy { padding: 0 0 16px; display: block; }
  .recipe-hero-media { display: none; }
  .recipe-title { font-size: 32pt; }
  .recipe-lede { max-width: none; }

  .recipe-body { display: block; padding: 0; }
  .ingredients-col { max-width: none; position: static; }
  .ingredients-card { border: none; padding: 0; background: none; }
  .method-col { margin-top: 24px; }

  .ingredient[aria-pressed='true'] .ingredient-text {
    color: #000;
    text-decoration: none;
  }
  .step { break-inside: avoid; }
  .testing-notes { background: none; border: 1px solid #ccc; }
}
