:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --surface: #fffdf8;
  --ink: #243b2d;
  --muted: #536150;
  --green: #38573b;
  --on-green: #fff;
  --line: #c8cebf;
  --tint: #e9eddf;
  --warm: #ece6d8;
  --gold: #946523;
  --gutter: clamp(1rem, 4vw, 2.75rem);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151c18;
  --surface: #1d2821;
  --ink: #edf1e6;
  --muted: #bac6b7;
  --green: #b7d4a7;
  --on-green: #172819;
  --line: #4b5c4d;
  --tint: #2a382c;
  --warm: #383329;
  --gold: #e5b875;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: #151c18;
    --surface: #1d2821;
    --ink: #edf1e6;
    --muted: #bac6b7;
    --green: #b7d4a7;
    --on-green: #172819;
    --line: #4b5c4d;
    --tint: #2a382c;
    --warm: #383329;
    --gold: #e5b875;
  }
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a, button, input, select { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; overflow-wrap: break-word; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
h1 { font-size: clamp(2.25rem, 5.5vw, 4.5rem); letter-spacing: -.04em; line-height: 1.08; margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: 1.0625rem; line-height: 1.4; }
p { line-height: 1.75; }
.site-header, footer { max-width: 76.25rem; margin-inline: auto; padding: 1.5rem var(--gutter); }
.site-header { border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.brand { font: 2rem Georgia, serif; text-decoration: none; letter-spacing: -.04em; display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .8rem; min-height: 2.75rem; }
.brand span { font: .625rem Arial, sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.header-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.header-note, .theme-control { font-size: .75rem; color: var(--muted); }
.header-note { display: inline-flex; align-items: center; min-height: 2.75rem; }
.theme-control { display: flex; align-items: center; gap: .5rem; }
.theme-control select { min-height: 2.75rem; max-width: 100%; border: 1px solid var(--line); border-radius: .35rem; padding: .5rem; color: var(--ink); background: var(--surface); }
.home, .recipe-page { max-width: 70.75rem; margin-inline: auto; padding: clamp(2rem, 5vw, 4.125rem) var(--gutter) 5rem; }
.home > h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
.eyebrow { font-size: .6875rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; color: var(--green); margin-bottom: 1.25rem; }
.lede { font-size: clamp(1rem, 1.5vw, 1.0625rem); line-height: 1.8; color: var(--muted); max-width: 35rem; }
.back-link { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; color: var(--muted); font-size: .8125rem; margin-bottom: 2rem; }
.recipe-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3rem); }
.recipe-intro > *, .recipe-layout > *, .recipe-card > *, .hub-intro > * { min-width: 0; }
.recipe-photo { margin: 0; width: 100%; }
.recipe-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 32vh; max-height: min(32svh, 20rem); object-fit: cover; border-radius: .75rem; }
.recipe-photo figcaption { text-align: center; color: var(--muted); font-size: .6875rem; line-height: 1.5; margin-top: .5rem; }
.recipe-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.recipe-tags span { font-size: .75rem; background: var(--tint); padding: .5rem .7rem; border-radius: .25rem; }
.recipe-actions { display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; margin-top: 2rem; }
.recipe-actions > span { font-size: .75rem; color: var(--muted); line-height: 1.5; }
.primary-link, .print-button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.75rem; font-size: .8125rem; font-weight: 700; text-decoration: none; padding: .8rem 1rem; border-radius: .25rem; line-height: 1.5; text-align: center; }
.primary-link { background: var(--green); color: var(--on-green); }
.print-button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.batch-panel { margin: 3rem 0; background: var(--tint); border: 1px solid var(--line); padding: clamp(1rem, 3vw, 1.875rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 1.5rem; border-radius: .35rem; }
.batch-panel h2 { font-family: Arial, sans-serif; font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; margin-bottom: .4rem; }
.batch-panel p { font-size: .8125rem; margin: 0; color: var(--muted); }
.batch-buttons { display: flex; gap: .5rem; }
.batch-button { background: var(--surface); border: 1px solid var(--line); color: var(--ink); padding: .75rem 1rem; border-radius: .3rem; min-height: 2.75rem; font-size: .8125rem; font-weight: 700; }
.batch-button span { display: block; font-size: .75rem; font-weight: 400; margin-top: .3rem; }
.batch-button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--on-green); }
.batch-panel .batch-note { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink); }
.recipe-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: clamp(2rem, 5vw, 4.375rem); }
.recipe-layout h2 { margin-bottom: .625rem; }
.recipe-layout .eyebrow { margin-bottom: .875rem; }
.muted { color: var(--muted); font-size: .8125rem; }
.ingredient-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.ingredient-list li { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; line-height: 1.6; overflow-wrap: anywhere; }
.small-note { border-left: 3px solid var(--line); padding-left: 1rem; }
.small-note h3 { font-size: .9375rem; margin-bottom: .5rem; }
.small-note p { color: var(--muted); font-size: .875rem; margin: 0; }
.steps { list-style: none; counter-reset: steps; padding: 0; margin: 2rem 0; }
.steps li { position: relative; padding: 0 0 1.75rem 2.75rem; counter-increment: steps; }
.steps li::before { content: counter(steps, decimal-leading-zero); position: absolute; left: 0; top: 1px; color: var(--green); font: 1.3125rem Georgia, serif; }
.steps h3 { margin-bottom: .5rem; }
.steps p { font-size: .9375rem; margin-bottom: .75rem; color: var(--muted); }
.setting { display: inline-block; background: var(--tint); border-radius: .25rem; padding: .5rem .7rem; font-size: .75rem; font-weight: 700; line-height: 1.7; color: var(--ink); }
.two-bowls { background: var(--warm); border-radius: .35rem; padding: clamp(1rem, 3vw, 1.5rem); }
.two-bowls h3 { font: 1.4375rem Georgia, serif; margin-bottom: .625rem; }
.two-bowls p { font-size: .875rem; margin-bottom: 0; }
.recipe-note { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2rem; max-width: 53rem; }
.recipe-note h2 { font-size: 1.5rem; }
.recipe-note p { font-size: .875rem; color: var(--muted); }
.recipe-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 2rem; text-decoration: none; border: 1px solid var(--line); border-radius: .5rem; overflow: hidden; background: var(--surface); align-items: center; }
.card-photo { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 32vh; max-height: min(32svh, 20rem); object-fit: cover; }
.card-copy { padding: clamp(1.25rem, 3vw, 2.75rem); }
.card-copy h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
.card-copy p:not(.eyebrow) { color: var(--muted); font-size: .9375rem; }
.text-link { display: inline-block; margin-top: .5rem; font-size: .875rem; font-weight: 700; border-bottom: 1px solid var(--green); padding-bottom: .4rem; }
.card-meta { display: block; font-size: .75rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.catalog-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.75rem; padding: 1.5rem 0; border-block: 1px solid var(--line); }
.catalog-toolbar > div { flex: 1 1 16rem; min-width: 0; max-width: 30rem; }
.catalog-toolbar label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: .75rem; }
.catalog-toolbar input { width: 100%; min-height: 2.75rem; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: .875rem; border-radius: .3rem; }
.catalog-toolbar p { font-size: .8125rem; color: var(--muted); margin-bottom: .75rem; }
.empty-state { padding: 2.75rem 1rem; text-align: center; color: var(--muted); }
.hub-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; border-top: 1px solid var(--line); padding-top: 2.5rem; margin-top: 4rem; }
.hub-intro > p { font-size: .9375rem; color: var(--muted); }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; line-height: 1.6; }
@media (max-width: 60rem) {
  .recipe-intro { grid-template-columns: minmax(0, 1fr); }
  .recipe-photo { max-width: 38rem; margin-inline: auto; }
  .recipe-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .header-tools { width: 100%; justify-content: space-between; }
  .batch-panel, .recipe-card, .hub-intro { grid-template-columns: minmax(0, 1fr); }
  .batch-buttons { width: 100%; }
  .batch-button { flex: 1; min-width: 0; }
  .hub-intro { gap: .5rem; }
  .recipe-actions > span { width: 100%; }
}
@media print {
  :root, :root[data-theme], :root:not([data-theme]) { color-scheme: light; --paper: #fff; --surface: #fff; --ink: #000; --muted: #333; --green: #000; --line: #aaa; --tint: #fff; --warm: #fff; }
  .site-header, .back-link, .recipe-photo, .recipe-actions, .batch-buttons, footer { display: none; }
  .recipe-page { padding: 0; max-width: none; }
  .recipe-intro, .recipe-layout { display: block; }
  h1 { font-size: 2rem; }
  .batch-panel { margin: 1rem 0; padding: .75rem; }
  .steps li, .two-bowls, .small-note { break-inside: avoid; }
  .recipe-tags span, .setting { border: 1px solid #aaa; }
}
