:root { color-scheme: light; --ink: #28352d; --green: #365a42; --paper: #fbfaf6; --line: #dedfd5; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.7 system-ui, sans-serif; }
body > header, body > footer, main { width: min(1100px, calc(100% - 48px)); margin: auto; }
body > header { padding: 22px 0; border-bottom: 1px solid var(--line); }
nav ul { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
a { color: var(--green); text-underline-offset: 4px; }
.recipe { padding: 48px 0; }
.eyebrow { text-transform: uppercase; color: var(--green); letter-spacing: .14em; font-size: .75rem; font-weight: 700; }
h1, h2 { font-family: Georgia, serif; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); max-width: 960px; margin: 20px 0; font-weight: 400; }
h2 { font-size: 1.85rem; margin: 0 0 24px; }
.intro { max-width: 780px; font-size: 1.15rem; }
.recipe-details { display: flex; gap: 30px; flex-wrap: wrap; padding: 24px 0; margin: 28px 0; border-block: 1px solid var(--line); }
dt { color: #646c61; font-size: .8rem; } dd { margin: 0; font-weight: 650; }
.recipe-gallery { display: grid; gap: 16px; margin: 30px 0 48px; }
.recipe-gallery img { display: block; width: 100%; max-height: 620px; object-fit: cover; border-radius: 8px; }
.recipe-body { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 64px; }
.ingredients { background: #eef0e6; border-radius: 8px; padding: 28px; align-self: start; }
.ingredients ul { list-style: none; padding: 0; }
.ingredients li { padding: 12px 0; border-bottom: 1px solid #d7dccc; }
.ingredients strong { display: inline-block; margin-right: 6px; }
.servings-calculator { margin: 20px 0; }
.servings-calculator > label { display: block; font-size: .85rem; font-weight: 650; margin-bottom: 8px; }
.servings-controls { display: flex; align-items: center; gap: 8px; }
.servings-controls button, .servings-controls input { border: 1px solid #a5b19d; border-radius: 4px; background: white; color: var(--ink); font: inherit; min-height: 44px; }
.servings-controls button { flex: 0 0 44px; cursor: pointer; font-weight: 700; }
.servings-controls input { width: 80px; min-width: 0; padding: 6px 8px; text-align: center; }
.servings-reset { border: 0; background: transparent; color: var(--green); font: inherit; font-size: .8rem; padding: 10px 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.servings-calculator button:disabled { opacity: .5; cursor: default; }
.servings-error { font-size: .8rem; color: #8a2920; margin: 8px 0; }
.servings-controls input[aria-invalid="true"] { border-color: #8a2920; }
.instructions { padding-left: 25px; } .instructions li { padding: 0 0 24px 12px; }
.instructions li::marker { color: var(--green); font-weight: 700; }
.recipe-notes { border-top: 1px solid var(--line); margin-top: 42px; padding-top: 32px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 650; } body > footer { padding: 24px 0; font-size: .8rem; }
@media (max-width: 700px) { .recipe-body { grid-template-columns: 1fr; gap: 32px; } .recipe-details { gap: 20px; } body > header, body > footer, main { width: calc(100% - 32px); } .recipe { padding-top: 24px; } }
@media print { body > header, body > footer, .recipe-gallery, .servings-calculator { display: none; } .recipe-body { grid-template-columns: 1fr 2fr; gap: 32px; } details { display: block; } }
.recipe-filters { padding: 28px; background: #eef0e6; border-radius: 8px; margin: 32px 0 40px; }
.recipe-filters > label, .recipe-filters legend { font-weight: 650; }
.recipe-filters input[type="search"] { display: block; width: 100%; max-width: 650px; padding: 12px 14px; margin: 8px 0 20px; border: 1px solid #a5b19d; border-radius: 4px; font: inherit; background: white; }
.recipe-filters fieldset { padding: 12px 0; border: 0; }
.filter-choice { display: inline-flex; gap: 6px; align-items: center; margin: 4px 12px 4px 0; cursor: pointer; }
.filter-choice input { accent-color: var(--green); width: 18px; height: 18px; }
.filter-hint { font-size: .8rem; max-width: 760px; color: #596452; }
.filter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.filter-actions button { background: var(--green); color: white; border: 0; border-radius: 4px; padding: 12px 20px; font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #af6a27; outline-offset: 4px; }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.recipe-card { padding: 28px; border: 1px solid var(--line); background: white; border-radius: 8px; }
.recipe-card h3 { font: 1.7rem/1.25 Georgia, serif; margin: 0 0 18px; }
.recipe-card-details { font-size: .85rem; color: #596452; }
.taxonomy-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.taxonomy-chip { display: inline-block; padding: 3px 12px; border-radius: 20px; background: #e5ecde; color: var(--green); font-size: .8rem; text-decoration: none; }
.taxonomy-chip.tag { background: #f2eadc; color: #705622; }
.pagination { display: flex; gap: 24px; margin-top: 30px; }
