:root {
  --ink: #f4efe6;
  --paper: #14110e;
  --card: #1c1814;
  --lime: #d6ff3c;
  --magenta: #ff2f8b;
  --cyan: #2ce4e0;
  --orange: #ff7a1a;
  --line: #f4efe6;
  --muted: #c9c0b2;
  --display: "Syne", "Avenir Next", sans-serif;
  --sans: "Figtree", "Avenir Next", sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(255, 47, 139, 0.16) 62% 100%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 0.75rem;
}
p { margin: 0 0 0.9rem; }
a { color: inherit; }
.sr, .skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip, .skip:focus {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}
.wrap { width: min(var(--wrap), calc(100% - 2rem)); margin: 0 auto; }
.ribbon {
  height: 10px;
  background: linear-gradient(90deg, var(--lime) 0 22%, var(--magenta) 22% 44%, var(--cyan) 44% 66%, var(--orange) 66% 100%);
}

.mast { position: sticky; top: 0; z-index: 8; background: #14110e; border-bottom: 2px solid var(--lime); }
.mast-bar { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; }
.mark { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-weight: 800; color: #14110e; background: var(--lime); padding: 0.25rem 0.55rem 0.25rem 0.25rem; }
.stamp {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  background: #14110e;
  color: var(--lime);
  font-family: var(--display);
  font-size: 1.25rem;
}
.word { font-family: var(--display); font-size: 1.45rem; letter-spacing: -0.04em; }
.finder { margin-left: auto; display: flex; border: 2px solid var(--lime); background: #0d0b09; }
.finder input { border: 0; padding: 0.55rem 0.85rem; width: 13rem; background: transparent; outline: none; color: var(--ink); }
.finder button { border: 0; background: var(--magenta); color: #fff; font-weight: 750; padding: 0.55rem 0.9rem; cursor: pointer; }
.menu-toggle { display: none; border: 2px solid var(--lime); background: var(--lime); color: #14110e; font-weight: 800; padding: 0.45rem 0.8rem; cursor: pointer; }
.mast-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0 0 0.75rem; }
.nav-link {
  display: inline-block;
  text-decoration: none;
  font-weight: 750;
  padding: 0.32rem 0.7rem;
  background: #241f1a;
  color: var(--ink);
}
.nav-link.is-current { background: var(--cyan); color: #14110e; }

.hero { padding: 1.6rem 0 0.4rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.2rem; align-items: end; }
.eyebrow {
  display: inline-block;
  background: var(--orange);
  color: #14110e;
  padding: 0.18rem 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); max-width: 11ch; color: var(--lime); }
.lede { font-size: 1.12rem; max-width: 36rem; color: var(--muted); }
.hero-grid > a { text-decoration: none; display: grid; gap: 0.55rem; }
.hero-shot, .shot {
  display: block;
  overflow: hidden;
  background: #2a241e;
  min-height: 12rem;
}
.hero-shot img, .shot img, .photo-fallback { width: 100%; height: 100%; object-fit: cover; }
.hero-shot { aspect-ratio: 5/4; outline: 8px solid var(--magenta); outline-offset: -8px; }
.photo-fallback { display: grid; place-items: center; min-height: 10rem; color: var(--lime); font-family: var(--display); font-size: 3rem; }
.hero-ticket {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: var(--cyan);
  color: #14110e;
  padding: 0.75rem 0.9rem;
}
.hero-ticket span { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-ticket strong { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.04em; }

.atlas { padding: 1.4rem 0 0.2rem; }
.atlas-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
}
.atlas-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
  min-height: 7.2rem;
  padding: 0.9rem;
  text-decoration: none;
  color: #14110e;
  background: var(--lime);
}
.atlas-grid li:nth-child(5n+2) .atlas-tile { background: var(--magenta); color: #fff; }
.atlas-grid li:nth-child(5n+3) .atlas-tile { background: var(--cyan); }
.atlas-grid li:nth-child(5n+4) .atlas-tile { background: var(--orange); }
.atlas-grid li:nth-child(5n) .atlas-tile { background: #f4efe6; }
.atlas-name { font-family: var(--display); font-size: 1.45rem; line-height: 0.95; letter-spacing: -0.04em; }
.atlas-count { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.shelf { padding: 1.6rem 0 1.8rem; }
.shelf-lime { background: #1a2412; }
.shelf-ink { background: transparent; }
.shelf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 0.9rem; }
.shelf-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--lime); margin: 0; }
.shelf-head p { color: var(--muted); max-width: 36rem; margin: 0.35rem 0 0; }
.shelf-more {
  flex: none;
  text-decoration: none;
  background: var(--magenta);
  color: #fff;
  font-weight: 800;
  padding: 0.55rem 0.8rem;
}

.catalog { padding: 1.4rem 0 3rem; }
.catalog-head h1, .catalog-head h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.catalog-head p { color: var(--muted); max-width: 40rem; }
.board-grid, .mosaic-8, .mosaic-9 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.board-grid { grid-template-columns: repeat(4, 1fr); }
.mosaic-8 { grid-template-columns: repeat(4, 1fr); }
.mosaic-9 { grid-template-columns: repeat(3, 1fr); }
.board-grid a, .mosaic-8 a, .mosaic-9 a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: var(--card);
  border-top: 4px solid var(--lime);
}
.board-grid li:nth-child(4n+2) a, .mosaic-8 li:nth-child(4n+2) a, .mosaic-9 li:nth-child(3n+2) a { border-top-color: var(--magenta); }
.board-grid li:nth-child(4n+3) a, .mosaic-8 li:nth-child(4n+3) a, .mosaic-9 li:nth-child(3n) a { border-top-color: var(--cyan); }
.board-grid li:nth-child(4n) a, .mosaic-8 li:nth-child(4n) a { border-top-color: var(--orange); }
.shot { aspect-ratio: 1 / 1; min-height: 0; }
.card-copy { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.75rem 0.8rem 0.95rem; }
.card-kind { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--cyan); }
.card-name { font-family: var(--display); font-size: 1.15rem; line-height: 1.05; }

.pager { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1.4rem; }
.page-link {
  text-decoration: none;
  min-width: 2.4rem;
  text-align: center;
  padding: 0.4rem 0.7rem;
  background: #241f1a;
  font-weight: 750;
}
.page-link.is-current { background: var(--lime); color: #14110e; }

.recipe-top { padding: 1.5rem 0 0.3rem; }
.recipe-top h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 16ch; color: var(--lime); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 0.8rem; font-weight: 700; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--cyan); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; margin: 0 0 1rem; }
.facts li { background: #241f1a; padding: 0.3rem 0.7rem; font-weight: 700; }
.facts span { color: var(--orange); margin-right: 0.25rem; }
.frame-wrap { margin-bottom: 1.2rem; }
.frame { margin: 0; }
.hero-shot.shot, .frame .hero-shot { aspect-ratio: 16/9; outline: 10px solid var(--lime); outline-offset: -10px; }
.reading {
  max-width: 760px;
  background: #f7f1e6;
  color: #1a140f;
  padding: 1.4rem 1.3rem 0.6rem;
}
.page-note .reading, .note .reading { margin: 1.4rem auto 3rem; }
.prose h2, .prose h3 { margin-top: 1.5rem; color: #1a140f; }
.prose a { color: #9a1458; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: 0.3rem 0; }
.prose img { margin: 1rem 0; }
.cook {
  background: #14110e;
  color: #f4efe6;
  padding: 1rem 1.1rem 0.3rem;
  margin: 1.3rem 0;
}
.cook h2 { color: var(--lime); }
.also { padding: 0.4rem 0 3rem; }
.also h2 { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--lime); }
.also > .wrap > p { color: var(--muted); }
.missing { padding: 3rem 0; }
.base { background: #0c0a08; color: #f4efe6; padding: 2rem 0 1rem; border-top: 4px solid var(--magenta); }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 1rem; }
.base h2 { font-size: 0.95rem; color: var(--lime); letter-spacing: 0.04em; text-transform: uppercase; }
.base ul { list-style: none; margin: 0; padding: 0; }
.base a { text-decoration: none; }
.foot-link { display: inline-block; margin: 0.2rem 0; color: #ddd4c6; }
.base .mark { color: #14110e; }
.legal { margin-top: 1.4rem; border-top: 1px solid rgba(244, 239, 230, 0.16); padding: 0.8rem 0 0.4rem; color: #b7ad9f; }
.empty { color: var(--muted); }

.contact-wrap { max-width: 720px; padding: 1.6rem 0 3rem; }
.contact-wrap h1 { color: var(--lime); font-size: clamp(2.6rem, 6vw, 4.4rem); }
.contact-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  background: #1c1814;
  border-top: 6px solid var(--lime);
  padding: 1rem;
}
.contact-form label { display: grid; gap: 0.3rem; font-weight: 750; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 2px solid var(--lime);
  background: #0d0b09;
  color: var(--ink);
  padding: 0.65rem 0.75rem;
  outline: none;
}
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form button {
  justify-self: start;
  border: 0;
  background: var(--magenta);
  color: #fff;
  font-weight: 800;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
}
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { padding: 0.7rem 0.8rem; font-weight: 700; }
.form-note.ok { background: var(--lime); color: #14110e; }
.form-note.bad { background: var(--magenta); color: #fff; }
.captcha { background: #f7f1e6; padding: 0.6rem; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .atlas-grid { grid-template-columns: repeat(2, 1fr); }
  .board-grid, .mosaic-8 { grid-template-columns: repeat(2, 1fr); }
  .mosaic-9 { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: inline-block; }
  .finder { display: none; }
  .mast-nav { display: none; }
  .mast-nav.is-open { display: block; }
  .hero-grid, .foot-grid { grid-template-columns: 1fr; }
  .atlas-grid { grid-template-columns: repeat(2, 1fr); }
  .shelf-head { flex-direction: column; align-items: flex-start; }
  .hero-shot { aspect-ratio: 4/3; }
  .board-grid, .mosaic-8 { grid-template-columns: repeat(2, 1fr); }
  .mosaic-9 { grid-template-columns: repeat(3, 1fr); }
  .reading { padding: 1rem 0.9rem 0.4rem; }
}
