#recipes, #ingredient-list, #method { scroll-margin-top: 90px; }

.cookbook-hero {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  align-items: stretch;
  margin-top: clamp(17px, 3vw, 39px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(20px, 3vw, 34px);
  background: var(--sand);
}
.continue-cooking { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 7px 13px; margin-top: 14px; padding: 11px 14px; border: 1px solid #cad4c6; border-radius: 12px; background: var(--green-wash); color: var(--green); }
.continue-cooking strong { font-size: 1.08rem; }
.continue-step { color: var(--muted); font-size: .9rem; }
.cookbook-hero-copy { align-self: center; padding: clamp(28px, 5.4vw, 75px); }
.cookbook-hero h1 { font-size: clamp(4.7rem, 8.7vw, 8.8rem); line-height: .82; letter-spacing: -.035em; }
.cookbook-hero h1 em { color: var(--red); }
.cookbook-hero-copy p { color: var(--muted); margin-top: 21px; max-width: 35ch; font-size: clamp(1rem, 1.6vw, 1.17rem); }
.cookbook-hero-figure { margin: 0; min-width: 0; }
.cookbook-hero-image { position: relative; display: block; height: 100%; text-decoration: none; }
.cookbook-hero-image:focus-visible { outline-offset: -5px; }
.cookbook-hero-image img { width: 100%; height: 100%; min-height: 424px; object-fit: cover; object-position: center 56%; }
.featured-link {
  position: absolute;
  bottom: 17px;
  right: 17px;
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 9px 14px;
  min-height: 44px;
  border-radius: 99px;
  background: var(--card);
  color: var(--green);
  font-size: .88rem;
  font-weight: 700;
  box-shadow: 0 2px 16px #201b1636;
}
.cookbook-hero-image:hover .featured-link { background: var(--green-wash); }

.home-collections { margin-top: clamp(31px, 5vw, 57px); }
.home-collections h2 { font-size: clamp(2.3rem, 4.3vw, 3.7rem); }
.collection-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 13px 0 0; padding: 0; list-style: none; }
.collection-links a { display: grid; height: 100%; gap: 4px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--green); text-decoration: none; line-height: 1.3; }
.collection-links a:hover { background: var(--green-wash); }
.collection-links a span { color: var(--muted); font-size: .85rem; }
.collection-page-intro { margin-top: 10px; padding: clamp(22px, 5vw, 55px); border: 1px solid var(--line); border-radius: clamp(19px, 3vw, 30px); background: var(--sand); }
.collection-page h1 { font-size: clamp(3.2rem, 7vw, 6.45rem); line-height: .93; }
.collection-page h2 { font-size: clamp(2.3rem, 4vw, 3.7rem); }
.collection-page p { max-width: 63ch; margin-top: 10px; color: var(--muted); }
.collection-page-intro p { font-size: clamp(1rem, 1.8vw, 1.17rem); }
.collection-picks { margin-top: 16px; padding: clamp(15px, 3vw, 23px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.collection-picks a { color: var(--green); font-weight: 700; text-underline-offset: .16em; }
.collection-grid-section { margin-top: clamp(26px, 4.4vw, 50px); }
.collection-grid-section h2 { margin-bottom: 12px; }

.collection-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px 30px; }
.recipe-search { display: grid; gap: 5px; width: min(100%, 325px); color: var(--green); font-size: .85rem; font-weight: 700; }
.recipe-search input {
  min-height: 46px;
  min-width: 0;
  width: 100%;
  padding: 8px 13px;
  border: 1px solid #b9c4b6;
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}
.recipe-search input::placeholder { color: #596157; opacity: 1; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.filter-chip {
  min-height: 43px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--card);
  color: var(--green);
  font-size: .86rem;
  font-weight: 700;
}
.filter-chip:hover { background: var(--green-wash); }
.filter-chip[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: var(--card); }
.result-count { color: var(--muted); margin: 12px 0 9px; font-size: .85rem; font-variant-numeric: tabular-nums; }
.no-recipes { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.no-recipes p { color: var(--muted); margin: 6px 0 12px; }

.recipe-intro { border: 1px solid var(--line); border-radius: clamp(20px, 3vw, 30px); background: var(--sand); overflow: hidden; }
.recipe-intro.has-photo { display: grid; grid-template-columns: 1fr .92fr; align-items: stretch; }
.recipe-intro-copy { align-self: center; padding: clamp(23px, 4.1vw, 55px); }
.recipe-intro h1 { margin-top: 8px; font-size: clamp(3.1rem, 6.2vw, 6.3rem); line-height: .89; letter-spacing: -.015em; }
.recipe-intro:not(.has-photo) h1 { max-width: 20ch; }
.recipe-intro-copy p { color: var(--muted); margin-top: 12px; max-width: 52ch; }
.recipe-intro .quick-facts { max-width: 385px; }
.recipe-intro .quick-facts small { margin-top: 2px; }
.recipe-feature-photo img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.recipe-photo-credit { font-size: .74rem; color: var(--muted); margin: 7px 5px 0; }
.recipe-photo-credit a { text-underline-offset: .17em; }

.recipe-worktop { display: grid; grid-template-columns: minmax(245px,.69fr) minmax(0,1.31fr); align-items: start; gap: clamp(15px, 4vw, 45px); margin-top: clamp(28px, 5vw, 64px); }
.recipe-worktop h2 { font-size: clamp(2.6rem, 4.3vw, 3.85rem); }
.ingredient-panel { background: #f2ebde; }
.ingredient-progress { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; color: var(--muted); font-size: .84rem; }
.ingredient-progress p { margin-top: 7px; }
.ingredient-panel .checklist { margin-top: 7px; }
.recipe-checks label { font-size: .96rem; }
.method-steps {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.method-steps > li.step { gap: 11px; padding: 15px 17px; }
.method-steps > li.step::before { width: 31px; height: 31px; font-size: .82rem; }
.method-steps h3 { margin: 2px 0 4px; }
.method-steps p { color: var(--muted); max-width: 70ch; }
.recipe-tip { padding: 12px 15px; margin-top: 12px; border-left: 3px solid var(--red); border-radius: 0 9px 9px 0; background: var(--red-wash); }
.recipe-tip h3 { color: #85351f; font-size: 1rem; }
.recipe-tip p { margin-top: 4px; }
.site-info { max-width: 1010px; }
.site-info-intro { margin-top: clamp(19px, 3vw, 42px); padding: clamp(22px, 6vw, 67px); border: 1px solid var(--line); border-radius: clamp(19px, 3vw, 32px); background: var(--sand); }
.site-info h1 { font-size: clamp(3.05rem, 7.5vw, 6rem); line-height: .92; }
.site-info h2 { font-size: clamp(2.25rem, 4.9vw, 3.6rem); }
.site-info p { max-width: 60ch; margin-top: 12px; color: var(--muted); }
.site-info-intro p:first-of-type { margin-top: 18px; font-size: clamp(1.04rem, 2vw, 1.19rem); }
.site-info-section { margin-top: clamp(23px, 4vw, 40px); padding: 0 clamp(0px, 2vw, 17px); }
.site-info .hero-actions .button { white-space: normal; }
.guide-table { width: min(100%, 380px); margin-top: 14px; border-collapse: collapse; }
.guide-table th, .guide-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.guide-table thead { background: var(--green-wash); color: var(--green); }
.guide-table tbody th { font-weight: 500; }
.guide-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.guide-steps { max-width: 65ch; display: grid; gap: 10px; padding-inline-start: 24px; }
.technique-guide .recipe-grid { margin-top: 12px; }
.story-intro { background: var(--green); }
.story-intro h1, .story-intro p { color: var(--card); }
.story-section { max-width: 690px; margin-inline: auto; }
.story-section + .story-section { padding-top: 22px; border-top: 1px solid var(--line); }
.story-contents summary { min-height: 44px; padding-block: 10px; color: var(--green); font-weight: 700; cursor: pointer; }
.kitchen-project { margin-top: 20px; }
.kitchen-project + .kitchen-project { margin-top: 28px; }
.kitchen-project h3 { color: var(--green); font: 400 clamp(1.65rem, 3.4vw, 2.35rem)/1.05 var(--serif); }

@media (max-width: 920px) {
  .cookbook-hero-copy { padding-inline: clamp(23px, 4.5vw, 43px); }
  .cookbook-hero h1 { font-size: clamp(4rem, 9.2vw, 6.7rem); }
  .cookbook-hero-image img { min-height: 360px; }
  .method-steps > li.step { grid-template-columns: auto minmax(0,1fr); }
  .method-steps .step-tools { grid-column: 2; }
}
@media (max-width: 690px) {
  .cookbook-hero, .recipe-intro.has-photo, .recipe-worktop { grid-template-columns: 1fr; }
  .cookbook-hero h1 { font-size: clamp(4.65rem, 12.5vw, 7rem); }
  .cookbook-hero-copy { padding: 27px 23px 21px; }
  .cookbook-hero-copy p { margin-top: 14px; }
  .cookbook-hero-image img { height: auto; min-height: 0; aspect-ratio: 1.64; }
  .featured-link { right: 11px; bottom: 11px; }
  .collection-heading { align-items: stretch; flex-direction: column; }
  .collection-heading h2 { font-size: clamp(3.1rem, 9vw, 4rem); }
  .recipe-search { width: 100%; }
  .filter-bar { margin-top: 14px; gap: 6px; }
  .filter-chip { min-height: 44px; padding-inline: 11px; font-size: .82rem; }
  .recipe-feature-photo img { height: auto; min-height: 0; aspect-ratio: 1.65; }
  .recipe-worktop { gap: 24px; }
  .method-steps .step-tools { grid-column: 1 / -1; }
  #recipes, #ingredient-list, #method { scroll-margin-top: 72px; }
  .collection-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
  .topbar-egg-link { display: none; }
}
@media (max-width: 359px) {
  .cookbook-page nav a { padding-inline: 7px; }
  .cookbook-hero h1 { font-size: 4.25rem; }
}
