:root {
  --ink: #1c1915;
  --ink-soft: #3a332b;
  --plaster: #f4efe4;
  --paper: #fffaf3;
  --marigold: #f2b705;
  --persimmon: #e24e1b;
  --lagoon: #0e7c86;
  --vine: #2f6b4f;
  --grape: #5c3d6e;
  --blush: #ffd7c8;
  --line: #1c1915;
  --shadow: 8px 8px 0 var(--ink);
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Outfit", "Avenir Next", "Trebuchet MS", sans-serif;
  --wrap: 1180px;
  --spine: 46px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-left: var(--spine);
  background:
    radial-gradient(circle at 12% -10%, rgba(242, 183, 5, 0.35), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(14, 124, 134, 0.18), transparent 28%),
    var(--plaster);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.02; }
p { margin: 0 0 0.9rem; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

.sr, .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.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,
.skip:focus-visible {
  left: calc(var(--spine) + 12px);
  top: 8px;
  z-index: 80;
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  overflow: visible;
  clip: auto;
  background: var(--ink);
  color: var(--paper);
}

.spine {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--spine);
  background: var(--ink);
  color: var(--marigold);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 40;
}

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 239, 228, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}
.mast-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 84px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark {
  width: 34px;
  height: 34px;
  background:
    linear-gradient(var(--paper), var(--paper)) 6px 5px / 12px 16px no-repeat,
    linear-gradient(var(--marigold), var(--marigold)) 20px 12px / 10px 12px no-repeat,
    var(--persimmon);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.brand-copy { display: flex; flex-direction: column; line-height: 0.9; }
.brand-copy strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.brand-copy em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--persimmon);
}
.seek { display: flex; margin-left: auto; border: 2px solid var(--ink); background: var(--paper); }
.seek input {
  border: 0;
  background: transparent;
  padding: 10px 12px;
  width: min(280px, 34vw);
  outline: none;
}
.seek button {
  border: 0;
  border-left: 2px solid var(--ink);
  background: var(--marigold);
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}
.menu-toggle {
  display: none;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
.nav-board { border-top: 2px solid var(--ink); }
.nav-board ul { display: flex; flex-wrap: wrap; gap: 0; }
.nav-link {
  display: inline-block;
  padding: 12px 14px;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
}
.nav-link.is-current { background: var(--ink); color: var(--marigold); }
.nav-link:hover { background: var(--persimmon); color: var(--paper); }

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: stretch;
  padding: 34px 0 10px;
}
.stage-copy {
  background: var(--persimmon);
  color: var(--paper);
  padding: clamp(22px, 4vw, 42px);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
}
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
}
.stage-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  font-style: italic;
  max-width: 11ch;
}
.stage-lede { font-size: 1.08rem; max-width: 38ch; }
.seek-block { margin: 8px 0 0; width: min(100%, 460px); }
.seek-block input { width: 100%; background: var(--paper); color: var(--ink); }
.stage-feature { min-height: 420px; }
.stage-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--lagoon);
}
.stage-photo { display: block; flex: 1; min-height: 280px; overflow: hidden; background: var(--lagoon); }
.stage-photo img, .stage-photo .photo-fallback { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.stage-caption {
  display: block;
  padding: 16px 18px 18px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.05;
}
.stage-caption span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--marigold);
}

.pigment-wrap { padding: 42px 0 10px; }
.pigment-wrap h2, .section-head h2, .faq-board h2, .kin h2 {
  margin: 0 0 8px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}
.pigments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.pigment-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 148px;
  padding: 14px;
  text-decoration: none;
  border: 3px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 0.95;
  box-shadow: 5px 5px 0 var(--ink);
}
.pigment-num { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; font-weight: 700; }
.pigments li:nth-child(8n + 1) .pigment-link { background: var(--marigold); }
.pigments li:nth-child(8n + 2) .pigment-link { background: var(--lagoon); color: var(--paper); }
.pigments li:nth-child(8n + 3) .pigment-link { background: var(--vine); color: var(--paper); }
.pigments li:nth-child(8n + 4) .pigment-link { background: var(--blush); }
.pigments li:nth-child(8n + 5) .pigment-link { background: var(--grape); color: var(--paper); }
.pigments li:nth-child(8n + 6) .pigment-link { background: var(--ink); color: var(--marigold); }
.pigments li:nth-child(8n + 7) .pigment-link { background: var(--persimmon); color: var(--paper); }
.pigments li:nth-child(8n) .pigment-link { background: var(--paper); }
.pigment-link:hover { transform: translate(-3px, -3px); }

.stack { padding: 34px 0; }
.section-head { max-width: 680px; margin-bottom: 16px; }
.section-head p:last-child { margin-bottom: 0; }
.lane { border-top: 3px solid var(--ink); }

.deck, .deck-archive, .deck-nine, .deck-eight {
  display: grid;
  gap: 22px 16px;
}
.deck, .deck-nine { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.deck-eight { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.deck-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: var(--paper);
  border: 3px solid var(--ink);
  min-height: 100%;
}
.deck li:nth-child(3n + 1) .deck-link { box-shadow: 7px 7px 0 var(--marigold); }
.deck li:nth-child(3n + 2) .deck-link { box-shadow: 7px 7px 0 var(--lagoon); }
.deck li:nth-child(3n) .deck-link { box-shadow: 7px 7px 0 var(--persimmon); }
.deck-link:hover { transform: translate(-3px, -3px); }
.deck-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--blush); border-bottom: 3px solid var(--ink); }
.deck-photo img, .deck-photo .photo-fallback { width: 100%; height: 100%; object-fit: cover; }
.photo-fallback {
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 3rem;
  background: var(--lagoon);
  color: var(--paper);
}
.deck-copy { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 16px; }
.deck-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--persimmon);
}
.deck-title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.08; }

.band { padding: 42px 0 36px; border-bottom: 3px solid var(--ink); }
.band h1 { margin: 8px 0 12px; font-size: clamp(2.6rem, 6vw, 5rem); max-width: 16ch; }
.lede { max-width: 62ch; font-size: 1.12rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.92rem; }
.crumb { text-decoration: none; font-weight: 700; }
.band-persimmon { background: var(--persimmon); color: var(--paper); }
.band-lagoon { background: var(--lagoon); color: var(--paper); }
.band-vine { background: var(--vine); color: var(--paper); }
.band-grape { background: var(--grape); color: var(--paper); }
.band-marigold { background: var(--marigold); color: var(--ink); }
.band-ink { background: var(--ink); color: var(--paper); }
.story-band .kicker { margin: 12px 0 0; }
.kicker-link { color: inherit; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; }

.prose { padding: 28px 0 10px; max-width: 760px; }
.prose > p:first-of-type {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.35;
}
.prose h2 { margin: 1.6rem 0 0.6rem; font-size: 2.1rem; }
.prose h3 { margin: 1.3rem 0 0.4rem; font-size: 1.5rem; }
.prose h4 { margin: 1rem 0 0.4rem; font-size: 1.2rem; }
.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; }
.prose a { color: var(--lagoon); text-underline-offset: 3px; }
.band-lagoon .crumb, .band-persimmon .crumb, .band-vine .crumb, .band-grape .crumb, .band-ink .crumb { color: inherit; }
.prose blockquote {
  margin: 1.2rem 0;
  padding: 12px 16px;
  background: var(--blush);
  border-left: 8px solid var(--persimmon);
}
.prose figure { margin: 1.2rem 0; }
.prose img { width: 100%; border: 3px solid var(--ink); box-shadow: 7px 7px 0 var(--marigold); background: var(--paper); }
.prose figcaption { margin-top: 8px; font-size: 0.92rem; color: var(--ink-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; background: var(--paper); }
.prose th, .prose td { border: 2px solid var(--ink); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--marigold); }

.kin { margin-top: 20px; padding: 28px 0 48px; background: var(--ink); color: var(--paper); }
.kin h2 { color: var(--marigold); }
.kin .deck-link { background: var(--paper); color: var(--ink); }
.kin .deck-kicker { color: var(--lagoon); }

.faq-board { padding: 10px 0 48px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.faq-grid article {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--vine);
  padding: 16px;
}
.faq-grid h3 { margin: 0 0 8px; font-size: 1.45rem; }

.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.page-link {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-weight: 700;
}
.page-link.is-current { background: var(--ink); color: var(--marigold); }

.empty-note, .missing p { font-size: 1.15rem; }
.missing { padding: 48px 0 70px; }
.missing h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); max-width: 12ch; }
.go { margin-top: 16px; }
.text-link { font-weight: 700; color: var(--lagoon); }

.letter-desk {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: start;
  padding: 28px 0 56px;
}
.letter-aside {
  background: var(--marigold);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 22px;
}
.letter-aside h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.letter-panel {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--persimmon);
  padding: 22px;
}
.letter { display: grid; gap: 12px; }
.letter label { display: grid; gap: 6px; font-weight: 700; }
.letter input, .letter textarea {
  border: 2px solid var(--ink);
  background: var(--plaster);
  padding: 10px 12px;
  font-weight: 400;
}
.captcha { min-height: 78px; }
.letter button, .note-body .empty-note {
  justify-self: start;
}
.letter button {
  border: 2px solid var(--ink);
  background: var(--persimmon);
  color: var(--paper);
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}
.form-errors { margin: 0 0 12px 1rem; }
.form-errors li { list-style: disc; color: var(--persimmon); font-weight: 700; }
.note-body { padding-bottom: 48px; }

.base { background: var(--ink); color: var(--paper); margin-top: 20px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 36px 0 20px;
}
.foot-brand p { color: #f4efe4; max-width: 36ch; }
.base h2 { margin: 0 0 10px; font-size: 1.35rem; color: var(--marigold); }
.foot-link { display: inline-block; padding: 4px 0; text-decoration: none; }
.foot-link:hover { color: var(--marigold); }
.base .brand-copy em { color: var(--marigold); }
.legal { border-top: 2px solid rgba(255, 250, 243, 0.25); padding: 14px 0 22px; }
.legal p { margin: 0; color: #f4efe4; }

::selection { background: var(--marigold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; }

@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr; }
  .stage-copy, .stage-feature { min-height: 0; }
  .pigments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deck-archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deck-eight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid, .foot-grid, .letter-desk { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .nav-board { display: none; }
  .nav-board.is-open { display: block; }
  .nav-board ul { flex-direction: column; }
  .seek { display: none; }
  .seek-block { display: flex; }
}
@media (max-width: 640px) {
  :root { --spine: 0px; }
  .spine { display: none; }
  body { padding-left: 0; }
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .deck, .deck-archive, .deck-nine, .deck-eight, .pigments, .faq-grid, .foot-grid, .letter-desk { grid-template-columns: 1fr; }
  .stage-copy h1 { max-width: none; }
  .mast-row { min-height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pigment-link:hover, .deck-link:hover { transform: none; }
}
