:root {
  --bg: #e5f8f8;
  --bg-strong: #bbe8ea;
  --home-hero-gradient:
    radial-gradient(circle at 100% 0%, rgba(241, 150, 130, 0.24), transparent 26%),
    radial-gradient(circle at 0% 100%, rgba(114, 221, 212, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(255, 252, 248, 0.96), rgba(227, 247, 247, 0.92));
  --surface: rgba(248, 255, 255, 0.78);
  --surface-strong: rgba(255, 250, 245, 0.94);
  --ink: #0a3140;
  --muted: #446a74;
  --line: rgba(10, 49, 64, 0.12);
  --sage: #72ddd4;
  --sage-deep: #0d6175;
  --berry: #f19682;
  --berry-soft: #ffd9cf;
  --sun: #f5d39b;
  --pearl: #fffaf6;
  --reef: #1a7e92;
  --reef-deep: #09485a;
  --lagoon-shadow: 0 26px 72px rgba(11, 82, 102, 0.2);
  --card-shadow: 0 18px 48px rgba(11, 82, 102, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: min(1180px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 10% 12%, rgba(245, 211, 155, 0.42), transparent 18%),
    radial-gradient(circle at 88% 8%, rgba(114, 221, 212, 0.34), transparent 24%),
    radial-gradient(circle at 78% 28%, rgba(241, 150, 130, 0.22), transparent 18%),
    linear-gradient(180deg, #fbffff 0%, #ebfaf8 24%, #d6f1f1 54%, #a5d4dd 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.page-recipe {
  background:
    radial-gradient(circle at 10% 12%, rgba(245, 211, 155, 0.42), transparent 18%),
    radial-gradient(circle at 88% 8%, rgba(114, 221, 212, 0.34), transparent 24%),
    radial-gradient(circle at 78% 28%, rgba(241, 150, 130, 0.22), transparent 18%),
    linear-gradient(180deg, #fbffff 0%, #ebfaf8 24%, #d6f1f1 54%, #a5d4dd 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16px 16px, rgba(255, 255, 255, 0.26) 0 6px, transparent 6px) 0 0 / 76px 76px,
    radial-gradient(circle at 56px 54px, rgba(255, 255, 255, 0.14) 0 4px, transparent 4px) 0 0 / 76px 76px,
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 18%, transparent 18%) 0 0 / 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 92%);
  opacity: 0.8;
}

body::after {
  content: "";
  position: fixed;
  inset: auto -10vw -14rem auto;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.54), transparent 30%),
    radial-gradient(circle, rgba(105, 208, 203, 0.18), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  opacity: 0.7;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
strong {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: -0.02em;
}

p {
  line-height: 1.65;
}

.page-shell {
  position: relative;
  width: var(--content-width);
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

main [id] {
  scroll-margin-top: 7.5rem;
}

.site-header,
.hero,
.panel,
.feature-band,
.browse-shell,
.related-shell,
.collection-shell,
.site-footer {
  animation: fade-up 0.6s ease both;
}

.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 252, 247, 0.9), rgba(228, 248, 248, 0.8));
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(11, 82, 102, 0.14);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.site-brand__mark {
  display: block;
  width: 4.1rem;
  height: 4.1rem;
  flex: 0 0 auto;
  filter: drop-shadow(0 16px 30px rgba(11, 82, 102, 0.28));
}

.site-brand__copy {
  display: block;
  min-width: 0;
}

.site-brand__wordmark {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.02em;
  font-size: 2.1rem;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--reef-deep), var(--sage-deep) 58%, var(--berry));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 24px rgba(11, 82, 102, 0.08);
}

.site-brand__wordmark span {
  font-size: 0.74em;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--sage-deep), var(--berry));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(114, 221, 212, 0.22);
  color: var(--reef-deep);
  transform: translateY(-1px);
}

.hero,
.recipe-layout,
.section-heading,
.filter-panel,
.recipe-card__meta,
.recipe-card__stats,
.hero-stats,
.hero-pill-row,
.action-stack,
.results-bar,
.fact-list,
.site-footer,
.site-footer__links {
  display: flex;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  align-items: stretch;
  gap: 1.2rem;
  margin: 0 0 1.4rem;
  padding: 1.5rem;
  border-radius: 42px 42px 68px 42px / 40px 40px 74px 48px;
  background: var(--home-hero-gradient);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--lagoon-shadow);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: 1.2rem;
  bottom: -0.55rem;
  left: 1.2rem;
  height: 2.2rem;
  background:
    radial-gradient(circle at 18px -4px, rgba(255, 255, 255, 0.62) 18px, transparent 19px) repeat-x;
  background-size: 38px 22px;
  opacity: 0.72;
}

.hero::after {
  content: "";
  position: absolute;
  right: -2rem;
  top: -2rem;
  width: 15rem;
  height: 15rem;
  border-radius: 52% 48% 40% 60% / 42% 58% 42% 58%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.42), transparent 18%),
    linear-gradient(135deg, rgba(245, 211, 155, 0.44), rgba(114, 221, 212, 0.2));
  animation: drift 14s ease-in-out infinite alternate;
}

.hero--berry {
  background: var(--home-hero-gradient);
}

.hero--sage {
  background: var(--home-hero-gradient);
}

.hero__copy,
.hero__panel {
  position: relative;
  z-index: 1;
  flex: 1;
}

.hero__copy {
  padding: 1.2rem 1.1rem 1rem;
}

.hero__panel {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
}

.hero__panel--home {
  grid-template-columns: minmax(0, 1fr);
}

.heritage-mermaid-card {
  position: relative;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  min-height: 13.5rem;
  overflow: hidden;
}

.heritage-mermaid-card img {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  min-height: 13.5rem;
  object-position: left center;
}

@media (max-width: 960px) {
  .heritage-mermaid-card {
    min-height: 11rem;
  }

  .heritage-mermaid-card img {
    min-height: 11rem;
  }
}

.hero__lede {
  max-width: 38rem;
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero--category {
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  padding: 1.3rem;
}

.hero--category .hero__copy {
  padding: 1rem 1rem 0.8rem;
}

.hero--category .hero__lede {
  max-width: 34rem;
  margin-bottom: 1rem;
}

.hero h1,
.recipe-hero h1 {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 0.95;
}

.recipe-hero h1 {
  font-size: clamp(2.2rem, 3.6vw, 4rem);
}

.eyebrow,
.panel__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--berry);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button,
.chip,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button {
  padding: 0.95rem 1.2rem;
  font-weight: 700;
}

.button:hover,
.chip:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, #16667a 0%, #59c8cb 62%, #f2c98f 100%);
  color: #fdfbf8;
  box-shadow: 0 12px 28px rgba(22, 102, 122, 0.26);
}

.button--secondary,
.chip,
.panel,
.filter-panel,
.recipe-card {
  background: var(--surface);
  border: 1px solid var(--line);
}

.button--secondary {
  color: var(--ink);
}

.hero__actions,
.hero__actions--recipe,
.hero-pill-row,
.chip-row,
.action-stack {
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-stats {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0 0;
}

.hero-stats--category {
  margin: 0 0 1rem;
  gap: 0.72rem;
}

.hero-stats div {
  min-width: 8rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(15, 52, 67, 0.08);
}

.hero-stats dt,
.fact-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-stats dd,
.fact-list dd {
  margin: 0.45rem 0 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.hero-stats--category dd {
  font-size: 1rem;
}

.panel {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(251, 255, 255, 0.84), rgba(239, 251, 251, 0.78));
  box-shadow: var(--card-shadow);
}

.panel--spotlight {
  position: relative;
  overflow: hidden;
}

.panel--compact {
  padding: 0.9rem 1rem;
}

.panel--spotlight::after {
  content: "";
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 208, 203, 0.22), transparent 68%);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.category-tile {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #fffdf8;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: var(--card-shadow);
}

.category-tile strong {
  font-size: 1.35rem;
}

.category-tile span:last-child {
  opacity: 0.88;
}

.category-tile--berry {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.24), transparent 18%),
    linear-gradient(135deg, #0d6073, #40aeb4 58%, #f09f88);
}

.category-tile--sage {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.2), transparent 18%),
    linear-gradient(135deg, #0d4f60, #1d8ea0 50%, #66d4cf);
}

.collection-shell,
.feature-band,
.browse-shell,
.related-shell {
  margin: 0 0 1.4rem;
}

.section-heading {
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.section-heading--tight {
  align-items: center;
}

.section-heading h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
}

.section-heading p,
.microcopy,
.results-bar p,
.recipe-card p,
.check-item span,
.step-item__copy {
  color: var(--muted);
}

.filter-panel {
  align-items: end;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding: 1rem;
  margin: 0 0 0.8rem;
  border-radius: var(--radius-lg);
}

.filter-group,
.search-field,
.select-field {
  display: grid;
  gap: 0.5rem;
}

.filter-group span,
.search-field span,
.select-field span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.search-field {
  flex: 1 1 20rem;
}

.search-field input,
.select-field select {
  min-height: 3.1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  padding: 0.85rem 1rem;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.chip {
  padding: 0.78rem 1rem;
  color: var(--ink);
  font-weight: 700;
}

.chip.is-active,
.chip[aria-pressed="true"] {
  background: rgba(105, 208, 203, 0.16);
  border-color: rgba(16, 90, 108, 0.18);
  color: var(--sage-deep);
}

.chip--toggle {
  align-self: end;
}

.chip--static {
  cursor: default;
}

.chip--ghost {
  background: rgba(105, 208, 203, 0.12);
  color: var(--sage-deep);
}

.results-bar {
  justify-content: space-between;
  align-items: center;
  min-height: 2rem;
  margin: 0 0 1rem;
}

.recipe-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.recipe-grid--featured {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.recipe-card {
  position: relative;
  min-height: 100%;
  padding: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.recipe-card::after {
  content: "";
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 70%);
  pointer-events: none;
}

.recipe-card__link {
  display: grid;
  gap: 0.9rem;
  height: 100%;
  text-decoration: none;
}

.recipe-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 90, 108, 0.18);
  box-shadow: 0 24px 56px rgba(20, 78, 95, 0.18);
}

.recipe-card h3 {
  margin: 0;
  font-size: 1.45rem;
}

.recipe-card p {
  margin: 0;
  font-size: 0.96rem;
}

.recipe-card__meta,
.recipe-card__stats {
  gap: 0.5rem;
  flex-wrap: wrap;
}

.recipe-card__stats {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero-gallery--home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.hero-gallery--category {
  gap: 0.72rem;
}

.home-gallery-shell {
  position: relative;
  margin: 0 0 1.2rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 32px;
  background:
    radial-gradient(circle at 100% 0%, rgba(114, 221, 212, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(255, 253, 250, 0.74), rgba(228, 246, 246, 0.7));
  box-shadow: 0 18px 42px rgba(11, 82, 102, 0.12);
  overflow: hidden;
}

.recipe-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(247, 255, 255, 0.92), rgba(226, 244, 244, 0.88));
  box-shadow: 0 18px 36px rgba(20, 78, 95, 0.16);
}

.recipe-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 36%, rgba(8, 65, 81, 0.16) 100%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%);
  z-index: 1;
  pointer-events: none;
}

.recipe-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.28s ease;
}

.recipe-card:hover .recipe-media img {
  transform: scale(1.06);
}

.recipe-media--card {
  aspect-ratio: 4 / 3;
}

.recipe-media--hero {
  aspect-ratio: 1 / 1;
  min-height: 24rem;
}

.recipe-media--category,
.recipe-media--credit {
  aspect-ratio: 1 / 1;
  min-height: 12rem;
}

.recipe-media--credit {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.recipe-media--fallback {
  display: grid;
  place-items: center;
  min-height: 12rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-gallery__link {
  position: relative;
  display: block;
  min-width: 0;
  text-decoration: none;
  transition: transform 0.22s ease;
}

.hero-gallery__link:hover {
  transform: translateY(-2px);
}

.hero-gallery__link:hover .recipe-media img {
  transform: scale(1.05);
}

.hero-gallery__link--home .recipe-media--category {
  aspect-ratio: 1 / 0.7;
  min-height: 8rem;
}

.hero-gallery__link--category .recipe-media--category {
  aspect-ratio: 1 / 0.6;
  min-height: 7.2rem;
}

.hero-gallery__caption {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 16px;
  background: rgba(8, 49, 61, 0.56);
  color: #fffdf8;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(5, 31, 39, 0.16);
}

.hero-gallery__caption strong {
  font-size: 0.98rem;
  line-height: 0.96;
}

.hero-gallery__caption span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.82;
  text-transform: uppercase;
}

.hero-gallery__link--home .hero-gallery__caption {
  right: 0.45rem;
  bottom: 0.45rem;
  left: 0.45rem;
  padding: 0.45rem 0.58rem;
}

.hero-gallery__link--home .hero-gallery__caption strong,
.hero-gallery__link--category .hero-gallery__caption strong {
  font-size: 0.88rem;
}

.hero-gallery__link--home .hero-gallery__caption span,
.hero-gallery__link--category .hero-gallery__caption span {
  font-size: 0.62rem;
}

.hero--category {
  align-items: start;
}

.hero--category .hero__panel {
  gap: 0.8rem;
}

.hero--category .panel--spotlight p {
  margin: 0;
}

.save-toggle {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--sage-deep);
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 8px 22px rgba(16, 90, 108, 0.15);
}

.save-toggle[aria-pressed="true"] {
  background: rgba(239, 143, 120, 0.18);
  border-color: rgba(239, 143, 120, 0.28);
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(11, 91, 110, 0.94), rgba(71, 190, 197, 0.9));
  color: #fffdf8;
  box-shadow: 0 20px 36px rgba(11, 82, 102, 0.22);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px rgba(11, 82, 102, 0.28);
}

.back-to-top span:first-child {
  font-size: 1rem;
  line-height: 1;
}

.back-to-top span:last-child {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recipe-page {
  position: relative;
  display: grid;
  gap: 1rem;
  overflow: visible;
}

.page-recipe .panel,
.page-recipe .stat-pill {
  background:
    linear-gradient(180deg, rgba(253, 255, 255, 0.92), rgba(245, 251, 251, 0.88));
  border-color: rgba(10, 49, 64, 0.14);
}

.page-recipe .hero__lede,
.page-recipe .breadcrumb,
.page-recipe .section-heading p,
.page-recipe .microcopy,
.page-recipe .results-bar p,
.page-recipe .check-item span,
.page-recipe .step-item__copy,
.page-recipe .fact-list dt {
  color: #325560;
}

.page-recipe .fact-list dd,
.page-recipe .progress-copy {
  color: #143846;
}

.page-recipe .check-item,
.page-recipe .step-item {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(10, 49, 64, 0.12);
}

.page-recipe .step-item__number {
  background: rgba(105, 208, 203, 0.18);
  color: #0a4d5f;
}

.recipe-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  gap: 1rem;
  align-items: start;
}

.recipe-hero__copy,
.recipe-hero__aside {
  min-width: 0;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.recipe-hero__subtitle {
  margin: 0 0 0.8rem;
  color: var(--berry);
  font-weight: 700;
}

.recipe-hero__tools {
  gap: 0.9rem;
}

.recipe-layout {
  align-items: start;
  gap: 1rem;
}

.recipe-main {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--recipe-main-lift, 0px));
}

.recipe-sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
  width: min(19rem, 100%);
  position: sticky;
  top: 6.4rem;
}

.recipe-section {
  display: grid;
  gap: 1.1rem;
}

.check-group,
.step-group {
  display: grid;
  gap: 0.7rem;
}

.check-group h3,
.step-group h3 {
  margin: 0;
  font-size: 1.15rem;
}

.check-stack,
.step-stack {
  display: grid;
  gap: 0.7rem;
}

.check-item,
.step-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 52, 67, 0.08);
}

.step-item {
  grid-template-columns: auto auto 1fr;
}

.check-item input,
.step-item input {
  margin-top: 0.28rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--berry);
}

.step-item__number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(105, 208, 203, 0.14);
  color: var(--sage-deep);
  font-weight: 800;
}

.check-item input:checked + span,
.step-item input:checked ~ .step-item__copy {
  color: rgba(79, 102, 87, 0.72);
  text-decoration: line-through;
}

.step-item input:checked ~ .step-item__number {
  background: rgba(239, 143, 120, 0.18);
  color: var(--berry);
}

.fact-list {
  flex-direction: column;
  gap: 1rem;
  margin: 0;
}

.fact-list div {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.fact-list div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.method-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.text-button {
  padding: 0;
  background: transparent;
  color: var(--berry);
  font-weight: 700;
}

.note-list {
  margin: 0.4rem 0 0;
  padding-left: 1rem;
}

.related-shell {
  padding-top: 0.2rem;
}

.empty-state {
  padding: 2rem 1rem;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(23, 53, 39, 0.2);
}

.site-footer {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid rgba(15, 52, 67, 0.12);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.site-footer__logo {
  width: 3rem;
  height: 3rem;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(11, 82, 102, 0.18));
}

.site-footer__brand strong {
  display: block;
}

.site-footer__wordmark {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.02em;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  line-height: 0.9;
  background: linear-gradient(135deg, var(--reef-deep), var(--sage-deep) 58%, var(--berry));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer__wordmark span {
  font-size: 0.76em;
  letter-spacing: -0.03em;
}

.site-footer p {
  margin: 0.35rem 0 0;
}

.site-footer__links {
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(15, 52, 67, 0.08);
  font-weight: 700;
}

.microcopy--credit a,
.credit-card__body a {
  color: var(--sage-deep);
}

.credits-shell {
  margin-top: 1.2rem;
}

.credits-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.credit-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  align-content: start;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(248, 255, 255, 0.76);
  box-shadow: var(--card-shadow);
}

.credit-card__body {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.credit-card__body h2,
.credit-card__body p {
  margin: 0;
}

.is-hidden {
  display: none !important;
}

body.is-cook-mode .site-header,
body.is-cook-mode .recipe-sidebar,
body.is-cook-mode .related-shell,
body.is-cook-mode .site-footer,
body.is-cook-mode .back-to-top {
  display: none;
}

body.is-cook-mode .page-shell {
  width: min(980px, calc(100vw - 1rem));
  padding-top: 0.5rem;
}

body.is-cook-mode .recipe-hero {
  grid-template-columns: 1fr;
}

body.is-cook-mode .recipe-hero__aside {
  display: none;
}

body.is-cook-mode .check-item,
body.is-cook-mode .step-item {
  font-size: 1.08rem;
  padding: 1rem 1.1rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translateY(0) rotate(0deg);
  }
  to {
    transform: translateY(22px) rotate(18deg);
  }
}

@media (max-width: 960px) {
  .hero,
  .recipe-hero,
  .recipe-layout,
  .site-footer {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .hero-gallery--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-gallery__link--home .recipe-media--category {
    min-height: 7rem;
  }

  .hero--home::after {
    display: none;
  }

  .recipe-sidebar {
    width: 100%;
    position: static;
  }

  .recipe-main {
    margin-top: 0;
  }

}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 1.25rem;
  }

  .page-shell {
    width: min(100vw - 2rem, 100%);
    padding-top: 0.7rem;
  }

  .site-header {
    position: static;
    border-radius: 28px;
    padding: 1rem;
  }

  .site-brand {
    gap: 0.78rem;
  }

  .site-brand__mark {
    width: 3.35rem;
    height: 3.35rem;
  }

  .site-brand__wordmark {
    font-size: 1.62rem;
  }

  .back-to-top {
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.76rem 0.9rem;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  main [id] {
    scroll-margin-top: 1.25rem;
  }

  .hero,
  .panel,
  .filter-panel,
  .recipe-card {
    border-radius: 22px;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
  }

  .hero-gallery--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-gallery__link--home .recipe-media--category,
  .recipe-media--hero,
  .recipe-media--category,
  .recipe-media--credit {
    min-height: 13.5rem;
  }

  .hero-gallery__link--home .recipe-media--category {
    min-height: 8.75rem;
  }

  .hero-gallery__caption {
    padding: 0.5rem 0.6rem;
  }

  .hero-gallery__caption strong {
    font-size: 0.88rem;
  }

  .category-strip {
    grid-template-columns: 1fr;
  }

  .button,
  .chip,
  .search-field input,
  .select-field select {
    width: 100%;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  body::before,
  .site-header,
  .recipe-hero__aside,
  .recipe-sidebar,
  .related-shell,
  .site-footer,
  .save-toggle,
  .back-to-top,
  .text-button {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .hero,
  .panel,
  .recipe-card,
  .check-item,
  .step-item {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
  }

  .recipe-media {
    box-shadow: none;
  }
}
