:root {
  --ink: #1f231c;
  --muted: #62685c;
  --paper: #f7f4ea;
  --paper-deep: #ece7d6;
  --green: #344d21;
  --green-bright: #667f2f;
  --gold: #e2ce37;
  --line: #cec8b5;
  --white: #fffefa;
  --shadow: 0 18px 55px rgba(38, 43, 30, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: 17px; line-height: 1.6; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; background: var(--ink); color: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.page-shell { max-width: 1440px; min-height: 100vh; margin: 0 auto; background: var(--white); box-shadow: var(--shadow); }
.site-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem clamp(1.2rem, 4vw, 4.5rem); border-bottom: 1px solid var(--line); background: rgba(255, 254, 250, .96); }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.15; }
.brand small { margin-top: .2rem; color: var(--muted); font: 700 .72rem/1.2 Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
nav { display: flex; gap: 1.5rem; font: 700 .9rem/1 Arial, sans-serif; }
nav a { text-decoration-thickness: 2px; text-underline-offset: .35rem; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: end; padding: clamp(3.5rem, 8vw, 7rem) clamp(1.2rem, 6vw, 7rem); background: var(--green); color: white; position: relative; overflow: hidden; }
.intro::after { content: ''; position: absolute; width: 25rem; height: 25rem; right: -12rem; top: -12rem; border: 1px solid rgba(226, 206, 55, .35); border-radius: 50%; box-shadow: 0 0 0 3rem rgba(226, 206, 55, .04), 0 0 0 6rem rgba(226, 206, 55, .03); }
.eyebrow { margin: 0 0 .8rem; color: var(--green-bright); font: 800 .76rem/1.2 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.intro .eyebrow { color: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 18ch; margin-bottom: 1rem; font-size: clamp(2.7rem, 6vw, 5.6rem); line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.lede { max-width: 48rem; color: inherit; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; }
.intro-mark { min-width: 10rem; color: var(--gold); font-size: clamp(4rem, 8vw, 7.5rem); line-height: .8; text-align: right; }
.intro-mark small { display: block; margin-top: 1rem; color: white; font: 800 .72rem/1 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.recipe-browser { padding: clamp(2.5rem, 6vw, 6rem) clamp(1.2rem, 5vw, 5rem); }
.browser-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.browser-heading h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -.03em; }
#result-count { margin-bottom: .5rem; color: var(--muted); font: 700 .9rem/1 Arial, sans-serif; }
.filters { display: grid; grid-template-columns: minmax(15rem, 2fr) minmax(12rem, 1fr) minmax(12rem, 1fr) auto; gap: .8rem; margin: 2rem 0; padding: 1rem; border: 1px solid var(--line); background: var(--paper); }
.filters label span { display: block; margin: 0 0 .4rem; color: var(--muted); font: 800 .72rem/1 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.filters input, .filters select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 0; padding: .65rem .8rem; background: white; color: var(--ink); }
.filters input:focus, .filters select:focus, .filters button:focus { outline: 3px solid rgba(102, 127, 47, .35); outline-offset: 1px; }
.filters button { align-self: end; min-height: 48px; border: 1px solid var(--green); padding: .65rem 1.1rem; background: transparent; color: var(--green); cursor: pointer; font-family: Arial, sans-serif; font-weight: 700; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.recipe-card { min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.recipe-card[hidden] { display: none; }
.recipe-card a { display: flex; min-height: 100%; flex-direction: column; padding: clamp(1.3rem, 3vw, 2rem); text-decoration: none; transition: background .18s ease, transform .18s ease; }
.recipe-card a:hover { background: #faf8ef; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 1.5rem; }
.card-kicker, .featured { color: var(--green-bright); font: 800 .7rem/1.2 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.featured { color: #5f4e00; background: #f4e97b; padding: .35rem .45rem; }
.recipe-card h2 { margin: 2rem 0 .6rem; font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.08; font-weight: 500; letter-spacing: -.02em; }
.recipe-card p { color: var(--muted); }
.recipe-card .card-context { min-height: 1.2em; margin-bottom: .8rem; color: var(--green); font: 700 .82rem/1.4 Arial, sans-serif; }
.read-link { margin-top: auto; padding-top: 1rem; color: var(--green); font: 800 .85rem/1 Arial, sans-serif; }
.empty-state { padding: 4rem 1rem; text-align: center; border: 1px solid var(--line); }
.empty-state h3 { margin-bottom: .3rem; font-size: 1.8rem; }
.recipe-detail { max-width: 1120px; margin: 0 auto; padding: clamp(2.5rem, 7vw, 7rem) clamp(1.2rem, 5vw, 4rem); }
.back-link { display: inline-block; margin-bottom: 3rem; color: var(--green); font: 800 .85rem/1 Arial, sans-serif; }
.recipe-title-block { padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.recipe-title-block h1 { color: var(--green); }
.byline { color: var(--muted); font-style: italic; font-size: 1.12rem; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 2rem 0 0; }
.recipe-facts div { min-width: 7rem; }
.recipe-facts dt { color: var(--muted); font: 800 .7rem/1 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.recipe-facts dd { margin: .35rem 0 0; font-size: 1.15rem; }
.recipe-columns { display: grid; grid-template-columns: minmax(16rem, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 7vw, 7rem); padding: 4rem 0; }
.recipe-columns section { min-width: 0; }
.recipe-columns h2, .family-note h2 { margin-bottom: 1.5rem; color: var(--green); font-size: 2rem; font-weight: 500; }
.section-number { margin-bottom: .6rem; color: var(--gold); font: 900 1rem/1 Arial, sans-serif; }
.ingredients ul, .directions ol { margin: 0; padding: 0; list-style: none; }
.ingredients li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.directions ol { counter-reset: steps; }
.directions li { position: relative; min-height: 2.5rem; padding: 0 0 1.5rem 3.4rem; counter-increment: steps; }
.directions li::before { content: counter(steps, decimal-leading-zero); position: absolute; left: 0; top: .15rem; color: var(--green-bright); font: 800 .8rem/1 Arial, sans-serif; }
.family-note { margin: 0 0 2rem; padding: clamp(1.5rem, 4vw, 3rem); border-left: 5px solid var(--gold); background: var(--paper); }
.family-note p:last-child { margin-bottom: 0; }
.source-note { color: var(--muted); font-size: .9rem; font-style: italic; }
.missing-note { color: var(--muted); font-style: italic; }
.original-record { margin: 0 0 3rem; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); background: #fffdf6; }
.original-record h2 { color: var(--green); font-size: 2rem; font-weight: 500; }
.original-record pre { margin: 1.5rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.album-intro { padding: clamp(3.5rem, 8vw, 7rem) clamp(1.2rem, 6vw, 7rem); background: var(--paper-deep); }
.album-intro h1 { color: var(--green); }
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.album-grid figure { margin: 0; background: white; }
.album-grid img { width: 100%; height: clamp(18rem, 34vw, 32rem); object-fit: cover; }
.album-grid figcaption { min-height: 4rem; padding: 1rem 1.2rem; color: var(--muted); font-style: italic; }
footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem clamp(1.2rem, 4vw, 4.5rem); background: var(--ink); color: #f3f0e3; font: 700 .78rem/1.5 Arial, sans-serif; }

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; }
  .intro-mark { text-align: left; }
  .filters { grid-template-columns: 1fr 1fr; }
  .recipe-grid, .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: .7rem; }
  nav { width: 100%; justify-content: space-between; }
  .brand small { display: none; }
  .intro { padding-top: 3rem; }
  .intro-mark { display: none; }
  .browser-heading { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .filters, .recipe-grid, .album-grid, .recipe-columns { grid-template-columns: 1fr; }
  .filters button { width: 100%; }
  .recipe-card a { min-height: 0; }
  .album-grid img { height: 22rem; }
  footer { flex-direction: column; gap: .5rem; }
}

@media print {
  .site-header, footer, .back-link { display: none; }
  body, .page-shell { background: white; box-shadow: none; }
  .recipe-detail { max-width: none; padding: 0; }
  .recipe-columns { grid-template-columns: 1fr 2fr; gap: 2rem; }
}
