@font-face {
  font-family: 'DM Sans';
  src: url('dm-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url('fraunces.woff2') format('woff2');
  font-weight: 500 600;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url('fraunces-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ink: light-dark(#202b23, #eaf0e8);
  --muted-ink: light-dark(#576259, #b4c2b8);
  --green: #00ac46;
  --forest: light-dark(#13452a, #c1e8cc);
  --green-ink: light-dark(#007438, #7cdda0);
  --green-surface: light-dark(#e6f9e9, #1b3325);
  --green-subtle: light-dark(#f0faf1, #192b21);
  --green-line: light-dark(#b9dfc5, #3a5b46);
  --green-button: light-dark(#007438, #08783e);
  --green-hover: light-dark(#005e2e, #0b8545);
  --on-green: #fffefa;
  --paper: light-dark(#f9f8f3, #131a16);
  --surface: light-dark(#fffefa, #202a24);
  --line: light-dark(#e0e2d8, #36463b);
  --manual-surface: light-dark(#f1eee3, #373125);
  --manual-ink: light-dark(#605b43, #e2d8b8);
  --serif: Fraunces, Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
img { display: block; width: 100%; object-fit: cover; }
svg { width: 1.15em; height: 1.15em; flex: none; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
button, input { font: inherit; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 5px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap { width: min(100% - 80px, 1220px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; color: var(--forest); font: 600 35px/1 var(--serif); letter-spacing: -.07em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; margin-right: 9px; border-radius: 12px; background: var(--green-button); color: var(--on-green); }
.brand-mark svg { width: 29px; height: 29px; }
.brand-dot { color: var(--green); }
.header-inner nav { display: flex; align-items: center; gap: 30px; font-size: .875rem; font-weight: 600; }
.header-inner nav a { color: var(--muted-ink); text-decoration: none; padding-block: 10px; }
.header-inner nav a:hover, .header-inner nav .nav-active { color: var(--forest); }
.header-inner nav .nav-active { box-shadow: inset 0 -2px var(--green); }
.header-preferences { display: flex; align-items: center; gap: 4px; }
.language-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--green-line); border-radius: 100px; background: var(--surface); white-space: nowrap; }
.language-switch a { padding: 6px 10px; border-radius: 100px; color: var(--forest); font-size: .8125rem; font-weight: 700; text-decoration: none; }
.language-switch a:hover { background: var(--green-surface); }
.language-switch a[aria-current] { background: var(--green-button); color: var(--on-green); }
.language-switch a:focus-visible { outline-offset: 1px; }
.theme-control { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--muted-ink); }
.theme-control:hover, .theme-control:focus-within { background: var(--green-surface); color: var(--forest); }
.theme-control select { position: absolute; inset: 0; width: 100%; height: 100%; appearance: none; border: 0; border-radius: inherit; background: transparent; color: transparent; font: inherit; cursor: pointer; }
.theme-control select:focus-visible { outline-offset: 1px; }
.theme-control option { background: var(--surface); color: var(--ink); }
@media (forced-colors: active) {
  .theme-control select { forced-color-adjust: none; }
  .theme-control select:focus-visible { outline-color: Highlight; }
  .theme-control option { background: Canvas; color: CanvasText; }
}

.discovery { display: grid; grid-template-columns: 1fr 1fr; margin-top: 32px; min-height: 450px; border-radius: 22px; overflow: hidden; background: var(--green-surface); }
.discovery:has(.spotlight[hidden]) .discovery-copy { grid-column: 1 / -1; }
.discovery-copy { align-self: center; padding: clamp(26px, 4.2vw, 62px); }
.eyebrow { display: flex; gap: 8px; align-items: center; color: var(--green-ink); font-size: .69rem; font-weight: 700; letter-spacing: .13em; line-height: 1.35; }
.eyebrow-line { width: 18px; height: 1px; flex: none; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 { margin-top: 15px; font-size: clamp(2.7rem, 5.65vw, 5.15rem); line-height: .99; letter-spacing: -.055em; }
h1 em { color: var(--green-ink); font-weight: 500; }
.hero-description { max-width: 37ch; margin-top: 20px; color: var(--muted-ink); }
.search-box { display: flex; align-items: center; gap: 12px; max-width: 32rem; margin-top: 25px; padding: 5px 5px 5px 15px; border: 1px solid var(--green-line); border-radius: 11px; background: var(--surface); }
.search-box:focus-within { border-color: var(--green-ink); }
.search-box svg { color: var(--green-ink); }
.search-box input { flex: 1; min-width: 0; min-height: 38px; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: .875rem; }
.search-box input::placeholder { color: var(--muted-ink); }
.search-box button, .primary-link { border: 0; border-radius: 7px; padding: 10px 17px; background: var(--green-button); color: var(--on-green); font-size: .85rem; font-weight: 700; }
.suggestions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; color: var(--muted-ink); font-size: .72rem; }
.suggestions > :first-child { margin-right: 4px; }
.pill { border: 1px solid var(--green-line); border-radius: 100px; padding: 4px 9px; background: transparent; color: var(--forest); font-weight: 600; }
.pill:hover { background: var(--surface); }
.pill[aria-pressed="true"] { border-color: var(--green-button); background: var(--green-button); color: var(--on-green); }

.spotlight { display: grid; min-width: 0; }
.featured { position: relative; display: flex; align-items: end; min-height: 320px; overflow: hidden; isolation: isolate; background: #13452a; color: #fff; text-decoration: none; }
.featured img { position: absolute; inset: 0; z-index: -2; height: 100%; object-position: 82% center; transition: transform .35s ease; }
.featured::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(15 27 18 / .94), rgb(15 27 18 / .68) 46%, transparent 78%); }
.featured:hover img { transform: scale(1.04); }
.featured:focus-visible { outline-offset: -6px; outline-color: #fff; }
.featured-copy { display: flex; flex: 1; align-items: end; justify-content: space-between; gap: 12px; padding: clamp(20px, 3.1vw, 40px); }
.featured-copy .eyebrow { color: #f1f7e8; }
.featured-copy h2 { margin-block: 7px 4px; font-size: clamp(1.7rem, 3.1vw, 2.5rem); line-height: 1.07; letter-spacing: -.035em; }
.featured-meta, .card-copy p { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; font-size: .8rem; }
.meta-separator { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.featured-arrow { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid #fff9; border-radius: 50%; }
.featured:hover .featured-arrow { background: #fff; color: #13452a; }

.collection { margin-block: 44px 56px; scroll-margin-top: 24px; }
.starred-collection .eyebrow svg { fill: currentColor; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 19px; }
.section-heading h2, .method h2 { margin-top: 6px; font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.1; letter-spacing: -.045em; }
.section-heading > p { color: var(--muted-ink); font-size: .875rem; }
.collection-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; color: var(--muted-ink); font-size: .875rem; }
.collection-controls > :not(:empty) { margin-bottom: 12px; }
.catalog-progress { display: block; width: min(100%, 20rem); accent-color: var(--green-button); }
.recipe-language { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-left: auto; color: var(--forest); font-weight: 600; }
.recipe-language select { max-width: 100%; padding: 5px 7px; border: 1px solid var(--green-line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--green-ink); font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }
.load-more { display: block; margin: 20px auto 0; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.recipe-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.card-link { display: block; height: 100%; text-decoration: none; }
.card-link:hover h3 { color: var(--green-ink); text-decoration: underline; text-underline-offset: .13em; }
.card-link:focus-visible { outline-offset: -3px; }
.card-image { position: relative; }
.card-image img { aspect-ratio: 1.9; }
.card-image span { position: absolute; top: 10px; left: 10px; max-width: calc(100% - 68px); overflow-wrap: anywhere; border-radius: 100px; padding: 4px 9px; background: var(--surface); color: var(--forest); font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.card-copy { padding: 15px; }
.card-copy h3 { margin-bottom: 5px; font-size: clamp(1.1rem, 2.4vw, 1.55rem); line-height: 1.15; letter-spacing: -.035em; }
.card-copy p { color: var(--muted-ink); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 19px; border-top: 1px solid var(--line); color: var(--muted-ink); font-size: .75rem; }

.back-link { display: inline-flex; align-items: center; gap: 7px; margin-block: 21px 15px; color: var(--forest); font-size: .85rem; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.recipe-intro { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 22px; background: var(--green-surface); }
.recipe-intro-copy { align-self: center; padding: clamp(25px, 4.1vw, 60px); }
.recipe-intro h1 em { display: block; }
#recipe-category { text-transform: uppercase; }
.recipe-photo { height: 100%; min-height: 310px; object-position: 83% center; }
.recipe-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 17px; list-style: none; color: var(--forest); font-size: .8rem; font-weight: 700; }
.recipe-facts li { display: flex; align-items: center; gap: 5px; }
.primary-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 21px; text-decoration: none; }
.primary-link:hover { background: var(--green-hover); }
.recipe-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 21px; }
.recipe-actions .primary-link { margin-top: 0; }
.star-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--green-line); border-radius: 7px; background: var(--surface); color: var(--forest); font-size: .85rem; font-weight: 700; }
.star-button:hover { background: var(--green-subtle); border-color: var(--green-ink); }
.star-button[aria-pressed="true"] { border-color: var(--green-ink); color: var(--green-ink); }
.star-button[aria-pressed="true"] svg { fill: currentColor; }
.recipe-card .star-button { position: absolute; top: 8px; right: 8px; width: 44px; padding: 0; border-radius: 50%; }
.recipe-card .star-button:focus-visible { outline-offset: 2px; }
.equipment { display: flex; align-items: center; gap: 18px 28px; margin-top: 23px; padding: 17px 20px; border: 1px solid var(--green-line); border-radius: 15px; background: var(--green-subtle); }
.equipment-heading { flex: none; }
.equipment h2, .ingredients h2 { margin-top: 4px; font-size: 1.6rem; line-height: 1.13; letter-spacing: -.045em; }
.equipment-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: 1; gap: 10px; list-style: none; }
.equipment-list li { display: flex; gap: 8px; align-items: center; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: .84rem; font-weight: 700; }
.equipment-list small { display: block; color: var(--muted-ink); font-size: .7rem; font-weight: 400; }
.tool-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 7px; background: var(--green-surface); color: var(--forest); }
.tool-icon svg { width: 25px; height: 25px; }

.recipe-content { display: grid; grid-template-columns: minmax(215px, 1fr) minmax(0, 2.3fr); align-items: start; gap: clamp(18px, 3vw, 36px); margin-block: 30px 55px; }
.ingredients { padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.ingredients p { margin-block: 4px 10px; color: var(--muted-ink); font-size: .8rem; }
.ingredients ul { list-style: none; font-size: .875rem; }
.ingredients li { padding-block: 9px; border-top: 1px solid var(--line); }
.ingredients .ingredient-section { color: var(--forest); font-weight: 700; }
.ingredients strong { margin-right: 4px; color: var(--forest); }
.method { scroll-margin-top: 25px; }
.steps { counter-reset: step; list-style: none; margin-top: 14px; }
.step { position: relative; counter-increment: step; padding: 17px 17px 17px 59px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.step + .step { margin-top: 11px; }
.step::before { content: counter(step, decimal-leading-zero); position: absolute; top: 16px; left: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-button); color: var(--on-green); font-size: .73rem; font-weight: 700; }
.step h3 { font-size: 1.33rem; line-height: 1.2; letter-spacing: -.025em; }
.step p { margin-top: 5px; color: var(--muted-ink); font-size: .9rem; }
.settings { margin-top: 12px; padding: 9px 11px 11px; border: 1px solid var(--green-line); border-left: 3px solid var(--green); border-radius: 10px; background: var(--green-surface); color: var(--forest); }
.settings-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 10px; margin-bottom: 8px; }
.machine-label, .manual-label { font-size: .64rem; font-weight: 700; letter-spacing: .105em; }
.step-tool { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 1px solid var(--green-line); border-radius: 100px; background: var(--green-subtle); font-size: .7rem; font-weight: 700; }
.metrics { display: grid; grid-template-columns: .85fr 1.2fr .95fr; gap: 5px; }
.metrics > div { min-width: 0; padding: 6px clamp(5px, 1vw, 12px) 8px; border-radius: 6px; background: var(--surface); }
.metrics dt { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; font-size: .69rem; font-weight: 600; }
.metrics dd { margin-top: 3px; font-size: 1.27rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.metrics dd small { font-size: .72rem; font-weight: 600; }
.metrics .text-value { font-size: .9rem; padding-top: 4px; }
.metrics .direction { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.direction small { white-space: nowrap; }
.manual-label { display: inline-block; margin-top: 9px; padding: 3px 7px; border-radius: 5px; background: var(--manual-surface); color: var(--manual-ink); text-transform: uppercase; }
.notice { margin-block: 14px 32px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted-ink); }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .discovery { min-height: 390px; }
}

@media (max-width: 1050px) {
  .equipment { flex-wrap: wrap; }
  .equipment-list { flex-basis: 100%; }
}

@media (max-width: 780px) {
  .equipment-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { min-height: 60px; gap: 10px; }
  .header-inner nav { gap: clamp(8px, 2.4vw, 14px); font-size: .8rem; }
  .brand { font-size: clamp(23px, 6.15vw, 30px); }
  .brand-mark { width: 31px; height: 31px; margin-right: 6px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .discovery, .recipe-intro { grid-template-columns: 1fr; border-radius: 16px; }
  .discovery { margin-top: 17px; }
  .discovery-copy, .recipe-intro-copy { padding: 23px 19px 26px; }
  h1 { font-size: clamp(2.65rem, 10.3vw, 4rem); }
  .featured, .recipe-photo { min-height: 0; aspect-ratio: 1.45; }
  .recipe-photo { height: auto; }
  .hero-description { margin-top: 12px; font-size: .9rem; }
  .search-box { margin-top: 17px; gap: 6px; padding-left: 9px; }
  .search-box button { padding-inline: 12px; }
  .collection { margin-block: 28px 33px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 5px; }
  .section-heading br { display: none; }
  .recipe-grid { grid-template-columns: 1fr; }
  .card-link { display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; }
  .card-image img { height: 100%; min-height: 105px; aspect-ratio: 1.3; }
  .card-copy h3 { font-size: 1.3rem; }
  .equipment { margin-top: 14px; padding: 12px; gap: 10px; }
  .recipe-content { grid-template-columns: 1fr; margin-block: 16px 33px; }
  .step { padding: 12px; }
  .step::before { top: 10px; left: 11px; width: 27px; height: 27px; }
  .step h3 { min-height: 27px; padding-left: 35px; }
}

@media (max-width: 555px) {
  .header-inner { flex-wrap: wrap; gap: 0 8px; padding-top: 8px; }
  .header-inner nav { order: 1; width: 100%; gap: 18px; }
  .header-inner nav a { padding-block: 6px; }
}

@media (max-width: 350px) {
  .equipment-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .featured img { transition: none; }
}
