:root {
  --paper: #f7f2e9;
  --paper-deep: #eee6d8;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #252a21;
  --ink-soft: #5f655b;
  --ink-faint: #898d84;
  --sage: #5b7154;
  --sage-deep: #3e513a;
  --sage-pale: #dce3d4;
  --coral: #d96a45;
  --coral-deep: #b94f30;
  --sun: #e8b75d;
  --line: rgba(37, 42, 33, 0.14);
  --line-strong: rgba(37, 42, 33, 0.24);
  --shadow-sm: 0 10px 30px rgba(53, 48, 38, 0.08);
  --shadow-md: 0 22px 60px rgba(53, 48, 38, 0.13);
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --container: 1200px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #171b16;
  --paper-deep: #20251f;
  --surface: #222820;
  --surface-strong: #2a3128;
  --ink: #f5f0e6;
  --ink-soft: #bcc2b7;
  --ink-faint: #8e968b;
  --sage: #91aa87;
  --sage-deep: #c4d5bd;
  --sage-pale: #354132;
  --coral: #f18a63;
  --coral-deep: #ffaf91;
  --sun: #eec673;
  --line: rgba(245, 240, 230, 0.13);
  --line-strong: rgba(245, 240, 230, 0.24);
  --shadow-sm: 0 12px 32px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 26px 70px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 8%, rgba(232, 183, 93, 0.09), transparent 23rem),
    radial-gradient(circle at 92% 30%, rgba(91, 113, 84, 0.08), transparent 28rem),
    var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.22;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--sage);
  color: #fff;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 112px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--coral-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.eyebrow-light {
  color: #f2c66f;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  line-height: 1;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 26px rgba(190, 79, 48, 0.22);
}

.button-primary:hover {
  background: var(--coral-deep);
}

.button-cream {
  background: #f7f2e9;
  color: #263124;
}

.button-cream:hover {
  background: #fffdf8;
}

.button-ghost {
  border-color: var(--line-strong);
  background: transparent;
}

.button-ghost:hover {
  border-color: var(--sage);
  background: var(--sage-pale);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sage-deep);
  font-weight: 750;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link-light {
  color: #f7f2e9;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(50, 45, 36, 0.05);
}

.header-inner {
  display: grid;
  min-height: 78px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(50, 68, 44, 0.15);
}

.brand > span {
  display: grid;
  line-height: 1;
}

.brand strong {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 7px;
  color: var(--ink-faint);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.site-nav a {
  position: relative;
  padding: 28px 0 24px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.icon-button:hover {
  border-color: var(--sage);
  background: var(--sage-pale);
  transform: translateY(-2px);
}

.icon-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[data-theme="light"] .theme-icon-dark,
[data-theme="dark"] .theme-icon-light {
  display: none;
}

.favorite-counter {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 13px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
}

.favorite-counter svg {
  width: 17px;
  fill: none;
  stroke: var(--coral);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.favorite-counter b {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-pale);
  color: var(--sage-deep);
  font-size: 0.72rem;
}

.mobile-menu-button {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 0;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 8%;
  left: -110px;
  width: 300px;
  height: 300px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 2%;
  left: -62px;
  width: 190px;
  height: 190px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: 78px;
}

.hero-copy {
  padding: 30px 0 38px;
}

.hero h1 {
  margin-bottom: 26px;
  font-family: var(--font-serif);
  font-size: clamp(3.4rem, 5vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.hero h1 em {
  position: relative;
  color: var(--coral);
  font-style: normal;
}

.hero h1 em::after {
  position: absolute;
  right: 2px;
  bottom: -8px;
  left: 6px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sun) 45%, transparent);
  content: "";
  transform: rotate(-1.5deg);
}

.hero-lead {
  max-width: 590px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.9;
}

.hero-search {
  display: flex;
  max-width: 590px;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 7px 7px 7px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.hero-search > svg,
.filter-search > svg {
  width: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--ink-faint);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
}

.hero-search input::placeholder {
  color: var(--ink-faint);
}

.hero-search button {
  min-width: 98px;
  align-self: stretch;
  border-radius: 999px;
  background: var(--sage);
  color: #fff;
  cursor: pointer;
  font-weight: 750;
  transition: background-color 180ms ease;
}

.hero-search button:hover {
  background: var(--sage-deep);
}

[data-theme="dark"] .hero-search button:hover {
  color: #1d251c;
}

.popular-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.popular-searches button {
  padding: 5px 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.popular-searches button:hover {
  background: var(--sage-pale);
  color: var(--sage-deep);
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 54% 54% 28px 28px;
  box-shadow: var(--shadow-md);
}

.hero-image-wrap::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(21, 27, 20, 0.25));
  content: "";
  pointer-events: none;
}

.hero-image-wrap img {
  width: 100%;
  height: min(620px, 58vw);
  min-height: 490px;
  object-fit: cover;
}

.hero-note {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3px 12px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(252, 249, 241, 0.82);
  color: #283127;
  backdrop-filter: blur(16px);
}

.hero-note-icon {
  display: grid;
  width: 38px;
  height: 38px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 50%;
  background: #d96a45;
  color: #fff;
}

.hero-note p {
  margin: 0;
  color: #74786f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-note strong {
  font-family: var(--font-serif);
  font-size: 0.97rem;
}

.hero-sticker {
  position: absolute;
  z-index: 3;
  top: 56px;
  left: -34px;
  display: grid;
  width: 92px;
  height: 92px;
  place-content: center;
  border: 7px solid var(--paper);
  border-radius: 50%;
  background: var(--sun);
  color: #2e332b;
  text-align: center;
  transform: rotate(-9deg);
}

.hero-sticker span {
  font-size: 0.68rem;
  font-weight: 750;
}

.hero-sticker strong {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.hero-stats {
  display: grid;
  margin-top: 52px;
  grid-template-columns: repeat(3, 140px) 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-stats > div {
  display: grid;
  min-height: 104px;
  align-content: center;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
}

.hero-stats > div:first-child {
  padding-left: 0;
}

.hero-stats strong {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
}

.hero-stats strong small {
  font-size: 0.9rem;
}

.hero-stats span {
  margin-top: 7px;
  color: var(--ink-faint);
  font-size: 0.76rem;
  font-weight: 650;
}

.hero-stats > p {
  justify-self: end;
  max-width: 430px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 1rem;
  text-align: right;
}

/* Common section heading */
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.section-heading > p {
  max-width: 410px;
  margin-bottom: 4px;
  color: var(--ink-soft);
}

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

/* Featured recipe */
.featured-section {
  padding-top: 124px;
}

.featured-recipe {
  min-height: 540px;
}

.featured-card {
  display: grid;
  overflow: hidden;
  min-height: 540px;
  grid-template-columns: minmax(0, 1.17fr) minmax(360px, 0.83fr);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.featured-media {
  position: relative;
  min-height: 540px;
  overflow: hidden;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.featured-card:hover .featured-media img {
  transform: scale(1.035);
}

.featured-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  color: #2b3429;
  font-size: 0.76rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.featured-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 68px);
}

.featured-body .recipe-kicker {
  align-self: flex-start;
}

.featured-body h3 {
  margin: 18px 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.featured-body > p {
  margin-bottom: 26px;
  color: var(--ink-soft);
  line-height: 1.9;
}

.featured-quote {
  margin: 6px 0 30px;
  padding: 18px 0 18px 20px;
  border-left: 3px solid var(--sun);
  color: var(--ink-soft);
  font-family: var(--font-serif);
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Filters and cards */
.recipes-section {
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--paper-deep) 65%, transparent) 50%, transparent);
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-faint);
  font-size: 0.8rem;
}

.sort-control select {
  min-width: 128px;
  padding: 10px 34px 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background-color: var(--surface);
  cursor: pointer;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tab {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.category-tab:hover {
  border-color: var(--sage);
  transform: translateY(-1px);
}

.category-tab[aria-pressed="true"] {
  border-color: var(--sage);
  background: var(--sage);
  color: #fff;
}

.category-tab span {
  opacity: 0.7;
}

.filter-search {
  display: flex;
  min-width: min(340px, 100%);
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.filter-search input {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 0.88rem;
}

.result-meta {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.result-meta p {
  margin: 0;
}

.result-meta strong {
  color: var(--ink);
}

.result-meta button {
  padding: 0;
  background: transparent;
  color: var(--coral-deep);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
}

.recipe-card {
  position: relative;
  min-width: 0;
}

.recipe-card-link {
  display: block;
}

.recipe-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: var(--paper-deep);
}

.recipe-card-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(25, 31, 24, 0.2));
  content: "";
}

.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.recipe-card:hover .recipe-card-image img {
  transform: scale(1.055);
}

.recipe-time-badge {
  position: absolute;
  z-index: 2;
  bottom: 13px;
  left: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  color: #30362d;
  font-size: 0.72rem;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.recipe-time-badge svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.favorite-button {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.85);
  color: #3a4137;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.favorite-button:hover {
  transform: scale(1.08);
}

.favorite-button svg {
  width: 19px;
  fill: transparent;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.favorite-button[aria-pressed="true"] {
  background: #fff7f3;
  color: var(--coral);
}

.favorite-button[aria-pressed="true"] svg {
  fill: currentColor;
}

.recipe-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--sage-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.recipe-kicker::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.recipe-card h3 {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.recipe-card h3 a {
  transition: color 180ms ease;
}

.recipe-card h3 a:hover {
  color: var(--coral);
}

.recipe-card-description {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 0.89rem;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recipe-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.76rem;
}

.recipe-card-meta > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating {
  color: var(--ink);
  font-weight: 750;
}

.rating::before {
  margin-right: 3px;
  color: var(--sun);
  content: "★";
}

.empty-state {
  padding: 70px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  text-align: center;
}

.empty-state > span {
  display: block;
  margin-bottom: 12px;
  color: var(--coral);
  font-family: var(--font-serif);
  font-size: 3rem;
}

.empty-state h3 {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
}

.empty-state p {
  margin-bottom: 22px;
  color: var(--ink-soft);
}

/* Stories */
.stories-section {
  padding-bottom: 128px;
}

.story-grid {
  display: grid;
  min-height: 440px;
  grid-template-columns: 1.25fr 0.8fr 0.8fr;
  gap: 20px;
}

.story-card {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.story-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.story-number {
  position: absolute;
  top: 26px;
  right: 28px;
  color: var(--ink-faint);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
}

.story-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: auto;
  place-items: center;
  border-radius: 18px;
  background: var(--sage-pale);
  color: var(--sage-deep);
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.story-icon-coral {
  background: color-mix(in srgb, var(--coral) 18%, var(--surface));
  color: var(--coral-deep);
}

.story-icon-dark {
  background: var(--ink);
  color: var(--paper);
}

.story-card h3 {
  margin: 42px 0 12px;
  font-family: var(--font-serif);
  font-size: 1.65rem;
}

.story-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.story-card a {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin-top: 28px;
  color: var(--coral-deep);
  font-weight: 750;
}

.story-card-large {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(41, 54, 38, 0.86), rgba(79, 99, 71, 0.92)),
    url("assets/images/hero-table.webp") center / cover;
}

.story-card-large::after {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.story-card-large .story-number,
.story-card-large p {
  color: rgba(255, 255, 255, 0.72);
}

.story-card-large .story-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.story-card-large a {
  color: #f6c66a;
}

.story-card-accent {
  background: color-mix(in srgb, var(--sun) 23%, var(--surface));
}

/* Shopping / about */
.shopping-section {
  padding-top: 0;
}

.shopping-panel {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  border-radius: var(--radius-lg);
  background: var(--sage-deep);
  color: #fff;
}

.shopping-copy {
  padding: clamp(44px, 7vw, 86px);
}

.shopping-copy h2 {
  margin-bottom: 22px;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.shopping-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.72);
}

.shopping-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.shopping-list {
  position: relative;
  padding: clamp(42px, 6vw, 76px);
  background: rgba(15, 25, 14, 0.18);
}

.shopping-list::before {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.shopping-list > p {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.shopping-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.shopping-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-serif);
  font-size: 1.06rem;
}

.shopping-list li span {
  color: #f3c369;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

/* Newsletter */
.newsletter-section {
  padding-top: 0;
}

.newsletter {
  display: grid;
  align-items: center;
  gap: 60px;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.85fr);
  padding: 58px clamp(34px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 5% 10%, color-mix(in srgb, var(--sun) 18%, transparent), transparent 18rem),
    var(--surface);
}

.newsletter h2 {
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.newsletter p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.newsletter form {
  display: flex;
  gap: 10px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.newsletter input {
  min-width: 0;
  flex: 1;
  padding: 0 15px;
  border: 0;
  outline: 0;
  background: transparent;
}

/* Footer */
.site-footer {
  margin-top: 60px;
  padding: 70px 0 42px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.55fr 0.65fr 1fr;
  gap: 60px;
}

.brand-footer {
  margin-bottom: 18px;
}

.footer-grid > div:first-child > p {
  max-width: 330px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.footer-grid h3 {
  margin-bottom: 18px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
}

.footer-grid > div:not(:first-child):not(.footer-note) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-grid > div:not(:first-child):not(.footer-note) a {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.footer-grid > div:not(:first-child):not(.footer-note) a:hover {
  color: var(--coral);
}

.footer-note {
  text-align: right;
}

.footer-note p {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-family: var(--font-serif);
}

.footer-note span {
  color: var(--ink-faint);
  font-size: 0.76rem;
}

/* Recipe detail */
.recipe-detail-section {
  padding: 38px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--ink-faint);
  font-size: 0.78rem;
}

.breadcrumb a:hover {
  color: var(--coral);
}

.recipe-detail {
  min-height: 700px;
}

.recipe-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.97fr);
  gap: 68px;
}

.recipe-hero-image {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper-deep);
  box-shadow: var(--shadow-md);
}

.recipe-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 650px;
  object-fit: cover;
}

.recipe-hero-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(22, 28, 21, 0.26));
  content: "";
  pointer-events: none;
}

.recipe-photo-note {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.84);
  color: #30372e;
  font-size: 0.76rem;
  backdrop-filter: blur(14px);
}

.recipe-photo-note span:first-child {
  font-weight: 800;
}

.recipe-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
}

.recipe-hero-copy h1 {
  margin: 12px 0 20px;
  font-family: var(--font-serif);
  font-size: clamp(2.7rem, 4.7vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.recipe-subtitle {
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.85;
}

.recipe-stat-grid {
  display: grid;
  margin: 8px 0 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.recipe-stat {
  padding: 18px 12px 18px 0;
  border-right: 1px solid var(--line);
}

.recipe-stat:not(:first-child) {
  padding-left: 18px;
}

.recipe-stat:last-child {
  border-right: 0;
}

.recipe-stat span {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.recipe-stat strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.recipe-tags span {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--sage-pale);
  color: var(--sage-deep);
  font-size: 0.74rem;
  font-weight: 700;
}

.recipe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recipe-actions .favorite-action[aria-pressed="true"] {
  border-color: var(--coral);
  background: color-mix(in srgb, var(--coral) 12%, var(--surface));
  color: var(--coral-deep);
}

.recipe-actions .favorite-action[aria-pressed="true"] svg {
  fill: currentColor;
}

.recipe-actions svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.recipe-story {
  display: grid;
  margin: 78px 0 20px;
  gap: 70px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

.recipe-story blockquote {
  position: relative;
  margin: 0;
  padding: 34px 38px 34px 62px;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.8;
  box-shadow: var(--shadow-sm);
}

.recipe-story blockquote::before {
  position: absolute;
  top: 24px;
  left: 24px;
  color: var(--sun);
  content: "“";
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 1;
}

.recipe-description {
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 2;
}

.recipe-description p:last-child {
  margin-bottom: 0;
}

.recipe-content-grid {
  display: grid;
  margin-top: 76px;
  gap: 62px;
  grid-template-columns: minmax(300px, 0.73fr) minmax(0, 1.27fr);
  align-items: start;
}

.ingredients-panel {
  position: sticky;
  top: 104px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-heading .eyebrow {
  margin-bottom: 4px;
}

.panel-heading h2 {
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-size: 1.75rem;
}

.serving-control {
  display: grid;
  grid-template-columns: 34px minmax(62px, auto) 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.serving-control button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
}

.serving-control button:hover {
  background: var(--sage-pale);
}

.serving-control output {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 750;
}

.ingredient-group {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.ingredient-group h3 {
  margin-bottom: 14px;
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.ingredient-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ingredient-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  cursor: pointer;
}

.ingredient-item input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ingredient-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: #fff;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.ingredient-check svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  opacity: 0;
}

.ingredient-name {
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.ingredient-amount {
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 0.86rem;
  white-space: nowrap;
}

.ingredient-item input:focus-visible + .ingredient-check {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.ingredient-item input:checked + .ingredient-check {
  border-color: var(--sage);
  background: var(--sage);
}

.ingredient-item input:checked + .ingredient-check svg {
  opacity: 1;
}

.ingredient-item:has(input:checked) .ingredient-name,
.ingredient-item:has(input:checked) .ingredient-amount {
  color: var(--ink-faint);
  text-decoration: line-through;
}

.ingredients-note {
  margin-top: 24px;
  padding: 16px;
  border-radius: 14px;
  background: var(--sage-pale);
  color: var(--sage-deep);
  font-size: 0.78rem;
  line-height: 1.7;
}

.ingredients-note strong {
  display: block;
  margin-bottom: 4px;
}

.steps-panel {
  min-width: 0;
}

.steps-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.steps-heading h2 {
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-size: 2rem;
}

.cooking-progress {
  display: grid;
  min-width: 170px;
  gap: 8px;
}

.cooking-progress > span {
  color: var(--ink-faint);
  font-size: 0.74rem;
  text-align: right;
}

.progress-track {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: var(--paper-deep);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--sun));
  transition: width 300ms ease;
}

.step-list {
  display: grid;
  gap: 18px;
  counter-reset: step;
}

.step-item {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 28px 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition:
    border-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.step-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.step-item.is-complete {
  border-color: color-mix(in srgb, var(--sage) 50%, var(--line));
  background: color-mix(in srgb, var(--sage-pale) 45%, var(--surface));
}

.step-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.step-item.is-complete .step-number {
  background: var(--sage);
  color: #fff;
}

.step-body h3 {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.step-body > p {
  margin-bottom: 16px;
  color: var(--ink-soft);
  line-height: 1.85;
}

.step-tip {
  display: flex;
  align-items: start;
  gap: 8px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--sun) 14%, transparent);
  color: var(--ink-soft);
  font-size: 0.79rem;
  line-height: 1.65;
}

.step-tip::before {
  color: var(--coral);
  content: "✦";
}

.step-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-faint);
  font-size: 0.76rem;
  font-weight: 700;
}

.step-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.step-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--sage);
}

.finish-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 24px 26px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--paper);
}

.finish-card h3 {
  margin-bottom: 4px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.finish-card p {
  margin: 0;
  color: color-mix(in srgb, var(--paper) 66%, transparent);
  font-size: 0.8rem;
}

.button-reset {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
}

.recipe-extras {
  display: grid;
  margin-top: 82px;
  gap: 24px;
  grid-template-columns: 1fr 1fr 1fr;
}

.extra-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.extra-card h3 {
  margin-bottom: 18px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.extra-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.extra-card li {
  position: relative;
  padding: 9px 0 9px 20px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.extra-card li::before {
  position: absolute;
  top: 16px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.nutrition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.nutrition-item {
  padding: 12px;
  border-radius: 12px;
  background: var(--paper);
}

.nutrition-item span {
  display: block;
  color: var(--ink-faint);
  font-size: 0.66rem;
}

.nutrition-item strong {
  font-family: var(--font-serif);
  font-size: 1rem;
}

.substitution-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}

.substitution-row:last-child {
  border-bottom: 0;
}

.substitution-row span {
  color: var(--ink-faint);
}

.related-section {
  background: color-mix(in srgb, var(--paper-deep) 48%, transparent);
}

.recipe-grid-related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.back-to-top {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

/* Toast */
.toast {
  position: fixed;
  z-index: 1000;
  bottom: 26px;
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 650ms ease,
    transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    position: fixed;
    z-index: 99;
    top: 78px;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 20px 4px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-serif);
    font-size: 1.2rem;
  }

  .site-nav a::after {
    display: none;
  }

  .mobile-menu-button {
    display: grid;
    grid-column: 2;
    grid-row: 1;
  }

  .header-actions {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(3rem, 5.8vw, 4.6rem);
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stats > p {
    grid-column: 1 / -1;
    justify-self: stretch;
    max-width: none;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    text-align: left;
  }

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

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

  .story-card-large {
    grid-column: 1 / -1;
    min-height: 380px;
  }

  .newsletter {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .recipe-hero {
    gap: 42px;
  }

  .recipe-content-grid {
    gap: 34px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding: 82px 0;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-image-wrap {
    border-radius: 120px 120px 24px 24px;
  }

  .hero-image-wrap img {
    height: 56vw;
    min-height: 430px;
  }

  .hero-sticker {
    top: 24px;
    left: 20px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }

  .section-heading-row {
    align-items: start;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-media {
    min-height: 430px;
  }

  .featured-body {
    padding: 34px;
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-search {
    width: 100%;
  }

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

  .story-card-large {
    grid-column: auto;
  }

  .shopping-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 42px;
  }

  .footer-note {
    text-align: left;
  }

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

  .recipe-hero-image,
  .recipe-hero-image img {
    min-height: 520px;
  }

  .recipe-story {
    margin-top: 54px;
    gap: 28px;
    grid-template-columns: 1fr;
  }

  .recipe-content-grid {
    margin-top: 56px;
    grid-template-columns: 1fr;
  }

  .ingredients-panel {
    position: static;
  }

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

  .recipe-extras .extra-card:last-child {
    grid-column: 1 / -1;
  }

  .recipe-grid-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .section {
    padding: 68px 0;
  }

  .header-inner {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    display: none;
  }

  .mobile-menu-button,
  .icon-button {
    width: 40px;
    height: 40px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .hero-lead {
    font-size: 0.96rem;
  }

  .hero-search {
    min-height: 58px;
    padding-left: 15px;
  }

  .hero-search button {
    min-width: 82px;
    padding-inline: 12px;
  }

  .hero-image-wrap {
    border-radius: 80px 80px 22px 22px;
  }

  .hero-image-wrap img {
    height: 105vw;
    min-height: 380px;
  }

  .hero-note {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .hero-sticker {
    width: 78px;
    height: 78px;
    border-width: 5px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stats > div {
    min-height: 88px;
    padding: 14px 10px;
  }

  .hero-stats > div:first-child {
    padding-left: 0;
  }

  .hero-stats strong {
    font-size: 1.55rem;
  }

  .hero-stats span {
    font-size: 0.65rem;
  }

  .featured-media {
    min-height: 340px;
  }

  .featured-body,
  .story-card,
  .ingredients-panel,
  .extra-card {
    padding: 24px;
  }

  .featured-body h3 {
    font-size: 2rem;
  }

  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-tab {
    white-space: nowrap;
  }

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

  .story-card-large {
    min-height: 400px;
  }

  .shopping-copy,
  .shopping-list {
    padding: 32px 24px;
  }

  .newsletter {
    padding: 34px 22px;
  }

  .newsletter form {
    align-items: stretch;
    flex-direction: column;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .newsletter input {
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
  }

  .footer-grid > div:first-child,
  .footer-note {
    grid-column: 1 / -1;
  }

  .recipe-detail-section {
    padding-top: 24px;
  }

  .recipe-hero-image,
  .recipe-hero-image img {
    min-height: 390px;
  }

  .recipe-hero-copy h1 {
    font-size: clamp(2.5rem, 12vw, 3.6rem);
  }

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

  .recipe-stat {
    padding: 14px 8px 14px 0;
  }

  .recipe-stat:not(:first-child) {
    padding-left: 10px;
  }

  .recipe-stat strong {
    font-size: 0.9rem;
  }

  .recipe-story blockquote {
    padding: 30px 24px 30px 52px;
    font-size: 1.08rem;
  }

  .panel-heading,
  .steps-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .serving-control,
  .cooking-progress {
    width: 100%;
  }

  .serving-control {
    justify-content: space-between;
  }

  .cooking-progress > span {
    text-align: left;
  }

  .step-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 21px 18px;
  }

  .step-number {
    width: 42px;
    height: 42px;
  }

  .step-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .finish-card {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .recipe-extras .extra-card:last-child {
    grid-column: auto;
  }
}

@media print {
  .site-header,
  .recipe-actions,
  .related-section,
  .site-footer,
  .back-to-top,
  .toast,
  .ingredients-note .button {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .recipe-detail-section,
  .section {
    padding: 18px 0;
  }

  .container {
    width: 100%;
  }

  .recipe-hero {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .recipe-hero-image,
  .recipe-hero-image img {
    min-height: 360px;
  }

  .recipe-content-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
  }

  .ingredients-panel {
    position: static;
    box-shadow: none;
  }

  .step-item,
  .extra-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
