:root {
  --cream: #f6f1e8;
  --paper: #fffdf8;
  --ink: #25352f;
  --muted: #6d756d;
  --sage: #607b6d;
  --sage-deep: #385448;
  --sage-fill: #385448;
  --terracotta: #c87355;
  --terracotta-soft: #eed4c5;
  --line: #dfe2d9;
  --shadow: 0 1.2rem 3rem rgba(45, 60, 48, .09);
  --measure: min(92vw, 1180px);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'Source Code Pro', ui-monospace, monospace;
}

html[data-theme="dark"] {
  --cream: #1d2925;
  --paper: #263731;
  --ink: #f6f1e8;
  --muted: #b4beb5;
  --sage: #aac3ae;
  --sage-deep: #d6e3d3;
  --sage-fill: #2a463b;
  --terracotta: #e18c6a;
  --terracotta-soft: #594238;
  --line: #42534b;
  --shadow: 0 1.2rem 3rem rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  width: var(--measure);
  margin: 0 auto;
  padding: 1.25rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 2.7rem; height: 2.7rem; flex: 0 0 auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.035em; line-height: 1; }
.brand-name span { color: var(--terracotta); }
.primary-nav { display: flex; align-items: center; gap: 1.25rem; }
.primary-nav a { color: var(--ink); font-size: .98rem; font-weight: 600; text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--terracotta); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
[data-theme-toggle], .menu-toggle {
  color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 50%;
  width: 2.65rem; height: 2.65rem; cursor: pointer; display: grid; place-items: center;
}
.menu-toggle { display: none; border-radius: .7rem; }

.page-wrap { width: var(--measure); margin: 0 auto; }
.breadcrumbs { margin: 1.15rem 0 0; font-size: .92rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .55rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .55rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--sage); }
.breadcrumbs a { color: var(--sage-deep); font-weight: 600; text-decoration: none; }
.breadcrumbs a:hover { color: var(--terracotta); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }
.rail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 2rem; align-items: start; }
.rail-layout:has([data-side-links][hidden]) { grid-template-columns: minmax(0, 1fr); }
[data-side-links][hidden] { display: none; }
.side-links { border-left: 2px solid var(--terracotta); padding: .4rem 0 .4rem 1rem; margin-top: 4rem; position: sticky; top: 1.5rem; }
.side-links h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .75rem; color: var(--terracotta); }
.side-links ol { list-style: none; padding: 0; margin: 0; }
.side-links li + li { margin-top: .6rem; }
.side-links a { text-decoration: none; font-size: .93rem; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.04em; margin: 0; }
h1 { font-size: clamp(2.8rem, 6.5vw, 5.8rem); max-width: 10ch; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.55rem; }
p { margin: 0; }
.eyebrow { color: var(--terracotta); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.lede { max-width: 38rem; color: var(--muted); font-size: 1.2rem; }
.text-link { color: var(--sage-deep); text-decoration-thickness: .11em; text-underline-offset: .16em; font-weight: 700; }

.hero { position: relative; margin: 2rem 0 5rem; min-height: 28rem; border-radius: 1.4rem; overflow: hidden; display: flex; align-items: flex-end; background: #385448; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero:has(.hero-photo)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 32, 26, .78), rgba(22, 32, 26, .28)); }
.hero-copy { position: relative; z-index: 2; color: #fffaf1; padding: clamp(2rem, 6vw, 4.5rem); max-width: 42rem; }
.hero-copy .lede { color: #f4eadf; margin: 1.4rem 0 1.8rem; }
.hero-copy h1 { max-width: 14ch; }
.hero-kicker { color: #f5b18f; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid transparent; padding: .78rem 1.1rem; border-radius: 99rem; background: var(--terracotta); color: #fff; text-decoration: none; font-weight: 700; }
.button:hover { filter: brightness(.94); }
.button.secondary { background: transparent; border-color: currentColor; color: inherit; }

.section { padding: 0 0 5.5rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.8rem; }
.section-heading > div { max-width: 36rem; }
.section-heading p { color: var(--muted); margin-top: .7rem; }
.intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; padding: 0 0 5.5rem; }
.intro-copy p + p { margin-top: 1rem; }
.intro-stamp { border-top: 1px solid var(--terracotta); padding-top: 1.1rem; color: var(--sage-deep); font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.35rem); }
.photo-band { padding-top: 0; }
.photo-mosaic { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 14rem 14rem; gap: .85rem; }
.photo-mosaic figure { margin: 0; position: relative; border-radius: 1rem; overflow: hidden; min-height: 12rem; }
.photo-mosaic .photo-feature { grid-row: 1 / span 2; }
.photo-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-mosaic figcaption { position: absolute; left: .8rem; bottom: .75rem; color: #fffaf1; font-family: var(--font-display); font-size: 1.15rem; text-shadow: 0 1px 8px rgba(20, 28, 22, .55); }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.category-card { min-height: 13rem; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; box-shadow: var(--shadow); }
.category-card:nth-child(2) { transform: translateY(1.2rem); background: var(--sage-fill); color: #fffaf1; }
.category-card:nth-child(3) { background: var(--terracotta-soft); }
.category-card .number { font-family: var(--font-mono); font-size: .75rem; opacity: .7; }
.category-card p { color: var(--muted); }
.category-card:nth-child(2) p { color: #e5ede3; }
.card-arrow { color: var(--terracotta); font-weight: 700; font-size: 1.4rem; }

.recipe-grid, .book-grid, .news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; align-items: start; }
.archive-results, #category-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.archive-results .story-card, #category-results .story-card { display: flex; flex-direction: column; height: 100%; }
.archive-results .story-card .story-body, #category-results .story-card .story-body, .news-grid .story-card .story-body { display: flex; flex-direction: column; flex: 1; padding: 1.05rem 1.2rem 1.25rem; }
.story-card > .story-meta,
.story-card > .story-author,
.story-card > h3,
.story-card > p,
.story-card .story-body > .story-meta,
.story-card .story-body > .story-author,
.story-card .story-body > h3,
.story-card .story-body > p { margin-left: 1.2rem; margin-right: 1.2rem; }
.story-card .story-body > .story-meta,
.story-card .story-body > .story-author,
.story-card .story-body > h3,
.story-card .story-body > p { margin-left: 0; margin-right: 0; }
.story-card > .story-meta, .story-card .story-body > .story-meta { margin-top: 1rem; }
.story-card > p, .story-card .story-body > p { margin-bottom: 1.25rem; }
.archive-results .story-card h3, #category-results .story-card h3, .news-grid .story-card h3 { margin-top: .5rem; margin-bottom: .45rem; margin-left: 1.2rem; margin-right: 1.2rem; font-size: 1.28rem; line-height: 1.3; letter-spacing: -.02em; min-height: calc(1.3em * 3); }
.story-card .story-body h3 { margin-left: 0; margin-right: 0; }
.story-card h3 a, .recipe-card h3 a, .book-card h3 a { color: inherit; text-decoration: none; }
.story-card h3 a:hover, .recipe-card h3 a:hover, .book-card h3 a:hover { color: var(--terracotta); }
.archive-results .story-card p, #category-results .story-card p { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.55em * 3); }
.archive-results .story-image, #category-results .story-image { flex-shrink: 0; }
.archive-results .story-card:not(:has(.story-image))::before, #category-results .story-card:not(:has(.story-image))::before { content: ""; display: block; aspect-ratio: 4 / 3; flex-shrink: 0; background: linear-gradient(145deg, var(--sage-fill), #c87355); }
.recipe-card, .book-card, .story-card { background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow); }
.recipe-photo, .book-cover, .story-image { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.book-cover { aspect-ratio: 3 / 4; background: #efe8dc; }
.book-cover img { object-fit: contain; }
.recipe-photo img, .book-cover img, .story-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.recipe-card:hover img, .book-card:hover img, .story-card:hover img { transform: scale(1.04); }
.card-body { padding: 1.15rem 1.25rem 1.35rem; }
.card-body h3 { margin: .45rem 0 .7rem; }
.card-body p { color: var(--muted); }
.card-meta, .story-meta { display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: center; color: var(--muted); font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.card-meta strong { color: var(--terracotta); }

.tip-band { background: var(--sage-fill); color: #f8f4eb; padding: 4rem max(4vw, calc((100vw - var(--measure)) / 2)); margin: 0 calc((var(--measure) - 100vw) / 2) 5.5rem; }
.tip-inner { width: min(92vw, 1180px); margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: center; }
.tip-inner .lede, .tip-inner p { color: #dfe9df; }
.tip-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tip-list div { border-top: 1px solid rgba(255,255,255,.25); padding-top: .8rem; }
.tip-list strong { display: block; font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .3rem; }

.page-intro { padding: 4rem 0 3rem; border-bottom: 1px solid var(--line); margin-bottom: 3rem; display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.page-intro h1 { max-width: 12ch; }
.page-intro .lede { max-width: 32rem; }
.filter-bar { display: flex; gap: .75rem; flex-wrap: wrap; margin: 0 0 2rem; }
.filter-bar a, .filter-chip { padding: .45rem .8rem; border: 1px solid var(--line); color: var(--sage-deep); text-decoration: none; border-radius: 99rem; font-size: .9rem; }
.archive-tools { display: flex; gap: .8rem; margin-bottom: 2rem; }
.archive-tools input { flex: 1; border: 1px solid var(--line); background: var(--paper); border-radius: 99rem; padding: .75rem 1rem; color: var(--ink); }
.archive-tools button { border: 0; border-radius: 99rem; background: var(--sage-fill); color: #fff; padding: .75rem 1.1rem; font-weight: 700; }
.empty-state { color: var(--muted); padding: 2rem; border: 1px dashed var(--line); border-radius: 1rem; grid-column: 1 / -1; }

.compare-strip { margin: 0 0 5rem; padding: 2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; }
.compare-table { width: 100%; border-collapse: collapse; text-align: left; }
.compare-table th, .compare-table td { padding: .8rem; border-bottom: 1px solid var(--line); }
.compare-table th { font-family: var(--font-display); font-size: 1.15rem; }
.check { color: var(--sage-deep); font-weight: 700; }

.newsletter, .recipe-request { background: var(--terracotta-soft); border-radius: 1.25rem; padding: clamp(1.5rem, 4vw, 3rem); display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.recipe-request { margin-top: 2.5rem; }
.recipe-request h2 { margin: .2rem 0 .4rem; }
.newsletter form { display: flex; min-width: min(100%, 24rem); }
.newsletter input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 99rem 0 0 99rem; padding: .75rem 1rem; background: var(--paper); }
.newsletter button { border: 0; border-radius: 0 99rem 99rem 0; background: var(--sage-fill); color: #fff; padding: .75rem 1.1rem; font-weight: 700; }
.form-note { margin-top: .5rem; color: var(--muted); font-size: .82rem; }

.site-footer { width: var(--measure); margin: 5rem auto 0; border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; display: flex; justify-content: space-between; gap: 2rem; color: var(--muted); }
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--ink); text-decoration: none; }

.article-layout { padding: 3rem 0 5rem; }
.byline { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.5rem; padding: .7rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline[hidden] { display: none; }
.byline img { width: 2.7rem; height: 2.7rem; object-fit: cover; border-radius: 50%; }
.byline p { color: var(--muted); font-size: .9rem; }
#article-content { max-width: 50rem; }
.article-header h1 { max-width: 16ch; margin: .45rem 0 1rem; }
.article-deck { color: var(--muted); font-size: 1.25rem; }
.article-cover { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 1rem; margin: 2rem 0; }
.prose { font-family: var(--font-body); font-size: 1.15rem; line-height: 1.75; }
.prose p, .prose ul, .prose ol, .prose h2, .prose h3 { margin: 1.3rem 0; }
.prose a { color: var(--terracotta); font-weight: 600; }

.not-found { text-align: center; padding: 7rem 0 8rem; }
.not-found h1 { max-width: none; margin-bottom: 1rem; }
.not-found p { color: var(--muted); margin-bottom: 1.5rem; }

@media (max-width: 850px) {
  .site-header { position: relative; }
  .primary-nav { display: none; position: absolute; z-index: 10; left: 0; right: 0; top: 100%; padding: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 0 0 1rem 1rem; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .primary-nav.is-open { display: flex; }
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .hero { min-height: 0; }
  .intro, .tip-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .page-intro, .newsletter, .recipe-request { align-items: flex-start; flex-direction: column; }
  .newsletter form { width: 100%; }
  .rail-layout { grid-template-columns: minmax(0, 1fr); }
  .archive-results, #category-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-links { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .site-header { padding-top: .9rem; }
  .hero { margin-top: 1.25rem; min-height: 0; border-radius: 1rem; }
  .hero-copy { padding: 1.5rem; }
  .category-grid, .archive-results, #category-results { grid-template-columns: 1fr; }
  .photo-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .photo-mosaic .photo-feature { grid-column: 1 / -1; min-height: 16rem; }
  .category-card:nth-child(2) { transform: none; }
  .tip-list { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .archive-tools { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
