:root { color-scheme: light; --accent: #9b4d3a; --text: #26271f; --muted: #62675a; --paper: #f8f6f0; --line: #e7e0d3; --white: #fff; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--paper); color: var(--text); scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 12px; z-index: 10; }
.preview { padding: 11px 16px; background: #392c28; color: #fff; text-align: center; font-size: .8rem; letter-spacing: .03em; }
.masthead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding: 22px min(7vw, 96px); border-bottom: 1px solid var(--line); background: var(--white); }
.logo { font-family: Georgia, serif; font-size: 1.4rem; font-weight: 700; text-decoration: none; color: var(--accent); }
.masthead p { color: var(--muted); font-size: .85rem; margin: 8px 0 0; max-width: 520px; }
.masthead nav, footer nav { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.masthead nav a, footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 4px; font-size: .9rem; }
.masthead a[aria-current="page"] { color: var(--accent); font-weight: 700; }
main { min-height: 62vh; }
.hero { padding: clamp(40px, 5vw, 72px) min(7vw, 96px); background: radial-gradient(ellipse at 90% 0%, #ebd7c8 0%, transparent 48%), #f3eee4; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-weight: 700; letter-spacing: .13em; font-size: .78rem; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.3; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.1rem, 4.4vw, 4.2rem); max-width: 820px; font-weight: 400; letter-spacing: -.025em; margin: 25px 0; }
.hero-intro { font-size: 1.1rem; max-width: 680px; color: #4c5144; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-actions a { padding: 12px 18px; min-height: 44px; border: 1px solid var(--accent); border-radius: 6px; color: var(--accent); font-weight: 600; text-decoration: none; }
.hero-actions a:first-child { background: var(--accent); color: #fff; }
.collection { padding: 58px min(7vw, 96px) 85px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.section-heading h2 { font-size: 1.7rem; }
.section-heading p, .back, .reviewed { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.card, .empty { border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 28px; text-decoration: none; }
.card { transition: transform .16s, border-color .16s; }
.card-main { display: block; text-decoration: none; }
.card-main img { display: block; width: 100%; height: auto; border-radius: 6px; margin: 0 0 20px; }
.card-credit { border-top: 1px solid var(--line); padding-top: 14px; font-size: .72rem; line-height: 1.6; overflow-wrap: anywhere; }
.card-credit a { text-decoration: underline; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card small { font-weight: 700; color: var(--accent); letter-spacing: .09em; font-size: .72rem; }
.card h2 { font-size: 1.45rem; }
.card p, .empty p { color: var(--muted); line-height: 1.7; }
.card span { color: var(--accent); font-weight: 700; }
.empty { grid-column: 1 / -1; max-width: 710px; padding: 36px; }
.article { max-width: 810px; margin: auto; padding: 58px 24px 90px; overflow-wrap: anywhere; }
.article h1 { font-size: clamp(2.05rem, 4vw, 3.4rem); }
.article .deck { color: var(--muted); font-size: 1.15rem; line-height: 1.7; }
.article figure { margin: 32px 0; }
.article img { max-width: 100%; height: auto; border-radius: 8px; }
.article figcaption { font-size: .84rem; color: var(--muted); line-height: 1.5; margin-top: 9px; }
.article-section, .recipe, .sources, .related { margin-top: 36px; line-height: 1.85; scroll-margin-top: 24px; }
.article-section h2, .recipe h2, .sources h2, .related h2 { font-size: 1.55rem; }
.article li { margin-bottom: 10px; }
.article a { color: var(--accent); }
.sources { padding-top: 20px; border-top: 1px solid var(--line); }
.sources small { color: var(--muted); }
.source-refs { font-size: .8rem; color: var(--muted); }
.contents { margin: 26px 0; padding: 18px 22px; background: #efece3; border-radius: 8px; line-height: 1.6; }
.contents h2 { font-family: inherit; font-size: .85rem; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 10px; }
.contents ul { margin: 0; padding-left: 18px; }
.contents a { display: inline-block; padding: 6px 0; }
.contents li { margin-bottom: 0; }
.recipe-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.recipe-actions a { display: inline-block; padding: 12px 16px; background: var(--accent); color: #fff; border-radius: 6px; font-weight: 600; text-decoration: none; }
.recipe-actions span { font-size: .8rem; color: var(--muted); }
.recipe { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.recipe-facts { color: var(--muted); font-weight: 600; }
.testing { padding: 12px 16px; border-left: 3px solid var(--accent); background: #f0e9dc; line-height: 1.65; font-size: .95rem; }
.editorial-notes { border: 1px dashed #a77426; background: #fff6dd; border-radius: 8px; padding: 18px 22px; margin: 26px 0; line-height: 1.65; }
.editorial-notes h2 { font-family: inherit; font-size: .95rem; }
footer { border-top: 1px solid var(--line); padding: 26px min(7vw, 96px); display: flex; gap: 18px 36px; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); }
footer > p { white-space: nowrap; }
.review-desk { max-width: 1120px; margin: auto; padding: 42px 24px 72px; line-height: 1.75; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 28px 0; }
.table-scroll table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .88rem; }
.table-scroll th, .table-scroll td { border: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
.table-scroll th { background: #efece3; }
.review-packet { margin: 18px 0; padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.review-packet summary { font-weight: 700; cursor: pointer; min-height: 32px; }
.review-packet pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f3eee4; padding: 16px; font-size: .8rem; }
.digest { overflow-wrap: anywhere; font-size: .8rem; }
.review-desk a { color: var(--accent); }
@media (max-width: 640px) {
  .masthead { align-items: flex-start; flex-direction: column; }
  .section-heading { flex-direction: column; gap: 0; }
  .collection { padding-top: 40px; }
  .article { padding: 38px 20px 60px; }
  .recipe { padding: 18px; }
  .table-scroll th:nth-child(2), .table-scroll td:nth-child(2),
  .table-scroll th:nth-child(4), .table-scroll td:nth-child(4) { display: none; }
  .table-scroll th, .table-scroll td { padding: 9px; }
  .table-scroll th:first-child { width: 60%; }
  footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
@media print {
  html, body { background: #fff; color: #000; font-size: 11pt; }
  .masthead nav, footer, .back, .related, .contents, .recipe-actions, .skip { display: none; }
  .preview { background: #fff; color: #000; border: 1px solid #000; }
  .masthead { padding: 0 0 12px; }
  .article { max-width: none; padding: 12px 0; }
  .article h1 { font-size: 24pt; }
  .article-section, .recipe, .sources { margin-top: 20px; }
  .recipe, .testing, .editorial-notes { background: #fff; border-color: #999; }
  .recipe li, h2, h3 { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  .sources { font-size: 9pt; }
  a { color: #000 !important; }
}
