/* ============================================================
   Annette's Recipe Collection — "Sally's Baking Addiction" style
   Warm bakery: soft pink + cream, friendly rounded sans,
   dense indulgent recipe cards, dessert-forward & cheerful.
   ============================================================ */

:root {
  /* --- color tokens (all light, cream base) --- */
  --cream:        #fbf6f1;   /* page background */
  --cream-deep:   #f4ece3;   /* alt band */
  --surface:      #ffffff;   /* cards */
  --pink-soft:    #fbe7e8;   /* soft pink band */
  --pink-band:    #f8dcde;   /* feature band */
  --pink-scallop: #f6d3d6;   /* scalloped top banner */
  --pink-line:    #f0c9cc;   /* hairlines on pink */

  --berry:        #e35d77;   /* primary accent (buttons, links) */
  --berry-deep:   #cf4763;   /* hover */
  --berry-ink:    #b23a55;   /* text-on-pink accent */

  --ink:          #38332f;   /* headings / body */
  --ink-soft:     #6f665e;   /* secondary text */
  --ink-faint:    #a59b91;   /* meta / captions */
  --rule:         #ece2d7;   /* light hairline on cream */

  /* sprinkle confetti accents */
  --teal:  #4fb1ac;
  --gold:  #f2b53d;
  --coral: #ef7d6b;
  --grape: #9a7bd0;

  /* --- type --- */
  --display: "Poppins", system-ui, sans-serif;
  --body:    "Nunito Sans", system-ui, sans-serif;

  /* --- shape / motion --- */
  --r-card: 12px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(56,51,47,.05), 0 14px 30px -18px rgba(56,51,47,.28);
  --shadow-soft: 0 10px 26px -16px rgba(56,51,47,.30);
  --container: min(92%, 1240px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* belt-and-suspenders; real causes fixed below */
}

img { max-width: 100%; display: block; }

a { color: var(--berry); text-decoration: none; }
a:hover { color: var(--berry-deep); }

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

/* ============================================================
   Scalloped top banner (signature SBA element)
   ============================================================ */
.topbar {
  background: var(--pink-scallop);
  position: relative;
}
.topbar__inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 11px 0 13px;
  text-align: center;
}
.topbar__txt {
  font-family: var(--display);
  font-weight: 600;
  font-size: .96rem;
  color: var(--berry-ink);
  letter-spacing: .2px;
}
.topbar__txt .emoji { margin-right: 4px; }
.topbar__txt { display: inline-flex; align-items: center; gap: 7px; }
.tb-ic {
  width: 17px; height: 17px; flex: none;
  fill: none; stroke: var(--berry-ink); stroke-width: 1.6;
  vertical-align: middle;
}
.topbar__btn {
  font-family: var(--display);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.topbar__btn:hover { background: #000; color:#fff; transform: translateY(-1px); }
/* scallop edge along the bottom of the banner */
.topbar__scallop {
  display: block;
  height: 13px;
  background:
    radial-gradient(circle at 11px 0, var(--pink-scallop) 11px, transparent 12px) repeat-x;
  background-size: 22px 13px;
  background-position: 0 -1px;
}

/* ============================================================
   Header / nav
   ============================================================ */
.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 40;
}
.masthead__inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 30px; height: 30px;
  flex: none;
  position: relative;
}
.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -.5px;
  color: var(--ink);
  line-height: 1;
}
.brand__name b { color: var(--berry); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--display);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--ink);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: color .2s var(--ease);
}
.nav a .ic { font-size: 1rem; line-height: 1; }
.nav a:hover { color: var(--berry); }
.nav__search {
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--rule);
  display: grid; place-items: center;
  color: var(--ink);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav__search:hover { border-color: var(--berry); color: var(--berry); }
.nav__toggle { display: none; }

/* ============================================================
   Hero / section intro
   ============================================================ */
.intro { padding: 40px 0 8px; }
.intro__inner { width: var(--container); margin-inline: auto; }
.intro__eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--berry);
  margin: 0 0 12px;
  display: inline-flex; align-items: center; gap: 9px;
}
.intro__eyebrow::before {
  content:""; width: 26px; height: 2px; background: var(--berry); border-radius: 2px;
}
.intro__head {
  display: flex; align-items: baseline; gap: 18px;
}
.intro__head h1, .intro__head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.55rem, 1rem + 2.4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.6px;
  color: var(--ink);
  margin: 0;
}
.intro__head .leader {
  flex: 1 1 auto;
  height: 0;
  border-top: 2px dotted var(--pink-line);
  transform: translateY(-6px);
  min-width: 24px;
}
.intro__sub {
  margin: 14px 0 0;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

/* toolbar: count + filter chips */
.toolbar {
  width: var(--container);
  margin: 26px auto 4px;
  display: flex;
  align-items: center;
  gap: 14px 18px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.toolbar__count {
  font-family: var(--display);
  font-weight: 600;
  font-size: .82rem;
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--display);
  font-weight: 600;
  font-size: .76rem;
  letter-spacing: .03em;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1.5px solid var(--rule);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.chip:hover { border-color: var(--berry); color: var(--berry); }
.chip.is-active {
  background: var(--berry);
  border-color: var(--berry);
  color: #fff;
}

/* ============================================================
   Recipe grid + cards
   ============================================================ */
.grid {
  width: var(--container);
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 30px 26px;
}

.card {
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  animation: rise .55s var(--ease) both;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1px 2px rgba(56,51,47,.06), 0 26px 44px -22px rgba(56,51,47,.42);
}
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cream-deep);
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }

/* diagonal "Popular" ribbon, SBA-style */
.ribbon {
  position: absolute;
  top: 14px; left: -38px;
  transform: rotate(-45deg);
  background: var(--berry);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 44px;
  box-shadow: 0 6px 14px -6px rgba(178,58,85,.6);
}
.ribbon .ic { margin-right: 4px; }

.card__body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1 1 auto;
}
.card__cat {
  font-family: var(--display);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--berry-ink);
  border-bottom: 2px solid var(--pink-line);
  padding-bottom: 7px;
  align-self: flex-start;
}
.card__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.14rem;
  line-height: 1.22;
  letter-spacing: -.2px;
  color: var(--ink);
  margin: 0;
}
.card a.card__title:hover { color: var(--berry); }
.card__dek {
  font-size: .92rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: -2px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__foot {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .76rem;
  color: var(--ink-faint);
}
.card__foot .meta { display: inline-flex; align-items: center; gap: 6px; }
.card__foot .meta .ic { color: var(--berry); font-size: .9rem; }
.card__stretch { position: absolute; inset: 0; z-index: 1; }
.card__media { position: relative; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Feature band (pink editorial callout)
   ============================================================ */
.feature {
  background: var(--pink-band);
  margin-top: 64px;
}
.feature__inner {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  gap: 0;
}
.feature__media {
  position: relative;
  min-height: 320px;
}
.feature__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.feature__text {
  padding: 48px clamp(20px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.feature__eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--berry-ink);
  border-bottom: 2px solid var(--berry);
  padding-bottom: 6px;
  align-self: flex-start;
}
.feature__text h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -.5px;
  color: var(--ink);
  margin: 4px 0 0;
}
.feature__text p { margin: 0; color: var(--ink-soft); max-width: 46ch; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--berry);
  padding: 13px 26px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover {
  background: var(--berry-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -16px rgba(178,58,85,.6);
}
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn--ghost {
  background: transparent;
  color: var(--berry);
  border: 1.5px solid var(--berry);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--berry); color: #fff; }
.center { display: flex; justify-content: center; }
.mt-40 { margin-top: 40px; }

/* ============================================================
   Newsletter strip
   ============================================================ */
.signup {
  margin-top: 64px;
  background: var(--cream-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.signup__inner {
  width: var(--container);
  margin-inline: auto;
  padding: 44px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.signup h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 1.9rem);
  letter-spacing: -.4px;
  color: var(--ink);
  margin: 0;
}
.signup p { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.signup__form {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: min(100%, 480px);
}
.signup__form input {
  flex: 1 1 220px;
  font-family: var(--body);
  font-size: 1rem;
  padding: 13px 18px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--pink-line);
  background: #fff;
  color: var(--ink);
  min-width: 0;
}
.signup__form input:focus {
  outline: none;
  border-color: var(--berry);
  box-shadow: 0 0 0 3px rgba(227,93,119,.18);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--pink-soft);
  border-top: 1px solid var(--pink-line);
  margin-top: 0;
}
.footer__inner {
  width: var(--container);
  margin-inline: auto;
  padding: 40px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer__brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -.4px;
}
.footer__brand b { color: var(--berry); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer__links a {
  font-family: var(--display);
  font-weight: 500;
  font-size: .82rem;
  color: var(--ink-soft);
  letter-spacing: .03em;
}
.footer__links a:hover { color: var(--berry); }
.footer__fine {
  font-size: .8rem;
  color: var(--ink-faint);
  max-width: 56ch;
}
.footer__sprinkles { display: flex; gap: 7px; margin-bottom: 2px; }
.footer__sprinkles span {
  width: 26px; height: 6px; border-radius: 999px; display: block;
}

/* ============================================================
   RECIPE PAGE
   ============================================================ */
.recipe { padding-bottom: 10px; }

.crumbs {
  width: var(--container);
  margin: 26px auto 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .04em;
}
.crumbs a { color: var(--berry); }
.crumbs a:hover { color: var(--berry-deep); }

.r-head {
  width: var(--container);
  margin: 18px auto 0;
  max-width: 880px;
  text-align: center;
}
.r-head__cat {
  font-family: var(--display);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--berry);
  margin: 0 0 12px;
}
.r-head h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -1px;
  color: var(--ink);
  margin: 0;
}
.r-head__dek {
  margin: 16px auto 0;
  max-width: 60ch;
  font-size: 1.12rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.r-head__meta {
  margin: 22px auto 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.r-head__meta .m {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 24px;
}
.r-head__meta .m + .m { border-left: 1px solid var(--rule); }
.r-head__meta .m .k {
  font-family: var(--display);
  font-weight: 700;
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.r-head__meta .m .v {
  font-family: var(--display);
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
}
.r-head__meta .m .v .ic { color: var(--berry); margin-right: 5px; }
.r-head__meta .m .v .mi {
  width: 16px; height: 16px; margin-right: 7px;
  vertical-align: -2px;
  fill: none; stroke: var(--berry); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* line-icon system (recipe headings, notes, buttons) */
.rh-ic, .note-ic, .btn-ic {
  fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.rh-ic { width: 26px; height: 26px; stroke: var(--berry); flex: none; }
.note-ic { width: 18px; height: 18px; stroke: var(--berry-ink); flex: none; }
.btn-ic { width: 17px; height: 17px; stroke: currentColor; flex: none;
  transition: transform .25s var(--ease); }

.r-hero {
  width: var(--container);
  margin: 30px auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  max-height: 560px;
}
.r-hero img {
  width: 100%;
  height: clamp(280px, 46vw, 560px);
  object-fit: cover;
}

/* two-column body */
.r-body {
  width: var(--container);
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 44px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 28px 28px 30px;
}
.panel--ing { position: sticky; top: 92px; }

.r-h {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -.3px;
  color: var(--ink);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.r-h .ic { color: var(--berry); }
.r-h__rule {
  height: 3px;
  width: 46px;
  background: var(--berry);
  border-radius: 3px;
  margin: 10px 0 20px;
}

/* ingredients */
.ing-sec + .ing-sec { margin-top: 22px; }
.ing-sec__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--berry-ink);
  margin: 0 0 10px;
}
.ing-list { list-style: none; margin: 0; padding: 0; }
.ing-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: .98rem;
  line-height: 1.4;
}
.ing-list li:last-child { border-bottom: none; }
.ing-list .qty {
  flex: none;
  min-width: 92px;
  font-family: var(--display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--berry-ink);
}
.ing-list .it { color: var(--ink); }
.ing-check {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1.5px solid var(--pink-line);
  background: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .18s var(--ease);
}
.ing-list li.done .ing-check { background: var(--berry); border-color: var(--berry); }
.ing-list li.done .ing-check::after {
  content: "\2713"; color: #fff; font-size: .72rem; font-weight: 700;
}
.ing-list li.done .it, .ing-list li.done .qty {
  text-decoration: line-through;
  color: var(--ink-faint);
}

/* directions */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li {
  position: relative;
  padding: 0 0 22px 60px;
  margin: 0;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--berry-ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px var(--pink-line);
}
.steps li::after {
  content: "";
  position: absolute;
  left: 19px; top: 42px; bottom: 6px;
  width: 2px;
  background: var(--pink-line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps li p { margin: 0; padding-top: 8px; color: var(--ink); line-height: 1.62; }

/* notes / nutrition cards */
.note {
  margin-top: 26px;
  background: var(--pink-soft);
  border: 1px solid var(--pink-line);
  border-radius: var(--r-card);
  padding: 22px 24px;
}
.note h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .02em;
  color: var(--berry-ink);
  margin: 0 0 8px;
  display: flex; align-items: center; gap: 8px;
}
.note p { margin: 0; color: var(--ink-soft); font-size: .96rem; line-height: 1.55; }

.nutri {
  margin-top: 16px;
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: 18px 22px;
}
.nutri h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.nutri p { margin: 0; color: var(--ink); font-size: .92rem; }

.source-row {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.source-row .lbl {
  font-family: var(--display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* "more from the collection" rail on recipe page */
.more { width: var(--container); margin: 64px auto 0; }
.more__head {
  display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px;
}
.more__head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 1.85rem);
  letter-spacing: -.4px;
  color: var(--ink);
  margin: 0;
}
.more__head .leader {
  flex: 1; height: 0; border-top: 2px dotted var(--pink-line); transform: translateY(-6px);
}
.more .grid { width: 100%; margin-top: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .feature__inner { grid-template-columns: 1fr; }
  .feature__media { min-height: 240px; }
  .r-body { grid-template-columns: 1fr; gap: 30px; }
  .panel--ing { position: static; }
}

@media (max-width: 720px) {
  .nav { gap: 14px; }
  .nav a:not(.nav__search) { display: none; }
  .nav__toggle {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--rule);
    background: #fff;
    color: var(--ink);
    font-size: 1.1rem;
    cursor: pointer;
  }
  .intro__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .intro__head .leader { display: none; }
  /* meta bar: even 2-up grid so wrapped rows stay tidy */
  .r-head__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    border-radius: 16px;
  }
  .r-head__meta .m { padding: 13px 10px; }
  .r-head__meta .m + .m { border-left: none; }
  .r-head__meta .m:nth-child(even) { border-left: 1px solid var(--rule); }
  .r-head__meta .m:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

@media (max-width: 440px) {
  body { font-size: 16px; }
  .topbar__inner { gap: 8px; padding: 9px 0 11px; }
  .grid { gap: 22px 18px; }
  .panel { padding: 22px 18px 24px; }
  .steps li { padding-left: 52px; }
  .ing-list .qty { min-width: 76px; }
}

/* ============================================================
   Print — recipes print beautifully on paper
   ============================================================ */
@media print {
  .topbar, .masthead, .signup, .footer, .more, .source-row .btn,
  .nav, .ing-check, .btn { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .r-hero { box-shadow: none; max-height: 320px; }
  .panel { box-shadow: none; border: 1px solid #ddd; }
  .r-body { gap: 24px; }
  a { color: #000; }
}
