:root {
  --lagoon: #0c4a4e;
  --lagoon-deep: #083538;
  --foam: #e7f6f2;
  --saffron: #ffc857;
  --persimmon: #ff5a1f;
  --ink: #1c1917;
  --muted: #5c534c;
  --paper: #fffaf3;
  --clay: #f3e2cf;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, #ffe7c2 0 18%, transparent 19%),
    linear-gradient(160deg, #fffaf3 0%, #f6efe4 42%, #efe4d4 100%);
  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 {
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.02;
  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(--saffron); color: var(--lagoon-deep); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.frame {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.shell { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  background:
    linear-gradient(180deg, var(--lagoon) 0%, var(--lagoon-deep) 100%);
  color: #f6fffc;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
}
.rail-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark {
  width: 42px;
  height: 42px;
  border-radius: 14px 14px 14px 4px;
  background: var(--saffron);
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
}
.mark span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--persimmon);
  box-shadow: 10px -6px 0 -4px #fff;
}
.word {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.menu-toggle {
  display: none;
  border: 0;
  background: var(--saffron);
  color: var(--lagoon-deep);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
}
.finder { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.finder input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  background: #f4fffc;
  color: var(--ink);
}
.finder button {
  border: 0;
  border-radius: 999px;
  background: var(--persimmon);
  color: white;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}
.menu ul { display: flex; flex-direction: column; gap: 6px; }
.nav-link {
  display: block;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 700;
}
.nav-link:hover, .nav-link.is-current { background: rgba(255, 200, 87, 0.18); color: var(--saffron); }

.stage { min-width: 0; }
.hero { padding: 28px 0 8px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  background: var(--lagoon);
  color: #f7fffc;
  border-radius: 36px 12px 48px 18px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.hero-grid::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--persimmon);
  right: -50px;
  bottom: -70px;
  opacity: 0.9;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--saffron);
  margin-bottom: 8px;
}
.hero h1 { font-size: clamp(2.4rem, 4vw, 4.2rem); max-width: 12ch; }
.lede { font-size: 1.08rem; color: var(--muted); }
.hero .lede { color: #d7efe9; max-width: 38ch; }
.hero-photo {
  position: relative;
  z-index: 1;
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.hero-photo img, .hero-photo .photo-fallback {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 180px 28px 160px 28px;
  border: 6px solid var(--saffron);
  background: var(--clay);
}
.hero-caption {
  position: absolute;
  left: 16px;
  bottom: 18px;
  background: var(--paper);
  padding: 12px 14px;
  border-radius: 18px;
  max-width: 78%;
  display: grid;
  gap: 2px;
}
.hero-caption span { color: var(--persimmon); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-caption strong { font-family: var(--display); font-size: 1.25rem; line-height: 1.1; }

.shelf, .lane, .archive, .banner { padding: 28px 0; }
.lane { background: linear-gradient(90deg, transparent, rgba(12, 74, 78, 0.06), transparent); }
.section-head { margin-bottom: 16px; max-width: 40rem; }
.section-head h2, .banner h1, .story h1 { font-size: clamp(2rem, 3vw, 3.1rem); }
.banner h1, .story h1 { color: var(--lagoon); }

.plates { display: grid; gap: 16px; }
.plates[data-count="8"] { grid-template-columns: 1fr 1fr; }
.plates[data-count="9"],
.plates[data-count="12"],
.archive .plates { grid-template-columns: repeat(3, 1fr); }
.plate {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 132px;
  text-decoration: none;
  background: var(--paper);
  border-radius: 22px;
  padding: 10px;
  box-shadow: 8px 8px 0 rgba(12, 74, 78, 0.12);
}
.plates[data-count="9"] .plate,
.plates[data-count="12"] .plate,
.archive .plates .plate {
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: 0;
}
.plate-photo { display: block; overflow: hidden; border-radius: 16px; background: var(--clay); }
.plate-photo img, .photo-fallback {
  width: 100%;
  height: 112px;
  object-fit: cover;
}
.plates[data-count="9"] .plate-photo img,
.plates[data-count="12"] .plate-photo img,
.archive .plates .plate-photo img,
.plates[data-count="9"] .photo-fallback,
.plates[data-count="12"] .photo-fallback,
.archive .plates .photo-fallback {
  height: auto;
  aspect-ratio: 1 / 1;
}
.photo-fallback {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--lagoon);
  background: var(--saffron);
}
.plate-copy { display: grid; gap: 4px; padding: 4px 6px 8px; }
.plate-kind { color: var(--persimmon); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.plate-name { font-family: var(--display); font-size: 1.25rem; line-height: 1.15; }

.story-top { padding: 32px 0 8px; }
.story-photo { width: min(920px, calc(100% - 40px)); margin: 0 auto 8px; }
.story-photo img, .story-photo .photo-fallback {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 28px 120px 28px 28px;
  border: 6px solid var(--lagoon);
  background: var(--clay);
}
.story-sheet {
  background: rgba(255, 250, 243, 0.92);
  border-radius: 28px;
  padding: 8px 0 32px;
}
.prose { max-width: 46rem; }
.prose h2 { color: var(--lagoon); margin-top: 1.4rem; }
.prose h3 { font-size: 1.35rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.2rem; }
.prose li { margin: 0.25rem 0; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose .facts { list-style: none; margin-left: 0; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.prose .facts li {
  background: var(--foam);
  border-radius: 999px;
  padding: 6px 12px;
}
.prose a { color: var(--lagoon); text-decoration-thickness: 2px; }
.prose img { border-radius: 18px; margin: 12px 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 0.92rem; }
.crumb { color: var(--lagoon); font-weight: 700; text-decoration: none; }

.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.page-link {
  text-decoration: none;
  min-width: 42px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 2px solid var(--lagoon);
  font-weight: 700;
}
.page-link.is-current { background: var(--persimmon); border-color: var(--persimmon); color: white; }

.foot { background: var(--lagoon-deep); color: #e7f6f2; margin-top: 20px; padding: 36px 0 16px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.foot h2 { color: var(--saffron); font-size: 1.05rem; }
.foot a { text-decoration: none; }
.foot li { margin: 6px 0; }
.foot .word { color: white; }
.legal { margin-top: 18px; color: #b7d4ce; font-size: 0.92rem; }
.missing { padding: 48px 0 80px; }
.text-link { color: var(--lagoon); font-weight: 700; }
.empty { padding: 12px 0 28px; }

.contact-sheet { max-width: 40rem; }
.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--lagoon);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 2px solid var(--lagoon);
  border-radius: 16px;
  background: #fff;
  padding: 12px 14px;
  font-weight: 500;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form button {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--persimmon);
  color: white;
  font-weight: 700;
  padding: 12px 22px;
  cursor: pointer;
}
.contact-form .captcha { margin-top: 4px; }
.sent {
  background: var(--foam);
  border-radius: 16px;
  padding: 12px 14px;
}
.form-error { color: var(--persimmon); font-weight: 700; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 980px) {
  .frame { grid-template-columns: 1fr; }
  .rail { position: sticky; height: auto; z-index: 5; }
  .menu-toggle { display: inline-block; }
  .menu { display: none; }
  .menu.is-open { display: block; }
  .hero-grid, .foot-grid, .plates[data-count="8"], .plates[data-count="9"], .plates[data-count="12"], .archive .plates {
    grid-template-columns: 1fr;
  }
  .plate { grid-template-columns: 108px 1fr; }
}
