.cookbook {
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  background:#fffcf6;
}
.cookbook-backdrop {
  position:absolute;
  inset:0;
  z-index:-1;
  display:grid;
  grid-template:minmax(0,1fr) / minmax(0,1fr);
  place-items:center;
  container-type:size;
  overflow:hidden;
  pointer-events:none;
  opacity:.14;
}
.cookbook-backdrop img {
  grid-area:1/1;
  width:max(160cqw,160cqh);
  width:calc(1.28 * hypot(100cqw, 100cqh));
  max-width:none;
  height:auto;
  aspect-ratio:1;
}
.cookbook-copy {container-type:inline-size;}
.cookbook .section-title span {white-space:nowrap;}
@container (max-width:22em) {
  .cookbook-copy .section-title {font-size:min(2.25rem,11.5cqi);}
  .cookbook-copy .section-title span {font-size:min(9rem,34cqi);}
}
.cookbook-carousel {
  min-width: 0;
  margin: 0;
  container-type: inline-size;
}
.cookbook-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.68;
}
.cookbook-stage img {
  position: absolute;
  inset: 0;
  margin:auto;
  width:auto;
  height:83%;
  max-width:91%;
  aspect-ratio:1;
  display: block;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
.cookbook-captions {
  display: grid;
  padding: clamp(.8rem, 2cqi, 1.25rem) 0 0;
}
/* The longest title reserves its space even while another recipe is on screen. */
.cookbook-caption {
  grid-area: 1/1;
  min-width: 0;
  align-self: start;
  visibility: hidden;
  overflow-wrap: anywhere;
}
.cookbook-caption.is-active {visibility: visible;}
.cookbook-caption p { margin: 0; }
.cookbook-caption .cookbook-byline {
  color: #53604e;
  font: 570 .87rem/1.4 var(--body);
}
.cookbook-caption h3 {
  margin: .3rem 0 .45rem;
  font: 610 clamp(1.3rem, 4.2cqi, 2.12rem)/1.16 var(--body);
  letter-spacing: -.044em;
}
.cookbook-nutrition { display:flex; flex-wrap:wrap; align-items:baseline; gap:.18rem 1rem; color:var(--muted); font-size:.91rem; line-height:1.5; }
.cookbook-nutrition strong { color:var(--ink); font-weight:590; }
.cookbook-macros { display:flex; flex-wrap:wrap; align-items:baseline; gap:.2rem .65rem; }
.cookbook-macros span { white-space:nowrap; }
.cookbook-protein {
  padding:.09em .48em .13em;
  border-radius:.4em;
  background:#344126;
  color:#dbf898;
  font-size:1.1em;
  font-weight:650;
  line-height:1.3;
}
.cookbook-macros abbr { text-decoration:none; }
@container (max-width: 27rem) {
  .cookbook-stage { aspect-ratio: 1.32; }
}
@media (min-width:621px) and (max-width:800px) {
  .cookbook-layout { grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); gap:1.5rem; }
}
@media (forced-colors:active), (prefers-reduced-transparency:reduce) { .cookbook-backdrop {display:none;} }
