:root {
  --ink: #090b0a;
  --ink-2: #121614;
  --felt: #14110f;
  --paper: #f3efe4;
  --paper-2: #e7e1d2;
  --mint: #97fce4;
  --moss: #143f36;
  --moss-2: #0c2a24;
  --mute: #8d928c;
  --faint: rgba(243, 239, 228, 0.62);
  --line: rgba(243, 239, 228, 0.16);
  --line-strong: rgba(243, 239, 228, 0.42);
  --ink-line: rgba(9, 11, 10, 0.16);
  --gold: #e2b15a;
  --pink: #ff9eb5;
  --stamp: #9a3450;
  --display: "Bricolage Grotesque", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --sans: "Hanken Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --hand: "Shantell Sans", "Segoe Print", cursive;
  --pad: clamp(1.1rem, 3.4vw, 3.6rem);
  --mast: 4.6rem;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body[data-tone="paper"] {
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}

body[data-tone="felt"] {
  background: var(--felt);
  color: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

::selection { background: var(--mint); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

body[data-tone="paper"] :focus-visible { outline-color: var(--moss); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--mint);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  z-index: 500;
}
.skip:focus { top: 0.6rem; }

/* grain + crop marks */

.grain {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 280;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.85'/></svg>");
  background-size: 180px 180px;
  animation: grain 0.9s steps(2) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1%, 1%); }
  50% { transform: translate(1%, -1%); }
  100% { transform: translate(0, 1%); }
}

.marks { pointer-events: none; }
.marks i {
  position: fixed;
  width: 12px;
  height: 12px;
  z-index: 290;
  border-color: rgba(243, 239, 228, 0.55);
  border-style: solid;
  border-width: 0;
}
body[data-tone="paper"] .marks i { border-color: rgba(9, 11, 10, 0.45); }
.marks .tl { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.marks .tr { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.marks .bl { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.marks .br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }

/* mast */

.mast {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem var(--pad) 0.85rem;
  pointer-events: none;
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
}
.mast.is-away {
  transform: translateY(-110%);
}
.mast.is-bar {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
body[data-tone="paper"] .mast.is-bar {
  background: var(--paper);
  border-bottom-color: var(--ink-line);
}
body[data-tone="felt"] .mast.is-bar {
  background: var(--felt);
  border-bottom-color: var(--line);
}

.mast a,
.mast button { pointer-events: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}
.brand img { width: 28px; height: 28px; }
.brand span {
  display: grid;
  font-family: var(--display);
  font-weight: 680;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  font-size: 1.02rem;
  line-height: 0.82;
}
.brand em {
  font-style: normal;
  font-weight: 520;
  letter-spacing: 0.24em;
  font-size: 0.58rem;
  padding-top: 0.18rem;
}

.mast-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 1.15rem;
  padding-top: 0.35rem;
}
.mast-nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 560;
  position: relative;
}
.mast-nav a::after,
.enter-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.mast-nav a:hover::after,
.enter-link:hover::after,
.mast-nav a[aria-current="page"]::after { transform: scaleX(1); }

.mast-tools {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 0.15rem;
}

.enter-link,
.sound-btn,
.index-open {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}
.sound-btn[aria-pressed="true"] { color: var(--mint); }
body[data-tone="paper"] .sound-btn[aria-pressed="true"] { color: var(--moss); }

.index-open { display: none; }

/* index overlay */

.index-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--paper);
  color: var(--ink);
  padding: 5.5rem var(--pad) 2rem;
  display: none;
  overflow: auto;
}
.index-menu.open { display: block; }
.index-menu ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.index-menu a {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  text-decoration: none;
  border-top: 1px solid var(--ink-line);
  padding: 0.7rem 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.86;
}
.index-menu a span {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 560;
}
.index-menu .close-index {
  margin-top: 1.5rem;
  background: none;
  border: 0;
  border-radius: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0;
}

/* wipe + intro */

.wipe {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--paper);
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}
.wipe.on {
  animation: wipe 0.72s cubic-bezier(0.77, 0, 0.18, 1) both;
}
@keyframes wipe {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.18, 1);
}
.intro.leave { transform: translateY(-105%); }
.intro strong {
  display: block;
  font-family: var(--display);
  font-weight: 640;
  font-size: clamp(4rem, 12vw, 9rem);
  letter-spacing: -0.06em;
  line-height: 0.78;
  text-transform: uppercase;
}
.intro em {
  display: block;
  margin-top: 0.8rem;
  font-style: normal;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.intro img {
  width: min(180px, 36vw);
  margin: 0 auto 0.4rem;
}

#stage { min-height: 100svh; }

.hand {
  font-family: var(--hand);
  font-weight: 500;
  font-size: 1.18rem;
  line-height: 1.35;
}

.swatch {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.4rem;
  vertical-align: 0.08rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
}

.act {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-family: var(--display);
  font-weight: 620;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);
  line-height: 1;
}
.act .rule {
  display: inline-block;
  width: 2.4rem;
  height: 1px;
  background: var(--mint);
  transform: translateY(0.06em);
  transition: width 0.35s ease;
}
body[data-tone="paper"] .act .rule { background: var(--moss); }
.act:hover .rule { width: 4.6rem; }

/* hero */

.hero {
  position: relative;
  min-height: 100svh;
  padding: 6.2rem var(--pad) 2.4rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  margin: 0 0 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--faint);
  position: relative;
  z-index: 4;
}

.hero-title {
  position: relative;
  z-index: 3;
  margin: 0;
  max-width: 14ch;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 640;
  font-size: clamp(4.6rem, 11.6vw, 11rem);
  line-height: 0.76;
  letter-spacing: -0.058em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}
.hero-title span { display: block; }
.hero-title em {
  font-style: normal;
  color: var(--mint);
  letter-spacing: 0.045em;
}

.spine {
  position: absolute;
  left: 0.55rem;
  top: 46%;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 0.64rem;
  color: var(--faint);
  margin: 0;
}

.cast {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.cast .float {
  position: absolute;
  pointer-events: auto;
}
.cast img {
  width: 100%;
  height: auto;
  animation: bob 6.4s ease-in-out infinite;
  transform-origin: 50% 80%;
}
.cat-main { width: min(28vw, 380px); right: -1vw; bottom: -5vh; z-index: 2; }
.cat-gm { width: min(13vw, 168px); right: 2.5vw; top: auto; bottom: 38vh; z-index: 4; }
.cat-sam { width: min(12.5vw, 156px); right: 17vw; top: auto; bottom: 22vh; z-index: 4; }
.cat-main img { animation-delay: -1.2s; }
.cat-gm img { animation-delay: -2.4s; animation-duration: 7.2s; }
.cat-sam img { animation-delay: -3s; }

.nudge {
  position: absolute;
  z-index: 6;
  right: 22vw;
  top: auto;
  bottom: 30vh;
  margin: 0;
  pointer-events: none;
  color: var(--paper);
  font-family: var(--hand);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.7vw, 1.7rem);
  line-height: 1;
  transform: rotate(-8deg);
}
.nudge svg {
  display: block;
  width: 9.2rem;
  height: auto;
  margin: 0.15rem 0 0 1.4rem;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(calc(var(--rot, 0deg) + 1.4deg)); }
}

.hero-copy {
  position: relative;
  z-index: 5;
  margin-top: auto;
  padding-top: 1.6rem;
  max-width: 28rem;
}
.lede {
  margin: 0 0 1.3rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.95rem;
}
.act-lead {
  color: var(--mint);
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
}
.act-lead .rule {
  width: 3.6rem;
  height: 2px;
  transform: translateY(0.11em);
}
.act-lead:hover .rule { width: 5.6rem; }

/* home sections */

.band {
  padding: 4.5rem var(--pad);
  position: relative;
}

.pop {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem 4vw;
  align-items: center;
  border-top: 1px solid var(--line);
}
.pop h2,
.excerpt h2,
.quest-tease h2,
.city-tease h2,
.now-reading h2,
.archive-head h1,
.quests h1,
.atlas h1,
.census h1,
.volumes h1,
.tray h1,
.doorway h1,
.dossier h1 {
  font-family: var(--display);
  font-weight: 640;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  line-height: 0.8;
  font-size: clamp(3.2rem, 7.4vw, 7.4rem);
  margin: 0 0 1rem;
}
.pop p { max-width: 28rem; font-size: 1.15rem; }
.pop-cluster {
  position: relative;
  min-height: 68vh;
}
.pop-cluster a {
  position: absolute;
  display: block;
}
.pop-cluster img {
  width: 100%;
  display: block;
  animation: bob 7s ease-in-out infinite;
}
.pop-cluster a:nth-child(1) { width: 58%; left: 6%; bottom: 0; z-index: 2; }
.pop-cluster a:nth-child(2) { width: 34%; right: 0; top: 4%; z-index: 3; }
.pop-cluster a:nth-child(2) img { animation-delay: -2s; }
.pop-cluster a:nth-child(3) { width: 30%; right: 18%; bottom: 8%; z-index: 4; }
.pop-cluster a:nth-child(3) img { animation-delay: -3s; }
.pop-cluster a:nth-child(4) { width: 26%; left: 0; top: 8%; z-index: 3; }
.pop-cluster a:nth-child(4) img { animation-delay: -1s; }
.pop-cluster a:nth-child(5) { width: 22%; right: 8%; bottom: 34%; z-index: 5; }
.pop-cluster a:nth-child(5) img { animation-delay: -4s; }

.excerpt {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem 4vw;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
}
.excerpt .act .rule { background: var(--moss); }
.excerpt img { width: min(100%, 640px); margin-left: auto; }
.excerpt .file-no {
  font-family: var(--display);
  letter-spacing: -0.04em;
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
}
.excerpt .rank {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 650;
}

.quest-tease ol {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.quest-tease a.row {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 0.95;
}
.quest-tease a.row span {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--faint);
}

.city-tease {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  align-items: start;
}
.city-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 2rem;
}
.city-names a {
  text-decoration: none;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.05em;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.9;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 0.55rem 0;
}
.city-names a em {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  align-self: center;
  color: var(--faint);
}

.now-reading {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1rem 3vw;
  align-items: end;
  background: var(--mint);
  color: var(--moss-2);
}
.now-reading .act .rule { background: var(--moss-2); }
.now-reading h2 { margin: 0; }
.now-reading .eyebrow { color: var(--moss); }

.colo {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 1.5rem;
  align-items: end;
  padding: 2.2rem var(--pad) 2.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
body[data-tone="paper"] .colo { border-top-color: var(--ink-line); }
.colo b {
  display: block;
  font-family: var(--display);
  font-weight: 640;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-size: 1.4rem;
}
.colo p { margin: 0; max-width: 22rem; }
.colo .powered { width: min(220px, 46vw); height: auto; }
body[data-tone="paper"] .colo .powered { filter: invert(1); }

/* archive */

.archive-head,
.quests,
.atlas,
.census,
.volumes,
.tray,
.doorway,
.dossier,
.missing {
  padding: 6.4rem var(--pad) 1rem;
}

.archive-head p,
.quests .deck,
.atlas .deck,
.census .deck,
.volumes .deck,
.tray .deck,
.doorway .deck {
  max-width: 36rem;
  font-size: 1.2rem;
}

.ask {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1rem;
  margin: 1.6rem 0 0.4rem;
}
.ask label {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.05em;
}
.ask input {
  width: 5.2ch;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.05em;
  padding: 0 0 0.1rem;
}
body[data-tone="paper"] .ask input { border-bottom-color: rgba(9, 11, 10, 0.35); }
.ask input::placeholder { color: rgba(243, 239, 228, 0.28); }
.ask input:focus { outline: none; border-bottom-color: var(--mint); }
.ask .err {
  flex-basis: 100%;
  color: var(--pink);
  font-family: var(--hand);
  min-height: 1.4rem;
  margin: 0;
}

.wall-wrap { padding: 1rem var(--pad) 3rem; }
.wall {
  columns: 4;
  column-gap: 1.6rem;
}
.spec {
  break-inside: avoid;
  display: block;
  text-decoration: none;
  margin: 0 0 1.1rem;
  color: inherit;
}
.spec img {
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: rotate(var(--rot));
}
.spec.s img { width: 62%; }
.spec.m img { width: 84%; }
.spec.xl img { width: 100%; }
.spec:hover img,
.spec:focus-visible img {
  transform: rotate(0deg) translateY(-8px) scale(1.03);
}
.spec-tag {
  display: block;
  margin-top: -0.35rem;
  margin-left: 8%;
  transform: rotate(var(--rot));
}
.spec-tag b {
  font-family: var(--display);
  font-weight: 640;
  letter-spacing: -0.04em;
  font-size: 1.25rem;
}
.spec-tag i {
  display: block;
  font-style: normal;
  font-family: var(--hand);
  font-size: 1.02rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, max-height 0.25s ease;
}
.spec:hover .spec-tag i,
.spec:focus-visible .spec-tag i { opacity: 1; max-height: 3.2rem; }
.spec.xl .spec-tag { margin-left: 8%; }

/* dossier */

.dossier { padding-bottom: 3rem; }
.back {
  display: inline-block;
  margin-bottom: 1.2rem;
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 650;
}
.dossier-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem 4vw;
  align-items: start;
}
.plate {
  position: sticky;
  top: 4.8rem;
  grid-row: 1 / span 3;
  align-self: start;
}
.plate img { width: 100%; position: relative; z-index: 1; }
.watermark {
  position: absolute;
  left: -2%;
  top: 6%;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(5rem, 14vw, 11rem);
  letter-spacing: -0.07em;
  line-height: 0.8;
  color: rgba(9, 11, 10, 0.06);
  z-index: 0;
  pointer-events: none;
}
.level-block { margin-bottom: 1rem; }
.level-block .lvl {
  display: block;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 650;
}
.level-block strong {
  display: block;
  font-family: var(--display);
  font-weight: 640;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.86;
}
.ledger {
  width: 100%;
  border-collapse: collapse;
  margin: 0.4rem 0 1.2rem;
}
.ledger th {
  text-align: left;
  font-weight: 550;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5e655f;
  padding: 0.72rem 0;
}
.ledger td {
  text-align: right;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.04em;
  padding: 0.55rem 0;
}
.ledger tr { border-bottom: 1px solid var(--ink-line); }
.placards {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}
.placards li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--ink-line);
  padding: 0.65rem 0;
}
.placards span {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 650;
  color: #5e655f;
  align-self: center;
}
.placards b {
  font-weight: 560;
  text-align: right;
}

.story-block { margin-top: 2.4rem; }
.next-quests { margin-top: 2.8rem; }
.story-block h2,
.life-block h2,
.journey h2,
.felt h2,
.next-quests h2 {
  font-family: var(--display);
  font-weight: 640;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.86;
  margin: 0 0 0.8rem;
}

.life {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.2rem;
  position: relative;
}
.life::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  border-left: 1px dashed rgba(9, 11, 10, 0.35);
}
.life li {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 0.8rem 1.2rem;
  padding: 1.15rem 0 1.15rem 1.3rem;
  align-items: start;
}
.life .year {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}
.life h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-size: 1.45rem;
}
.life .note { margin: 0.15rem 0 0; color: var(--moss); }
.life li.ahead { opacity: 0.45; }
.mini-stamp {
  border: 1.5px solid var(--stamp);
  color: var(--stamp);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.45rem 0.4rem;
  transform: rotate(-8deg);
  align-self: center;
  text-align: center;
  min-width: 4.6rem;
}

.felt {
  margin: 2.5rem calc(var(--pad) * -1) 0;
  padding: 1.6rem var(--pad) 2rem;
  background: var(--felt);
  color: var(--paper);
}
.felt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: flex-end;
}
.patch {
  width: 132px;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  transform: rotate(var(--r, -3deg));
}
.patch svg { width: 100%; height: auto; display: block; }
.patch:hover { transform: rotate(0deg) scale(1.05); }

.journey {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem 4vw;
  margin-top: 2.8rem;
}
.ranks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ranks li {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: rgba(9, 11, 10, 0.28);
  font-size: 1.15rem;
}
.ranks li.past { color: rgba(9, 11, 10, 0.48); }
.ranks li.now {
  color: var(--ink);
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  font-weight: 680;
  margin: 0.15rem 0;
}
.ranks li.next {
  color: transparent;
  -webkit-text-stroke: 1px rgba(9, 11, 10, 0.55);
}
.unlocks {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.unlocks li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.8rem;
  border-top: 1px solid var(--ink-line);
  padding: 0.55rem 0;
  font-size: 0.98rem;
}
.unlocks b {
  font-family: var(--display);
  letter-spacing: -0.03em;
}

.margin-note {
  max-width: 16rem;
  color: var(--moss);
}

.ticket-list { display: grid; gap: 0.8rem; }
body[data-tone="paper"] .next-quests .ticket {
  background: var(--ink);
  color: var(--paper);
}
body[data-tone="paper"] .next-quests .stub { border-right-color: rgba(243, 239, 228, 0.28); }
body[data-tone="paper"] .next-quests .rarity.common,
body[data-tone="paper"] .next-quests .state-mark.open { color: var(--paper); }
body[data-tone="paper"] .next-quests .rarity.uncommon { color: var(--mint); }
body[data-tone="paper"] .next-quests .rarity.rare { color: var(--gold); }
body[data-tone="paper"] .next-quests .rarity.mythic { color: var(--pink); }
body[data-tone="paper"] .next-quests .state-mark.done { color: var(--mint); border-color: var(--mint); }

/* missions */

.poster {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem 3vw;
  align-items: end;
  background: var(--paper);
  color: var(--ink);
  padding: 1.4rem 1.4rem 0.6rem;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.poster h2 {
  font-family: var(--display);
  font-weight: 680;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.82;
  margin: 0.3rem 0 0.8rem;
}
.poster img { width: min(100%, 460px); margin-left: auto; }

.tickets { padding: 1.4rem var(--pad) 2rem; display: grid; gap: 0.85rem; }
.ticket {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 1rem 1.4rem;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  padding: 0.9rem 1rem 0.9rem 0;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  position: relative;
}
.ticket.sealed { background: transparent; color: var(--paper); outline: 1px solid var(--line-strong); }
.stub {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.2rem 0.8rem 0.2rem 1rem;
  border-right: 1px dashed rgba(9, 11, 10, 0.35);
  min-height: 6.2rem;
}
.ticket.sealed .stub { border-right-color: var(--line-strong); }
.stub .rarity,
.stampish {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.66rem;
}
.rarity.rare { color: #8a5a12; }
.rarity.mythic { color: var(--stamp); }
.rarity.uncommon { color: var(--moss); }
.ticket h3 {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-weight: 640;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 0.9;
}
.ticket p { margin: 0.15rem 0; }
.req {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.45rem !important;
}
.ticket img { width: 110px; }
.state-mark {
  justify-self: end;
  margin-right: 0.8rem;
  border: 1.5px solid currentColor;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.62rem;
  font-weight: 750;
  padding: 0.55rem 0.45rem;
  transform: rotate(-8deg);
  min-width: 4.8rem;
  text-align: center;
}
.state-mark.done { color: var(--moss); border-color: var(--moss); }
.state-mark.open { color: var(--ink); }
.ticket.sealed .state-mark { color: var(--paper); }

/* world */

.route {
  list-style: none;
  margin: 2rem auto;
  padding: 0;
  position: relative;
  max-width: 980px;
}
.route::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: var(--mint);
  transform: translateX(-50%);
}
.stop { position: relative; min-height: 5.5rem; }
.stop button {
  width: 44%;
  background: none;
  border: 0;
  border-radius: 0;
  color: inherit;
  text-align: right;
  padding: 0.8rem 1.6rem 0.8rem 0;
}
.stop.right { display: flex; justify-content: flex-end; }
.stop.right button { text-align: left; padding: 0.8rem 0 0.8rem 1.6rem; }
.stop button strong {
  display: block;
  font-family: var(--display);
  font-weight: 660;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.82;
}
.stop button em {
  font-style: normal;
  font-family: var(--hand);
  font-size: 1.05rem;
}
.stop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.6rem;
  width: 11px;
  height: 11px;
  background: var(--ink);
  border: 2px solid var(--mint);
  transform: translateX(-50%) rotate(45deg);
}
.stop.on::after { background: var(--mint); }
.stop.on button strong { color: var(--mint); }

.city-file {
  max-width: 760px;
  margin: 0.5rem auto 2rem;
  background: var(--paper);
  color: var(--ink);
  padding: 1.2rem 1.3rem 1.3rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem 1.4rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}
.city-file h2 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.045em;
  font-size: 2.4rem;
  margin: 0 0 0.4rem;
  line-height: 0.86;
}
.city-file ul { margin: 0.4rem 0 0; padding: 0; list-style: none; }
.city-file li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--ink-line);
  font-family: var(--hand);
  font-size: 1.12rem;
}
.roam {
  text-align: center;
  font-family: var(--hand);
  font-size: 1.25rem;
  margin: 0 0 2rem;
}

/* community */

.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.3rem;
  margin: 1.4rem 0 0.4rem;
  border-bottom: 1px solid var(--ink-line);
}
.roles button {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0.35rem 0 0.7rem;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: #8a8174;
  position: relative;
}
.roles button[aria-selected="true"] { color: var(--ink); }
.roles button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--moss);
}
.role-note { font-family: var(--hand); min-height: 1.6rem; }

.census-list {
  list-style: none;
  margin: 0.6rem 0 2rem;
  padding: 0;
}
.census-list a {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto 92px;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  border-top: 1px solid var(--ink-line);
  padding: 0.45rem 0;
}
.census-list .num {
  font-family: var(--display);
  font-weight: 660;
  letter-spacing: -0.05em;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.census-list .who { display: grid; }
.census-list .who b {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-size: 1.35rem;
}
.census-list .where {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 650;
}
.census-list img {
  width: 92px;
  transition: transform 0.35s ease;
}
.census-list a:hover img { transform: translateY(-6px) rotate(-4deg); }

/* seasons */

.vol { border-top: 1px solid var(--line); }
.vol-tab {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.4rem;
  align-items: baseline;
  background: none;
  border: 0;
  border-radius: 0;
  color: inherit;
  text-align: left;
  padding: 0.85rem 0;
}
.vol-tab span {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}
.vol-tab strong {
  font-family: var(--display);
  font-weight: 660;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-size: clamp(2rem, 5.6vw, 5.2rem);
  line-height: 0.84;
}
.vol-tab em {
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 650;
}
.vol.is-now {
  background: var(--paper);
  color: var(--ink);
  margin-left: calc(var(--pad) * -1);
  margin-right: calc(var(--pad) * -1);
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.vol-body { display: none; padding: 0 0 1.6rem; }
.vol.open .vol-body { display: grid; grid-template-columns: 220px 1fr; gap: 1rem 2rem; align-items: start; }
.vol-body h3 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin: 1rem 0 0.3rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0; padding: 0; list-style: none; }
.chips li {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  border-bottom: 1px solid currentColor;
  line-height: 1.1;
}

/* badges page */

.tray-grid {
  padding: 1rem var(--pad) 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 1.6rem;
  align-items: center;
  justify-content: flex-start;
}
.tray-grid .patch { width: clamp(140px, 18vw, 210px); }
.patch-note {
  margin: 0 var(--pad) 2.5rem;
  min-height: 4.5rem;
  max-width: 28rem;
  font-family: var(--hand);
  font-size: 1.35rem;
}

/* doorway */

.doorway {
  height: 100svh;
  min-height: 100svh;
  padding: 5.2rem var(--pad) 1.1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.doorway h1 {
  font-size: clamp(2.7rem, min(6vw, 10.2vh), 5.6rem);
  line-height: 0.78;
  max-width: 8ch;
  margin: 0 0 0.75rem;
}
.door-intro {
  flex: 1;
  min-height: 0;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(16rem, 0.82fr) minmax(0, 1.18fr);
  gap: 1rem 2vw;
  align-items: end;
}
.door-copy { align-self: center; max-width: 34rem; }
.door-intro .deck { margin: 0 0 1rem; font-size: 1.05rem; }
.door-wait {
  width: 100%;
  height: min(72vh, 100%);
  object-fit: contain;
  object-position: right bottom;
  justify-self: end;
  align-self: end;
}
.door-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  text-align: center;
  align-content: center;
}
.door-stage[hidden],
.door-intro[hidden] { display: none; }
.door-cat {
  width: min(460px, 78vw);
  transform: translateY(28vh);
  opacity: 0;
}
.door-stage.show .door-cat {
  animation: arrive 1.15s cubic-bezier(0.16, 0.84, 0.32, 1) forwards;
}
@keyframes arrive {
  to { transform: translateY(0); opacity: 1; }
}
.door-hello {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-weight: 660;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.82;
  opacity: 0;
}
.door-stage.named .door-hello { animation: fadeup 0.6s ease 0.15s forwards; }
.door-status {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  min-height: 1rem;
}
@keyframes fadeup {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.door-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.8rem;
  margin: 1.35rem 0 0;
  max-width: 28rem;
}
.door-preview button {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--faint);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.28rem;
}
.door-preview button:hover { color: var(--paper); }
.door-preview span {
  color: var(--mute);
  font-family: var(--hand);
  font-size: 1.02rem;
}
.door-caveat {
  margin: 0.7rem 0 0;
  font-family: var(--hand);
  font-size: 1.2rem;
  opacity: 0;
}
.door-stage.named .door-caveat { animation: fadeup 0.6s ease 0.35s forwards; }

.missing h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 0.84;
}

#dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
}

/* responsive */

@media (max-width: 980px) {
  .mast-nav { display: none; }
  .index-open { display: inline; }
  .pop-cluster { min-height: 96vw; }
  .pop,
  .excerpt,
  .city-tease,
  .now-reading,
  .dossier-top,
  .journey,
  .poster,
  .colo,
  .city-file,
  .vol.open .vol-body {
    grid-template-columns: 1fr;
  }
  .plate { grid-row: auto; position: relative; top: auto; }
  .wall { columns: 2; }
  .census-list a { grid-template-columns: 5.5rem 1fr 72px; }
  .census-list .where { display: none; }
  .ticket { grid-template-columns: 6.2rem 1fr; }
  .ticket img { display: none; }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding-top: 5.2rem;
    padding-bottom: 2.2rem;
  }
  .hero-title { font-size: 17.2vw; max-width: none; }
  .spine { display: none; }
  .cast { position: relative; inset: auto; height: 46vw; margin: 0.2rem 0 0.4rem; }
  .nudge { display: none; }
  .cat-main { width: 42vw; right: -4vw; bottom: -2vw; }
  .cat-gm { width: 24vw; right: auto; left: 0; top: 0; bottom: auto; }
  .cat-sam { width: 22vw; right: auto; left: 22vw; top: auto; bottom: -2vw; }
  .hero-copy { margin-top: 0.4rem; }
  .doorway { height: auto; min-height: 100svh; overflow: visible; }
  .door-intro { grid-template-columns: 1fr; align-items: start; }
  .door-copy { align-self: start; }
  .door-wait { width: min(78vw, 420px); height: auto; margin-left: auto; }
  .wall { columns: 1; }
  .spec.s img, .spec.m img { width: 78%; }
  .life li { grid-template-columns: 1fr; gap: 0.15rem; }
  .mini-stamp { justify-self: start; }
  .route::before { left: 0.45rem; }
  .stop button,
  .stop.right button {
    width: auto;
    text-align: left;
    padding: 0.7rem 0 0.7rem 1.6rem;
  }
  .stop.right { justify-content: flex-start; }
  .stop::after { left: 0.45rem; }
  .city-names { grid-template-columns: 1fr; }
  .colo { grid-template-columns: 1fr; }
  .quest-tease a.row { grid-template-columns: 2.2rem 1fr; }
  .quest-tease a.row span:last-child { display: none; }
  .census-list a { grid-template-columns: 4.6rem 1fr 64px; }
  .felt-row { justify-content: center; }
}

@media (hover: none) {
  .spec-tag i { opacity: 1; max-height: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .wipe { display: none; }
  .grain { animation: none; }
}

@media print {
  .mast, .grain, .marks, .wipe, .intro, #dust, .index-menu { display: none !important; }
  body, body[data-tone="paper"] { background: white; color: black; }
  .felt { background: white; color: black; }
}
