@font-face {
  font-family: "Early Summer Serif";
  src: url("./assets/fonts/EarlySummerSerif-ExtraLight.woff2") format("woff2");
  font-style: normal;
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: "Early Summer Serif";
  src: url("./assets/fonts/EarlySummerSerif-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #ece9e1;
  --ink: #13120f;
  --muted: #706d66;
  --line: rgba(19, 18, 15, 0.18);
  --ease-book: cubic-bezier(0.22, 0.78, 0.18, 1);
  --open-time: 720ms;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

.site-header {
  height: 76px;
  padding: 0 clamp(22px, 3.4vw, 58px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 50;
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.wordmark-mark {
  width: 24px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.header-center,
.sound-toggle {
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
}

.header-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.sound-toggle {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sound-bars {
  height: 12px;
  display: flex;
  align-items: end;
  gap: 2px;
}

.sound-bars i {
  width: 1px;
  height: 4px;
  background: currentColor;
  transition: height 220ms ease;
}

.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(1) {
  height: 9px;
  animation: soundBar 640ms ease-in-out infinite alternate;
}

.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(2) {
  height: 12px;
  animation: soundBar 510ms 80ms ease-in-out infinite alternate-reverse;
}

.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(3) {
  height: 7px;
  animation: soundBar 720ms 140ms ease-in-out infinite alternate;
}

@keyframes soundBar {
  to { height: 3px; }
}

main {
  position: relative;
}

.intro {
  min-height: 244px;
  padding: clamp(28px, 4.2vw, 62px) clamp(22px, 7vw, 112px) 20px;
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(330px, 1.6fr) minmax(230px, 0.8fr);
  align-items: end;
  column-gap: 3vw;
}

.eyebrow {
  align-self: start;
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.eyebrow span {
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(50px, 6.7vw, 104px);
  font-weight: 400;
  line-height: 0.76;
  letter-spacing: -0.072em;
}

.intro-note {
  align-self: end;
  max-width: 330px;
  padding-bottom: 4px;
}

.intro-note p {
  margin: 0 0 16px;
  max-width: 26em;
  font-family: "Songti SC", Georgia, serif;
  font-size: 13px;
  line-height: 1.65;
}

.intro-note span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.shelf-viewport {
  --shelf-base: 86px;
  width: 100%;
  height: clamp(430px, 58vh, 650px);
  position: relative;
  overflow: hidden;
  outline: none;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.17), transparent 26%),
    var(--paper);
}

.shelf-viewport:focus-visible::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(19, 18, 15, 0.42);
  pointer-events: none;
  z-index: 60;
}

.shelf-haze {
  position: absolute;
  inset: 2% 0 22%;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,255,255,0.62), transparent 62%);
  pointer-events: none;
}

.shelf-scroll {
  position: absolute;
  inset: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  perspective: 1300px;
  perspective-origin: 50% 64%;
  touch-action: pan-x;
  z-index: 10;
}

.shelf-scroll::-webkit-scrollbar {
  display: none;
}

.shelf-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.shelf-track {
  min-width: 100%;
  width: max-content;
  height: 100%;
  padding: 22px max(9vw, 108px) var(--shelf-base);
  display: flex;
  align-items: flex-end;
  gap: 0;
  transform-style: preserve-3d;
}

.book-slot {
  --closed-w: 30px;
  --open-w: 220px;
  --book-h: 340px;
  --gap: 7px;
  flex: 0 0 calc(var(--closed-w) + var(--gap));
  width: calc(var(--closed-w) + var(--gap));
  height: var(--book-h);
  position: relative;
  z-index: 1;
  transition:
    flex-basis var(--open-time) var(--ease-book),
    width var(--open-time) var(--ease-book);
  contain: layout style;
}

.book-slot:hover,
.book-slot:focus-within,
.book-slot.is-open {
  flex-basis: calc(var(--open-w) + var(--gap));
  width: calc(var(--open-w) + var(--gap));
  z-index: 30;
}

.book-button {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--closed-w);
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transform: rotateY(82deg);
  transform-origin: left center;
  transform-style: preserve-3d;
  transition:
    width var(--open-time) var(--ease-book),
    transform var(--open-time) var(--ease-book),
    filter 300ms ease;
  will-change: width, transform;
  outline: none;
}

.book-slot:hover .book-button,
.book-slot:focus-within .book-button,
.book-slot.is-open .book-button {
  width: var(--open-w);
  transform: rotateY(0deg);
  filter: saturate(1.08);
}

.book-cover,
.book-back,
.book-spine,
.book-pages {
  position: absolute;
  pointer-events: none;
  backface-visibility: hidden;
}

.book-cover,
.book-back {
  inset: 0;
  overflow: hidden;
}

.book-cover {
  color: var(--cover-ink);
  background: var(--cover);
  transform: translateZ(7px);
  box-shadow:
    inset 1px 0 rgba(255,255,255,0.22),
    inset -1px 0 rgba(0,0,0,0.18),
    8px 12px 24px rgba(18, 16, 11, 0.16);
}

.book-back {
  background: color-mix(in srgb, var(--cover) 72%, #0d0d0b);
  transform: rotateY(180deg) translateZ(7px);
}

.book-spine {
  left: 0;
  bottom: 0;
  width: 15px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cover-ink);
  background: color-mix(in srgb, var(--cover) 88%, #0c0b09);
  border-inline: 1px solid rgba(255,255,255,0.16);
  transform: rotateY(-90deg);
  transform-origin: left center;
}

.book-pages {
  right: 1px;
  top: 5px;
  width: 14px;
  height: calc(100% - 10px);
  background:
    repeating-linear-gradient(90deg, #e6dfd2 0 1px, #b9b0a0 1px 2px);
  transform: rotateY(90deg);
  transform-origin: right center;
  opacity: 0.85;
}

.spine-copy {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  max-height: 82%;
  overflow: hidden;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.closed-label {
  position: absolute;
  inset: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  overflow: hidden;
  white-space: nowrap;
  text-transform: uppercase;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8px;
  letter-spacing: 0.12em;
  opacity: 1;
  transition: opacity 160ms ease;
}

.book-slot:hover .closed-label,
.book-slot:focus-within .closed-label,
.book-slot.is-open .closed-label {
  opacity: 0;
}

.cover-content {
  width: var(--open-w);
  height: 100%;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scaleX(0.9);
  transform-origin: left center;
  transition:
    opacity 250ms 90ms ease,
    transform 520ms 90ms var(--ease-book);
}

.book-slot:hover .cover-content,
.book-slot:focus-within .cover-content,
.book-slot.is-open .cover-content {
  opacity: 1;
  transform: scaleX(1);
}

.cover-kicker,
.cover-number,
.cover-publisher {
  text-transform: uppercase;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.cover-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid currentColor;
}

.cover-number {
  opacity: 0.62;
}

.cover-title {
  margin: auto 0 10px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(25px, 2.05vw, 34px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.cover-author {
  margin: 0;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.cover-art {
  height: 29%;
  margin: 18px 0 16px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.cover-art::before,
.cover-art::after {
  content: "";
  position: absolute;
}

.cover-art::before {
  width: 78%;
  aspect-ratio: 1;
  left: -14%;
  top: -82%;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow:
    22px 20px 0 -1px transparent,
    22px 20px 0 0 currentColor,
    44px 40px 0 -1px transparent,
    44px 40px 0 0 currentColor;
}

.cover-art::after {
  inset: 17px 0 auto auto;
  width: 38%;
  height: 1px;
  background: currentColor;
  box-shadow: 0 11px currentColor, 0 22px currentColor, 0 33px currentColor;
  opacity: 0.68;
}

.cover-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.cover-publisher {
  max-width: 15ch;
  line-height: 1.55;
}

.barcode {
  width: 37px;
  height: 18px;
  border: 4px solid rgba(255,255,255,0.72);
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 3px);
  opacity: 0.84;
}

.book-button:focus-visible .book-cover {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.shelf-plinth {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--shelf-base);
  pointer-events: none;
  z-index: 20;
}

.plinth-top {
  height: 18px;
  background: linear-gradient(180deg, #a7a197 0%, #6f6a62 100%);
  border-top: 1px solid rgba(255,255,255,0.82);
  box-shadow: 0 -8px 26px rgba(31, 27, 20, 0.16);
}

.plinth-front {
  height: calc(100% - 18px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.15), transparent 25%),
    #868077;
  border-bottom: 1px solid rgba(0,0,0,0.25);
}

.book-caption {
  position: absolute;
  left: clamp(22px, 3.4vw, 58px);
  bottom: 32px;
  z-index: 41;
  display: grid;
  grid-template-columns: auto minmax(28px, 72px) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  pointer-events: none;
  color: #f5f2e9;
}

.caption-index,
.caption-author {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.caption-line {
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.caption-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 600;
}

.caption-author {
  grid-column: 3;
  margin-top: 3px;
  opacity: 0.62;
}

.scroll-cue {
  position: absolute;
  right: clamp(22px, 3.4vw, 58px);
  bottom: 34px;
  z-index: 41;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f5f2e9;
  text-transform: uppercase;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.17em;
  pointer-events: none;
}

.mouse-glyph {
  width: 14px;
  height: 21px;
  display: grid;
  place-items: start center;
  padding-top: 4px;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.mouse-glyph i {
  width: 1px;
  height: 4px;
  background: currentColor;
  animation: wheelCue 1.5s ease-in-out infinite;
}

@keyframes wheelCue {
  0%, 100% { opacity: 0.35; transform: translateX(-2px); }
  50% { opacity: 1; transform: translateX(2px); }
}

.site-footer {
  min-height: 58px;
  padding: 0 clamp(22px, 3.4vw, 58px);
  display: grid;
  grid-template-columns: 1fr minmax(120px, 300px) 1fr;
  align-items: center;
  gap: 28px;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.site-footer > :last-child {
  justify-self: end;
}

.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: #a64027;
}

.footer-progress {
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.footer-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-center {
    display: none;
  }

  .intro {
    min-height: 225px;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    align-items: end;
  }

  .eyebrow {
    grid-column: 1 / -1;
  }

  .intro-note p {
    display: none;
  }

  .shelf-track {
    padding-inline: 46px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-progress {
    display: none;
  }
}

/* Clean archive header ------------------------------------------------- */

[hidden] {
  display: none !important;
}

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

body {
  grid-template-rows: 78px minmax(0, 1fr);
}

.site-header {
  height: 78px;
  padding: 0 clamp(24px, 3.4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border-bottom: 0;
}

.wordmark {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}

.wordmark img {
  display: block;
  width: clamp(118px, 9.4vw, 148px);
  height: auto;
}

.header-filter-nav {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(118px, 0.9fr) minmax(150px, 1.25fr) minmax(104px, 0.78fr);
  align-items: stretch;
  border-right: 1px solid rgba(19, 18, 15, 0.15);
}

.header-filter {
  min-width: 0;
  min-height: 32px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-left: 1px solid rgba(19, 18, 15, 0.15);
  transition: background 160ms ease;
}

.header-filter:hover,
.header-filter:focus-within {
  background: rgba(19, 18, 15, 0.035);
}

.header-filter > span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.header-filter select {
  min-width: 0;
  width: 100%;
  padding: 7px 16px 7px 0;
  border: 0;
  outline: 0;
  appearance: none;
  color: var(--ink);
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) right 3px center / 4px 4px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) right 0 center / 4px 4px no-repeat;
  font: 600 10px/1.2 Inter, "PingFang SC", sans-serif;
  cursor: pointer;
}

.header-filter select:focus-visible {
  box-shadow: inset 0 -1px var(--ink);
}

main {
  grid-template-rows: clamp(212px, 30.5vh, 252px) minmax(0, 1fr);
}

.intro {
  min-height: 0;
  padding: clamp(22px, 3.5vh, 38px) clamp(24px, 7vw, 112px) 16px;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
}

.intro-overview {
  width: min(780px, 100%);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-overview .eyebrow {
  margin: 0 0 clamp(18px, 2.8vh, 28px);
  justify-content: center;
  font-size: 7px;
  letter-spacing: 0.19em;
}

.intro-title-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.8vh, 18px);
}

.archive-title {
  font-size: clamp(46px, 4.6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.intro-description {
  display: block;
  margin: 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.archive-metrics {
  width: min(700px, 100%);
  margin: clamp(20px, 2.8vh, 28px) 0 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 0;
}

.archive-metrics > div {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.archive-metrics dt {
  font-size: 7px;
  letter-spacing: 0.15em;
}

.archive-metrics dd {
  font-size: 17px;
}

.archive-result {
  margin-top: 10px;
  align-self: center;
  text-transform: none;
  font-size: 8px;
  letter-spacing: 0.1em;
}

@media (max-width: 820px) {
  .site-header {
    height: auto;
    min-height: 112px;
    padding: 17px 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wordmark img {
    width: 126px;
  }

  .header-filter-nav {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .header-filter {
    min-width: 0;
    padding-inline: 10px;
  }

  .intro {
    min-height: 248px;
    padding: 30px 22px 18px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .intro-overview {
    min-height: 0;
  }

  .intro-overview .eyebrow {
    margin-bottom: 18px;
  }

  .archive-title {
    font-size: clamp(38px, 9vw, 58px);
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 116px;
  }

  .header-filter {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .header-filter > span {
    font-size: 6px;
  }

  .header-filter select {
    padding-block: 4px;
    font-size: 9px;
  }

  .intro {
    min-height: 265px;
  }

  .archive-title {
    font-size: clamp(34px, 10vw, 44px);
  }

  .intro-description {
    max-width: 24em;
    font-size: 11px;
  }

  .archive-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 10px;
  }

  .archive-result {
    margin-top: 12px;
  }
}

/* Ratio-aware archive system ----------------------------------------- */

.series-browser {
  width: min(96vw, 1600px);
  height: min(94vh, 960px);
}

.series-browser::backdrop,
.proposal-reader::backdrop {
  background: rgba(25, 23, 19, 0.5);
  backdrop-filter: none;
}

.series-shell,
.reader-shell {
  border: 1px solid rgba(19, 18, 15, 0.12);
  box-shadow: 0 30px 90px rgba(9, 8, 7, 0.28);
}

.series-content {
  grid-template-rows: clamp(150px, 23%, 210px) minmax(0, 1fr);
}

.series-overview {
  padding: clamp(24px, 3vw, 44px) clamp(30px, 4.6vw, 72px);
  align-items: end;
  border-bottom-color: rgba(19, 18, 15, 0.11);
}

.series-overview::before {
  top: auto;
  bottom: 0;
  width: min(22%, 280px);
  height: 3px;
}

.series-hero-copy h2 {
  margin: 8px 0 14px;
  font-size: clamp(42px, 4.3vw, 70px);
  line-height: 0.94;
}

.series-overview > p {
  flex-basis: 390px;
  padding-bottom: 2px;
  font-size: 13px;
  line-height: 1.8;
}

.series-index-panel {
  padding: 22px clamp(30px, 4.5vw, 72px) 22px;
  grid-template-rows: 32px minmax(260px, 1fr) 48px;
  background: var(--paper);
}

.series-index-panel > header {
  align-items: start;
  border-bottom: 0;
}

.series-volume-stage {
  isolation: isolate;
  overflow: hidden;
}

.series-volume-caption {
  left: 0;
  bottom: 8px;
  max-width: min(54%, 620px);
  padding: 8px 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  background: transparent;
  backdrop-filter: none;
}

.series-volume-caption strong {
  font-size: 14px;
}

.series-deck-list {
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(19, 18, 15, 0.12);
}

.series-deck {
  height: 31px;
  border-radius: 0;
  border-color: transparent;
  border-bottom-color: rgba(19, 18, 15, 0.2);
}

.series-deck:hover,
.series-deck:focus-visible {
  border-color: transparent;
  border-bottom-color: var(--ink);
}

.series-deck.is-active {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.proposal-reader {
  width: min(98vw, 1720px);
  height: min(96vh, 980px);
}

.proposal-reader[open] .reader-shell {
  animation: readerEnter 320ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.reader-shell {
  grid-template-rows: 58px minmax(0, 1fr);
}

.reader-content {
  min-height: 0;
  padding: clamp(24px, 3vw, 44px) clamp(24px, 3.5vw, 58px) clamp(30px, 3.5vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(250px, 20vw, 330px);
  align-items: stretch;
  gap: clamp(34px, 4vw, 68px);
  background: var(--paper);
}

.reader-book-column {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0 12px 10px 0;
}

.reader-book {
  --reader-aspect: 16 / 9;
  --reader-accent: #25241f;
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  display: grid;
  grid-template-columns: clamp(34px, 3.2vw, 48px) minmax(0, 1fr);
  align-items: stretch;
  filter: drop-shadow(0 24px 26px rgba(20, 18, 14, 0.16));
}

.reader-spine {
  min-height: 0;
  height: 100%;
  padding: 14px 0;
  border: 0;
  border-radius: 3px 0 0 3px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 20%, transparent 74%, rgba(0, 0, 0, 0.2)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, rgba(0,0,0,0.025) 1px 2px),
    var(--reader-accent);
  box-shadow:
    inset -6px 0 9px rgba(0, 0, 0, 0.14),
    inset 2px 0 3px rgba(255, 255, 255, 0.12);
}

.reader-stage {
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: var(--reader-aspect);
  position: relative;
  padding: 0;
  display: block;
  overflow: visible;
  background: #fff;
  box-shadow: none;
  transform: none;
}

.reader-stage iframe {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  outline: 0;
  background: #fff;
  box-shadow: none;
  transform: none;
}

.reader-page-edge {
  position: absolute;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.reader-page-edge-right {
  top: 6px;
  right: -10px;
  bottom: -7px;
  width: 10px;
  background:
    repeating-linear-gradient(0deg, #eee9df 0 1px, #fff 1px 3px, #e5dfd4 3px 4px);
  box-shadow: 3px 2px 5px rgba(22, 19, 15, 0.13);
}

.reader-page-edge-bottom {
  left: 8px;
  right: -10px;
  bottom: -8px;
  height: 8px;
  background:
    repeating-linear-gradient(90deg, #eee9df 0 1px, #fff 1px 4px, #e6e0d5 4px 5px);
  box-shadow: 1px 4px 5px rgba(22, 19, 15, 0.12);
}

.reader-binding-crease {
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 0;
  width: clamp(24px, 4.2%, 48px);
  background:
    linear-gradient(90deg,
      rgba(0, 0, 0, 0.2) 0,
      rgba(255, 255, 255, 0.1) 15%,
      rgba(0, 0, 0, 0.12) 40%,
      rgba(255, 255, 255, 0.08) 62%,
      transparent 100%);
  mix-blend-mode: multiply;
  opacity: 0.42;
  pointer-events: none;
}

.reader-loading {
  inset: 0;
  z-index: 4;
  background: #f7f4ec;
}

.reader-details {
  min-width: 0;
  padding: clamp(14px, 2vh, 24px) 0 0 clamp(24px, 2.5vw, 38px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-left: 1px solid rgba(19, 18, 15, 0.14);
}

.reader-kicker {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.reader-details h2 {
  margin: 20px 0 14px;
  font-family: "Songti SC", Georgia, serif;
  font-size: clamp(30px, 2.6vw, 46px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.reader-details > p {
  margin: 0 0 clamp(24px, 4vh, 46px);
  color: var(--muted);
  font-family: "Songti SC", Georgia, serif;
  font-size: 12px;
  line-height: 1.75;
}

.reader-details dl {
  margin: 0;
  border-top: 1px solid rgba(19, 18, 15, 0.14);
}

.reader-details dl > div {
  min-height: 42px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(19, 18, 15, 0.11);
}

.reader-details dt,
.reader-details dd {
  margin: 0;
}

.reader-details dt {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.reader-details dd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 650;
}

.reader-details > a {
  min-height: 44px;
  margin-top: auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.reader-details > a:hover,
.reader-details > a:focus-visible {
  color: var(--ink);
  background: transparent;
  outline: 0;
}

.reader-details > small {
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .reader-content {
    padding: 22px 22px 28px;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 30px;
  }

  .reader-details {
    padding-left: 24px;
  }

  .reader-details h2 {
    font-size: clamp(26px, 3.5vw, 36px);
  }
}

@media (max-width: 820px) {
  .series-content {
    grid-template-rows: minmax(116px, auto) minmax(0, 1fr);
  }

  .series-index-panel {
    padding: 16px 18px max(16px, env(safe-area-inset-bottom));
    grid-template-rows: 28px clamp(230px, 43svh, 360px) 46px;
  }

  .series-index-panel > header span:last-child {
    display: none;
  }

  .proposal-reader {
    width: 100vw;
    height: 100svh;
  }

  .reader-shell {
    height: 100%;
    grid-template-rows: 52px minmax(0, 1fr);
  }

  .reader-content {
    padding: 22px 16px max(24px, env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    align-content: start;
    gap: 34px;
    overflow-y: auto;
  }

  .reader-book-column {
    padding-right: 8px;
  }

  .reader-book {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .reader-spine {
    padding-block: 9px;
  }

  .reader-spine span {
    font-size: 6px;
  }

  .reader-spine strong {
    font-size: 10px;
  }

  .reader-details {
    padding: 26px 0 0;
    border-top: 1px solid rgba(19, 18, 15, 0.14);
    border-left: 0;
  }

  .reader-details > p {
    margin-bottom: 24px;
  }

  .reader-details > a {
    margin-top: 24px;
  }
}

@media (max-width: 560px) {
  .sound-copy,
  .intro-note,
  .scroll-cue {
    display: none;
  }

  .intro {
    min-height: 190px;
    display: block;
  }

  .eyebrow {
    margin-bottom: 44px;
  }

  h1 {
    font-size: 54px;
  }

  .shelf-viewport {
    height: 520px;
  }

  .book-caption {
    grid-template-columns: auto 28px minmax(0, auto);
    max-width: 70vw;
  }

  .caption-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --open-time: 1ms;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Landscape proposal-deck model ----------------------------------------- */

.shelf-scroll {
  perspective: 980px;
  perspective-origin: 50% 70%;
}

.shelf-track {
  padding-inline: max(8vw, 92px);
}

.proposal-slot {
  --closed-w: 60px;
  --open-w: 456px;
  --book-h: 256px;
  --depth: 48px;
  --gap: 12px;
}

.proposal-button {
  transform: rotateY(78deg);
  transform-origin: left center;
  transform-style: preserve-3d;
  transition:
    width var(--open-time) var(--ease-book),
    transform var(--open-time) var(--ease-book),
    filter 300ms ease;
  will-change: width, transform;
}

.proposal-slot:hover .proposal-button,
.proposal-slot:focus-within .proposal-button,
.proposal-slot.is-open .proposal-button {
  width: var(--open-w);
  transform: rotateY(-7deg);
}

.proposal-button .book-cover,
.proposal-button .book-back {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 3px 2px 2px 3px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.2), transparent 7%, rgba(0,0,0,0.12) 100%),
    var(--cover);
}

.proposal-button .book-cover {
  position: absolute;
  transform: translateZ(calc(var(--depth) * 0.5));
  box-shadow:
    inset -3px 0 5px rgba(0,0,0,0.1),
    19px 23px 42px rgba(18, 15, 10, 0.26);
}

.proposal-button .book-cover::before,
.proposal-button .book-cover::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  z-index: 5;
  pointer-events: none;
  transition: opacity 360ms ease;
}

.proposal-button .book-cover::before {
  left: 0;
  width: 10px;
  background: linear-gradient(
    90deg,
    rgba(7, 7, 6, 0.42) 0%,
    rgba(18, 17, 14, 0.25) 44%,
    rgba(255, 255, 255, 0.3) 70%,
    rgba(8, 8, 7, 0.18) 100%
  );
  box-shadow:
    1px 0 rgba(255,255,255,0.16),
    3px 0 5px rgba(8,8,7,0.2);
  opacity: 0.68;
}

.proposal-button .book-cover::after {
  left: 8px;
  width: 24px;
  background: linear-gradient(
    90deg,
    rgba(11, 10, 8, 0.28) 0%,
    rgba(11, 10, 8, 0.42) 22%,
    rgba(255, 255, 255, 0.34) 34%,
    rgba(15, 14, 12, 0.2) 43%,
    rgba(13, 12, 10, 0.1) 66%,
    rgba(255, 255, 255, 0.12) 75%,
    transparent 100%
  );
  box-shadow:
    inset 4px 0 5px -4px rgba(0,0,0,0.55),
    -2px 0 3px rgba(0,0,0,0.16),
    2px 0 3px rgba(255,255,255,0.1);
  opacity: 0.72;
}

.proposal-slot:hover .book-cover::before,
.proposal-slot:focus-within .book-cover::before,
.proposal-slot.is-open .book-cover::before {
  opacity: 0.9;
}

.proposal-slot:hover .book-cover::after,
.proposal-slot:focus-within .book-cover::after,
.proposal-slot.is-open .book-cover::after {
  opacity: 0.94;
}

.proposal-button .book-back {
  transform: rotateY(180deg) translateZ(calc(var(--depth) * 0.5));
  filter: saturate(0.72) brightness(0.58);
}

.proposal-button .book-cover img,
.proposal-button .book-back img {
  display: block;
  width: var(--open-w);
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}

.book-page-block {
  position: absolute;
  left: 7px;
  top: 6px;
  right: -6px;
  bottom: -5px;
  pointer-events: none;
  backface-visibility: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(95,84,66,0.18) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #f0eadf, #d8d0c2 86%, #bcb2a2);
  border: 0;
  border-radius: 0 2px 3px 0;
  box-shadow:
    9px 13px 24px rgba(21,18,13,0.22);
  transform: translateZ(calc(var(--depth) * 0.5 - 5px));
}

.proposal-button .book-spine {
  left: 0;
  top: 0;
  bottom: auto;
  width: var(--depth);
  height: 100%;
  padding: 10px 0 9px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  align-items: center;
  gap: 8px;
  color: var(--cover-ink);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.16), transparent 18%, rgba(0,0,0,0.17) 88%),
    var(--cover);
  border: 0;
  box-shadow:
    inset 2px 0 rgba(255,255,255,0.13),
    inset -3px 0 rgba(0,0,0,0.12);
  transform: rotateY(-90deg);
  transform-origin: left center;
}

.proposal-button .spine-copy {
  max-height: 100%;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: "Songti SC", Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.075em;
}

.spine-index,
.spine-year {
  writing-mode: vertical-rl;
  text-transform: uppercase;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: 0.74;
}

.proposal-button .book-pages {
  right: 0;
  top: 6px;
  width: var(--depth);
  height: calc(100% - 11px);
  background:
    repeating-linear-gradient(90deg, #f4efe5 0 1px, #bdb3a2 1px 2px, #e9e2d6 2px 4px),
    #ddd6c8;
  border: 0;
  box-shadow: inset 0 0 7px rgba(51,43,31,0.18);
  transform: rotateY(90deg);
  transform-origin: right center;
  opacity: 1;
}

.book-top-edge {
  position: absolute;
  left: 6px;
  top: 5px;
  width: calc(100% - 10px);
  height: var(--depth);
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, #eee7da 0 1px, #c7beae 1px 2px, #e6dfd1 2px 4px);
  border: 0;
  box-shadow: inset 0 0 6px rgba(45,38,28,0.16);
  transform: rotateX(90deg);
  transform-origin: top center;
  backface-visibility: hidden;
}

.cover-image {
  user-select: none;
}

.cover-gloss {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(255,255,255,0.26), transparent 20%, transparent 60%, rgba(255,255,255,0.14) 76%, transparent 91%),
    linear-gradient(180deg, rgba(255,255,255,0.09), transparent 23%);
  border-radius: inherit;
  opacity: 0.34;
  mix-blend-mode: screen;
  transition: opacity 420ms ease;
}

.cover-gloss::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.09) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.035) 0 1px, transparent 1px 4px);
  opacity: 0.26;
  mix-blend-mode: soft-light;
}

.proposal-slot:hover .cover-gloss,
.proposal-slot:focus-within .cover-gloss,
.proposal-slot.is-open .cover-gloss {
  opacity: 0.72;
}

.proposal-slot:hover .book-cover,
.proposal-slot:focus-within .book-cover,
.proposal-slot.is-open .book-cover {
  box-shadow:
    inset -3px 0 5px rgba(0,0,0,0.11),
    25px 29px 50px rgba(18, 15, 10, 0.3);
}

.deck-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 7px 4px;
  color: #f7f3e9;
  background: rgba(10, 10, 9, 0.72);
  border: 0;
  border-radius: 999px;
  backdrop-filter: blur(7px);
  text-transform: uppercase;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0;
  transition: opacity 220ms 180ms ease;
}

.proposal-slot:hover .deck-badge,
.proposal-slot:focus-within .deck-badge,
.proposal-slot.is-open .deck-badge {
  opacity: 1;
}

.proposal-button::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 3px;
  bottom: -17px;
  height: 24px;
  z-index: -1;
  background: rgba(21, 18, 13, 0.3);
  filter: blur(11px);
  transform: rotateX(82deg) translateZ(-4px);
  transform-origin: center top;
  pointer-events: none;
}

@media (max-width: 560px) {
  .proposal-slot {
    --gap: 8px;
  }

  .shelf-track {
    padding-inline: 42px;
  }
}

/* Controlled variation: thickness, texture and spine typography -------- */

.proposal-button .book-spine {
  overflow: hidden;
}

.proposal-button .book-spine > * {
  position: relative;
  z-index: 1;
}

.proposal-button .book-spine::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.texture-smooth .book-spine::after {
  display: none;
}

.texture-linen .book-spine::after {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.16) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.13) 0 1px, transparent 1px 5px);
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

.texture-paper .book-spine::after {
  background:
    repeating-linear-gradient(87deg, transparent 0 3px, rgba(255,255,255,0.16) 3px 4px, transparent 4px 8px),
    repeating-linear-gradient(3deg, rgba(0,0,0,0.08) 0 1px, transparent 1px 5px);
  opacity: 0.32;
  mix-blend-mode: overlay;
}

.texture-grain .book-spine::after {
  background:
    radial-gradient(circle at 20% 14%, rgba(255,255,255,0.2) 0 0.7px, transparent 1px),
    radial-gradient(circle at 72% 43%, rgba(0,0,0,0.2) 0 0.7px, transparent 1.1px),
    radial-gradient(circle at 38% 78%, rgba(255,255,255,0.16) 0 0.6px, transparent 1px);
  background-size: 7px 9px, 9px 8px, 8px 10px;
  opacity: 0.4;
  mix-blend-mode: soft-light;
}

.spine-style-band .book-spine {
  background:
    linear-gradient(180deg,
      transparent 0 16%,
      color-mix(in srgb, var(--cover-ink) 68%, transparent) 16% 22%,
      transparent 22% 76%,
      color-mix(in srgb, var(--cover-ink) 38%, transparent) 76% 79%,
      transparent 79%),
    linear-gradient(90deg, rgba(255,255,255,0.16), transparent 18%, rgba(0,0,0,0.17) 88%),
    var(--cover);
}

.spine-style-band .spine-copy {
  font-size: 12px;
  letter-spacing: 0.11em;
}

.spine-style-label .spine-copy {
  max-width: calc(var(--depth) - 10px);
  padding: 12px 4px;
  color: var(--cover);
  background: var(--cover-ink);
  border-radius: 1px;
  box-shadow: 0 4px 10px rgba(10, 9, 7, 0.18);
}

.spine-style-split .book-spine {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.15), transparent 20%, rgba(0,0,0,0.16) 90%),
    linear-gradient(180deg,
      var(--cover) 0 68%,
      color-mix(in srgb, var(--cover) 68%, #11100e) 68% 100%);
}

.spine-style-split .spine-year {
  color: color-mix(in srgb, var(--cover-ink) 84%, #fff);
  opacity: 0.9;
}

.spine-style-rule .book-spine {
  background:
    repeating-linear-gradient(180deg,
      transparent 0 27px,
      color-mix(in srgb, var(--cover-ink) 22%, transparent) 27px 28px),
    linear-gradient(90deg, rgba(255,255,255,0.16), transparent 18%, rgba(0,0,0,0.17) 88%),
    var(--cover);
}

.spine-style-rule .spine-index,
.spine-style-rule .spine-year {
  padding: 5px 2px;
  background: color-mix(in srgb, var(--cover) 72%, transparent);
}

.type-serif-bold .spine-copy {
  font-family: "Songti SC", Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

.type-sans-medium .spine-copy {
  font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.055em;
}

.type-serif-light .spine-copy {
  font-family: "Songti SC", Georgia, serif;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.09em;
}

.type-condensed-bold .spine-copy {
  font-family: "Arial Narrow", "Helvetica Neue", "PingFang SC", sans-serif;
  font-size: 12px;
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: 0.045em;
}

.type-sans-bold .spine-copy {
  font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.065em;
}

/* One clean canvas: header + title + shelf/status ----------------------- */

html,
body {
  height: 100%;
}

body {
  height: 100svh;
  display: grid;
  grid-template-rows: 76px minmax(0, 1fr);
  overflow: hidden;
}

.site-header {
  height: 76px;
  border-bottom: 0;
  background: transparent;
}

main {
  min-height: 0;
  display: grid;
  grid-template-rows: clamp(188px, 30vh, 238px) minmax(0, 1fr);
  background: var(--paper);
}

.intro {
  min-height: 0;
  height: auto;
  padding: clamp(22px, 3.7vh, 42px) clamp(22px, 7vw, 112px) 16px;
}

.shelf-viewport {
  --shelf-base: 62px;
  height: 100%;
  min-height: 0;
  background: transparent;
}

.three-shelf-stage {
  position: absolute;
  inset: 0 0 var(--shelf-base);
  z-index: 10;
  overflow: hidden;
  touch-action: none;
}

.three-shelf-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  cursor: grab;
}

.three-shelf-stage canvas.is-hovering-book {
  cursor: pointer;
}

.three-shelf-stage canvas.has-pinned-book.is-hovering-book {
  cursor: grab;
}

.three-shelf-stage canvas.is-rotating-book,
.three-shelf-stage canvas.is-dragging {
  cursor: grabbing;
}

.three-shelf-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--paper);
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
  pointer-events: none;
  transition: opacity 360ms ease, visibility 360ms ease;
}

.three-shelf-stage.is-ready .three-shelf-loading {
  opacity: 0;
  visibility: hidden;
}

.three-shelf-stage.is-webgl-unavailable .three-shelf-loading {
  color: #8d3025;
}

.shelf-haze {
  inset: 5% 0 24%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,255,255,0.36), transparent 66%);
  opacity: 0.55;
}

.shelf-track {
  padding-bottom: var(--shelf-base);
}

.book-caption {
  bottom: 14px;
  color: var(--ink);
}

.scroll-cue {
  bottom: 17px;
  color: var(--ink);
}

.scroll-cue b {
  font-weight: 800;
}

.shelf-progress {
  position: absolute;
  left: 50%;
  bottom: 27px;
  width: min(24vw, 290px);
  height: 1px;
  z-index: 41;
  background: rgba(19, 18, 15, 0.16);
  overflow: hidden;
  pointer-events: none;
}

.shelf-progress i {
  display: block;
  width: 4%;
  height: 100%;
  background: rgba(19, 18, 15, 0.72);
}

@media (max-width: 820px) {
  body {
    height: auto;
    min-height: 100svh;
    display: block;
    overflow-y: auto;
  }

  main {
    display: block;
  }

  .intro {
    min-height: 225px;
  }

  .shelf-viewport {
    height: 520px;
  }

  .shelf-progress {
    display: none;
  }
}

@media (max-height: 650px) and (min-width: 821px) {
  body {
    height: auto;
    min-height: 100vh;
    display: block;
    overflow-y: auto;
  }

  main {
    display: block;
  }

  .intro {
    min-height: 188px;
  }

  .shelf-viewport {
    height: 390px;
  }
}

/* Archive index -------------------------------------------------------- */

.archive-index {
  margin: 0 0 11px;
  display: grid;
  gap: 2px;
}

.archive-index label {
  min-height: 25px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid rgba(19, 18, 15, 0.13);
}

.archive-index label > span {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.archive-index select {
  min-width: 0;
  width: 100%;
  padding: 4px 20px 4px 0;
  border: 0;
  outline: 0;
  appearance: none;
  color: var(--ink);
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) right 3px center / 4px 4px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) right 0 center / 4px 4px no-repeat;
  font: 500 11px/1.2 Inter, "PingFang SC", sans-serif;
  cursor: pointer;
}

.archive-index select:focus-visible {
  box-shadow: inset 0 -1px var(--ink);
}

#filteredCount {
  color: var(--ink);
  font-size: 1.25em;
}

/* Useful archive overview --------------------------------------------- */

.intro {
  grid-template-columns: minmax(0, 1.34fr) minmax(330px, 0.66fr);
  align-items: stretch;
  gap: clamp(38px, 6vw, 104px);
}

.intro-overview {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.intro-overview .eyebrow {
  align-self: start;
  margin: 0;
}

.intro-title-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(250px, auto) minmax(170px, 280px);
  align-items: end;
  gap: clamp(26px, 4vw, 68px);
}

.archive-title {
  margin: 0;
  font-family: "Songti SC", Georgia, serif;
  font-size: clamp(40px, 3.7vw, 62px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.intro-description {
  margin: 0 0 2px;
  max-width: 24em;
  color: var(--muted);
  font-family: "Songti SC", Georgia, serif;
  font-size: 12px;
  line-height: 1.65;
}

.archive-metrics {
  margin: 0;
  padding-top: 11px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(19, 18, 15, 0.16);
}

.archive-metrics > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.archive-metrics dt {
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.archive-metrics dd {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.intro-tools {
  min-width: 0;
  padding-left: clamp(22px, 3vw, 46px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: start;
  gap: 8px;
  border-left: 1px solid rgba(19, 18, 15, 0.16);
}

.intro-tools-head {
  margin-bottom: 2px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  text-transform: uppercase;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.intro-tools-head span {
  color: var(--muted);
}

.intro-tools-head strong {
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
}

.intro-tools .archive-index {
  margin: 0;
}

.intro-tools .archive-index label {
  min-height: 23px;
}

.brand-shortcuts {
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.brand-shortcuts button {
  padding: 4px 8px 3px;
  border: 1px solid rgba(19, 18, 15, 0.18);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 8px;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.brand-shortcuts button:hover,
.brand-shortcuts button:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
  outline: 0;
}

.brand-shortcuts button.is-active {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.archive-result {
  align-self: end;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

@media (max-width: 1000px) {
  .intro-title-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .intro-description {
    display: none;
  }

  .archive-metrics > div {
    display: grid;
    gap: 2px;
  }
}

@media (max-width: 820px) {
  .intro {
    min-height: 410px;
    padding-block: 28px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .intro-overview {
    min-height: 170px;
  }

  .intro-tools {
    padding: 20px 0 0;
    border-top: 1px solid rgba(19, 18, 15, 0.16);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .intro {
    display: grid;
  }

  .archive-title {
    font-size: clamp(32px, 10.5vw, 42px);
  }

  .archive-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 10px;
  }
}

/* IP series browser ---------------------------------------------------- */

.series-browser {
  width: min(96vw, 1440px);
  height: min(91vh, 900px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  overflow: visible;
}

.series-browser::backdrop {
  background: rgba(25, 23, 19, 0.42);
  backdrop-filter: blur(10px) saturate(0.74);
}

.series-browser[open] .series-shell {
  animation: seriesArchiveEnter 420ms cubic-bezier(0.22, 0.78, 0.18, 1) both;
}

@keyframes seriesArchiveEnter {
  from { opacity: 0; }
}

.series-shell {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  background: var(--paper);
  box-shadow: 0 36px 110px rgba(9, 8, 7, 0.34);
  overflow: hidden;
}

.series-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid rgba(19, 18, 15, 0.14);
}

.series-content {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(132px, 0.3fr) minmax(360px, 1.7fr);
}

.series-overview {
  --series-accent: #33322d;
  --series-ink: #f4efe4;
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: clamp(20px, 2.4vw, 34px) clamp(28px, 4vw, 62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(34px, 6vw, 96px);
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid rgba(19, 18, 15, 0.14);
}

.series-overview::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--series-accent);
}

.series-hero-copy {
  min-width: 0;
  max-width: 780px;
  align-self: center;
  transition: opacity 220ms ease 80ms;
}

.series-hero-copy > span,
.series-hero-copy > div {
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
  color: var(--series-accent);
  opacity: 0.82;
}

.series-hero-copy h2 {
  margin: 7px 0 12px;
  font-family: "Songti SC", Georgia, serif;
  font-size: clamp(34px, 3.6vw, 58px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.series-hero-copy > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.series-hero-copy > div i {
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.series-overview > p {
  flex: 0 1 430px;
  max-width: 34em;
  margin: 0;
  color: var(--muted);
  font-family: "Songti SC", Georgia, serif;
  font-size: 12px;
  line-height: 1.75;
  text-align: right;
}

.series-index-panel {
  min-width: 0;
  min-height: 0;
  padding: 24px clamp(26px, 4vw, 60px) 18px;
  display: grid;
  grid-template-rows: 34px minmax(220px, 1fr) 42px;
  background: color-mix(in srgb, var(--paper) 94%, #fff 6%);
  transition: opacity 220ms ease 110ms;
}

.series-index-panel > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.series-deck-list {
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.series-deck-list::-webkit-scrollbar {
  display: none;
}

.series-volume-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.series-volume-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: 0;
  cursor: grab;
}

.series-volume-stage canvas:active {
  cursor: grabbing;
}

.series-volume-caption {
  position: absolute;
  left: 2px;
  bottom: 5px;
  max-width: min(46%, 520px);
  padding: 9px 12px 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.series-volume-caption span,
.series-volume-caption small {
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.series-volume-caption strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Songti SC", Georgia, serif;
  font-size: 13px;
  font-weight: 600;
}

.series-deck {
  flex: 0 0 auto;
  max-width: 260px;
  min-width: 0;
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(19, 18, 15, 0.18);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.series-deck span {
  flex: 0 0 auto;
  text-transform: uppercase;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.series-deck strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 600;
}

.series-deck:hover,
.series-deck:focus-visible {
  border-color: rgba(19, 18, 15, 0.46);
  color: var(--ink);
  outline: 0;
}

.series-deck.is-active {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.series-browser.is-book-transitioning .series-volume-stage canvas {
  opacity: 0;
}

.book-transition-clone {
  position: fixed;
  z-index: 30;
  margin: 0;
  border: 0;
  object-fit: cover;
  pointer-events: none;
  transform-origin: left center;
  will-change: transform, opacity;
}

.proposal-reader.is-book-transitioning .reader-book {
  opacity: 0;
}

/* Full proposal reader ------------------------------------------------- */

.proposal-reader {
  width: min(96vw, 1520px);
  height: min(94vh, 940px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  overflow: visible;
}

.proposal-reader::backdrop {
  background: rgba(25, 23, 19, 0.54);
  backdrop-filter: blur(9px) saturate(0.72);
}

.proposal-reader[open] .reader-shell {
  animation: readerEnter 380ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

@keyframes readerEnter {
  from {
    opacity: 0;
    transform: scale(0.975);
  }
}

.reader-shell {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) 68px;
  background: var(--paper);
  box-shadow:
    0 40px 120px rgba(9, 8, 7, 0.34),
    0 2px 10px rgba(9, 8, 7, 0.16);
  overflow: hidden;
}

.reader-header,
.reader-footer {
  position: relative;
  z-index: 3;
  display: grid;
  align-items: center;
  background: var(--paper);
}

.reader-header {
  grid-template-columns: 1fr auto;
  padding: 0 24px;
  border-bottom: 1px solid rgba(19, 18, 15, 0.14);
}

.reader-breadcrumb {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.reader-breadcrumb span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.reader-breadcrumb i {
  flex: 0 0 16px;
  height: 1px;
  background: rgba(19, 18, 15, 0.28);
}

.reader-close,
.series-close {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 0 8px 18px;
  border: 0;
  background: transparent;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
  cursor: pointer;
}

.reader-close span,
.series-close span {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 0.8;
}

.reader-content {
  min-height: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
}

.reader-spine {
  --reader-accent: #25241f;
  --reader-ink: #f5f1e7;
  min-height: 0;
  padding: 13px 0 12px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  gap: 10px;
  color: var(--reader-ink);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.18), transparent 22%, rgba(0,0,0,0.18) 92%),
    var(--reader-accent);
  box-shadow: inset -4px 0 8px rgba(0,0,0,0.14);
  overflow: hidden;
}

.reader-spine span,
.reader-spine strong {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.reader-spine span {
  text-transform: uppercase;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.16em;
  opacity: 0.75;
}

.reader-spine strong {
  max-height: 100%;
  overflow: hidden;
  font-family: "Songti SC", Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.reader-stage {
  min-width: 0;
  min-height: 0;
  position: relative;
  padding: 14px;
  display: grid;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.42), transparent 46%),
    #d7d4cd;
}

.reader-stage iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
  z-index: 1;
  border: 0;
  background: #fff;
  box-shadow: 0 14px 38px rgba(20, 18, 14, 0.2);
}

.reader-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #d7d4cd;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.reader-loading[hidden] {
  display: none;
}

.reader-footer {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 32px;
  padding: 0 24px;
  border-top: 1px solid rgba(19, 18, 15, 0.14);
}

.reader-footer > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
}

.reader-footer span,
.reader-footer a {
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.reader-footer strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Songti SC", Georgia, serif;
  font-size: 14px;
}

.reader-footer a {
  color: var(--ink);
  text-decoration: none;
}

@media (max-width: 820px) {
  .archive-index {
    margin-top: 8px;
  }

  .proposal-reader {
    width: 100vw;
    height: 100svh;
  }

  .series-browser {
    width: 100vw;
    height: 100svh;
  }

  .series-shell {
    grid-template-rows: 52px minmax(0, 1fr);
  }

  .series-content {
    grid-template-rows: minmax(118px, auto) minmax(0, 1fr);
    overflow: hidden;
  }

  .series-overview {
    min-height: 118px;
    padding: 18px 22px;
    gap: 18px;
  }

  .series-hero-copy h2 {
    margin: 6px 0 10px;
    font-size: clamp(27px, 7vw, 42px);
  }

  .series-overview > p {
    display: none;
  }

  .series-index-panel {
    min-height: 0;
    padding: 18px 18px max(14px, env(safe-area-inset-bottom));
    grid-template-rows: 30px clamp(250px, 43svh, 360px) auto;
    align-content: start;
  }

  .series-volume-caption {
    max-width: calc(100% - 4px);
    grid-template-columns: auto minmax(0, 1fr);
  }

  .series-volume-caption small {
    display: none;
  }

  .series-deck {
    flex: 0 0 auto;
    max-width: 220px;
    height: 28px;
  }

  .series-deck-list {
    gap: 7px;
    scroll-snap-type: none;
  }

  .reader-shell {
    grid-template-rows: 52px minmax(0, 1fr) 74px;
  }

  .reader-content {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .reader-stage {
    padding: 7px;
  }

  .reader-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding-inline: 14px;
  }

  .reader-footer > div {
    display: block;
  }

  .reader-footer > div > span,
  #readerMeta {
    display: none;
  }
}

/* Final clean-header cascade ------------------------------------------ */

body {
  grid-template-rows: 78px minmax(0, 1fr);
}

.site-header {
  height: 78px;
  padding: 0 clamp(24px, 3.4vw, 58px);
  display: flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.wordmark {
  display: block;
  line-height: 0;
}

.wordmark img {
  display: block;
  width: clamp(118px, 9.4vw, 148px);
  height: auto;
}

main {
  grid-template-rows: clamp(212px, 30.5vh, 252px) minmax(0, 1fr);
}

.intro {
  min-height: 0;
  padding: clamp(22px, 3.5vh, 38px) clamp(24px, 7vw, 112px) 16px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 0;
  text-align: center;
}

.intro-overview {
  width: min(780px, 100%);
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-overview .eyebrow {
  margin: 0 0 clamp(18px, 2.8vh, 28px);
  align-self: center;
  justify-content: center;
}

.intro-title-row {
  display: flex;
  grid-template-columns: none;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.8vh, 18px);
}

.archive-title {
  font-family: "Early Summer Serif", "初夏明朝体", "Songti SC", Georgia, serif;
  font-size: clamp(46px, 4.6vw, 72px);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.intro-description {
  display: block;
  margin: 0;
  max-width: 34em;
  font-size: 12px;
  line-height: 1.85;
}

.archive-metrics {
  width: min(700px, 100%);
  margin: clamp(20px, 2.8vh, 28px) 0 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 0;
}

.archive-metrics > div {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.archive-result {
  margin-top: 10px;
  align-self: center;
  text-transform: none;
}

@media (min-width: 821px) {
  .shelf-viewport {
    --shelf-stage-shift: clamp(20px, 3vh, 36px);
  }

  .three-shelf-stage {
    transform: translateY(var(--shelf-stage-shift));
  }
}

@media (max-width: 820px) {
  .site-header {
    height: auto;
    min-height: 112px;
    padding: 17px 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wordmark img {
    width: 126px;
  }

  .intro {
    min-height: 248px;
    padding: 30px 22px 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .intro-overview {
    min-height: 0;
  }

  .intro-overview .eyebrow {
    margin-bottom: 18px;
  }

  .intro-description {
    display: block;
  }

  .archive-title {
    font-size: clamp(38px, 9vw, 58px);
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 116px;
  }

  .intro {
    min-height: 265px;
    padding: 30px 22px 18px;
    display: grid;
  }

  .intro-overview .eyebrow {
    margin-bottom: 18px;
  }

  .archive-title {
    font-size: clamp(34px, 10vw, 44px);
  }

  .archive-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 10px;
  }
}
