:root {
  --ink: #16130f;
  --stone: #efe6d4;
  --sheet: #fffaf2;
  --magenta: #ff2e7e;
  --cobalt: #2046f0;
  --lime: #d6ff3c;
  --teal: #00a896;
  --tangerine: #ff6a00;
  --muted: #5c564c;
  --display: "Instrument Serif", Georgia, serif;
  --sans: "Schibsted Grotesk", "Avenir Next", sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--stone);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.96;
  margin: 0 0 0.7rem;
}
p { margin: 0 0 0.9rem; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--ink); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.shell { width: min(var(--wrap), calc(100% - 2rem)); margin: 0 auto; }
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.enamel { display: grid; grid-template-columns: repeat(4, 1fr); height: 8px; }
.enamel i:nth-child(1) { background: var(--magenta); }
.enamel i:nth-child(2) { background: var(--cobalt); }
.enamel i:nth-child(3) { background: var(--lime); }
.enamel i:nth-child(4) { background: var(--tangerine); }

.mast { background: var(--ink); color: var(--sheet); position: sticky; top: 0; z-index: 12; }
.mast-row { display: flex; align-items: center; gap: 1rem; padding: 0.85rem 0; }
.brand { text-decoration: none; color: var(--sheet); }
.brand-lock { display: flex; flex-direction: column; line-height: 0.9; }
.brand-lock strong { font-family: var(--display); font-size: 2rem; font-weight: 400; }
.brand-lock small { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }
.seek { margin-left: auto; display: flex; background: #2a241d; border-radius: 999px; overflow: hidden; }
.seek input {
  border: 0;
  background: transparent;
  color: var(--sheet);
  padding: 0.7rem 1rem;
  width: min(16rem, 42vw);
  outline: none;
}
.seek input::placeholder { color: #b7ae9f; }
.seek button {
  border: 0;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  padding: 0 1rem;
  cursor: pointer;
}
.menu-toggle {
  display: none;
  border: 2px solid var(--lime);
  background: transparent;
  color: var(--lime);
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.menu ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; padding: 0 0 0.9rem; }
.menu a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.menu a.is-current { color: var(--lime); }

.fold { background: var(--ink); }
.fold-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; min-height: 32rem; }
.fold-copy {
  background: var(--tangerine);
  color: var(--ink);
  padding: 3.2rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.fold-copy h1 { font-size: clamp(3.2rem, 6.4vw, 6.2rem); margin-bottom: 1rem; }
.eyebrow {
  margin: 0 0 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.dek { font-size: 1.15rem; max-width: 38rem; }
.fold-photo { background: var(--cobalt); min-height: 22rem; position: relative; }
.fold-photo a { position: absolute; inset: 0; }
.fold-photo .shot { aspect-ratio: auto; height: 100%; }
.fold-photo a, .mosaic a, .ledger-grid a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: var(--sheet);
  color: var(--ink);
  border: 2px solid var(--ink);
}
.shot { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cobalt); }
.shot img, .photo-fallback { width: 100%; height: 100%; object-fit: cover; }
.photo-fallback {
  display: grid;
  place-items: center;
  background: var(--magenta);
  color: white;
  font-family: var(--display);
  font-size: 4rem;
}
.hero-shot { aspect-ratio: 16 / 10; }
.plate-copy { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.85rem 0.9rem 1rem; }
.plate-kind {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.plate-name { font-family: var(--display); font-size: 1.45rem; line-height: 1; }

.board-block, .ledger, .faq, .more-block, .reading { padding: 2.4rem 0 1rem; }
.block-head { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; margin-bottom: 1.1rem; }
.block-head h2, .more-block h2, .faq h2, .ledger h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.block-head p, .more-block > p { max-width: 28rem; color: var(--muted); }

.mosaic, .ledger-grid { display: grid; gap: 0.9rem; }
.mosaic.n8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mosaic.n9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ledger-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mosaic li, .ledger-grid li { min-width: 0; }
.mosaic a, .ledger-grid a { border-top-width: 8px; }
.mosaic li:nth-child(4n+1) a, .ledger-grid li:nth-child(4n+1) a { border-top-color: var(--magenta); }
.mosaic li:nth-child(4n+2) a, .ledger-grid li:nth-child(4n+2) a { border-top-color: var(--cobalt); }
.mosaic li:nth-child(4n+3) a, .ledger-grid li:nth-child(4n+3) a { border-top-color: var(--teal); }
.mosaic li:nth-child(4n) a, .ledger-grid li:nth-child(4n) a { border-top-color: var(--tangerine); }
.mosaic a:hover .plate-name, .ledger-grid a:hover .plate-name { text-decoration: underline; text-underline-offset: 0.15em; }

.lane { padding: 2.2rem 0 2.4rem; color: white; }
.lane-cobalt { background: var(--cobalt); }
.lane-magenta { background: var(--magenta); }
.lane-teal { background: var(--teal); }
.lane .block-head p, .lane .eyebrow { color: var(--lime); }
.lane .plate-kind { color: var(--ink); }

.dish-top { padding: 2.2rem 0 0.4rem; }
.dish-top h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); max-width: 18ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 0.8rem; font-size: 0.92rem; }
.crumbs a { font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0.4rem; }
.facts li {
  background: var(--ink);
  color: var(--sheet);
  padding: 0.45rem 0.7rem;
  font-size: 0.92rem;
}
.facts span { color: var(--lime); font-weight: 700; margin-right: 0.35rem; }
.hero-wrap { padding-top: 1rem; }
.hero-frame { margin: 0; background: var(--ink); }
.hero-rule { display: block; height: 12px; background: linear-gradient(90deg, var(--magenta), var(--cobalt) 38%, var(--lime) 70%, var(--tangerine)); }

.reading { max-width: 980px; }
.prose { font-size: 1.08rem; }
.prose h2 { font-size: clamp(2rem, 3vw, 2.8rem); margin-top: 1.6rem; }
.prose h3 { font-size: 1.6rem; margin-top: 1.2rem; }
.prose a { color: var(--cobalt); text-underline-offset: 0.16em; }
.prose img { width: 100%; border: 2px solid var(--ink); margin: 0.4rem 0 1rem; }
.prose blockquote {
  margin: 1rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 6px solid var(--magenta);
}
.prose ul, .prose ol { margin: 0 0 1rem 1.1rem; }
.prose ul { list-style: disc; padding-left: 1.1rem; }
.prose ol { list-style: decimal; padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }

.cook {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 1rem;
  align-items: start;
  margin: 1.4rem 0 0.4rem;
}
.pantry {
  background: var(--lime);
  color: var(--ink);
  padding: 1.1rem 1rem 1.2rem;
  border: 2px solid var(--ink);
  position: sticky;
  top: 6.2rem;
}
.pantry h2, .method h2 { font-size: 2.1rem; }
.pantry .yield { font-weight: 700; }
.pantry .ings, .pantry .tools, .method ol, .notes ul, .prose .ings { list-style: none; margin-left: 0; padding: 0; }
.pantry .ings li, .pantry .tools li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(22, 19, 15, 0.18);
}
.pantry .ings li::before, .pantry .tools li::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.35rem;
  border: 2px solid var(--ink);
  flex: none;
}
.method {
  background: var(--sheet);
  border: 2px solid var(--ink);
  padding: 1.1rem 1.15rem 1.3rem;
}
.method { counter-reset: step; }
.method ol > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
}
.method ol > li::before {
  content: counter(step);
  background: var(--cobalt);
  color: white;
  font-weight: 700;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.pager { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.4rem 0 2rem; }
.pager a {
  min-width: 2.6rem;
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.7rem;
  border: 2px solid var(--ink);
  text-decoration: none;
  font-weight: 700;
  background: var(--sheet);
}
.pager a.is-current { background: var(--lime); }

.faq { padding-bottom: 3rem; }
.faq h3 { font-size: 1.7rem; margin-top: 1rem; }
.empty { padding: 1rem 0 2rem; }

.missing { padding: 4rem 0 5rem; }
.missing h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }

.base { background: var(--ink); color: var(--sheet); padding: 2.4rem 0 1rem; margin-top: 1rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 1.4rem; }
.base h2 { color: var(--lime); font-size: 1.5rem; }
.base a { text-decoration: none; }
.base li { margin: 0.28rem 0; }
.base .brand-lock strong { color: var(--sheet); }
.legal { border-top: 1px solid #3a342c; margin-top: 1.4rem; padding: 0.9rem 0 1.1rem; color: #c9c0b2; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--tangerine);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .fold-grid, .cook, .foot-grid { grid-template-columns: 1fr; }
  .pantry { position: static; }
  .mosaic.n8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .block-head { flex-direction: column; align-items: start; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .menu { display: none; background: #221c17; }
  .menu.is-open { display: block; }
  .menu ul { flex-direction: column; padding: 0.4rem 0 1rem; }
  .seek input { width: 34vw; }
}
@media (max-width: 640px) {
  .mosaic.n9 { grid-template-columns: 1fr; }
  .mast-row { flex-wrap: wrap; }
  .seek { order: 3; width: 100%; margin-left: 0; }
  .seek input { flex: 1; width: auto; }
  .fold-copy { padding: 1.6rem 1.1rem 1.8rem; }
}
.contact-wrap { padding: 0.4rem 0 3rem; }
.contact-panel {
  max-width: 42rem;
  background: var(--sheet);
  border: 2px solid var(--ink);
  border-top: 8px solid var(--tangerine);
  padding: 1.3rem 1.2rem 1.5rem;
}
.note-form { display: grid; gap: 0.35rem; }
.note-form label {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.note-form input, .note-form textarea {
  width: 100%;
  border: 2px solid var(--ink);
  background: #fff;
  padding: 0.75rem 0.85rem;
  border-radius: 0;
}
.note-form button {
  justify-self: start;
  margin-top: 0.8rem;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 700;
  padding: 0.8rem 1.3rem;
  cursor: pointer;
}
.captcha { margin-top: 0.8rem; }
.sent { background: var(--lime); border: 2px solid var(--ink); padding: 0.75rem 0.85rem; font-weight: 700; }
.form-errors { margin: 0 0 0.8rem 1.1rem; list-style: disc; }
.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
