:root {
  --ink: #24150f;
  --ink-soft: #5d4537;
  --night: #110c12;
  --night-2: #1d1119;
  --burgundy: #4d1225;
  --burgundy-deep: #250914;
  --gold: #dca84b;
  --gold-light: #ffe2a0;
  --paper: #f5e7c8;
  --paper-deep: #dec79d;
  --cream: #fff5dd;
  --accent: #bd7a3c;
  --accent-rgb: 189, 122, 60;
  --max-width: 1240px;
  --shadow: 0 28px 80px rgba(8, 3, 7, .38);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

.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;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--cream);
  background:
    radial-gradient(circle at 15% -10%, rgba(168, 89, 46, .24), transparent 35rem),
    radial-gradient(circle at 92% 20%, rgba(98, 31, 63, .26), transparent 38rem),
    linear-gradient(145deg, #120c11 0%, #1a1015 48%, #0c0a0c 100%);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .28;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 25% 25%, rgba(255, 225, 161, .08) 0 1px, transparent 1.8px);
  background-size: auto, 17px 17px;
  mix-blend-mode: soft-light;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .22em;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: #1b0d0b;
  background: var(--gold-light);
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  padding: .7rem 1rem;
  color: var(--night);
  background: var(--gold-light);
  border-radius: .5rem;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1001;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--accent));
  box-shadow: 0 0 16px rgba(255, 211, 117, .7);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(225, 172, 78, .18);
  background: rgba(14, 9, 12, .72);
  backdrop-filter: blur(18px) saturate(135%);
  transition: background .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  background: rgba(14, 9, 12, .94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max-width), calc(100% - 2rem));
  min-height: 4.8rem;
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  color: var(--cream);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  color: var(--gold-light);
  border: 1px solid rgba(240, 187, 85, .62);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 61, 34, .55), rgba(58, 15, 31, .2));
  box-shadow: inset 0 0 0 4px rgba(255, 225, 158, .04), 0 0 20px rgba(218, 159, 60, .14);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-copy span {
  margin-top: .25rem;
  color: rgba(255, 244, 218, .62);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.main-nav a,
.nav-action {
  position: relative;
  padding: .65rem .82rem;
  color: rgba(255, 246, 222, .76);
  border: 0;
  background: none;
  font-size: .86rem;
  font-weight: 650;
  letter-spacing: .035em;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.nav-action:hover,
.nav-action:focus-visible {
  color: var(--gold-light);
  outline: none;
  background: rgba(255, 226, 160, .06);
  border-radius: 999px;
}

.nav-action {
  margin-left: .5rem;
  color: #24140e;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(199, 139, 47, .2);
}

.nav-action:hover,
.nav-action:focus-visible {
  color: #140b08;
  background: linear-gradient(135deg, #fff0bd, #e6b95e);
}

.menu-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  color: var(--gold-light);
  border: 1px solid rgba(225, 172, 78, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 1.15rem;
  height: 1px;
  margin: 4px auto;
  content: "";
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-5px) rotate(-45deg);
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: calc(100vh - 4.8rem);
  display: grid;
  align-items: center;
  padding: clamp(4rem, 8vw, 8rem) 0;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 9% 4% auto auto;
  z-index: -1;
  width: min(47vw, 42rem);
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 184, 82, .16), rgba(91, 27, 49, .07) 48%, transparent 70%);
  filter: blur(8px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .72fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.hero-copy,
.volume-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  margin: 0 0 1rem;
  color: var(--gold-light);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .21em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  width: 2.1rem;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold));
}

.eyebrow::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero h1,
.volume-title,
.section-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: .98;
  text-wrap: balance;
}

.hero h1 {
  max-width: 13ch;
  color: transparent;
  background: linear-gradient(180deg, #fff1bd 0%, #dda94c 48%, #a95f2e 100%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 5px 0 rgba(49, 11, 25, .7));
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  letter-spacing: -.045em;
}

.hero-lead {
  max-width: 42rem;
  margin: 1.6rem 0 0;
  color: rgba(255, 246, 224, .76);
  font-family: var(--serif);
  font-size: clamp(1.13rem, 2vw, 1.42rem);
  line-height: 1.65;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .76rem 1.2rem;
  color: #21130d;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 14px 35px rgba(198, 132, 42, .2);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .025em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(198, 132, 42, .3);
}

.button.secondary {
  color: var(--gold-light);
  border-color: rgba(234, 184, 88, .42);
  background: rgba(255, 238, 200, .04);
  box-shadow: none;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 226, 160, .09);
}

.button.ghost {
  min-height: auto;
  padding: .45rem .2rem;
  color: rgba(255, 238, 205, .72);
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-color: rgba(226, 177, 86, .42);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.8rem;
  margin: 2.3rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  display: grid;
  gap: .05rem;
}

.hero-stats strong {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.45rem;
}

.hero-stats span {
  color: rgba(255, 246, 224, .52);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.library-stage {
  position: relative;
  max-width: 29rem;
  margin-inline: auto;
  perspective: 1200px;
}

.library-stage::before {
  position: absolute;
  inset: 8% -12% -5%;
  z-index: -1;
  content: "";
  border: 1px solid rgba(237, 182, 81, .16);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(215, 153, 57, .23), rgba(91, 27, 47, .08) 55%, transparent 73%);
  filter: blur(2px);
  animation: breathe 7s ease-in-out infinite;
}

.hero-cover {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 223, 144, .65);
  border-radius: .2rem .55rem .55rem .2rem;
  background: #2d1119;
  box-shadow:
    -12px 10px 0 #5f4024,
    -16px 14px 0 #26140e,
    0 45px 80px rgba(0, 0, 0, .5),
    0 0 45px rgba(218, 159, 62, .12);
  transform: rotateY(-7deg) rotateX(1deg) rotateZ(1deg);
  transform-origin: center left;
  animation: bookFloat 6.5s ease-in-out infinite;
}

.hero-cover::after,
.book-card-cover::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(115deg, transparent 24%, rgba(255, 255, 255, .18) 43%, transparent 58%);
  transform: translateX(-130%);
}

.hero-cover:hover::after,
.book-card:hover .book-card-cover::after {
  animation: sheen .85s ease;
}

.hero-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.orbit-seal {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  color: var(--gold-light);
  border: 1px solid rgba(241, 191, 94, .45);
  border-radius: 50%;
  background: rgba(33, 14, 18, .86);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .35), inset 0 0 0 4px rgba(255, 226, 160, .035);
  font-family: var(--serif);
  font-size: 1.05rem;
  animation: sealFloat 5.6s ease-in-out infinite;
}

.orbit-seal.one { top: 10%; left: -12%; }
.orbit-seal.two { top: 52%; right: -14%; animation-delay: -2s; }
.orbit-seal.three { bottom: -2%; left: 4%; animation-delay: -3.5s; }

.paper-section {
  position: relative;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(158, 95, 39, .08), transparent 24rem),
    repeating-linear-gradient(0deg, rgba(86, 48, 23, .018) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, #ead5ac 0%, #f8ebcf 6%, #f6e8c9 94%, #e1c694 100%);
  box-shadow: inset 0 20px 45px rgba(90, 45, 22, .12), inset 0 -20px 45px rgba(90, 45, 22, .1);
}

.paper-section::before,
.paper-section::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.25rem;
  content: "";
  background: linear-gradient(135deg, transparent 0 48%, #ead7b3 49% 52%, transparent 53%) 0 0 / 28px 28px;
}

.paper-section::before { top: -.65rem; }
.paper-section::after { bottom: -.65rem; transform: rotate(180deg); }

.section-pad {
  padding: clamp(5rem, 9vw, 8.5rem) 0;
}

.section-heading {
  display: grid;
  max-width: 52rem;
  margin-bottom: 2.8rem;
  gap: .75rem;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  margin: 0;
  color: #8d542c;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.section-title {
  color: #3b1b16;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  letter-spacing: -.035em;
}

.section-intro {
  max-width: 47rem;
  margin: 0;
  color: #634a3a;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.78;
}

.lore-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.lore-copy {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.8;
}

.lore-copy p:first-of-type::first-letter {
  float: left;
  margin: .14rem .12rem 0 0;
  color: #7c3d25;
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 700;
  line-height: .75;
}

.lore-rules {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 1rem;
  list-style: none;
}

.lore-rules li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.2rem;
  border: 1px solid rgba(99, 54, 30, .17);
  border-radius: .85rem;
  background: rgba(255, 250, 234, .42);
  box-shadow: 0 13px 30px rgba(85, 43, 19, .07);
}

.rule-number {
  position: absolute;
  top: 50%;
  left: 1.1rem;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: #f7e9c9;
  border-radius: 50%;
  background: #6c2c27;
  box-shadow: inset 0 0 0 3px rgba(255, 232, 183, .12);
  font-family: var(--serif);
  transform: translateY(-50%);
}

.lore-rules strong {
  display: block;
  color: #4e241d;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.lore-rules span:last-child {
  display: block;
  margin-top: .2rem;
  color: #76594a;
  font-size: .88rem;
}

.dark-section {
  position: relative;
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.dark-section .section-title { color: var(--gold-light); }
.dark-section .section-kicker { color: var(--gold); }
.dark-section .section-intro { color: rgba(255, 246, 224, .66); }

.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 34rem;
}

.search-wrap::before {
  position: absolute;
  top: 50%;
  left: 1rem;
  content: "⌕";
  color: var(--gold);
  font-size: 1.25rem;
  transform: translateY(-52%);
}

.archive-search {
  width: 100%;
  min-height: 3.2rem;
  padding: .75rem 1rem .75rem 2.8rem;
  color: var(--cream);
  border: 1px solid rgba(230, 176, 79, .26);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.archive-search:focus {
  border-color: rgba(255, 218, 138, .72);
  box-shadow: 0 0 0 4px rgba(220, 168, 75, .1);
}

.archive-count {
  color: rgba(255, 244, 219, .55);
  font-size: .8rem;
  white-space: nowrap;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.book-card {
  --rx: 0deg;
  --ry: 0deg;
  --glow-x: 50%;
  --glow-y: 30%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(110px, .44fr) minmax(0, .82fr);
  min-height: 19rem;
  overflow: hidden;
  color: var(--cream);
  border: 1px solid rgba(234, 184, 88, .19);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(var(--accent-rgb), .16), transparent 48%),
    linear-gradient(145deg, rgba(61, 28, 36, .93), rgba(21, 13, 17, .97));
  box-shadow: 0 22px 55px rgba(0, 0, 0, .26);
  text-decoration: none;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .18s ease, border-color .25s ease, box-shadow .25s ease;
}

.book-card:hover,
.book-card:focus-visible {
  border-color: rgba(246, 201, 109, .55);
  outline: none;
  box-shadow: 0 30px 75px rgba(0, 0, 0, .42), 0 0 40px rgba(var(--accent-rgb), .09);
}

.book-card[hidden] { display: none; }

.book-card-cover {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #2b161a;
  transform: translateZ(16px);
}

.book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.35rem 1.3rem 1.15rem;
  transform: translateZ(12px);
}

.band-label {
  color: var(--gold);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.book-card h3 {
  margin: .65rem 0 .75rem;
  color: #ffedbd;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.12;
  text-wrap: balance;
}

.book-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 246, 224, .65);
  font-family: var(--serif);
  font-size: .9rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-top: auto;
  padding-top: 1rem;
  color: rgba(255, 240, 210, .46);
  font-size: .7rem;
}

.card-arrow {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--gold-light);
  border: 1px solid rgba(234, 184, 88, .25);
  border-radius: 50%;
  transition: transform .2s ease, background .2s ease;
}

.book-card:hover .card-arrow {
  background: rgba(255, 225, 160, .09);
  transform: translateX(3px);
}

.empty-state {
  display: none;
  padding: 2rem;
  color: rgba(255, 246, 224, .65);
  border: 1px dashed rgba(234, 184, 88, .28);
  border-radius: 1rem;
  text-align: center;
}

.empty-state.is-visible { display: block; }

.quote-band {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(30, 8, 17, .95), rgba(73, 20, 37, .9), rgba(30, 8, 17, .95)),
    radial-gradient(circle, rgba(210, 151, 54, .18), transparent);
  border-block: 1px solid rgba(226, 170, 70, .18);
}

.quote-band blockquote {
  max-width: 880px;
  margin: 0 auto;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 4.3rem);
  font-weight: 700;
  line-height: 1.16;
  text-align: center;
  text-wrap: balance;
}

.quote-band cite {
  display: block;
  margin-top: 1.5rem;
  color: rgba(255, 246, 224, .52);
  font-family: var(--sans);
  font-size: .75rem;
  font-style: normal;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
}

/* Band pages */
.volume-hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 7rem) 0 clamp(4rem, 8vw, 7.5rem);
  overflow: hidden;
}

.volume-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 78% 30%, rgba(var(--accent-rgb), .25), transparent 32rem),
    linear-gradient(145deg, #130d11, #28101b 60%, #0d0a0c);
}

.volume-hero::after {
  position: absolute;
  inset: auto -15% -50% 35%;
  z-index: -1;
  height: 35rem;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .18), transparent 68%);
  filter: blur(20px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 2rem;
  color: rgba(255, 244, 220, .52);
  font-size: .78rem;
}

.breadcrumb a {
  color: var(--gold-light);
  text-decoration: none;
}

.volume-hero-grid {
  display: grid;
  grid-template-columns: minmax(240px, .52fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6.5rem);
}

.volume-cover-wrap {
  position: relative;
  max-width: 25rem;
  margin-inline: auto;
  perspective: 1000px;
}

.volume-cover-wrap::before {
  position: absolute;
  inset: 10% -12% -8%;
  z-index: -1;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .31), transparent 68%);
  filter: blur(14px);
}

.volume-cover {
  overflow: hidden;
  border: 1px solid rgba(255, 224, 149, .65);
  border-radius: .22rem .55rem .55rem .22rem;
  box-shadow: -10px 9px 0 #69482c, -14px 12px 0 #21110c, 0 38px 70px rgba(0, 0, 0, .48);
  transform: rotateY(5deg) rotateZ(-.7deg);
  transition: transform .35s ease;
}

.volume-cover-wrap:hover .volume-cover {
  transform: rotateY(0) rotateZ(0) translateY(-5px);
}

.volume-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.volume-number {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.volume-number::after {
  width: 4rem;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--gold), transparent);
}

.volume-title {
  max-width: 14ch;
  margin-top: 1rem;
  overflow-wrap: anywhere;
  hyphens: auto;
  color: transparent;
  background: linear-gradient(180deg, #fff0bd, #dda84c 55%, #a86632);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 4px 0 rgba(49, 11, 25, .68));
  font-size: clamp(3rem, 6.5vw, 6.1rem);
  letter-spacing: -.045em;
}

.volume-subtitle {
  margin: 1.2rem 0 0;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  letter-spacing: .04em;
}

.volume-teaser {
  max-width: 46rem;
  margin: 1.4rem 0 0;
  color: rgba(255, 247, 228, .74);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  line-height: 1.72;
}

.volume-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.volume-facts li {
  padding: .48rem .8rem;
  color: rgba(255, 245, 220, .66);
  border: 1px solid rgba(232, 179, 80, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  font-size: .74rem;
}

.blurb-section {
  position: relative;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 20%, rgba(var(--accent-rgb), .1), transparent 30rem),
    linear-gradient(90deg, #e6cca0, #f7e9ca 7%, #f7e9ca 93%, #dfc08d);
}

.blurb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .55fr);
  align-items: start;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.blurb-copy {
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.86;
}

.blurb-copy h2 + p::first-letter {
  float: left;
  margin: .18rem .12rem 0 0;
  color: #783b25;
  font-size: 4.8rem;
  font-weight: 700;
  line-height: .73;
}

.blurb-aside {
  position: sticky;
  top: 6.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(93, 50, 27, .18);
  border-radius: 1rem;
  background: rgba(255, 250, 235, .5);
  box-shadow: 0 18px 40px rgba(82, 43, 20, .08);
}

.blurb-aside h2 {
  margin: 0 0 .8rem;
  color: #4c231c;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.blurb-aside p {
  margin: 0;
  color: #6a5040;
  font-size: .88rem;
}

.blurb-aside .volume-facts {
  margin-top: 1rem;
}

.blurb-aside .volume-facts li {
  color: #694837;
  border-color: rgba(93, 50, 27, .22);
  background: rgba(117, 65, 35, .06);
}

.sketch-section {
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.sketch-section .section-title,
.reader-section .section-title {
  color: var(--gold-light);
}

.sketch-section .section-kicker,
.reader-section .section-kicker {
  color: var(--gold);
}

.sketch-section .section-intro,
.reader-section .section-intro {
  color: rgba(255, 246, 224, .68);
}

.sketch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.5rem);
}

.sketch-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: clamp(.65rem, 1.5vw, 1rem);
  color: var(--ink);
  border: 0;
  background: #ead7b2;
  box-shadow: 0 24px 65px rgba(0, 0, 0, .34);
  cursor: zoom-in;
  transform: rotate(var(--sketch-rotate, -.5deg));
  transition: transform .25s ease, box-shadow .25s ease;
}

.sketch-card:nth-child(2) { --sketch-rotate: .7deg; margin-top: 2rem; }

.sketch-card:hover,
.sketch-card:focus-visible {
  outline: 3px solid rgba(245, 202, 111, .65);
  outline-offset: 4px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .44);
  transform: rotate(0) translateY(-5px);
}

.sketch-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: sepia(.08) contrast(1.03);
}

.sketch-card figcaption {
  padding: .85rem .45rem .25rem;
  color: #51372a;
  font-family: var(--serif);
  font-size: .95rem;
  font-style: italic;
  text-align: center;
}

.reader-section {
  position: relative;
  padding: clamp(4rem, 7vw, 7rem) 0;
  border-block: 1px solid rgba(226, 170, 70, .17);
  background: linear-gradient(160deg, #170d13, #260f1a 58%, #100b0e);
}

.reader-shell {
  overflow: hidden;
  border: 1px solid rgba(234, 184, 88, .23);
  border-radius: 1.1rem;
  background: #120d10;
  box-shadow: var(--shadow);
}

.reader-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(234, 184, 88, .16);
  background: rgba(255, 255, 255, .035);
}

.reader-title {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1rem;
}

.reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.reader-link,
.reader-load {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  padding: .45rem .75rem;
  color: rgba(255, 242, 211, .8);
  border: 1px solid rgba(234, 184, 88, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  font-size: .74rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.reader-link:hover,
.reader-link:focus-visible,
.reader-load:hover,
.reader-load:focus-visible {
  color: var(--gold-light);
  outline: none;
  background: rgba(255, 226, 160, .08);
}

.reader-stage {
  position: relative;
  min-height: min(75vh, 56rem);
  background:
    radial-gradient(circle at center, rgba(var(--accent-rgb), .14), transparent 30rem),
    #0c090b;
}

.reader-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.reader-placeholder-inner {
  max-width: 32rem;
}

.reader-glyph {
  display: grid;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.2rem;
  place-items: center;
  color: var(--gold-light);
  border: 1px solid rgba(234, 184, 88, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .025);
  box-shadow: inset 0 0 0 7px rgba(255, 226, 160, .025), 0 0 35px rgba(var(--accent-rgb), .12);
  font-family: var(--serif);
  font-size: 2rem;
}

.reader-placeholder h2 {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 2rem;
}

.reader-placeholder p {
  margin: .75rem 0 1.25rem;
  color: rgba(255, 246, 224, .6);
}

.pdf-frame {
  width: 100%;
  height: min(78vh, 62rem);
  border: 0;
  background: #2b2729;
}

.pdf-frame[hidden],
.reader-placeholder[hidden] { display: none; }

.volume-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.pagination-card {
  display: grid;
  padding: 1.2rem;
  color: rgba(255, 246, 224, .76);
  border: 1px solid rgba(234, 184, 88, .18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .025);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.pagination-card.next { text-align: right; }

.pagination-card:hover,
.pagination-card:focus-visible {
  outline: none;
  border-color: rgba(234, 184, 88, .5);
  background: rgba(255, 226, 160, .045);
  transform: translateY(-3px);
}

.pagination-card span {
  color: rgba(255, 244, 220, .42);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.pagination-card strong {
  margin-top: .3rem;
  color: var(--gold-light);
  font-family: var(--serif);
  line-height: 1.25;
}

.site-footer {
  padding: 3rem 0 2rem;
  color: rgba(255, 244, 220, .48);
  border-top: 1px solid rgba(226, 170, 70, .14);
  background: #0c090b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
}

.footer-title {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.footer-copy {
  max-width: 36rem;
  margin: .45rem 0 0;
  font-size: .78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  font-size: .78rem;
}

.footer-links a {
  color: rgba(255, 240, 208, .66);
}

.copyright {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .05);
  font-size: .7rem;
  text-align: center;
}

.lightbox {
  width: min(96vw, 1050px);
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  color: var(--cream);
  border: 1px solid rgba(240, 191, 96, .45);
  border-radius: .8rem;
  background: #130d11;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .7);
}

.lightbox::backdrop {
  background: rgba(5, 3, 4, .88);
  backdrop-filter: blur(8px);
}

.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox figcaption { padding: .85rem 1rem; color: rgba(255, 244, 220, .68); font-family: var(--serif); text-align: center; }

.lightbox-close {
  position: absolute;
  top: -.9rem;
  right: -.9rem;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  color: var(--night);
  border: 0;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
  font-size: 1.2rem;
  cursor: pointer;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bookFloat {
  0%, 100% { transform: rotateY(-7deg) rotateX(1deg) rotateZ(1deg) translateY(0); }
  50% { transform: rotateY(-4deg) rotateX(0deg) rotateZ(.3deg) translateY(-8px); }
}

@keyframes sealFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

@keyframes breathe {
  0%, 100% { opacity: .65; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes sheen {
  to { transform: translateX(130%); }
}

@media (max-width: 980px) {
  .hero-grid,
  .volume-hero-grid,
  .lore-grid,
  .blurb-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy { order: 0; }
  .library-stage { width: min(78vw, 25rem); order: 1; }
  .hero { text-align: center; }
  .hero h1, .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .eyebrow { justify-content: center; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .volume-cover-wrap { width: min(72vw, 23rem); }
  .volume-copy { text-align: center; }
  .volume-title { margin-inline: auto; }
  .volume-number, .volume-facts, .button-row { justify-content: center; }
  .blurb-aside { position: static; }
}

@media (max-width: 760px) {
  .nav-shell { min-height: 4.25rem; }
  .brand-copy span { display: none; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: calc(100% + .45rem);
    right: 1rem;
    left: 1rem;
    display: none;
    padding: .75rem;
    border: 1px solid rgba(234, 184, 88, .2);
    border-radius: 1rem;
    background: rgba(16, 10, 13, .98);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .48);
  }

  .main-nav.is-open { display: grid; }
  .main-nav a, .nav-action { width: 100%; text-align: center; }
  .nav-action { margin: .25rem 0 0; }
  .hero { min-height: auto; padding-top: 3rem; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 5rem); }
  .book-grid { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: 36% 1fr; min-height: 18rem; }
  .archive-toolbar { align-items: stretch; flex-direction: column; }
  .search-wrap { max-width: none; }
  .archive-count { padding-left: .4rem; }
  .sketch-grid { grid-template-columns: 1fr; }
  .sketch-card:nth-child(2) { margin-top: 0; }
  .reader-stage { min-height: 70vh; }
  .reader-toolbar { align-items: flex-start; flex-direction: column; }
  .reader-actions { width: 100%; }
  .reader-link, .reader-load { flex: 1; }
  .volume-pagination { grid-template-columns: 1fr; }
  .pagination-card.next { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .container, .nav-shell { width: min(100% - 1.2rem, var(--max-width)); }
  .brand-mark { width: 2.35rem; height: 2.35rem; }
  .brand-copy strong { font-size: .84rem; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: .6rem; }
  .hero-stats li { padding: .65rem .25rem; border: 1px solid rgba(234, 184, 88, .13); border-radius: .7rem; }
  .hero-stats strong { font-size: 1.1rem; }
  .hero-stats span { font-size: .57rem; }
  .orbit-seal { display: none; }
  .book-card { grid-template-columns: 42% 1fr; min-height: 16rem; }
  .book-card-copy { padding: 1rem .9rem; }
  .book-card h3 { font-size: 1.08rem; }
  .book-card p { font-size: .78rem; -webkit-line-clamp: 3; }
  .volume-title { font-size: clamp(2.25rem, 11.5vw, 3.4rem); }
  .button-row .button { width: 100%; }
  .reader-actions { display: grid; grid-template-columns: 1fr; }
  .reader-link, .reader-load { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
