:root {
  --ink: #241433;
  --night: #1b1140;
  --paper: #fff4e6;
  --card: #fffdf8;
  --guava: #ff2d6a;
  --mango: #ff8a00;
  --plantain: #ffc400;
  --sea: #00a99a;
  --lime: #c6ef3a;
  --grape: #6d4aff;
  --line: rgba(36, 20, 51, 0.12);
  --shadow: 0 18px 40px rgba(27, 17, 64, 0.12);
  --font: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at -10% -10%, rgba(255, 45, 106, 0.18), transparent 60%),
    radial-gradient(800px 480px at 110% 8%, rgba(0, 169, 154, 0.18), transparent 55%),
    radial-gradient(700px 500px at 80% 40%, rgba(255, 196, 0, 0.16), transparent 50%),
    var(--paper);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin: 0; }
p { margin: 0 0 0.8em; }
.wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--night);
  color: white;
  padding: 0.6rem 0.9rem;
  z-index: 20;
}
.skip-link:focus { top: 1rem; }

.awning { display: flex; height: 10px; }
.awning span { flex: 1; }
.awning span:nth-child(8n+1) { background: var(--guava); }
.awning span:nth-child(8n+2) { background: var(--plantain); }
.awning span:nth-child(8n+3) { background: var(--sea); }
.awning span:nth-child(8n+4) { background: var(--mango); }
.awning span:nth-child(8n+5) { background: var(--grape); }
.awning span:nth-child(8n+6) { background: var(--lime); }
.awning span:nth-child(8n+7) { background: #ff5d3a; }
.awning span:nth-child(8n+8) { background: #1b1140; }

#site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 244, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 84px;
}
.brand, .foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--night);
}
.mark { width: 48px; height: 48px; flex: none; }
.mark svg { width: 100%; height: 100%; display: block; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.7rem; }
.brand-small { margin-top: 0.25rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #6b5678; }

.finder { display: flex; flex: 1; max-width: 460px; margin-left: auto; }
.finder input {
  flex: 1;
  border: 2px solid var(--night);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  background: white;
  padding: 0.75rem 1rem;
  min-width: 0;
}
.finder button, .print-btn, .contact-form button {
  border: 2px solid var(--night);
  background: var(--guava);
  color: white;
  font-weight: 700;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
}
.finder button { border-radius: 0 999px 999px 0; }
.finder button:hover, .print-btn:hover { background: var(--night); }

.nav-toggle {
  display: none;
  border: 2px solid var(--night);
  background: var(--plantain);
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
}
.menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0.9rem;
}
.nav-link {
  display: inline-block;
  text-decoration: none;
  color: var(--night);
  background: white;
  border: 2px solid var(--night);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.nav-link:hover, .nav-link.is-current { background: var(--night); color: var(--lime); }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 1.6rem 0 1.2rem;
}
.eyebrow, .kicker {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--night);
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lede, .dek { font-size: 1.15rem; max-width: 42rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.hero-points li {
  background: white;
  border: 2px solid var(--night);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-weight: 700;
  font-size: 0.92rem;
}
.hero-finder { margin-top: 1.1rem; max-width: 100%; }
.hero-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  align-items: start;
}
.hero-stage .card,
.hero-stage .card:nth-child(2),
.hero-stage .card:nth-child(3) { transform: none; }
.hero-stage .card > a {
  flex-direction: row;
  align-items: center;
}
.hero-stage .card-media,
.hero-stage .card:first-child .card-media {
  width: 46%;
  height: 132px;
  flex: none;
  aspect-ratio: auto;
}
.hero-stage .card-media img { object-position: center 64%; }
.hero-stage .card-copy { min-width: 0; padding: 0.75rem 0.9rem; }
.hero-stage .card-dek,
.hero-stage .ready { display: none; }
.hero-stage .card-title { font-size: 1.2rem; }

.ticker { overflow: hidden; border-block: 2px solid var(--night); background: var(--night); color: white; }
.ticker-track { display: flex; gap: 1.5rem; width: max-content; animation: march 28s linear infinite; padding: 0.55rem 0; }
.ticker span { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ticker span:nth-child(4n+1) { color: var(--plantain); }
.ticker span:nth-child(4n+2) { color: #ff8eb0; }
.ticker span:nth-child(4n+3) { color: #7dfff3; }
.ticker span:nth-child(4n) { color: var(--lime); }
@keyframes march { to { transform: translateX(-50%); } }

.band { padding: 2.4rem 0 0.4rem; }
.band-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.8rem 1.4rem; margin-bottom: 1rem; }
.band-head p { max-width: 38rem; margin: 0; }
.band-head > a, .text-link {
  font-weight: 700;
  color: var(--night);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 3px solid var(--tone, var(--night));
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 100%;
}
.card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.card-media { aspect-ratio: 4 / 5; background: var(--tone, var(--guava)); overflow: hidden; }
.card-media img, .photo-wait { width: 100%; height: 100%; object-fit: cover; }
.card-copy { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.9rem 1rem 1rem; }
.card .kicker { background: var(--tone, var(--guava)); color: var(--on, white); align-self: flex-start; }
.card-title { font-family: var(--display); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }
.card-dek { color: #4d3b58; font-size: 0.95rem; }
.ready { margin-top: auto; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #6b5678; }
.photo-wait {
  display: block;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.25), transparent 40%),
    repeating-linear-gradient(45deg, var(--guava) 0 14px, var(--plantain) 14px 28px, var(--sea) 28px 42px, var(--mango) 42px 56px);
}

.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chip { border-radius: 1rem; background: var(--tone, var(--guava)); }
.chip a {
  display: inline-block;
  padding: 0.7rem 1rem;
  color: var(--on, white);
  font-weight: 700;
  text-decoration: none;
}

.lane-band {
  margin-top: 1.6rem;
  padding: 1.6rem 0 1.8rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tone, var(--guava)) 22%, white), transparent 80%);
}
.note-band { margin: 2rem 0 0; background: var(--night); color: white; }
.note-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 1.5rem; align-items: center; padding: 2.4rem 0; }
.note-band .kicker { background: var(--guava); color: white; }
.note-band h2 { color: var(--plantain); }
.note-band p { margin: 0; font-size: 1.15rem; }

.archive-top { padding: 2rem 0 0.4rem; }
.archive-top h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); }

.pager { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.4rem 0 2rem; }
.page-link {
  display: inline-flex;
  min-width: 2.6rem;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--night);
  background: white;
  border: 2px solid var(--night);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
}
.page-link.is-current, .page-link:hover { background: var(--guava); color: white; }

.story { padding: 1.4rem 0 2rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; color: #6b5678; font-size: 0.92rem; margin-bottom: 1rem; }
.crumbs a { color: var(--night); font-weight: 700; }
.story-top {
  background: color-mix(in srgb, var(--tone, var(--guava)) 16%, white);
  border: 3px solid var(--night);
  border-radius: 1.6rem;
  padding: 1.3rem 1.3rem 1.1rem;
}
.story-top .kicker { background: var(--tone, var(--guava)); color: var(--on, white); }
.times { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0.8rem 0 0; }
.times li { background: white; border-radius: 999px; padding: 0.25rem 0.7rem; border: 2px solid var(--night); }
.times span { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: #6b5678; }
.jump, .button-link, .missing a {
  display: inline-block;
  margin-top: 0.9rem;
  background: var(--night);
  color: var(--lime);
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
}
.story-figure { margin: 1.2rem 0; border-radius: 1.6rem; overflow: hidden; border: 3px solid var(--night); background: var(--plantain); }
.story-figure img, .story-figure .photo-wait { width: 100%; max-height: 760px; object-fit: cover; aspect-ratio: 4 / 3; }
.prose { font-size: 1.08rem; max-width: 46rem; }
.prose h2, .prose h3 { margin: 1.4em 0 0.4em; }
.prose a { color: #b4144d; font-weight: 700; }
.prose figure { margin: 1.2rem 0; }
.prose img { border-radius: 1.1rem; border: 3px solid var(--night); }
.prose ul, .prose ol { padding-left: 1.2rem; }
.faq { margin-top: 1.5rem; }
.faq-item { background: white; border: 2px solid var(--line); border-radius: 1rem; padding: 0.8rem 1rem; margin-bottom: 0.7rem; }
.toc { background: white; border-radius: 1rem; padding: 0.8rem 1rem; border: 2px solid var(--night); }

.recipe-sheet {
  margin-top: 2rem;
  background: white;
  border: 3px solid var(--night);
  border-radius: 1.6rem;
  overflow: hidden;
}
.recipe-head { padding: 1.2rem 1.2rem 0.4rem; background: linear-gradient(90deg, #ffe1ec, #fff4cc 55%, #d9fff8); }
.recipe-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; }
.ingredient-pad, .method { padding: 1rem 1.2rem 1.3rem; }
.ingredient-pad { background: #fff6d8; }
.method { background: #f3fffb; }
.ingredients, .equipment { list-style: none; padding: 0; margin: 0; }
.ingredients li, .equipment li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  border-bottom: 1px dashed rgba(36, 20, 51, 0.2);
  position: relative;
}
.ingredients li::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--guava);
  position: absolute;
  left: 0;
  top: 0.75rem;
}
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; margin: 0 0 0.9rem; }
.step-no {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sea);
  color: white;
  font-weight: 700;
}
.recipe-notes, .nutrition, .equipment { margin: 0 1.2rem 1rem; }
.nutrition { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.5rem; padding: 0; list-style: none; }
.nutrition li { background: #fff4e6; border-radius: 0.8rem; padding: 0.55rem 0.7rem; }
.nutrition span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #6b5678; }
.print-btn { margin: 0.6rem 0 1rem; border-radius: 999px; }

#site-footer { margin-top: 2.5rem; background: var(--night); color: #f7efe4; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 1.4rem; padding: 1.8rem 0 1rem; }
.foot-logo { color: var(--plantain); font-family: var(--display); font-size: 1.8rem; font-weight: 800; }
#site-footer h2 { font-size: 1.05rem; color: white; margin-bottom: 0.5rem; }
#site-footer ul { list-style: none; margin: 0; padding: 0; }
#site-footer li { margin: 0.28rem 0; }
.foot-link { color: #f7efe4; text-decoration: none; }
.foot-link:hover { color: var(--lime); }
.legal-line { border-top: 1px solid rgba(255,255,255,0.12); padding: 0.8rem 0 1.2rem; color: #cbbfd6; }
.missing { padding: 3rem 0 4rem; }
.contact-story { max-width: 860px; }
.contact-form {
  margin-top: 1.2rem;
  background: white;
  border: 3px solid var(--night);
  border-radius: 1.6rem;
  padding: 1.2rem;
  display: grid;
  gap: 0.85rem;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.contact-form label { display: grid; gap: 0.35rem; font-weight: 700; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 2px solid var(--night);
  border-radius: 0.9rem;
  background: #fffaf3;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form button {
  justify-self: start;
  border: 2px solid var(--night);
  background: var(--guava);
  color: white;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
}
.contact-form button:hover { background: var(--night); }
.captcha { background: #fff6d8; border-radius: 1rem; padding: 0.8rem; }
.form-note { margin-top: 1rem; border-radius: 1rem; padding: 0.9rem 1rem; border: 2px solid var(--night); }
.form-note.ok { background: #d9fff4; }
.form-note.bad { background: #ffe1ec; }
.related { padding-bottom: 1rem; }

@media (max-width: 980px) {
  .hero, .recipe-grid, .note-grid, .foot-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .finder { max-width: none; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .menu { display: none; }
  .menu.is-open { display: block; }
  .bar { min-height: 72px; flex-wrap: wrap; padding: 0.7rem 0; }
  .finder { order: 3; flex: 1 1 100%; margin: 0; }
  .cards, .contact-grid { grid-template-columns: 1fr; }
  .hero-stage .card > a { flex-direction: column; align-items: stretch; }
  .hero-stage .card-media,
  .hero-stage .card:first-child .card-media { width: 100%; height: 190px; }
  h1 { font-size: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
@media print {
  #site-header, #site-footer, .ticker, .related, .jump, .print-btn, .finder { display: none !important; }
  body { background: white; }
  .story-figure, .recipe-sheet, .card { break-inside: avoid; }
}
