:root {
  --ink: #241433;
  --muted: #5c5168;
  --paper: #fff4e6;
  --cream: #fffdf9;
  --indigo: #24145a;
  --chili: #e23b2b;
  --turmeric: #ffb703;
  --cilantro: #1f8a4c;
  --line: rgba(36, 20, 90, 0.12);
  --shadow: 0 18px 40px rgba(36, 20, 90, 0.1);
  --serif: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --sans: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#recipe, .prose h2, .prose h3, #related { scroll-margin-top: 9.5rem; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 -8%, #ffd7a8 0, transparent 28%),
    radial-gradient(circle at 100% 0, #ffc1d6 0, transparent 26%),
    radial-gradient(circle at 80% 30%, #c9f6df 0, transparent 22%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: var(--indigo);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  z-index: 40;
}
.skip-link:focus { top: 0.6rem; }

.spice-row { display: grid; grid-template-columns: repeat(8, 1fr); height: 8px; }
.spice-row span:nth-child(1) { background: #e23b2b; }
.spice-row span:nth-child(2) { background: #ffb703; }
.spice-row span:nth-child(3) { background: #1f8a4c; }
.spice-row span:nth-child(4) { background: #6d28d9; }
.spice-row span:nth-child(5) { background: #ff7a1a; }
.spice-row span:nth-child(6) { background: #0e7490; }
.spice-row span:nth-child(7) { background: #d81b60; }
.spice-row span:nth-child(8) { background: #f4d35e; }

#site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 10px 30px rgba(36, 20, 90, 0.18);
}
.bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand, .foot-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.mark { width: 46px; height: 46px; flex: none; }
.mark svg { width: 100%; height: 100%; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 800; }
.brand-small { margin-top: 0.25rem; font-size: 0.75rem; opacity: 0.8; }
.finder { display: flex; margin-left: auto; background: #fff; border-radius: 999px; overflow: hidden; min-width: min(340px, 46vw); }
.finder input {
  border: 0;
  padding: 0.75rem 1rem;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  background: transparent;
}
.finder input:focus { outline: 2px solid var(--turmeric); outline-offset: -2px; }
.finder button, .print-btn, .button-link {
  border: 0;
  background: var(--chili);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}
.nav-toggle {
  display: none;
  border: 0;
  background: var(--turmeric);
  color: #2b1600;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
}
.menu ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0 0 0.95rem; }
.menu a {
  display: inline-flex;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.92rem;
}
.menu li:nth-child(8n+1) a { background: #ffb703; color: #2b1600; }
.menu li:nth-child(8n+2) a { background: #e23b2b; color: #fff; }
.menu li:nth-child(8n+3) a { background: #1f8a4c; color: #fff; }
.menu li:nth-child(8n+4) a { background: #ff7a1a; color: #2b1600; }
.menu li:nth-child(8n+5) a { background: #f4d35e; color: #2b1600; }
.menu li:nth-child(8n+6) a { background: #0e7490; color: #fff; }
.menu li:nth-child(8n+7) a { background: #d81b60; color: #fff; }
.menu li:nth-child(8n+8) a { background: #c4b5fd; color: #24145a; }
.menu a.is-current { outline: 3px solid #fff; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: 2.6rem 0 1.4rem;
}
.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  background: var(--tone, var(--chili));
  color: var(--on, #fff);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1, .archive-top h1, .story-top h1 {
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  margin: 0.6rem 0 0.8rem;
}
.lede, .dek { font-size: 1.18rem; color: var(--muted); max-width: 42rem; }
.hero-finder { margin: 1.1rem 0 0; min-width: 0; width: min(100%, 460px); margin-left: 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.hero-points li {
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.hero-points li:nth-child(1) { background: #ffe08a; }
.hero-points li:nth-child(2) { background: #ffc2b8; }
.hero-points li:nth-child(3) { background: #c8f3d8; }
.hero-stage .card { min-height: 100%; }

.ticker { overflow: hidden; background: var(--turmeric); color: #2b1600; border-block: 3px solid var(--indigo); }
.ticker-track { display: flex; gap: 1.6rem; width: max-content; padding: 0.55rem 0; font-weight: 800; animation: glide 32s linear infinite; }
.ticker span { font-family: var(--serif); font-size: 1.05rem; }
@keyframes glide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.band { padding: 1.4rem 0 0.4rem; }
.band-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.8rem; margin-bottom: 1rem; }
.band-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.band-head p { color: var(--muted); max-width: 36rem; }
.lane-band { margin-top: 1.4rem; padding: 1.5rem 0 1.6rem; background: color-mix(in srgb, var(--tone) 18%, white); }
.jump, .button-link {
  display: inline-flex;
  margin-top: 0.9rem;
  background: var(--indigo);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 800;
}

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
  background: var(--cream);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 100%;
  position: relative;
}
.card::before { content: ""; display: block; height: 8px; background: var(--tone, var(--chili)); }
.card > a { display: flex; flex-direction: column; height: calc(100% - 8px); text-decoration: none; color: inherit; }
.card-media img, .card-media .photo-wait { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-wait {
  display: block;
  background:
    radial-gradient(circle at 20% 20%, #fff 0 12%, transparent 13%),
    linear-gradient(145deg, var(--tone, #ffb703), #fff 58%, #ffd0c8);
}
.card-copy { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.9rem 0.95rem 1rem; }
.card-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }
.card-dek { color: var(--muted); font-size: 0.95rem; }
.ready { font-weight: 800; font-size: 0.86rem; }
.band-head a { font-weight: 800; }

.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip a {
  display: inline-flex;
  text-decoration: none;
  background: var(--tone);
  color: var(--on);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
}

.contact-lead { max-width: 40rem; }
.contact-form {
  max-width: 720px;
  margin-top: 1.2rem;
  background: var(--cream);
  border: 3px solid var(--turmeric);
  border-radius: 28px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.9rem;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.contact-form label { display: grid; gap: 0.35rem; font-weight: 800; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 2px solid rgba(36, 20, 90, 0.16);
  border-radius: 16px;
  padding: 0.8rem 0.9rem;
  background: #fff;
  color: var(--ink);
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid #ffe08a; border-color: #f4a300; }
.contact-form button {
  justify-self: start;
  border: 0;
  background: var(--chili);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  cursor: pointer;
}
.form-note { border-radius: 16px; padding: 0.8rem 1rem; font-weight: 700; }
.form-note.ok { background: #c9f6df; }
.form-note.bad { background: #ffc8be; }
.captcha { min-height: 78px; }

.note-band { margin: 1.6rem 0 0; background: var(--indigo); color: #fff; }
.note-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 1.4rem; padding: 2.2rem 0; align-items: center; }
.note-band .kicker { background: #ffb703; color: #2b1600; }
.note-band h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: 0.6rem; }
.note-band p { font-size: 1.15rem; }

.archive-top, .story { padding-top: 1.6rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; color: var(--muted); font-size: 0.92rem; margin-bottom: 0.8rem; }
.crumbs a { font-weight: 800; }
.story-top h1 { max-width: 18ch; }
.times { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.times li { background: #fff; border-radius: 16px; padding: 0.55rem 0.75rem; font-weight: 800; box-shadow: var(--shadow); }
.times li span { display: block; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.times li:nth-child(1) { background: #ffe08a; }
.times li:nth-child(2) { background: #ffc8be; }
.times li:nth-child(3) { background: #c9f6df; }
.times li:nth-child(4) { background: #d9ccff; }
.story-figure { margin: 1.2rem 0; }
.story-figure img, .story-figure .photo-wait { width: 100%; max-height: 680px; object-fit: cover; border-radius: 28px; }
.prose { max-width: 760px; font-size: 1.08rem; }
.prose > * + * { margin-top: 0.95rem; }
.prose h2, .prose h3 { margin-top: 1.6rem; }
.prose h2 { font-size: 2rem; }
.prose a { color: #9f1239; font-weight: 800; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose figure { margin: 1rem 0; }
.prose img, .prose .photo-wait { border-radius: 20px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prose figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 0.35rem; }
.prose blockquote { margin: 0; padding: 0.8rem 1rem; background: #fff3bf; border-radius: 16px; }
.toc { background: #fff; border-radius: 20px; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.toc ol { margin: 0.6rem 0 0; }
.faq { background: #fff; border-radius: 22px; padding: 1rem 1.1rem 0.4rem; }
.faq-item { padding: 0.7rem 0 0.9rem; border-top: 1px solid var(--line); }

.recipe-sheet {
  margin: 1.6rem 0 0.4rem;
  background: var(--cream);
  border-radius: 28px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  border: 3px solid #ffb703;
}
.recipe-head { display: grid; gap: 0.7rem; margin-bottom: 1rem; }
.recipe-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.print-btn { justify-self: start; border-radius: 999px; }
.recipe-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.2rem; }
.ingredient-pad, .method { background: #fff; border-radius: 20px; padding: 1rem; }
.ingredient-pad { background: #e9fbf1; }
.ingredient-pad h3, .method h3, .recipe-notes h3 { margin-bottom: 0.7rem; }
.ingredients, .equipment { list-style: none; padding: 0; margin: 0; }
.ingredients li, .equipment li { position: relative; padding: 0.35rem 0 0.35rem 1.6rem; }
.ingredients li::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid #1f8a4c;
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 0.5rem;
}
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.step-no {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--chili);
}
.steps li:nth-child(4n+2) .step-no { background: #f4a300; color: #2b1600; }
.steps li:nth-child(4n+3) .step-no { background: #1f8a4c; }
.steps li:nth-child(4n+4) .step-no { background: #6d28d9; }
.recipe-notes { margin-top: 1rem; background: #fff4cc; border-radius: 18px; padding: 1rem; }
.nutrition { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.5rem; list-style: none; padding: 0; }
.nutrition li { background: #fff; border-radius: 14px; padding: 0.6rem 0.7rem; }
.nutrition span { display: block; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }

.pager { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 1.2rem 0 2rem; }
.pager a {
  text-decoration: none;
  min-width: 2.6rem;
  text-align: center;
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.pager a.is-current { background: var(--indigo); color: #fff; }
.missing { padding: 2rem 0 3rem; }
.missing h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 0.5rem 0; }
.button-link { display: inline-flex; border-radius: 999px; margin-top: 0.8rem; }

#site-footer { background: var(--indigo); color: #fff; margin-top: 1.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 1.2rem; padding: 1.8rem 0 1rem; }
.foot-grid h2 { font-size: 1.15rem; margin-bottom: 0.55rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.foot-grid a { text-decoration: none; font-weight: 700; }
.foot-grid a:hover { text-decoration: underline; }
.foot-brand p { margin-top: 0.7rem; color: #efe8ff; }
.legal-line { padding-bottom: 1.3rem; color: #d9cff8; font-size: 0.92rem; }

table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border: 1px solid var(--line); padding: 0.45rem 0.55rem; text-align: left; }

@media (max-width: 980px) {
  .hero, .recipe-grid, .note-grid, .foot-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-stage { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .menu { display: none; }
  .menu.is-open { display: block; }
  .bar { flex-wrap: wrap; }
  .finder { order: 3; margin-left: 0; width: 100%; min-width: 0; }
  .hero, .recipe-grid, .note-grid, .foot-grid, .cards, .contact-grid { grid-template-columns: 1fr; }
  .hero h1, .story-top h1 { font-size: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}
@media print {
  #site-header, #site-footer, .ticker, .related, .finder, .print-btn, .jump, .pager { display: none !important; }
  body { background: #fff; }
  .recipe-sheet { box-shadow: none; }
}
