/* ============================================================
   RecipeMemoir — "America's Test Kitchen" themed style
   Authoritative test-kitchen look: structured grid, clean
   humanist sans for UI, warm slab/serif headlines, navy-black
   text, ATK red accents, cream panels, science-forward trust cues.
   Light/bright only. Full-bleed bands, centered fluid container.
   ============================================================ */

:root {
  /* palette ------------------------------------------------- */
  --atk-red:       #b3122a;   /* the signature ATK red          */
  --atk-red-deep:  #8f0e21;   /* hover / darker red             */
  --ink:           #1d1c1a;   /* warm near-black headlines      */
  --ink-soft:      #34322e;   /* body text                      */
  --slate:         #5d5a53;   /* secondary / meta text          */
  --slate-light:   #8a857c;   /* tertiary, captions             */
  --rule:          #e3ddd2;   /* hairline rules on cream/white  */
  --rule-strong:   #cfc7b8;   /* stronger dividers              */
  --paper:         #ffffff;   /* base page                      */
  --cream:         #f7f3ea;   /* warm panel band                */
  --cream-deep:    #f0e9da;   /* deeper cream chip              */
  --gold:          #c98a2b;   /* small science/tested accent    */
  --green:         #3f6b42;   /* "tested" check accent          */

  /* type ---------------------------------------------------- */
  --f-display: "Zilla Slab", Georgia, serif;     /* big slab heds */
  --f-serif:   "Domine", Georgia, serif;          /* editorial serif */
  --f-sans:    "Source Sans 3", system-ui, sans-serif; /* UI + body */

  /* metrics ------------------------------------------------- */
  --container: min(92%, 1240px);
  --container-wide: min(94%, 1380px);
  --radius: 4px;
  --shadow-card: 0 1px 0 rgba(29,28,26,.04), 0 10px 26px -18px rgba(29,28,26,.28);
  --shadow-lift: 0 18px 44px -22px rgba(29,28,26,.45);
}

/* reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;            /* belt-and-suspenders; real fixes below */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* shared layout helpers ----------------------------------- */
.container { width: var(--container); margin-inline: auto; }
.container-wide { width: var(--container-wide); margin-inline: auto; }

.eyebrow {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--atk-red);
  margin: 0 0 .5rem;
  display: inline-flex;
  align-items: center;
  gap: .5ch;
}
.eyebrow--slate { color: var(--slate); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: .65rem;
  margin: 0 0 1.6rem;
}
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.15rem);
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
}
.section-head .section-aside {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
  padding-bottom: .2rem;
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.topbar {
  background: var(--ink);
  color: #f3efe6;
  font-family: var(--f-sans);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.topbar .container-wide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7ch;
  padding: .42rem 0;
  text-align: center;
}
.topbar b { color: #fff; font-weight: 700; }
.topbar .dot { color: var(--atk-red); font-weight: 700; }

.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 40;
}
.masthead .container-wide {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: .85rem 0;
}

/* logo: red double-rule box, stacked condensed serif */
.brand { flex: none; }
.brand-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: .32rem .7rem .36rem;
  border: 2px solid var(--atk-red);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 4px var(--atk-red);
  line-height: 1;
}
.brand-mark .b-kicker {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: .5rem;
  letter-spacing: .26em;
  color: var(--atk-red);
  text-transform: uppercase;
  margin-bottom: .18rem;
}
.brand-mark .b-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: .02em;
  color: var(--ink);
  text-transform: uppercase;
  text-align: center;
}
.brand-mark .b-name span { display: block; }

.mainnav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  color: var(--ink);
}
.mainnav a {
  position: relative;
  padding: .35rem 0;
  white-space: nowrap;
  transition: color .15s ease;
}
.mainnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--atk-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.mainnav a:hover { color: var(--atk-red); }
.mainnav a:hover::after { transform: scaleX(1); }
.nav-tag {
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .1em;
  background: var(--atk-red);
  color: #fff;
  padding: .12em .5em;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: .35ch;
  text-transform: uppercase;
}

.masthead-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.searchpill {
  display: flex;
  align-items: center;
  gap: .55ch;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: .45rem .95rem;
  color: var(--slate);
  font-size: .85rem;
  background: #fbfaf6;
  min-width: 0;
}
.searchpill svg { flex: none; }
.searchpill input {
  border: 0;
  background: transparent;
  font-family: var(--f-sans);
  font-size: .85rem;
  color: var(--ink);
  outline: none;
  width: 15ch;
  min-width: 0;
}
.searchpill input::placeholder { color: var(--slate-light); }

.btn {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .55rem 1.25rem;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--red { background: var(--atk-red); border-color: var(--atk-red); color: #fff; }
.btn--red:hover { background: var(--atk-red-deep); border-color: var(--atk-red-deep); color: #fff; }
.btn--ghost { border-color: var(--rule-strong); }

/* ============================================================
   HERO  (editorial: big photo + side text panel)
   ============================================================ */
.hero { padding: 2.2rem 0 1.4rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--paper);
}
.hero-figure {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--cream-deep);
  overflow: hidden;
}
.hero-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.hero-figure:hover img { transform: scale(1.035); }
.hero-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--atk-red);
  color: #fff;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .4rem .8rem;
  display: inline-flex;
  align-items: center;
  gap: .5ch;
}
.hero-panel {
  background: var(--cream);
  padding: clamp(1.5rem, 1rem + 2vw, 2.8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--rule);
}
.hero-panel .kicker {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--slate);
  margin: 0 0 .65rem;
}
.hero-panel h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.05rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 1rem;
}
.hero-panel .dek {
  font-family: var(--f-serif);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
  max-width: 42ch;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  border-top: 1px solid var(--rule-strong);
  padding-top: 1.05rem;
  margin-bottom: 1.4rem;
  font-family: var(--f-sans);
  font-size: .82rem;
  color: var(--slate);
}
.hero-meta .mi { display: inline-flex; align-items: center; gap: .5ch; }
.hero-meta .mi b { color: var(--ink); font-weight: 700; }
.hero-panel .byline {
  font-size: .82rem;
  color: var(--slate);
  margin-top: 1.1rem;
}
.hero-panel .byline b { color: var(--ink); }

/* ============================================================
   CATEGORY ROW  (circular "Weekend Inspiration")
   ============================================================ */
.catrow { padding: 1.6rem 0 .6rem; }
.cat-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 1rem .6rem;
}
.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  text-align: center;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
.cat-orb {
  width: clamp(72px, 8vw, 92px);
  height: clamp(72px, 8vw, 92px);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--rule-strong), var(--shadow-card);
  background: var(--cream-deep);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-orb img { width: 100%; height: 100%; object-fit: cover; }
.cat:hover .cat-orb {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px var(--atk-red), var(--shadow-lift);
}
.cat-label {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--ink);
}
.cat-count {
  font-size: .68rem;
  color: var(--slate-light);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cat.is-active .cat-orb { box-shadow: 0 0 0 2px var(--atk-red), var(--shadow-card); }
.cat.is-active .cat-label { color: var(--atk-red); }

/* ============================================================
   MEMBERSHIP / TRUST BAND  (cream)
   ============================================================ */
.trustband { padding: 2rem 0; }
.trust-inner {
  background: var(--cream);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: clamp(1.4rem, 1rem + 2vw, 2.2rem) clamp(1.4rem, 1rem + 2.5vw, 2.6rem);
  display: grid;
  grid-template-columns: 1.6fr auto;
  align-items: center;
  gap: 1.6rem;
  position: relative;
  overflow: hidden;
}
.trust-inner::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 6px;
  background: var(--atk-red);
}
.trust-copy h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 1rem + 1.3vw, 1.85rem);
  color: var(--ink);
  margin: 0 0 .5rem;
  line-height: 1.08;
}
.trust-copy p { margin: 0; color: var(--ink-soft); font-size: .98rem; max-width: 60ch; }
.trust-stats {
  display: flex;
  gap: 1.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.trust-stat { line-height: 1.1; }
.trust-stat b {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--atk-red);
}
.trust-stat span {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}
.trust-cta { text-align: center; }
.trust-cta .fineprint {
  font-size: .72rem;
  color: var(--slate);
  margin-top: .65rem;
  max-width: 22ch;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filterbar { padding: .4rem 0 0; }
.filter-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  padding-bottom: 1.2rem;
}
.chip {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .03em;
  padding: .42rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: #fbfaf6;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.filter-count {
  margin-left: auto;
  font-size: .8rem;
  color: var(--slate);
  font-weight: 600;
  letter-spacing: .04em;
}

/* ============================================================
   RECIPE CARD GRID
   ============================================================ */
.collection { padding: 1.4rem 0 3.2rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 1.6rem 1.5rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--rule-strong);
}
.card-figure {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cream-deep);
  overflow: hidden;
}
.card-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card-figure img { transform: scale(1.06); }
.card-flag {
  position: absolute;
  top: .7rem; left: .7rem;
  background: rgba(255,255,255,.94);
  color: var(--atk-red);
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .32rem .6rem;
  border-radius: 2px;
  box-shadow: 0 2px 8px -3px rgba(0,0,0,.3);
}
.card-flag.is-tested { color: var(--green); }
.card-body {
  padding: 1.05rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-cuisine {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--atk-red);
  margin: 0 0 .45rem;
}
.card h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.16;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 0 0 .5rem;
  transition: color .15s ease;
}
.card:hover h3 { color: var(--atk-red); }
.card .card-dek {
  font-family: var(--f-serif);
  font-size: .9rem;
  line-height: 1.5;
  color: var(--slate);
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-top: .8rem;
  border-top: 1px solid var(--rule);
  font-family: var(--f-sans);
  font-size: .76rem;
  font-weight: 600;
  color: var(--slate);
}
.card-foot .cf {
  display: inline-flex;
  align-items: center;
  gap: .4ch;
}
.card-foot .cf svg { color: var(--slate-light); }
.card-foot .cf b { color: var(--ink); font-weight: 700; }

/* empty state */
.empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--slate);
  font-family: var(--f-serif);
  font-size: 1.05rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  background: var(--ink);
  color: #d8d3c8;
  padding: 3rem 0 2rem;
  margin-top: 1rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.foot-brand .brand-mark {
  box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px var(--atk-red);
  background: var(--ink);
}
.foot-brand .brand-mark .b-name { color: #fff; }
.foot-brand p {
  margin: 1rem 0 0;
  font-family: var(--f-serif);
  font-size: .92rem;
  color: #b7b1a5;
  max-width: 34ch;
  line-height: 1.55;
}
.foot-col h4 {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1rem;
}
.foot-col a {
  display: block;
  font-size: .9rem;
  color: #c4bfb4;
  padding: .3rem 0;
  transition: color .15s ease;
}
.foot-col a:hover { color: var(--atk-red); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: .78rem;
  color: #8f897d;
  letter-spacing: .02em;
}

/* ============================================================
   RECIPE PAGE
   ============================================================ */
.breadcrumb {
  padding: 1.2rem 0 0;
  font-family: var(--f-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--slate);
}
.breadcrumb a { color: var(--atk-red); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--rule-strong); margin: 0 .55ch; }

.recipe-head { padding: 1.4rem 0 1.8rem; }
.recipe-head .container { max-width: min(92%, 880px); }
.recipe-head .eyebrow { justify-content: flex-start; }
.recipe-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -.018em;
  color: var(--ink);
  margin: 0 0 .8rem;
}
.recipe-dek {
  font-family: var(--f-serif);
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  max-width: 60ch;
}
.recipe-metabar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}
.recipe-metabar .mb {
  flex: 1 1 0;
  min-width: 120px;
  padding: .85rem 1.1rem;
  border-right: 1px solid var(--rule);
}
.recipe-metabar .mb:last-child { border-right: 0; }
.recipe-metabar .mb .lbl {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--atk-red);
  display: block;
  margin-bottom: .25rem;
}
.recipe-metabar .mb .val {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.1;
}

.recipe-hero { margin: 0 0 0; }
.recipe-hero .container { max-width: min(94%, 1080px); }
.recipe-hero-figure {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
}
.recipe-hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.recipe-hero-cap {
  font-family: var(--f-sans);
  font-size: .76rem;
  color: var(--slate);
  margin-top: .65rem;
  display: flex;
  align-items: center;
  gap: .5ch;
}
.recipe-hero-cap b { color: var(--ink); }

/* body: ingredients sidebar + directions */
.recipe-body { padding: 2.4rem 0 3rem; }
.recipe-body .container { max-width: min(94%, 1080px); }
.recipe-cols {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 2.6rem;
  align-items: start;
}

.ingredients {
  background: var(--cream);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 1.5rem 1.4rem 1.6rem;
  position: sticky;
  top: 90px;
}
.ingredients .panel-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0 0 .3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.ingredients .yields {
  font-family: var(--f-sans);
  font-size: .78rem;
  color: var(--slate);
  font-weight: 600;
  letter-spacing: .03em;
  margin: 0 0 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 2px solid var(--ink);
}
.ing-section + .ing-section { margin-top: 1.3rem; }
.ing-section .ing-section-title {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--atk-red);
  margin: 0 0 .6rem;
}
.ing-list { list-style: none; margin: 0; padding: 0; }
.ing-list li {
  display: flex;
  gap: .7ch;
  padding: .5rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .92rem;
  line-height: 1.4;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .15s ease;
}
.ing-list li:last-child { border-bottom: 0; }
.ing-list li::before {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  margin-top: .28rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: 3px;
  transition: all .15s ease;
}
.ing-list li:hover { color: var(--ink); }
.ing-list li:hover::before { border-color: var(--atk-red); }
.ing-list li.is-checked { color: var(--slate-light); }
.ing-list li.is-checked .ing-item { text-decoration: line-through; }
.ing-list li.is-checked::before {
  background: var(--atk-red);
  border-color: var(--atk-red);
  box-shadow: inset 0 0 0 2px var(--cream);
}
.ing-qty { font-weight: 700; color: var(--ink); flex: none; }
.ing-item { flex: 1; }

.directions .panel-title,
.notes-block .panel-title,
.nutrition-block .panel-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2rem);
  color: var(--ink);
  margin: 0 0 1.2rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  gap: .6ch;
}
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li {
  position: relative;
  counter-increment: step;
  padding: 0 0 1.5rem 3.4rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 2.5rem; height: 2.5rem;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: var(--atk-red);
  border-radius: 50%;
}
.steps li p {
  margin: 0;
  font-family: var(--f-serif);
  font-size: 1.04rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

.recipe-aside-block { margin-top: 2.4rem; }
.notes-block, .nutrition-block {
  margin-top: 2.2rem;
  background: #fbfaf6;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.notes-block .panel-title, .nutrition-block .panel-title {
  font-size: 1.15rem;
  border: 0;
  padding: 0;
  margin: 0 0 .6rem;
  color: var(--gold);
}
.notes-block p { margin: 0; font-family: var(--f-serif); line-height: 1.6; color: var(--ink-soft); }
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .7rem 1.2rem;
}
.nutrition-grid .ng {
  font-family: var(--f-sans);
  font-size: .86rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: .5ch;
  padding: .35rem 0;
  border-bottom: 1px dotted var(--rule-strong);
}
.nutrition-grid .ng b { color: var(--ink); }

.source-line {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--f-sans);
  font-size: .9rem;
  color: var(--slate);
}
.source-line a.source-link {
  color: var(--atk-red);
  font-weight: 700;
}
.source-line a.source-link:hover { text-decoration: underline; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5ch;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}
.back-link:hover { color: var(--atk-red); }

/* "more from the collection" rail */
.morestrip { padding: 2.4rem 0 3.4rem; background: var(--cream); border-top: 1px solid var(--rule-strong); }
.morestrip .container { max-width: min(94%, 1080px); }
.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1.3rem;
}
.more-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.more-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.more-card .mc-fig { aspect-ratio: 3/2; overflow: hidden; background: var(--cream-deep); }
.more-card .mc-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.more-card:hover .mc-fig img { transform: scale(1.06); }
.more-card .mc-body { padding: .85rem .9rem 1rem; }
.more-card .mc-cuisine {
  font-size: .6rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--atk-red); margin: 0 0 .3rem;
}
.more-card h4 {
  font-family: var(--f-display); font-weight: 700; font-size: 1rem;
  line-height: 1.15; color: var(--ink); margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .recipe-cols { grid-template-columns: 1fr; gap: 2rem; }
  .ingredients { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { aspect-ratio: 16 / 10; }
  .hero-panel { border-left: 0; border-top: 1px solid var(--rule); }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-inner::before { width: 100%; height: 6px; inset: auto 0 auto 0; }
  .trust-cta { text-align: left; }
}
@media (max-width: 860px) {
  /* collapse nav into a compact, scrollable strip; keep no overflow */
  .mainnav { display: none; }
  .masthead .container-wide { gap: 1rem; }
  .searchpill input { width: 10ch; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar { font-size: .64rem; letter-spacing: .08em; }
  .searchpill { display: none; }
  .masthead-actions .btn--ghost { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .recipe-metabar .mb { flex: 1 1 50%; min-width: 0; }
  .steps li { padding-left: 0; padding-top: 3.2rem; }
  .steps li::before { width: 2.2rem; height: 2.2rem; font-size: 1rem; }
}
@media (max-width: 380px) {
  .brand-mark .b-name { font-size: 1rem; }
  .section-head { flex-wrap: wrap; }
  .section-head .section-aside { display: none; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   PRINT  (recipes print beautifully on paper)
   ============================================================ */
@media print {
  .topbar, .masthead, .site-foot, .morestrip, .breadcrumb,
  .recipe-hero-cap, .source-line .back-link { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .recipe-hero-figure { box-shadow: none; border: 1px solid #ccc; aspect-ratio: 16/8; }
  .recipe-cols { grid-template-columns: 1fr 2fr; gap: 1.5rem; }
  .ingredients { position: static; background: #fff; border: 1px solid #000; }
  .steps li::before { background: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: #000; text-decoration: none; }
}
