@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  color-scheme: light;
  --paper: #f7f3eb;
  --ink: #142b35;
  --muted: #54605e;
  --line: #d9d0c0;
  --rust: #964327;
  --gold: #f1aa64;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid #b45632; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 75px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 29px/1 var(--serif); letter-spacing: -.045em; }
.brand-logo { display: block; width: min(269px, 100%); height: auto; }
.site-header nav { display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(12px, 1.5vw, 25px); }
nav a { font-size: 14px; font-weight: 700; }
nav a:hover, .text-link:hover, .lexicon-list button:hover { color: var(--rust); }
.eyebrow { color: var(--rust); letter-spacing: .18em; text-transform: uppercase; font-size: 11px; font-weight: 700; margin: 0 0 10px; }
h1, h2 { font-family: var(--serif); letter-spacing: -.045em; font-weight: 600; margin: 0; }
h2 { font-size: clamp(2rem, 3.5vw, 3.35rem); line-height: 1.12; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 23px; background: var(--gold); color: #291b12; padding: 12px 17px; font-size: 14px; font-weight: 700; }
.button:hover { background: #ffc68e; }
[id] { scroll-margin-top: 22px; }
.text-link { display: inline-block; padding-bottom: 2px; border-bottom: 1px solid currentColor; font-weight: 700; font-size: 13px; }
.browse, .editorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 20px; }
.browse section { padding: clamp(22px, 3.5vw, 48px); }
.browse h2 { font-size: clamp(1.8rem, 3vw, 2.9rem); }
.browse p { margin: 8px 0 18px; color: var(--muted); }
.lexicon { border: 1px solid var(--line); background: #efe9dc; }
.lexicon label { font-weight: 700; font-size: 13px; }
.lexicon input { display: block; width: 100%; background: var(--paper); color: var(--ink); padding: 10px 13px; border: 1px solid #968b7d; border-radius: 0; margin-top: 4px; }
.lexicon-list { list-style: none; padding: 0; margin: 12px 0 0; }
.lexicon-list li + li { border-top: 1px solid var(--line); }
.lexicon-list button { display: flex; justify-content: space-between; width: 100%; padding: 8px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.recipes { background: var(--ink); color: var(--paper); }
.recipes p { color: #d9e2df; }
footer { border-top: 1px solid var(--line); color: var(--muted); }
footer .brand { font-size: 22px; color: var(--ink); }
dialog { width: min(520px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgb(20 43 53 / 70%); }
.dialog-inner { position: relative; padding: 33px; }
.dialog-inner h2 { padding-right: 25px; }
.close { position: absolute; top: 9px; right: 10px; width: 38px; height: 38px; border: 0; background: none; font-size: 28px; cursor: pointer; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .browse { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.opening { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 20px; margin-block: 24px 32px; }
.featured { display: flex; flex-direction: column; color: var(--paper); background: var(--ink); }
.featured-image { display: block; width: 100%; aspect-ratio: 2.15; object-fit: cover; }
.featured-body { padding: 24px clamp(22px, 4vw, 46px) 30px; }
.featured .eyebrow { color: #ffc78e; }
.featured-body h2 { font-size: clamp(1.65rem, 3vw, 3rem); line-height: 1.06; margin-bottom: 20px; }
.season { display: flex; flex-direction: column; border: 1px solid var(--line); background: #efe9dc; padding: clamp(22px, 3vw, 38px); }
.season-calendar { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.season-calendar h2 { font-size: 1.15rem; line-height: 1.2; }
.season-calendar .eyebrow { margin: 0; }
.nameday { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: var(--muted); font-size: 13px; }
.nameday strong { color: var(--ink); }
.season h3 { margin: 13px 0 7px; font: 700 14px/1.3 var(--sans); }
.season-ingredients { display: flex; flex-wrap: wrap; gap: 5px 14px; list-style: none; padding: 0; margin: 0; font-size: 14px; }
.season-ingredients button { padding: 0; border: 0; background: none; color: var(--rust); text-decoration: underline; cursor: pointer; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-top: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.link-list a:hover, .link-list a span { color: var(--rust); }
.editorial-grid { margin-block: 24px 32px; }
.editorial { min-width: 0; background: #fbf8f2; border: 1px solid var(--line); padding: clamp(22px, 3.5vw, 48px); }
.editorial h2 { margin-bottom: 16px; font-size: clamp(1.8rem, 3vw, 2.9rem); }
@media (max-width: 650px) {
  .opening, .editorial-grid { grid-template-columns: minmax(0, 1fr); }
  .opening { margin-top: 14px; }

}

.carousel-header, .carousel-controls { display: flex; align-items: center; gap: 8px; }
.carousel-header { justify-content: space-between; flex-wrap: wrap; padding: 12px 18px; }
.carousel-header .eyebrow { margin: 0; font-family: var(--sans); letter-spacing: .15em; }
.carousel-controls button { border: 1px solid #829095; background: transparent; color: var(--paper); padding: 3px 8px; cursor: pointer; }
.carousel-controls button:hover { background: #304650; }
#slide-count { font-size: 12px; min-width: 2.9em; text-align: center; }
.carousel-viewport { overflow: hidden; overflow: clip; }
.carousel-track { display: flex; align-items: stretch; transition: transform .55s ease; }
.recipe-slide { flex: 0 0 100%; min-width: 0; }
.scroll-box { overflow-y: auto; scrollbar-gutter: stable; padding-inline-end: 10px; overscroll-behavior-y: contain; }
.season-scroll { flex: 1; min-height: 260px; max-height: 360px; }
.toc-scroll { max-height: 245px; scrollbar-color: #829095 var(--ink); }
.toc-list li { border-color: #60737a; }
.toc-list a:hover, .toc-list a span { color: #ffbc81; }
.toc-children { margin-inline-start: 1.2rem; }
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

.site-header .header-inner { position: relative; }
.site-header .brand { min-width: 0; }
.site-header nav a, .menu-toggle { white-space: nowrap; }
.menu-toggle { border: 1px solid var(--line); background: #fbf8f2; font-size: 14px; font-weight: 700; padding: 6px 10px; cursor: pointer; }
.menu-toggle { display: none; }
.listing-card-text .listing-card-body { justify-content: center; }
.listing-card-text h2 { margin-bottom: 0; }
@media (max-width: 1140px) {
  .site-header .header-inner { gap: 12px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 7px; }
  .site-header nav {
    display: none;
    position: absolute;
    z-index: 5;
    top: 100%;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 0;
    width: min(260px, 100%);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 8px 18px #142b3520;
  }
  .site-header nav a { padding: 8px 10px; }
  .menu-toggle[aria-expanded="true"] + nav { display: flex; }
}

.season-scroll .link-list a { align-items: center; }
.season-recipe-name { flex: 1; font: 600 clamp(1rem, 1.6vw, 1.3rem)/1.24 var(--serif); }
.season-scroll .link-list .season-recipe-name { color: inherit; }
.season-thumb { display: block; flex: none; width: clamp(92px, 11vw, 120px); height: auto; aspect-ratio: 60 / 41; object-fit: cover; border-radius: 3px; }
#season-recipes-title { margin-top: 16px; font: 600 clamp(1.4rem, 2.2vw, 2rem)/1.15 var(--serif); }
