:root {
  color-scheme: dark;
  --page: #101515;
  --panel: #171b1a;
  --ink: #f6f0e5;
  --muted: #bdbfb5;
  --gold: #dbc390;
  --rule: #d5cbb42e;
  --serif: "Iowan Old Style", Baskerville, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
section[id] { scroll-margin-top: 2rem; }
.shell { width: min(100% - 7rem, 71rem); margin-inline: auto; }

.skip {
  position: fixed;
  z-index: 5;
  inset: .75rem auto auto .75rem;
  padding: .5rem .75rem;
  background: var(--ink);
  color: var(--page);
  transform: translateY(calc(-100% - 1rem));
  opacity: 0;
  pointer-events: none;
}
.skip:focus { transform: none; opacity: 1; pointer-events: auto; }

.header { position: absolute; z-index: 2; inset: 0 0 auto; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 5.35rem; border-bottom: 1px solid #e7d5ad4a; }
.brand { font: 400 1.75rem/1 var(--serif); letter-spacing: .035em; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .2rem clamp(.9rem, 2.5vw, 2.1rem); }
nav a { padding-block: .6rem; font-size: .85rem; text-decoration: none; }
nav a:hover { color: var(--gold); }
.text-link:hover { text-decoration-thickness: 2px; }

.hero {
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(39rem, 56vw, 54rem);
  background: #0c1a22;
}
.hero-art, .hero::after { position: absolute; inset: 0; }
.hero-art { z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 66% center; }
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #091114f7 0%, #091114cc 25%, #09111438 60%, #09111400 86%),
              linear-gradient(180deg, #0810139c 0%, transparent 22%, transparent 70%, var(--page) 100%);
}
.hero-inner { position: relative; padding-block: 8.5rem 4.5rem; }
.eyebrow { color: var(--gold); font-size: .72rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 {
  margin-top: 1.45rem;
  font: 400 clamp(5rem, 10vw, 9.4rem)/.82 var(--serif);
  letter-spacing: -.045em;
  text-shadow: 0 3px 45px #081013a6;
}
.hero h1 span {
  display: block;
  margin-bottom: .35em;
  font-size: .28em;
  line-height: 1.1;
  letter-spacing: .02em;
}
.hero-volume { margin-top: 1.15rem; font: italic 400 clamp(1.65rem, 3.1vw, 2.8rem)/1.2 var(--serif); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.3rem; margin-top: 2.05rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 46px;
  padding: .65rem 1.1rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #181812;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: #f4dfaa; }
.hero-status { color: #e4ded1; font-size: .85rem; }

h2 { font: 400 clamp(2.7rem, 5.3vw, 4.65rem)/.97 var(--serif); letter-spacing: -.04em; }
.book {
  display: grid;
  grid-template-columns: minmax(13rem, 20rem) 1fr;
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
  padding-block: clamp(3.2rem, 7vw, 6.5rem);
  padding-inline: clamp(0rem, 4vw, 3rem);
}
.book-copy h2 { margin-top: .55rem; }
.lead { margin-block: 1.35rem .7rem; color: var(--ink); font-size: clamp(1.06rem, 2vw, 1.25rem); }
.book-copy > p:not(.eyebrow):not(.lead), .world-heading p { max-width: 34rem; color: var(--muted); }
.details { display: flex; flex-wrap: wrap; gap: 1.1rem 3.5rem; margin-top: 1.6rem; padding-top: 1.05rem; border-top: 1px solid var(--rule); }
.details dt { color: var(--muted); font-size: .78rem; }
.details dd { color: var(--ink); font-size: .92rem; }

.world { padding-block: clamp(2.75rem, 6vw, 5.5rem); background: var(--panel); border-block: 1px solid var(--rule); }
.world-heading { display: grid; grid-template-columns: minmax(12rem, .8fr) 1fr; align-items: end; gap: .5rem 2rem; margin-bottom: 1.65rem; }
.landscape img { width: 100%; border: 1px solid var(--rule); }
.landscape figcaption { margin-top: .6rem; color: var(--muted); font-size: .81rem; }
.text-link { display: inline-block; margin-top: .85rem; color: var(--gold); text-underline-offset: .23em; }
.footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: .87rem; }
.footer-inner { min-height: 5rem; }

@media (max-width: 67rem) {
  .shell { width: min(100% - 4rem, 71rem); }
}
@media (max-width: 43rem) {
  .shell { width: calc(100% - 2.5rem); }
  .header-inner { min-height: 4.4rem; gap: .65rem; }
  .brand { font-size: 1.4rem; }
  nav { gap: .2rem .7rem; }
  nav a { font-size: .76rem; }
  .hero { min-height: clamp(35rem, 86vh, 47rem); align-items: end; }
  .hero-art img { object-position: 53% top; }
  .hero::after {
    background: linear-gradient(180deg, #081013c2 0%, #09111424 25%, #09111452 42%, #091114e8 69%, var(--page) 100%);
  }
  .hero-inner { padding-block: 16.5rem 4.1rem; }
  .hero h1 { font-size: clamp(4.35rem, 16.25vw, 6.75rem); }
  .hero h1 span { font-size: .32em; }
  .hero-actions { gap: .8rem 1rem; }
  .book, .world-heading { grid-template-columns: 1fr; }
  .book { gap: 2.15rem; }
  .world-heading { margin-bottom: 1.3rem; }
  .footer-inner { min-height: 4.2rem; }
}
@media (max-width: 23rem) {
  .header-inner .brand { font-size: 1.25rem; }
  .header-inner nav { gap: .2rem .55rem; }
}

.inner-page .header { position: relative; }
.header nav a[aria-current="page"] { color: var(--gold); text-decoration: underline; text-underline-offset: .35em; }
.page-head { padding-block: clamp(2.7rem, 7vw, 5.75rem) clamp(1.6rem, 4vw, 3rem); }
.page-head h1, .book-copy h1 {
  margin-top: .6rem;
  font: 400 clamp(3rem, 7vw, 6.3rem)/.95 var(--serif);
  letter-spacing: -.05em;
}
.page-deck { max-width: 46rem; margin-top: 1.2rem; color: var(--muted); font-size: 1.05rem; }
.book-detail { padding-inline: 0; }
.book-detail .book-copy h1 { font-size: clamp(2.85rem, 5.8vw, 5.4rem); text-wrap: balance; }
.book-blurb { display: grid; gap: .95rem; max-width: 42rem; color: var(--muted); margin-top: 1.4rem; }
.book-blurb strong { color: var(--ink); }
.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.5rem; }
.book-actions .text-link { margin: 0; }
.book-stage {
  position: relative;
  width: calc(100% - 2.3rem);
  margin-inline: auto;
  perspective: 1150px;
  isolation: isolate;
}
.book-stage::before {
  content: "";
  position: absolute;
  inset: auto -14% -7% -12%;
  height: 30%;
  transform: rotate(-5deg);
  background: radial-gradient(ellipse, #030504f5, #02040569 45%, #02040500 72%);
  filter: blur(11px);
  z-index: -1;
}
.book-object {
  --depth: 54px;
  --half-depth: calc(var(--depth) / 2);
  position: relative;
  transform: rotateY(-32deg) rotateX(7deg) rotateZ(-2deg);
  transform-style: preserve-3d;
}
.book-front {
  container-type: inline-size;
  transform: translateZ(var(--half-depth));
  position: relative;
  overflow: hidden;
  aspect-ratio: 500 / 792;
  isolation: isolate;
  background: #0b0d10;
  border-radius: 3px 1px 1px 3px;
  box-shadow: inset 0 0 0 1px #edde9d35, 0 16px 35px #0008;
}
.book-front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 27%); }
.book-front::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 49%, #0b0d1066 59%, #0b0d10 73%),
              linear-gradient(90deg, #050506ba, #05050600 5%, #05050600 98%, #e1b9744d);
}
.cover-type { position: absolute; z-index: 2; inset: auto 8% 6.5%; display: grid; gap: 2.4cqw; }
.cover-type span {
  color: #ece1cc;
  font: 650 4.1cqw/1.2 var(--sans);
  text-transform: uppercase;
  letter-spacing: .095em;
}
.cover-type strong {
  color: #f6d99c;
  font: 800 15.8cqw/.83 "DIN Condensed", "Arial Narrow", var(--sans);
  text-transform: uppercase;
  letter-spacing: -.025em;
}
.cover-type span:last-child { font-size: 4.45cqw; margin-top: .45em; }
.book-edge, .book-top { position: absolute; box-shadow: inset 0 .18rem .3rem #241c1594; }
.book-edge {
  top: .23rem; bottom: .23rem; left: calc(100% - 1px); width: var(--depth);
  transform-origin: left center;
  transform: translateZ(var(--half-depth)) rotateY(90deg);
  background: linear-gradient(180deg, #1c17004f, #fff7db17 38%, #22170449),
              repeating-linear-gradient(90deg, #d2c29b 0 1px, #f1e7cc 1px 4px);
  border-right: 3px solid #383024;
}
.book-top {
  inset: 1px 0 auto .2rem; height: var(--depth);
  transform-origin: center top;
  transform: translateZ(var(--half-depth)) rotateX(-90deg);
  background: repeating-linear-gradient(0deg, #ceb98e 0 1px, #dfd4b5 1px 4px);
  border-bottom: 3px solid #383024;
}
.reader-shell { width: min(100% - 2.5rem, 45rem); margin-inline: auto; }
.chapters-nav { display: block; margin-bottom: 2rem; border: 1px solid var(--rule); background: var(--panel); }
.chapters-nav ol { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.chapters-nav li + li { border-left: 1px solid var(--rule); }
.chapters-nav a { display: block; padding: .8rem 1rem; color: var(--ink); font-size: .88rem; }
.chapters-nav a span { display: block; color: var(--gold); font-size: .72rem; }
.reader { color: var(--ink); font: 400 clamp(1.15rem, 2.4vw, 1.34rem)/1.68 var(--serif); }
.chapter { margin-block: 0 3rem; }
.chapter + .chapter { border-top: 1px solid var(--rule); padding-top: 3rem; }
.chapter h2 { margin-bottom: 1.25rem; font-size: clamp(1.85rem, 4vw, 3.4rem); }
.chapter p + p { margin-top: .7em; }
.chapter blockquote { margin: 0 0 1.5rem; padding-left: 1.1rem; border-left: 2px solid var(--gold); color: var(--muted); }
.chapter blockquote:not(:first-child) { margin-top: 1.1rem; }
.chapter figure { width: min(18rem, 84%); margin: 1.6rem auto 0; }
.chapter figcaption { margin-top: .55rem; color: var(--muted); font: .83rem/1.4 var(--sans); }
.reader-end { margin-bottom: 3.5rem; }
.reader-tools[hidden], .reader-pager[hidden], .chapter[hidden], .reading-page[hidden] { display: none; }
.reader-tools { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; margin: 0 0 .65rem; padding-block: .35rem; background: var(--page); }
.reader-button {
  min-height: 44px;
  padding: .48rem .75rem;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--rule);
  font: 650 .82rem/1.1 var(--sans);
  cursor: pointer;
}
.reader-button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.reader-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.reader-button:disabled { opacity: .5; cursor: default; }
.reader-paged { background: var(--panel); padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--rule); }
.reader-paged .chapter { margin: 0; border: 0; padding: 0; }
.chapter > *, .reading-page > * { scroll-margin-top: 4.2rem; }
.reading-page:focus { outline: none; }
.reader-pager { display: flex; align-items: center; justify-content: space-between; gap: .35rem; margin: 1rem 0; }
.reader-pager [role="status"] { color: var(--muted); font-size: .83rem; text-align: center; }
.scenes { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.world-heading h2 { font-size: clamp(2.35rem, 5.1vw, 3.8rem); }
.scene-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 2.5rem); margin-top: clamp(1.65rem, 4vw, 3.5rem); }
.scene img { width: 100%; height: auto; background: var(--panel); }
.scene figcaption { color: var(--ink); font: 1.2rem/1.3 var(--serif); padding-top: .7rem; }
.scene-feature figcaption { color: var(--gold); font-size: clamp(1.35rem, 2.6vw, 2rem); }
.scene-concert { margin-top: clamp(1.65rem, 4vw, 3.5rem); scroll-margin-top: 1.25rem; }
.scene-concert figcaption span { display: block; margin-top: .3rem; color: var(--muted); font: .88rem/1.5 var(--sans); }
.atlas {
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
  background: radial-gradient(ellipse at 45% 5%, #1c2a32, var(--page) 75%);
}
.map-frame {
  padding: clamp(.55rem, 2vw, 1.55rem);
  border: 1px solid var(--rule);
  background: #121a1e;
  box-shadow: 0 1.5rem 3.5rem #0005;
}
.map-view {
  display: grid;
  justify-items: end;
  gap: clamp(.55rem, 1.5vw, 1rem);
  text-decoration: none;
}
.map-view img {
  width: 100%;
  border: 1px solid #d5cbb45c;
  filter: saturate(.88) brightness(.94) contrast(1.05);
}
.map-cta {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 44px;
  padding: .25rem .85rem;
  border: 1px solid var(--rule);
  color: var(--gold);
  font-size: .85rem;
}
.map-view:hover .map-cta, .map-view:focus-visible .map-cta { border-color: var(--gold); }
.author-story { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(12rem, 1fr); gap: clamp(1.8rem, 5vw, 5rem); padding-block: .4rem 4.75rem; }
.author-prose h2 { font-size: clamp(1.8rem, 3.7vw, 2.8rem); }
.author-prose h2:not(:first-child) { margin-top: 2rem; }
.author-prose p { max-width: 41rem; color: var(--muted); margin-top: .75rem; }
.author-story aside figure { background: var(--panel); }
.author-story aside img { width: 100%; max-height: 32rem; object-fit: cover; object-position: center 20%; }
.author-story aside figcaption { color: var(--muted); font-size: .8rem; padding: .5rem .65rem; }
@media (max-width: 43rem) {
  .header-inner nav { justify-content: flex-end; }
  .book-stage { width: min(15rem, calc(100% - 2rem)); margin-left: .8rem; }
  .book-object { --depth: 42px; }
  .book-detail { gap: 2.75rem; }
  .author-story { grid-template-columns: 1fr; }
  .author-story aside { grid-row: 1; max-width: 20rem; }
}
@media (max-width: 31rem) {
  .chapters-nav ol, .scene-grid { grid-template-columns: 1fr; }
  .chapters-nav li + li { border-left: 0; border-top: 1px solid var(--rule); }
}
