:root {
  color-scheme: light;
  --paper: #fbf8f0;
  --light: #fffdf7;
  --ink: #202a22;
  --muted: #505c51;
  --green: #2b523b;
  --line: #d9dacd;
  --wash: #e9eddd;
  --max: 1140px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
button { font: inherit; }
img, video { display: block; width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
.shell { width: min(var(--max), 100% - clamp(2.25rem, 8vw, 7rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: .5rem; left: .5rem; padding: .75rem; background: var(--light); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.bar, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.bar { min-height: 4.4rem; padding-block: .7rem; }
.wordmark { color: var(--green); font-family: Georgia, serif; font-weight: 700; font-size: 1.45rem; text-decoration: none; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem clamp(.85rem, 2.5vw, 1.65rem); font-size: .94rem; color: var(--muted); }
.nav a { padding-block: .45rem; }
.print { min-height: 2.65rem; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: .45rem; background: transparent; color: var(--green); cursor: pointer; }
.print:hover, .button:hover { filter: brightness(.92); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: center; gap: clamp(2.25rem, 6vw, 5.5rem); padding-block: clamp(2rem, 6vw, 5.15rem); }
.hero-copy { min-width: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; }
h1 { font-size: clamp(2.85rem, 5.8vw, 5.55rem); line-height: .99; overflow-wrap: break-word; }
.intro { font-size: clamp(1.05rem, 2vw, 1.22rem); line-height: 1.65; color: var(--muted); max-width: 31rem; margin-top: 1.3rem; }
.facts { display: flex; flex-wrap: wrap; gap: .55rem 1rem; padding: 1.1rem 0 0; margin: 1.4rem 0 1.55rem; border-top: 1px solid var(--line); list-style: none; }
.facts li { font-size: .94rem; font-weight: 650; }
.facts li + li { padding-left: 1rem; border-left: 1px solid var(--line); }
.button { display: inline-flex; align-items: center; min-height: 3rem; padding: .7rem 1.1rem; border-radius: .45rem; background: var(--green); color: white; text-decoration: none; font-weight: 650; }
.hero-image img { aspect-ratio: 1.18; object-fit: cover; object-position: center 53%; border-radius: 1rem; }
.hero-image figcaption { color: var(--muted); font-size: .87rem; padding-top: .6rem; }
.recipe { padding-block: clamp(2rem, 5vw, 3.8rem); border-top: 1px solid var(--line); }
.recipe h2, .section-heading { font-size: clamp(2.2rem, 4.25vw, 3.55rem); line-height: 1.085; }
.form { color: var(--muted); margin-top: .55rem; line-height: 1.55; }
.recipe-grid { display: grid; grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr); gap: clamp(1.8rem, 6vw, 5.75rem); align-items: start; margin-top: 1.8rem; }
.ingredients { background: var(--wash); border-radius: .8rem; padding: clamp(1.15rem, 2.9vw, 1.9rem); }
h3 { font-size: 1.17rem; line-height: 1.35; }
.ingredient-list { list-style: none; padding: 0; margin: .65rem 0 0; }
.ingredient-list li { padding: .72rem 0; border-bottom: 1px solid #cbd2c0; }
.ingredient-list li:last-child { border-bottom: 0; padding-bottom: .1rem; }
.ingredient { display: flex; justify-content: space-between; gap: .65rem; align-items: baseline; line-height: 1.38; }
.amount { font-weight: 700; flex-shrink: 0; }
.detail { display: block; margin-top: .25rem; color: var(--muted); font-size: .89rem; line-height: 1.45; }
.method ol { margin: .75rem 0 0; padding: 0 0 0 1.75rem; }
.method li { padding: 0 0 1.1rem .2rem; }
.method li::marker { color: var(--green); font-weight: 750; }
.method p { margin-top: .25rem; line-height: 1.58; color: var(--muted); overflow-wrap: anywhere; }
.variation { margin-top: 1rem; padding: .8rem 1rem; border-left: 3px solid var(--green); line-height: 1.55; }
.visuals, .sources, .other-recipes { border-top: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 3.4rem); }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.35rem; }
.figures figure { background: var(--light); border: 1px solid var(--line); border-radius: .85rem; overflow: hidden; }
.figures img { aspect-ratio: 1.28; object-fit: cover; object-position: center 52%; }
.figures figcaption { display: grid; gap: .25rem; padding: 1rem; line-height: 1.45; }
.figures figcaption span { color: var(--muted); }
.provenance { margin: .55rem 0 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.sources h2 { font-size: 1.35rem; letter-spacing: 0; }
.sources p { color: var(--muted); line-height: 1.55; margin-top: .65rem; }
.sources ul, .other-recipes ul { padding-left: 1.15rem; line-height: 1.75; overflow-wrap: anywhere; }
.site-footer { padding-block: 1.35rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { font-size: .94rem; }
.revealed { animation: reveal .52s ease-out both; }
@keyframes reveal { from { opacity: .58; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 740px) {
  .hero, .recipe-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 1.55rem; }
  .recipe-grid { gap: 1.65rem; }
  .hero-image img { aspect-ratio: 1.24; }
}

@media (max-width: 500px) {
  .figures { grid-template-columns: minmax(0, 1fr); }
  .bar { gap: .45rem 1rem; }
  .facts { gap: .45rem .8rem; }
  .facts li { font-size: .875rem; }
  .facts li + li { border-left: 0; padding-left: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  :root { color: black; background: white; font-size: 11pt; }
  .shell { width: 100%; }
  .site-header, .site-footer, .skip, .hero-image, .button, .visuals, .sources, .other-recipes { display: none !important; }
  .hero { display: block; padding-block: 0 1rem; }
  h1 { font-size: 26pt; }
  .recipe { padding-block: 1rem 0; }
  .recipe-grid { display: block; }
  .ingredients { padding: .5rem 0; background: white; }
  .method { margin-top: 1rem; }
  .method li, .ingredient-list li { break-inside: avoid; }
  .revealed { animation: none; }
}
