:root {
  --paper: #f7f1e8;
  --paper-deep: #efe4d4;
  --ink: #2c221c;
  --muted: #6b5a4c;
  --line: #dccab6;
  --burgundy: #7a2e38;
  --burgundy-deep: #5a1f28;
  --wash: rgba(122, 46, 56, 0.06);
  --shadow: 0 18px 40px rgba(56, 28, 22, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(122, 46, 56, 0.08), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(90, 120, 90, 0.07), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-attachment: fixed;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--burgundy-deep); }
a:hover { color: var(--burgundy); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  background: white;
  padding: 0.4rem 0.6rem;
  z-index: 5;
}

.site-header {
  background: linear-gradient(180deg, var(--burgundy-deep), #4a1820);
  color: #f8f1e8;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header a { color: #f8f1e8; text-decoration: none; }

.header-inner, .wrap {
  width: min(70rem, calc(100% - 2rem));
  margin: 0 auto;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0 0.35rem;
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1.35rem;
  line-height: 1.15;
}
.brand small {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
  margin-top: 0.2rem;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(248, 241, 232, 0.35);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding-bottom: 0.75rem;
  font-size: 0.95rem;
}
.nav a {
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}
.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: #f0d2c4;
}
.nav-download {
  font-weight: 600;
}

.search-row {
  padding-bottom: 0.95rem;
  position: relative;
}
.search-row label {
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.25rem;
}
.search-row input {
  width: min(32rem, 100%);
  font: inherit;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 2px;
  color: var(--ink);
  background: #fffaf3;
}

.search-results {
  display: none;
  position: absolute;
  z-index: 4;
  top: calc(100% - 0.4rem);
  left: 0;
  width: min(32rem, 100%);
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-height: 22rem;
  overflow: auto;
}
.search-results.open { display: block; }
.search-results a {
  display: block;
  padding: 0.45rem 0.7rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-family: "Source Serif 4", Georgia, serif;
}
.search-results a:hover { background: #f8f1e6; }
.search-results .meta { color: var(--muted); font-size: 0.9rem; }
.search-results .empty { padding: 0.6rem 0.7rem; color: var(--muted); }

main { padding: 0 0 3rem; }

.cover-hero {
  background: #3a151b;
  line-height: 0;
}
.cover-hero img {
  display: block;
  width: 100%;
  height: min(92vh, 58rem);
  object-fit: cover;
  object-position: center top;
}
.hero-band {
  background:
    linear-gradient(180deg, rgba(58, 21, 27, 0.04), transparent 40%),
    transparent;
  padding: 2rem 0 0.4rem;
}
.edition-tag {
  font-family: "Source Sans 3", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--burgundy);
  margin: 0 0 0.55rem;
}
.hero-band h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.7rem;
  color: var(--burgundy-deep);
  max-width: 16ch;
}
.hero-band .lede {
  font-size: 1.18rem;
  max-width: 38rem;
  color: var(--ink);
  margin: 0 0 0.7rem;
}
.cover-credit {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  margin: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.62rem 1rem;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--burgundy-deep);
  color: #f8f1e8;
}
.btn-primary:hover {
  background: var(--burgundy);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--burgundy-deep);
  border-color: rgba(90, 31, 40, 0.35);
}
.btn-secondary:hover {
  background: var(--wash);
  color: var(--burgundy-deep);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}
.btn-ghost:hover { color: var(--burgundy-deep); }

.intro-band {
  margin: 1.5rem 0 0.2rem;
  padding: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.wrap > h1,
.wrap > h2,
.section-head h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}
.wrap > h2,
.about-page h2 {
  margin-top: 2rem;
}

.muted { color: var(--muted); }

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
  margin: 0.8rem 0 0;
}
.section-grid a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 0.2rem 0 0.55rem;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.section-grid a:hover {
  border-bottom-color: var(--burgundy);
}
.section-grid img {
  display: block;
  width: 100%;
  height: 9rem;
  object-fit: contain;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 250, 243, 0.2)),
    #fffdf8;
  margin-bottom: 0.55rem;
}
.section-grid strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
}
.section-grid span { color: var(--muted); font-size: 0.95rem; }

.section-head { margin-bottom: 0.4rem; }
.section-art {
  display: block;
  width: min(100%, 42rem);
  height: auto;
  margin: 0.35rem 0 0.7rem;
  background: #fffdf8;
}
.section-title {
  color: var(--burgundy-deep);
  border-bottom: 2px solid #e3b4b7;
  padding-bottom: 0.2rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.4rem;
}

.cut-chart { margin: 0.4rem 0 1.2rem; }
.cut-chart img { display: block; width: min(100%, 42rem); height: auto; }

.recipe-cols { display: block; }
@media (min-width: 760px) {
  .recipe-cols {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
    column-gap: 1.5rem;
    align-items: start;
  }
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.6rem 0 1rem;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 0.25rem 0.4rem;
  vertical-align: top;
  text-align: left;
}
.prose th { background: rgba(255, 250, 243, 0.7); }

.tips-block {
  margin: 1.2rem 0 1.6rem;
  padding: 0.2rem 0 0.4rem;
  border-top: 1px solid var(--line);
}
.tips-block .tips-label {
  font-family: "Source Sans 3", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy-deep);
  font-size: 0.8rem;
  margin: 0.2rem 0 0.8rem;
}
.tips-block .tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tips-block .tip-list > li {
  margin: 0 0 0.85rem;
  padding: 0.1rem 0 0.1rem 0.9rem;
  border-left: 2px solid #c9a394;
}
.term-cols p { margin: 0.35rem 0; }
@media (min-width: 760px) {
  .tips-block .tip-grid {
    column-count: 2;
    column-gap: 1.5rem;
  }
  .tips-block .tip-list > li { break-inside: avoid; }
  article .term-cols {
    display: inline-block;
    vertical-align: top;
    width: 48%;
    margin-right: 1%;
  }
}

.recipe-list { list-style: none; padding: 0; margin: 0; }
.recipe-list li { border-bottom: 1px solid var(--line); }
.recipe-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  text-decoration: none;
  color: var(--ink);
}
.recipe-list a:hover .rtitle { color: var(--burgundy-deep); }
.recipe-list .by {
  color: var(--muted);
  font-style: italic;
  text-align: right;
}

h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

.byline {
  font-style: italic;
  color: #4e3d32;
  margin-top: -0.35rem;
  font-size: 1.2rem;
}
.original { color: var(--muted); font-size: 0.98rem; }

.recipe, .prose, .about-page section {
  margin-top: 0.4rem;
}
.recipe h3, .prose h3 {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 1.3rem 0 0.3rem;
}
.recipe h4, .prose h4 {
  margin: 0.9rem 0 0.2rem;
  font-weight: 600;
  font-size: 1.05rem;
}
.recipe ul, .prose ul { margin: 0.2rem 0 0.6rem; padding-left: 1.2rem; }
.recipe ol, .prose ol { margin: 0.2rem 0 0.6rem; padding-left: 1.4rem; }
.recipe li, .prose li { margin: 0.15rem 0; }

.editor-note {
  margin-top: 1.6rem;
  border-left: 3px solid #c6a15a;
  background: rgba(251, 246, 234, 0.85);
  padding: 0.7rem 1rem;
  color: #4d4336;
  font-size: 0.98rem;
}
.editor-note h2 {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
  color: #7a6230;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.95rem;
}
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }

.letter {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--burgundy);
  margin: 1.4rem 0 0.2rem;
}

.crumbs {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  padding-top: 1.4rem;
}
.crumbs a { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.9rem;
  padding: 1.4rem 0 2.2rem;
}
.site-footer p { margin: 0.2rem 0; }
.footer-credit { font-size: 0.84rem; opacity: 0.9; }

.about-page {
  padding-top: 1.4rem;
  max-width: 44rem;
}
.about-page section {
  padding: 0.4rem 0 0.8rem;
  border-bottom: 1px solid var(--line);
}
.about-page .edition-credit {
  margin-top: 1.6rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
}
.about-page .cta-row { margin-top: 0.8rem; }
.about-page .btn-primary {
  background: var(--burgundy-deep);
  color: #f8f1e8;
}
.about-page .btn-primary:hover {
  background: var(--burgundy);
  color: #fff;
}
.about-page .btn-ghost {
  color: var(--burgundy-deep);
}

.az {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  font-family: "Source Sans 3", sans-serif;
}
.az a { text-decoration: none; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.2rem 0 0.9rem;
  }
  .nav.is-open { display: flex; }
  .recipe-list a {
    flex-direction: column;
    gap: 0.05rem;
  }
  .recipe-list .by { text-align: left; }
  .cover-hero img {
    height: min(70vh, 34rem);
  }
}
