
:root {
  --ink: #18251d;
  --muted: #59675d;
  --cream: #f5eedc;
  --cream-deep: #ede2c7;
  --paper: #fffdf7;
  --paper-soft: #fbf7ea;
  --green: #12613b;
  --green-dark: #083d27;
  --green-deep: #062f1e;
  --green-soft: #e7f0e6;
  --lime: #a7d84b;
  --gold: #e9b934;
  --gold-soft: #fff3c7;
  --red: #a94632;
  --line: #cbd9c9;
  --shadow: 0 14px 34px rgba(8, 61, 39, 0.12);
  --radius: 20px;
  --sticky-header-clearance: 5.5rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
}
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
img { max-width: 100%; display: block; }
p, li, h1, h2, h3 { overflow-wrap: break-word; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: .75rem; top: .75rem; }
.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; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--green-deep); color: #fff; border-bottom: 5px solid var(--gold); }
.header-inner { max-width: 1480px; margin: 0 auto; padding: .78rem 1rem; display: flex; gap: .8rem; align-items: center; justify-content: space-between; }
.brand { flex: 0 0 auto; white-space: nowrap; color: #fff; text-decoration: none; font-weight: 900; letter-spacing: -.03em; font-size: 1.45rem; }
.brand span { display: inline-block; white-space: nowrap; color: var(--lime); }
.site-nav { min-width: 0; display: flex; flex: 0 1 auto; flex-wrap: nowrap; gap: .15rem .46rem; align-items: center; justify-content: flex-end; }
.site-nav a { flex: 0 0 auto; white-space: nowrap; color: #f6f7f5; text-decoration: none; font-size: .82rem; padding: .35rem .12rem; border-bottom: 2px solid transparent; }
.nav-cluster { display: contents; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.site-nav a:focus-visible, .brand:focus-visible, .button:focus-visible, .print-button:focus-visible, .filter-chip:focus-visible, .jump-links a:focus-visible, .related-grid a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hero { max-width: 1180px; margin: 1.5rem auto 0; padding: 3.2rem clamp(1rem, 4vw, 3rem) 2.6rem; background: linear-gradient(135deg, var(--paper) 0%, #eef4e8 100%); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 900; color: var(--green); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2.25rem, 7vw, 4.8rem); margin: .5rem 0 1rem; max-width: 900px; color: var(--green-deep); }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); margin-top: 0; color: var(--green-dark); }
h3 { font-size: 1.15rem; color: var(--green-dark); }
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #344238; max-width: 820px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; align-items: stretch; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1rem; border-radius: 999px; font-weight: 850; text-decoration: none; border: 2px solid var(--green-dark); background: var(--green-dark); color: #fff; text-align: center; }
.button:hover { background: var(--green-deep); color: #fff; }
.button.secondary { background: var(--paper); color: var(--green-dark); }
.button.secondary:hover { background: var(--green-soft); }
.section { max-width: 1180px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.section-head { display: flex; gap: 1rem; align-items: end; justify-content: space-between; margin-bottom: 1.2rem; }
.section-head p { max-width: 660px; color: var(--muted); margin: 0; }
.notice { border: 1px solid #dac77f; border-left: 6px solid var(--gold); background: var(--gold-soft); padding: 1rem 1.1rem; border-radius: 0 14px 14px 0; box-shadow: 0 6px 18px rgba(40,45,25,.06); }
.search-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; margin: 1rem 0 1.5rem; }
.search-panel label { min-width: 0; }
.search-panel input { min-width: 0; width: 100%; border: 2px solid #aabdaa; border-radius: 12px; padding: .8rem .9rem; font: inherit; background: #fff; color: var(--ink); }
.search-panel input:focus { outline: 3px solid rgba(167,216,75,.45); border-color: var(--green); }
.filter-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-chip { border: 1px solid #9fb39f; border-radius: 999px; background: var(--paper-soft); color: var(--green-dark); padding: .45rem .75rem; font: inherit; cursor: pointer; }
.filter-chip[aria-pressed="true"] { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.recipe-card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 9px 24px rgba(24,50,31,.08); display: flex; flex-direction: column; }
.recipe-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-art { position: relative; display: block; aspect-ratio: 16/9; background: #e8efe7; overflow: hidden; }
.card-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.image-badge { position: absolute; top: .75rem; left: .75rem; z-index: 2; display: inline-flex; align-items: center; max-width: calc(100% - 1.5rem); padding: .35rem .6rem; border-radius: 999px; background: rgba(8,61,39,.9); color: #fff; border: 1px solid rgba(233,185,52,.8); font-size: .72rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.photo-credit { position: absolute; right: .6rem; bottom: .5rem; z-index: 2; max-width: calc(100% - 1.2rem); padding: .25rem .45rem; border-radius: 8px; background: rgba(6,47,30,.78); color: #fff; font-size: .7rem; }
.card-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card-body h3 { margin: 0 0 .45rem; font-size: 1.25rem; }
.card-body h3 a { text-decoration: none; }
.card-body p { color: var(--muted); margin: 0 0 .8rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.pill { display: inline-flex; background: var(--green-soft); color: #24472f; border: 1px solid #c6d8c5; border-radius: 999px; padding: .27rem .55rem; font-size: .78rem; font-weight: 800; }
.no-results { display: none; padding: 2rem; text-align: center; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.recipe-hero { max-width: 1180px; margin: 0 auto; padding: 2.4rem 1rem 1.5rem; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 1.5rem; align-items: center; }
.recipe-hero > * { min-width: 0; }
.recipe-hero h1 { font-size: clamp(2.1rem, 6vw, 4.2rem); }
.hero-art { position: relative; width: 100%; min-width: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--paper); background: #e5eee5; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; object-position: center; }
.breadcrumbs { max-width: 1180px; margin: 0 auto; padding: 1rem 1rem 0; font-size: .9rem; color: var(--muted); }
.breadcrumbs a { color: inherit; }
.quick-facts { display: grid; grid-template-columns: repeat(4, minmax(120px,1fr)); gap: .65rem; margin-top: 1.25rem; }
.quick-fact { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 14px; padding: .7rem; }
.quick-fact strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--green); }
.recipe-layout { max-width: 1180px; margin: 0 auto; padding: 1rem 1rem 3rem; display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 1.4rem; align-items: start; }
.recipe-layout > * { min-width: 0; }
.recipe-sidebar { position: sticky; top: var(--sticky-header-clearance); display: grid; gap: 1rem; min-width: 0; }
.panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 22px rgba(24,50,31,.06); padding: 1.15rem; }
.panel h2, .panel h3 { margin-top: 0; }
.panel h2 { padding-bottom: .45rem; border-bottom: 2px solid rgba(233,185,52,.62); }
.jump-links { list-style: none; margin: 0; padding: 0; }
.jump-links li + li { border-top: 1px solid #dfe8dc; }
.jump-links a { display: block; padding: .55rem 0; text-decoration: none; font-weight: 700; }
.recipe-main { min-width: 0; display: grid; gap: 1rem; }
.recipe-main section, #recipe-library { scroll-margin-top: var(--sticky-header-clearance); }
.ingredients { columns: 2; column-gap: 2rem; }
ul, ol { padding-left: 1.35rem; }
li { margin: .35rem 0; }
.step-list { list-style: none; padding: 0; counter-reset: steps; }
.step-list li { position: relative; padding: 0 0 1.25rem 3.2rem; margin: 0; counter-increment: steps; break-inside: avoid; }
.step-list li::before { content: counter(steps); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; background: var(--green-dark); color: white; border: 2px solid var(--gold); font-weight: 900; }
.step-list strong { display: block; margin-bottom: .25rem; color: var(--green-dark); }
.timeline { border: 1px solid #c4d6c2; border-left: 4px solid var(--gold); border-radius: 10px; background: #f4f8ef; padding: .75rem .75rem .75rem 2rem; }
.safety { border: 2px solid #d4aa9f; background: #fff5ef; }
.safety h2 { color: #7e291d; border-bottom-color: #e6c3ba; }
.tip-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .7rem; }
.related-grid a { display: block; min-width: 0; border: 1px solid var(--line); background: var(--paper-soft); border-radius: 14px; padding: .9rem; font-weight: 850; text-decoration: none; }
.site-footer { background: var(--green-deep); color: #dce7df; margin-top: 2rem; border-top: 5px solid var(--gold); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 2rem 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .55rem 1rem; }
.footer-links a { color: #fff; }
.editorial-note { font-size: .9rem; color: #c4d4c9; max-width: 800px; }
.print-button { min-height: 46px; border: 2px solid var(--green-dark); background: var(--paper); color: var(--green-dark); border-radius: 999px; padding: .55rem .9rem; font: inherit; font-weight: 800; cursor: pointer; }
.print-button:hover { background: var(--green-soft); }
@media (max-width: 900px) {
  .recipe-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .recipe-hero, .recipe-layout { grid-template-columns: minmax(0, 1fr); }
  .recipe-hero > div:first-child { order: 1; }
  .recipe-hero .hero-art { order: 2; }
  .quick-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recipe-sidebar { position: static; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
@media (max-width: 1320px) {
  .site-header { position: static; top: auto; }
  .header-inner { align-items: flex-start; flex-direction: column; }
  .site-nav { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .nav-cluster { display: inline-flex; flex: 0 0 auto; gap: .46rem; }
  .recipe-sidebar { top: 1rem; }
  .recipe-main section, #recipe-library { scroll-margin-top: 1rem; }
}
@media (max-width: 620px) {
  .site-nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); width: 100%; }
  .site-nav a { min-width: 0; }
  .nav-cluster { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .15rem .46rem; }
  .hero { margin-top: .8rem; padding-top: 2.2rem; border-radius: 18px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .recipe-grid { grid-template-columns: minmax(0, 1fr); }
  .search-panel { grid-template-columns: minmax(0, 1fr); }
  .recipe-hero { padding-top: 1.5rem; }
  .recipe-hero h1 { font-size: clamp(2rem, 12vw, 3rem); }
  .recipe-sidebar { grid-template-columns: minmax(0,1fr); }
  .ingredients { columns: 1; }
  .tip-grid, .related-grid { grid-template-columns: minmax(0,1fr); }
  .hero-actions > * { flex: 1 1 190px; }
}
@media (max-width: 420px) {
  .quick-facts { grid-template-columns: minmax(0,1fr); }
  .hero-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .hero-actions > * { width: 100%; min-width: 0; }
  .site-nav { grid-template-columns: minmax(0,1fr); }
  .nav-cluster { grid-template-columns: minmax(0,1fr); }
  .panel { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  @page { margin: 14mm; }
  .site-header, .site-footer, .breadcrumbs, .recipe-sidebar, .hero-actions, .print-button, .related-section, .hero-art, .image-badge, .photo-credit { display: none !important; }
  html, body { overflow: visible; }
  body { background: #fff !important; color: #000; font-size: 10.5pt; line-height: 1.45; }
  a { color: #000; text-decoration: none; }
  h1, h2, h3, .step-list strong { color: #000; }
  .recipe-hero, .recipe-layout { display: block; max-width: none; padding: 0; }
  .recipe-hero h1 { font-size: 25pt; margin-bottom: .35rem; }
  .lede { font-size: 11pt; color: #000; }
  .quick-facts { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 5mm; margin: 5mm 0; }
  .quick-fact { background: #fff; border: 1px solid #777; border-top: 1px solid #777; padding: 3mm; }
  .hero-art { max-width: 105mm; border: 1px solid #777; box-shadow: none; margin: 0 0 6mm; }
  .panel, .safety, .timeline { background: #fff !important; border: 1px solid #999; box-shadow: none; break-inside: avoid; }
  .panel h2 { border-bottom: 1px solid #777; }
  .ingredients { columns: 2; }
  .step-list li { break-inside: avoid; }
  .step-list li::before { background: #fff; color: #000; border: 1px solid #000; }
}

