:root {
  --ink: #1b1230;
  --paper: #fff7ef;
  --card: #fffdfb;
  --hot: #ff3d8a;
  --sun: #ffe14a;
  --aqua: #2ce4d4;
  --grape: #6d4bff;
  --muted: #5d536c;
  --display: "Lilita One", "Arial Black", sans-serif;
  --sans: Nunito, "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, #ff3d8a 0 10px, #ffe14a 10px 20px, #2ce4d4 20px 30px, #6d4bff 30px 40px, transparent 40px),
    var(--paper);
  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.01em;
  line-height: 0.95;
  margin: 0 0 0.65rem;
}
p { margin: 0 0 0.85rem; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--sun); color: var(--ink); }

.sr, .skip, .skip:focus, .trap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.shell { width: min(var(--wrap), calc(100% - 3.2rem)); margin: 0 auto; }
.kicker {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.15rem 0.5rem;
  background: var(--ink);
  color: var(--sun);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lede { font-size: 1.12rem; max-width: 38rem; }

.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 8px 0 rgba(255, 61, 138, 0.35);
}
.mast-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--ink);
}
.seal {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--hot);
  color: #fff;
  font-family: var(--display);
  font-size: 1.55rem;
  border: 3px solid var(--ink);
  transform: rotate(-8deg);
  box-shadow: 3px 3px 0 var(--ink);
}
.mark {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.find { display: flex; }
.find input {
  width: 14rem;
  border: 3px solid var(--ink);
  border-right: 0;
  background: var(--paper);
  padding: 0.5rem 0.75rem;
}
.find button {
  border: 3px solid var(--ink);
  background: var(--aqua);
  color: var(--ink);
  font-weight: 800;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}
.menu-btn {
  display: none;
  border: 3px solid var(--ink);
  background: var(--sun);
  font-weight: 800;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}
.menu { background: var(--paper); border-top: 3px dashed var(--ink); }
.menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.65rem 0;
}
.menu-link {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  background: var(--tone, var(--aqua));
  color: var(--on, var(--ink));
  border: 3px solid var(--ink);
  padding: 0.28rem 0.65rem;
  box-shadow: 3px 3px 0 var(--ink);
}
.menu-link.is-current { background: var(--ink); color: var(--sun); }

.marquee { padding: 1.6rem 0 0.4rem; }
.marquee-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.2rem;
  align-items: stretch;
}
.marquee-copy {
  background: var(--sun);
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--hot);
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.marquee h1 { font-size: clamp(2.5rem, 4.6vw, 4.3rem); max-width: 12ch; }
.marquee-lead {
  background: var(--tone, var(--aqua));
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  min-height: 22rem;
}
.marquee-lead a {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 22rem;
  text-decoration: none;
  color: var(--on, var(--ink));
}
.lead-photo { flex: 1; min-height: 14rem; overflow: hidden; border-bottom: 4px solid var(--ink); background: #fff; }
.lead-photo img,
.lead-photo .photo-fallback { width: 100%; height: 100%; min-height: 14rem; object-fit: cover; }
.lead-caption { padding: 0.9rem 1rem 1rem; }
.lead-caption h2 { font-size: clamp(1.5rem, 2vw, 2rem); margin: 0; }

.swatch-wrap { padding: 1.3rem 0 0.2rem; }
.swatches {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0.45rem;
}
.swatch {
  background: var(--tone, var(--aqua));
  color: var(--on, var(--ink));
  border: 3px solid var(--ink);
  transform: rotate(var(--tilt, 0deg));
}
.swatch:nth-child(odd) { --tilt: -1.5deg; }
.swatch:nth-child(even) { --tilt: 1.5deg; }
.swatch a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 6.4rem;
  padding: 0.65rem 0.55rem;
  text-decoration: none;
  height: 100%;
}
.swatch-name { font-family: var(--display); font-size: 1.15rem; line-height: 0.95; }
.swatch-count { font-size: 0.78rem; font-weight: 800; }

.shelf { padding: 1.8rem 0 0.3rem; }
.shelf-head { margin-bottom: 1rem; max-width: 40rem; }
.shelf-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.shelf-head a { font-weight: 800; text-decoration: underline; text-underline-offset: 0.15em; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.badge {
  flex: 1 1 22%;
  min-width: 12rem;
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--tone, var(--hot));
}
.badge a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.badge-photo {
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, #fff 0 18%, transparent 19%),
    var(--tone, var(--sun));
  border-bottom: 3px solid var(--ink);
}
.badge-photo img,
.badge-photo .photo-fallback { width: 100%; height: 100%; object-fit: cover; }
.badge-copy { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.75rem 0.8rem 0.9rem; }
.badge-title { font-family: var(--display); font-size: 1.22rem; line-height: 1.05; }
.badge-note { color: var(--muted); font-size: 0.94rem; }
.photo-fallback {
  display: block;
  min-height: 8rem;
  background:
    repeating-linear-gradient(135deg, transparent, transparent 8px, rgba(27, 18, 48, 0.12) 8px, rgba(27, 18, 48, 0.12) 10px),
    var(--tone, var(--sun));
}

.lane-band {
  margin-top: 1.6rem;
  background: var(--tone, var(--sun));
  color: var(--on, var(--ink));
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}
.lane-band .shelf { padding-top: 1.4rem; padding-bottom: 1.5rem; }
.lane-band .badge { background: #fff; color: var(--ink); }
.lane-band .kicker { background: var(--ink); color: var(--sun); }

.library {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.2rem;
  margin: 1.6rem auto 2rem;
  padding: 1.2rem;
  background: var(--grape);
  color: #fff;
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.library .kicker { background: var(--sun); color: var(--ink); }
.solid {
  display: inline-block;
  background: var(--sun);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  padding: 0.75rem 1rem;
  border: 3px solid var(--ink);
  white-space: nowrap;
}

.story { padding-bottom: 0.5rem; }
.story-band { padding: 1.5rem 0 0; }
.story-top { max-width: 46rem; }
.plain-top { padding-top: 1.6rem; }
.story-top h1 { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 16ch; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.4rem;
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
  font-weight: 800;
}
.crumbs a { text-decoration: underline; text-underline-offset: 0.12em; }
.story-figure {
  width: min(860px, calc(100% - 3.2rem));
  margin: 1.1rem auto 0;
  border: 4px solid var(--ink);
  background: var(--tone, var(--sun));
  box-shadow: 14px 14px 0 var(--hot);
  transform: rotate(-0.4deg);
}
.story-figure img,
.story-figure .photo-fallback { width: 100%; max-height: 32rem; object-fit: cover; }
.prose-wrap { padding: 1.6rem 0 0.4rem; }
.prose { max-width: 44rem; font-size: 1.08rem; }
.prose h2 {
  font-size: 1.9rem;
  margin: 1.8rem 0 0.55rem;
  padding: 0.15rem 0.4rem;
  background: var(--sun);
  display: inline-block;
  border: 3px solid var(--ink);
}
.prose h3 { font-size: 1.35rem; margin: 1.3rem 0 0.4rem; }
.prose h4 { font-size: 1.12rem; margin: 1rem 0 0.35rem; }
.prose a { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.prose figure { margin: 1.2rem 0; }
.prose img { width: 100%; border: 3px solid var(--ink); }
.prose ul, .prose ol { margin: 0 0 1rem 1.15rem; }
.prose li { margin: 0.3rem 0; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose blockquote {
  margin: 1.1rem 0;
  padding: 0.7rem 0.9rem;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--aqua);
  font-size: 1.15rem;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.2rem; }
.prose th, .prose td { border: 3px solid var(--ink); padding: 0.4rem 0.55rem; text-align: left; vertical-align: top; }
.prose th { background: var(--sun); }
.topic-row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 1.4rem; }
.topic-row span { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }
.topic-row a {
  text-decoration: none;
  border: 3px solid var(--ink);
  padding: 0.15rem 0.5rem;
  background: var(--aqua);
  font-weight: 800;
}

.more-band {
  margin-top: 2rem;
  padding: 0.2rem 0 2rem;
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 12px, rgba(255, 61, 138, 0.08) 12px, rgba(255, 61, 138, 0.08) 24px);
  border-top: 4px solid var(--ink);
}

.lane-top { padding: 1.6rem 0 0.2rem; }
.lane-top h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.count-line { font-weight: 800; }
.pager { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.2rem 0 2rem; }
.page-link {
  display: inline-flex;
  min-width: 2.6rem;
  justify-content: center;
  align-items: center;
  padding: 0.4rem 0.65rem;
  border: 3px solid var(--ink);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
}
.page-link.is-current { background: var(--hot); color: #fff; }

.search-page { padding: 1.6rem 0 2rem; }
.search-page h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.find-line { margin: 0.3rem 0 1rem; max-width: 36rem; }
.find-line input { flex: 1; width: auto; }
.missing { padding: 2.4rem 0 3rem; }
.missing h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

.foot {
  background: var(--ink);
  color: #fff7ef;
  padding: 1.8rem 0 1rem;
  margin-top: 1.5rem;
  border-top: 8px solid var(--hot);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 1.2rem 1rem;
}
.foot .brand { color: #fff; }
.foot .mark { font-size: 1.8rem; }
.foot h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 0.5rem;
}
.foot-link {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  background: var(--tone, var(--sun));
  color: var(--on, var(--ink));
  border: 2px solid #fff;
  padding: 0.12rem 0.45rem;
  margin: 0.15rem 0;
}
.foot li { margin: 0.2rem 0; }
.contact-board { padding: 1.6rem 0 2.4rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.2rem;
  align-items: start;
}
.contact-copy {
  background: var(--sun);
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--hot);
  padding: 1.3rem 1.2rem 1.1rem;
}
.contact-copy h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.letter {
  display: grid;
  gap: 0.75rem;
  background: #fff;
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--aqua);
  padding: 1rem;
}
.letter label { display: grid; gap: 0.28rem; font-weight: 800; }
.letter input, .letter textarea {
  width: 100%;
  border: 3px solid var(--ink);
  background: var(--paper);
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--ink);
}
.letter button {
  justify-self: start;
  border: 3px solid var(--ink);
  background: var(--hot);
  color: #fff;
  font-weight: 800;
  padding: 0.7rem 1rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}
.captcha { min-height: 78px; }
.notice, .errors {
  background: #fff;
  border: 3px solid var(--ink);
  padding: 0.7rem 0.9rem;
  margin: 0 0 0.8rem;
}
.errors { background: #ffe4ef; }
.errors li { margin: 0.2rem 0; }

.foot-legal {
  margin-top: 1.3rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 247, 239, 0.25);
  color: #f3d7e6;
  font-size: 0.92rem;
}

@media (max-width: 1100px) {
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swatch { transform: none; }
}
@media (max-width: 900px) {
  .marquee-grid, .contact-grid { grid-template-columns: 1fr; }
  .badge { flex-basis: 46%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .library { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  body { background: var(--paper); }
  .shell { width: min(var(--wrap), calc(100% - 1.4rem)); }
  .mast-row { flex-wrap: wrap; }
  .brand { order: 1; flex: 1; }
  .menu-btn { display: inline-flex; order: 2; }
  .find { order: 3; flex: 1 1 100%; }
  .find input { width: 1px; flex: 1; min-width: 0; }
  .menu { display: none; }
  body.nav-open .menu { display: block; }
  .mark { font-size: 1.45rem; }
  .badge { flex-basis: 100%; min-width: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .story-figure,
  .marquee-lead { box-shadow: 6px 6px 0 var(--ink); }
}
