:root {
  --ink: #10211e;
  --night: #071614;
  --paper: #e7f2ef;
  --sheet: #fbfffd;
  --copper: #e4572e;
  --copper-deep: #b83a18;
  --teal: #0b6e6a;
  --teal-deep: #084e4b;
  --gold: #f2c14e;
  --line: rgba(16, 33, 30, 0.14);
  --muted: #3e5652;
  --shadow: 0 18px 40px rgba(7, 22, 20, 0.16);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --cond: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --text: "Source Serif 4", Georgia, serif;
  --shell: min(1180px, calc(100% - 2rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% -10%, rgba(242, 193, 78, 0.45), transparent 28%),
    radial-gradient(circle at 100% 0, rgba(11, 110, 106, 0.18), transparent 32%),
    var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.05; font-weight: 560; letter-spacing: -0.03em; }
p { margin: 0 0 0.8rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.shell { width: var(--shell); 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;
}
.skip:focus {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  top: auto;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  z-index: 20;
  background: var(--gold);
  color: var(--night);
  padding: 0.55rem 0.85rem;
}

.mast {
  background: var(--night);
  color: #f6f3ea;
  position: sticky;
  top: 0;
  z-index: 8;
}
.mast-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
}
.brand svg { width: 48px; height: 48px; flex: none; }
.brand strong {
  display: block;
  font-family: var(--cond);
  font-size: 1.28rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 0.95;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-family: var(--cond);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.78rem;
}
.finder { display: flex; min-width: min(320px, 34vw); }
.finder input {
  width: 100%;
  min-width: 220px;
  border: 0;
  background: #12302c;
  color: #f6f3ea;
  padding: 0.7rem 0.9rem;
  border-radius: 999px 0 0 999px;
}
.finder button {
  border: 0;
  background: var(--copper);
  color: #1a0c06;
  font-family: var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 1rem;
  border-radius: 0 999px 999px 0;
  cursor: pointer;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
}
.rail ul {
  display: flex;
  gap: 0.2rem 1.15rem;
  flex-wrap: wrap;
  padding: 0 0 0.85rem;
}
.rail-link {
  color: #f6f3ea;
  text-decoration: none;
  font-family: var(--cond);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  padding-bottom: 0.15rem;
}
.rail-link.is-current, .rail-link:hover { border-bottom-color: var(--copper); color: var(--gold); }
.ruler {
  height: 14px;
  background:
    repeating-linear-gradient(90deg, var(--teal) 0 2px, transparent 2px 22px),
    var(--gold);
}

.splash { padding: 1.6rem 0 0.4rem; }
.splash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 1rem 1.2rem;
  align-items: stretch;
}
.splash-main { min-width: 0; display: flex; flex-direction: column; }
.splash-copy { padding-top: 0.2rem; }
.billboard { margin-top: 0.4rem; }
.wire-slot { position: relative; min-height: 100%; }
.eyebrow, .lane-kicker, .kicker {
  font-family: var(--cond);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-deep);
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}
.splash-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  margin: 0 0 0.6rem;
  max-width: 12ch;
}
.dek, .lede, .section-note { color: var(--muted); font-size: 1.12rem; max-width: 42rem; }

.billboard > a, .tile > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: var(--sheet);
  box-shadow: var(--shadow);
}
.shot {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--teal) 0 40%, var(--copper) 40% 70%, var(--gold) 70%);
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
}
.shot img, .photo-fallback { width: 100%; height: 100%; object-fit: cover; }
.photo-fallback {
  display: grid;
  place-items: center;
  font-family: var(--cond);
  font-size: 4rem;
  color: var(--night);
  letter-spacing: 0;
}
.billboard .shot { clip-path: none; aspect-ratio: 16 / 9; }
.copy { display: block; padding: 0.85rem 1rem 1.05rem; }
.name {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.billboard .name { font-size: clamp(1.7rem, 2.4vw, 2.3rem); }
.billboard > a { position: relative; }
.billboard .copy {
  margin: -3.2rem 8% 0 0;
  background: var(--copper);
  color: #1a0c06;
  position: relative;
}
.billboard .kicker { color: #1a0c06; }

.wire {
  position: absolute;
  inset: 0;
  background: var(--night);
  color: #f6f3ea;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.wire li {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
}
.wire li + li { border-top: 1px solid rgba(242, 193, 78, 0.28); }
.wire a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  padding: 0.35rem 0.9rem;
  color: inherit;
  text-decoration: none;
  align-items: center;
  width: 100%;
  min-height: 0;
}
.wire-no {
  font-family: var(--cond);
  font-size: 1.7rem;
  color: var(--gold);
  line-height: 1;
}
.wire .kicker { color: #8ee0d8; margin: 0; font-size: 0.82rem; }
.wire .name {
  font-size: 1rem;
  color: #f6f3ea;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wire a:hover .name { color: var(--gold); }

.lane { padding: 1.6rem 0 1.8rem; }
.lane-copper { background: var(--copper); color: #1a0c06; }
.lane-teal { background: var(--teal); color: #f3fffd; }
.lane-ink { background: var(--night); color: #f6f3ea; }
.lane-gold { background: var(--gold); color: #1a0c06; }
.lane-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}
.lane-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); max-width: 16ch; }
.lane-head p:last-child { max-width: 28rem; margin: 0; }
.lane-copper .lane-kicker, .lane-gold .lane-kicker { color: #1a0c06; }
.lane-teal .lane-kicker, .lane-ink .lane-kicker { color: var(--gold); }
.quad, .shelf, .kin {
  display: grid;
  gap: 0.9rem;
}
.quad, .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kin.n8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kin.n9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { min-width: 0; }
.lane .tile > a { background: var(--sheet); color: var(--ink); }
.lane .kicker { color: var(--teal-deep); }

.library, .archive, .also, .faq { padding: 1.8rem 0 2.2rem; }
.shelf-head h2, .also h2, .faq h2, .banner h1, .story-top h1, .missing h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 0 0 0.4rem;
}
.banner { padding: 1.5rem 0 0.2rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 0.6rem; font-family: var(--cond); letter-spacing: 0.08em; text-transform: uppercase; }
.crumb, .crumb-here { color: var(--teal-deep); text-decoration: none; }
.story-top { padding: 1.4rem 0 0.6rem; }
.story-top h1 { max-width: 18ch; }
.hero-shot { width: min(1100px, calc(100% - 2rem)); margin: 0 auto 1rem; }
.hero-shot .frame {
  display: block;
  background: linear-gradient(135deg, var(--teal) 0 42%, var(--copper) 42% 72%, var(--gold) 72%);
  min-height: 220px;
}
.hero-shot img, .hero-shot .photo-fallback {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  aspect-ratio: 16 / 8;
}
.hero-shot .photo-fallback {
  display: grid;
  place-items: center;
  color: var(--night);
  font-size: 6rem;
}
.sheet-wrap { display: grid; justify-content: center; }
.sheet {
  width: min(740px, 100%);
  background: var(--sheet);
  border-left: 10px solid var(--teal);
  padding: 1.4rem 1.4rem 1.8rem 1.5rem;
  box-shadow: var(--shadow);
}
.prose h2, .prose h3 { margin: 1.4rem 0 0.5rem; }
.prose a { color: var(--teal-deep); }
.prose figure { margin: 1.1rem 0; }
.prose figcaption { color: var(--muted); font-size: 0.95rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.2rem; }
.prose li { margin: 0.25rem 0; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.faq h3 { margin: 1rem 0 0.3rem; font-size: 1.4rem; }
.pager { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.2rem; }
.page-link {
  display: inline-grid;
  place-items: center;
  min-width: 2.6rem;
  min-height: 2.6rem;
  padding: 0 0.7rem;
  text-decoration: none;
  background: var(--night);
  color: var(--gold);
  font-family: var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-link.is-current { background: var(--copper); color: #1a0c06; }
.missing { padding: 3rem 0 4rem; }
.go { margin-top: 1rem; }
.text-link { color: var(--teal-deep); }

.base {
  background: var(--night);
  color: #f6f3ea;
  padding: 2rem 0 1rem;
  margin-top: 1rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 1.2rem;
}
.foot-brand p { color: #c9ddd9; max-width: 28rem; }
.base h2 {
  font-family: var(--cond);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
}
.foot-link { color: #f6f3ea; text-decoration: none; }
.foot-link:hover { color: var(--gold); }
.base li { margin: 0.28rem 0; }
.legal { margin-top: 1.4rem; border-top: 1px solid rgba(242, 193, 78, 0.3); padding: 0.8rem 0 0.2rem; color: #c9ddd9; }
.finder-large { max-width: 36rem; margin-top: 0.8rem; }
.finder-large input { background: #fff; color: var(--ink); border: 2px solid var(--night); }
.contact-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.4rem;
}
.contact-form label {
  display: grid;
  gap: 0.3rem;
  font-family: var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 2px solid var(--night);
  background: #fff;
  color: var(--ink);
  padding: 0.7rem 0.8rem;
  font-family: var(--text);
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
}
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form button {
  justify-self: start;
  border: 0;
  background: var(--copper);
  color: #1a0c06;
  font-family: var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.3rem;
  cursor: pointer;
}
.form-errors {
  background: #ffe8df;
  border-left: 8px solid var(--copper);
  padding: 0.7rem 0.9rem;
  margin: 0 0 1rem;
}
.form-sent {
  background: #e5f6f2;
  border-left: 8px solid var(--teal);
  padding: 0.7rem 0.9rem;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.captcha { margin: 0.2rem 0; }

@media (max-width: 1100px) {
  .quad, .shelf, .kin.n8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kin.n9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .rail { display: none; padding-bottom: 0.8rem; }
  .rail.is-open { display: block; }
  .finder { display: none; }
  .splash-grid { grid-template-columns: 1fr; }
  .wire-slot { position: static; }
  .wire { position: static; overflow: visible; display: block; }
  .wire li { display: block; }
  .lane-head { flex-direction: column; align-items: start; }
}
@media (max-width: 720px) {
  .quad, .shelf, .kin.n8, .kin.n9 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .billboard .copy { margin-right: 0; }
  .splash-copy h1 { max-width: none; }
}
