@font-face {
  font-family: 'Rehearsal Serif';
  src: url('/fonts/welcome-editorial.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('/fonts/source-sans-3.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --room: #110f0c;
  --cream: #f6ecd6;
  --type-muted: #c7baaa;
  --copper: #e0ad89;
  --gilt: #eccca3;
  --fine-rule: #bf9a703d;
  --serif: 'Rehearsal Serif', Georgia, serif;
  --sans: 'Source Sans 3', 'Segoe UI', sans-serif;
  --mono: 'Cascadia Mono', 'Courier New', monospace;
  --gutter: clamp(22px, 6.2vw, 112px);
  --header-height: 72px;
  --cut: cubic-bezier(.2, .69, .17, 1);
  --walnut: url('/images/rehearsal-desk-1100.webp');
  scrollbar-gutter: stable;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-height) + 10px); }
body {
  min-width: 0;
  margin: 0;
  background-color: var(--room);
  color: var(--cream);
  font: 400 1rem/1.55 var(--sans);
}

figure, p, h1, h2, h3 { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; color: inherit; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 5px; }
.novel-main:focus-visible, .novel-synopsis:focus-visible, .novel-excerpt:focus-visible { outline: none; }
.novel-main:focus-visible h1, .novel-synopsis:focus-visible h2, .novel-excerpt:focus-visible h2 {
  outline: 2px solid var(--copper);
  outline-offset: 8px;
}
::selection { background: #8a543b; color: #fff7e9; }
.novel-wrap { width: min(100% - 2 * var(--gutter), 1260px); margin-inline: auto; }

.novel-skip {
  position: fixed;
  z-index: 10;
  inset: 14px auto auto 14px;
  padding: .6rem 1rem;
  background: var(--cream);
  color: var(--room);
  translate: 0 -150%;
}

.novel-skip:focus { translate: 0 0; }
.novel-header {
  position: sticky;
  z-index: 3;
  top: 0;
  border-bottom: 1px solid var(--fine-rule);
  background: linear-gradient(115deg, #211912f5, #15120ef5 47%, #1c1611f5);
  box-shadow: 0 8px 30px #0a070434;
  backdrop-filter: blur(12px);
}

.novel-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1rem;
  min-height: var(--header-height);
}

.novel-back, .novel-imprint, .novel-index a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.novel-back {
  justify-self: start;
  gap: .72rem;
  color: var(--type-muted);
  font-size: .91rem;
  transition: color 200ms;
}

.novel-back-arrow {
  display: grid;
  width: 32px;
  aspect-ratio: 1;
  place-items: center;
  flex: none;
  border: 1px solid var(--fine-rule);
  border-radius: 50%;
  color: var(--gilt);
  transition: background 220ms, border-color 220ms, translate 320ms var(--cut);
}

.novel-back:hover { color: var(--cream); }
.novel-back:hover .novel-back-arrow { translate: -3px 0; border-color: #b68d60; background: #bc976621; }

.novel-imprint {
  justify-self: center;
  gap: .7rem;
  font: 600 clamp(1.08rem, 1.55vw, 1.44rem)/1.05 var(--serif);
  text-wrap: balance;
}

.imprint-stamp {
  display: inline-grid;
  width: 34px;
  aspect-ratio: 1;
  flex: none;
  place-items: center;
  border: 1px solid currentColor;
  outline: 1px solid #b18c655c;
  outline-offset: -4px;
  color: var(--gilt);
  font: 600 .94rem/1 var(--serif);
}

.novel-imprint .imprint-stamp { border-color: #ba936578; background: #ad865813; }
.novel-imprint:hover .novel-imprint-name { color: var(--gilt); }

.novel-index {
  display: flex;
  justify-self: end;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--fine-rule);
  border-radius: 4px;
  background: #100e0b70;
}

.novel-index a {
  justify-content: center;
  gap: .45em;
  padding: 0 .77rem;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--type-muted);
  font-size: .9rem;
  line-height: 1.25;
  text-align: center;
  transition: color 220ms, background-color 220ms, border-color 220ms;
}

.novel-index a:hover { background: #bf946312; color: var(--cream); }
.novel-index a[aria-current="location"] {
  border-color: #b58b5c63;
  background: #b98b5529;
  color: var(--gilt);
}
.novel-index a:focus-visible { outline-offset: -2px; }
.novel-index .top-menu-label > .site-icon { width: 1.08em; height: 1.08em; color: var(--gilt); }

.novel-text-link .site-icon, .novel-button .site-icon {
  display: inline-block;
  color: var(--copper);
  transition: translate 320ms var(--cut);
}

.novel-text-link:hover .site-icon, .novel-button:hover .site-icon { translate: 3px 0; }

.novel-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(620px, calc(100svh - var(--header-height)), 980px);
  padding: clamp(52px, 8vh, 105px) var(--gutter);
  overflow: clip;
  background: #110e0b;
}

.novel-hero-copy {
  position: relative;
  z-index: 3;
  width: fit-content;
  margin-inline-start: max(0px, (100% - 1260px) / 2);
  text-shadow: 0 3px 36px #080603ce;
}
.novel-label {
  color: var(--copper);
  font: 400 .75rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .13em;
}

.novel-hero h1 {
  margin: .21em 0 .18em -.04em;
  color: var(--cream);
  font: 600 clamp(4.55rem, 9.5vw, 10.9rem)/.82 var(--serif);
  letter-spacing: -.055em;
}

.novel-hero h1 span, .novel-hero h1 em { display: block; }
.novel-hero h1 em, .novel-synopsis h2 em { color: var(--gilt); font-weight: inherit; }
.novel-byline {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 26px;
  color: #e4d1b8;
  font-size: .97rem;
  letter-spacing: .04em;
}
.novel-byline::before {
  width: 1.5rem;
  height: 1px;
  background: #b3865d;
  content: '';
}
.novel-hook {
  max-width: 29ch;
  margin-top: clamp(24px, 4vh, 44px);
  color: #ecdfc9;
  font: 500 clamp(1.42rem, 2.2vw, 2.12rem)/1.12 var(--serif);
}

.novel-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 26px; margin-top: 27px; }
.novel-button, .novel-text-link {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  min-height: 44px;
  width: fit-content;
  text-decoration: none;
}

.novel-button {
  gap: clamp(16px, 2vw, 35px);
  padding: 12px 19px;
  border: 1px solid #e2c290;
  border-radius: 2px;
  box-shadow: inset 0 0 0 3px #a47d4b2b, 0 4px 14px #08060355;
  background: #eddbb8;
  color: #201a14;
  text-shadow: none;
  transition: background 220ms, box-shadow 300ms;
}

.novel-button .site-icon { color: #784b35; }
.novel-button:hover { background: #fae8c8; box-shadow: inset 0 0 0 3px #bc97745c, 0 4px 20px #dfaa6e20; }
.novel-text-link { color: var(--type-muted); text-decoration: underline; text-decoration-color: #8c6b53; }
.novel-text-link:hover { color: var(--cream); }

.novel-shelf {
  /* The book and the room share the image's coordinate system as the frame crops. */
  --slot-x: 72.8%;
  --ledge-y: 74%;
  position: absolute;
  inset: 0;
  isolation: isolate;
  container-type: size;
  overflow: clip;
}

.shelf-world {
  position: absolute;
  top: 38%;
  left: 50%;
  width: max(100cqw, 150cqh);
  aspect-ratio: 3 / 2;
  translate: -50% -38%;
  transform-origin: 72% 60%;
}

.shelf-image, .shelf-light, .novel-shelf::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.novel-shelf::before {
  z-index: 1;
  content: '';
  background:
    linear-gradient(90deg, #0e0c09f0 0%, #0e0c09cc 25%, #0e0c0960 47%, transparent 66%),
    linear-gradient(0deg, #14120f 0%, #15110b4d 25%, transparent 43%);
}

.shelf-light {
  background: radial-gradient(ellipse 22% 36% at var(--slot-x) 57%, #eab87955, #b3743120 55%, transparent 78%);
  opacity: .62;
  transition: opacity 650ms var(--cut);
}

.shelf-world:has(.shelf-book:is(:hover, :focus-visible)) .shelf-light { opacity: 1; }
.novel-hero[data-library-loading] .shelf-slot { visibility: hidden; }
.shelf-slot {
  --shelf-rest: rotateY(-15deg) rotateZ(-1.2deg);
  position: absolute;
  top: var(--ledge-y);
  left: var(--slot-x);
  width: 17.5%;
  translate: -50% -100%;
}

.shelf-slot::before, .shelf-slot::after {
  position: absolute;
  content: '';
  pointer-events: none;
}

.shelf-slot::before {
  inset: -1% -7% -1% -16%;
  background: radial-gradient(ellipse at 45% 53%, #0a0502e8 28%, #0d080476 58%, transparent 77%);
}

.shelf-slot::after {
  inset: auto -10% -2.1% -14%;
  height: 4.5%;
  z-index: 2;
  background: radial-gradient(ellipse 53% 48%, #0a0604e8 20%, #0a06048a 60%, transparent 99%);
}

.shelf-book {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 768 / 1089;
  perspective: 1300px;
  text-decoration: none;
}

.shelf-book:focus-visible { outline-offset: -1px; }
.shelf-book-object {
  --binding: clamp(12px, 1.6vw, 25px);
  position: relative;
  height: 100%;
  transform: var(--shelf-rest);
  transform-origin: center bottom;
  transform-style: preserve-3d;
  transition: transform 620ms var(--cut);
}

.shelf-book:hover .shelf-book-object, .shelf-book:focus-visible .shelf-book-object {
  transform: translate3d(-5px, -3px, 22px) rotateY(-2deg);
}

.shelf-book figure, .shelf-book .media-window, .shelf-book img { width: 100%; height: 100%; }
.shelf-book figure {
  position: relative;
  z-index: 1;
  border-radius: 2px 4px 4px 2px;
  box-shadow: -10px 5px 17px #100804c9;
  transform: translateZ(calc(var(--binding) / 2));
}

.shelf-book img {
  object-fit: cover;
  border-radius: inherit;
  filter: brightness(.85) saturate(.89) sepia(.12);
  transition: filter 560ms var(--cut);
}

.shelf-book:is(:hover, :focus-visible) img { filter: brightness(1) saturate(.95) sepia(.06); }
.shelf-book .media-window::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #140b07be 0%, #29170b5c 13%, transparent 46%, #f5bf762e),
    linear-gradient(0deg, #210e087f, transparent 19%, transparent 76%, #170f0c32);
  box-shadow: inset 0 1px 0 #f0c58f48, inset -2px 0 2px #f0c58f43;
  content: '';
}

.shelf-book-spine, .shelf-book-fore-edge, .shelf-book-bottom {
  position: absolute;
  display: grid;
  place-items: center;
}

.shelf-book-spine {
  inset: 0 auto 0 0;
  width: var(--binding);
  background: linear-gradient(90deg, #3d2b1d, #8a6546 65%, #402919);
  color: #efd3a4;
  font: 700 .66rem/1 var(--serif);
  letter-spacing: .045em;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotateY(-90deg);
}

.shelf-book-fore-edge {
  inset: 2px 0 2px auto;
  width: var(--binding);
  background: repeating-linear-gradient(90deg, #ad9a78 0, #e1d4b5 1px, #d0c1a0 2.5px);
  transform: translateX(50%) rotateY(90deg);
}

.shelf-book-bottom {
  inset: auto 2px 0;
  height: var(--binding);
  background: repeating-linear-gradient(#ad9a78 0, #e1d4b5 1px, #d0c1a0 2.5px);
  transform: translateY(50%) rotateX(-90deg);
}

.novel-synopsis {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #161410;
}

.novel-page [data-section-arrival] { animation: none; box-shadow: none; }

.synopsis-still, .synopsis-still::after {
  position: absolute;
  inset: 0;
}

.synopsis-still { z-index: -1; inset-inline-end: 29%; overflow: hidden; }
.synopsis-still img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 54%; }
.synopsis-still::after {
  content: '';
  background:
    linear-gradient(90deg, #16141072, #16141015 29%, #1614105c 67%, #161410 100%),
    linear-gradient(0deg, #161410 0%, #161410bb 24%, #16141015 60%, #1614104d 80%, #161410 100%);
}

.synopsis-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(36px, 6.4vw, 108px);
  padding-block: clamp(72px, 9vw, 135px);
}

.synopsis-title {
  align-self: start;
  max-width: 16ch;
  padding-block-start: clamp(64px, 10vw, 160px);
  text-shadow: 0 3px 32px #060604db;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 5.08vw, 5.24rem);
}

.synopsis-title::before {
  display: block;
  width: 3rem;
  height: 1px;
  margin-bottom: 1.1rem;
  background: linear-gradient(90deg, #c19267, #c1926740);
  content: '';
}

.novel-synopsis h2, .excerpt-heading h2 {
  margin-top: .24em;
  font: 600 1em/.99 var(--serif);
  letter-spacing: -.035em;
}

.synopsis-copy {
  max-width: 60ch;
  align-self: center;
  padding: clamp(18px, 3.15vw, 43px) 0 0;
  border-block-start: 1px solid #bf9a706b;
  font-size: clamp(1.06rem, 1.35vw, 1.22rem);
  line-height: 1.7;
  color: #dfd0be;
}

.synopsis-copy p + p { margin-top: 1em; }
.synopsis-copy p:first-child {
  color: var(--cream);
  font: 500 clamp(1.25rem, 1.87vw, 1.7rem)/1.35 var(--serif);
}
.synopsis-copy p:first-child::first-letter {
  float: left;
  margin: .05em .11em 0 0;
  color: var(--gilt);
  font: 600 3.06em/.82 var(--serif);
}

.synopsis-copy .novel-section-actions { margin-top: .95rem; }
.synopsis-copy .novel-text-link { color: var(--cream); font-size: 1rem; }
.synopsis-copy .novel-text-link:hover { color: var(--gilt); }
.novel-waveform {
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
  border-block: 1px solid #906b493b;
}

.novel-waveform::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 43%, #ebc78c63 50%, transparent 57%);
  opacity: 0;
  mix-blend-mode: screen;
  content: '';
}

.novel-waveform canvas { display: block; width: 100%; height: clamp(50px, 7vw, 80px); }

.novel-excerpt {
  padding-block: clamp(62px, 8vw, 112px);
  background:
    linear-gradient(180deg, #161410, #16141000 21%, #19120f00 78%, #1a1510),
    radial-gradient(ellipse at 50% 45%, #38200d28 15%, #100d09e5 90%),
    var(--walnut) center / cover,
    #23170e;
}

.excerpt-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px 24px;
  max-width: 994px;
  margin: 0 auto clamp(22px, 3.4vw, 40px);
  padding-block-end: clamp(14px, 2vw, 22px);
  border-block-end: 1px solid #bd9c6c65;
  text-shadow: 0 3px 28px #090604;
}

.excerpt-heading h2 { margin-top: .17em; font-size: clamp(2.8rem, 5.6vw, 5.65rem); }
.excerpt-details { display: grid; justify-items: end; }
.excerpt-chapter { color: var(--type-muted); }
.excerpt-chapter em { color: var(--gilt); font: italic 500 1.32em/1.15 var(--serif); }
.excerpt-chapter span { margin: 0 .4em; color: #b99875; }

.book-reader { width: 100%; max-width: 994px; margin-inline: auto; }
.reader-spread {
  --leaf-color: #f2e5c9;
  --leaf-shadow: #c3aa80;
  --leaf-ink: #261e19;
  position: relative;
  isolation: isolate;
  perspective: 1750px;
  overflow: clip;
}

.book-reader[data-enhanced] .reader-spread {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: clamp(500px, 75svh, 665px);
  border: 5px solid #473125;
  border-radius: 7px 9px 9px 7px;
  background-color: #38271d;
  box-shadow: 0 2px 0 1px #967756, 0 5px 0 1px #332118, 0 14px 28px #0b0604c4, 0 30px 68px #100903b3;
}

.reader-leaf {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(25px, 3.1vw, 43px) clamp(22px, 3.5vw, 50px) 20px;
  border-radius: 2px;
  background:
    linear-gradient(95deg, #bca27637, transparent 12%),
    radial-gradient(ellipse at 60% 28%, #fbf0d7, var(--leaf-color));
  color: var(--leaf-ink);
  color-scheme: light;
}

.reader-leaf:nth-child(odd) {
  background:
    linear-gradient(270deg, #8c693a42, #e2cca642 6%, transparent 13%),
    radial-gradient(ellipse at 48% 29%, #f8ebcf, var(--leaf-color));
}

.reader-leaf:nth-child(even) {
  background:
    linear-gradient(90deg, #8c693a4f, #e2cca642 6%, transparent 14%),
    radial-gradient(ellipse at 57% 29%, #fcf1d7, var(--leaf-color));
}

.book-reader:not([data-enhanced]) .reader-leaf { max-width: 670px; margin: 0 auto 18px; }
.book-reader:not([data-enhanced]) :is(.title-leaf, .end-leaf) { display: none; }
.reader-leaf:is(.title-leaf, .end-leaf) { justify-content: center; align-items: center; gap: 14px; text-align: center; }
.title-leaf p, .end-leaf p { max-width: 10ch; font: 600 clamp(2.05rem, 4.8vw, 4.8rem)/.91 var(--serif); letter-spacing: -.025em; }
.title-leaf .imprint-stamp { margin-bottom: .4rem; color: #735137; }
.title-leaf-rule { width: 68px; height: 7px; border-block: 1px solid #86634a; margin-bottom: 12px; }
.title-leaf > span:last-child, .end-leaf > span:last-child { font: 400 .93rem var(--sans); color: #534331; }
.leaf-heading { margin-bottom: .85rem; }
.leaf-kicker, .leaf-running-title { color: #674735; font: 400 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.leaf-heading h3 { margin-top: .16em; font: 600 clamp(2.5rem, 4.25vw, 3.8rem)/.93 var(--serif); }
.leaf-copy { font: 400 clamp(.91rem, 1.2vw, 1.04rem)/1.49 Georgia, serif; }
.leaf-copy p + p { margin-top: .49em; }
.manuscript-leaf[data-leaf="1"] .leaf-copy p:first-child::first-letter {
  float: left;
  margin: .02em .11em 0 0;
  color: #674735;
  font: 600 3.25em/.78 var(--serif);
}

.leaf-copy .leaf-email { margin-inline: .5em; font-style: italic; }
.leaf-copy .leaf-subject { font-weight: bold; }
.leaf-copy .leaf-record {
  padding-inline-start: .72em;
  border-inline-start: 1px solid #977350;
  color: #674735;
  font: .8em/1.35 var(--mono);
}

.leaf-number { margin-top: auto; padding-top: 1.2rem; text-align: center; font: .8rem var(--mono); color: #674735; }
.reader-controls {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: .5rem;
  margin-top: 22px;
  padding-block: .4rem;
  border-block: 1px solid var(--fine-rule);
  color: var(--type-muted);
}

.reader-controls button, .reader-top button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 44px;
  padding: .35rem .86rem;
  border: 1px solid #bc925d77;
  border-radius: 2px;
  background: #1f160de6;
  color: var(--cream);
  cursor: pointer;
  transition: background 180ms, border-color 180ms;
}

.reader-controls button:first-child { justify-self: start; }
.reader-controls button:last-child { justify-self: end; }
.reader-controls button[aria-disabled="true"] { border-color: var(--fine-rule); color: #b0a08c; cursor: default; }
.reader-controls button:not([aria-disabled="true"]):hover, .reader-top button:hover {
  border-color: #b18967;
  background: #493626;
}

.reader-controls p { max-width: 16ch; font-size: .91rem; font-variant-numeric: tabular-nums; text-align: center; line-height: 1.2; }
.reader-top button .site-icon, .reader-controls button .site-icon { color: var(--copper); }

.novel-reader-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  isolation: isolate;
  background: transparent;
  color: var(--cream);
}

.novel-reader-dialog::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, #33200f50 20%, #0d0805ef 91%),
    var(--walnut) center / cover,
    #20150e;
  content: '';
  pointer-events: none;
}

.novel-reader-dialog::backdrop { background: transparent; }
.novel-reader-dialog[data-scene-shift] .reader-top { opacity: 0; pointer-events: none; }
.novel-reader-dialog[data-scene-shift="enter"]::before { animation: reveal-desk 660ms var(--cut) both; }
.novel-reader-dialog[data-scene-shift="return"]::before { animation: reveal-desk 530ms var(--cut) reverse both; }
@keyframes reveal-desk {
  from { opacity: 0; }
  to { opacity: 1; }
}

html:has(.novel-reader-dialog[open]) { overflow: hidden; }
.novel-scroll-locked { position: fixed; inset: var(--novel-scroll-offset) 0 auto; overflow: hidden; }
.novel-scroll-locked .shelf-book-object { visibility: hidden; }
.reader-dialog-inner { width: min(100% - 2 * clamp(14px, 5vw, 76px), 1084px); margin-inline: auto; padding-bottom: 24px; }
.reader-top {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 11px;
  border-block-end: 1px solid var(--fine-rule);
  background: #1a130ded;
  box-shadow: 15px 0 #1a130ded, -15px 0 #1a130ded;
}

.reader-top p { color: var(--gilt); font: italic 500 1.32rem/1.15 var(--serif); }
.novel-reader-dialog .reader-controls {
  position: sticky;
  z-index: 4;
  bottom: 0;
  margin-top: 13px;
  padding: 6px 8px;
  border: 1px solid #b98c5d6b;
  background: #1d150df5;
}
.reader-travel-cover {
  position: fixed;
  z-index: 6;
  inset: 0 auto auto 0;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 8px 32px #110d08;
  transform-origin: 0 0;
}

.reader-turn {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: 50%;
  transform-style: preserve-3d;
  pointer-events: none;
}

.reader-turn.next { left: 50%; transform-origin: left; }
.reader-turn.previous { right: 50%; transform-origin: right; }
.reader-turn-face { position: absolute; inset: 0; border-radius: 2px; overflow: hidden; backface-visibility: hidden; }
.reader-turn-face > * { width: 100%; height: 100%; }
.reader-turn-face::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #4a311e33, transparent 38%, #3a231d30);
  content: '';
}

.reader-turn-face.back { transform: rotateY(180deg); }
.reader-cover-leaf { object-fit: contain; object-position: left center; background: #c8b797; }
.reader-opening .reader-spread > .reader-leaf { visibility: hidden; }
.reader-opening .reader-spread { background-color: var(--leaf-color); }
.reader-turn-underlay {
  position: absolute;
  z-index: 2;
  inset-block: 0;
  width: 50%;
  pointer-events: none;
}
.reader-turn-underlay.next { right: 0; }
.reader-turn-underlay.previous { left: 0; }
.book-reader[data-travelling] .reader-spread > .reader-leaf { visibility: hidden; }
.book-reader[data-travelling] .reader-spread { border-color: transparent; background: transparent; box-shadow: none; }
.book-reader:is(.reader-opening, .reader-closing) .reader-controls { visibility: hidden; }

.novel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: clamp(32px, 5vw, 70px);
  color: var(--type-muted);
}

.novel-colophon { display: flex; align-items: flex-start; gap: clamp(12px, 1.9vw, 26px); font-size: .93rem; }
.novel-colophon .imprint-stamp { width: 43px; border-color: #b28a5c88; }
.novel-colophon p { margin-bottom: .35rem; color: var(--cream); font: 600 clamp(1.54rem, 2.75vw, 2.65rem)/1.05 var(--serif); }
.novel-footer-links { display: flex; gap: 6px 1.5rem; flex-wrap: wrap; }

.novel-release {
  padding-block: clamp(3.5rem, 7.15vw, 7rem);
  border-block-end: 1px solid var(--fine-rule);
  background: radial-gradient(ellipse at 18% 52%, #5a3b244d, transparent 58%), linear-gradient(180deg, #1a1510, #15120e);
}
.release-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.release-copy h2 { margin-block: 1rem 1.3rem; font: 600 clamp(2.55rem, 4.65vw, 5.1rem)/.98 var(--serif); letter-spacing: -.042em; }
.release-copy h2 em { color: var(--gilt); }
.release-copy > p:last-child { max-width: 40ch; color: var(--type-muted); font-size: 1.06rem; }
.novel-release-form {
  display: grid;
  gap: .8rem;
  padding: clamp(1.1rem, 3.1vw, 2.65rem);
  border: 1px solid #b18f6261;
  border-radius: 3px;
  box-shadow: inset 0 1px #eecfa019, 0 16px 36px #0a070547;
  background: linear-gradient(145deg, #2d2319, #1f1913 72%);
}
.novel-release-form > label { font-size: .95rem; }
.novel-release-form > input {
  min-width: 0;
  min-height: 50px;
  padding: .7rem .85rem;
  border: 1px solid #937757;
  border-radius: 2px;
  background: #17120ee6;
  color: var(--cream);
  font: inherit;
}
.novel-release-form > input::placeholder { color: #b2a08d; opacity: 1; }
.novel-release-form > .novel-button { min-height: 48px; margin-block-start: .25rem; }
.novel-release-form > .novel-button:disabled { opacity: .7; cursor: progress; }
.release-consent { display: flex; align-items: flex-start; gap: .6rem; color: var(--type-muted); cursor: pointer; }
.release-consent input { flex: none; width: 1.1rem; height: 1.1rem; margin: .15rem 0; accent-color: var(--copper); }
.release-consent span { max-width: 48ch; }
.release-honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.release-status { padding: .8rem 1rem; border-inline-start: 2px solid var(--copper); background: #2c2118; color: var(--cream); }
.release-status:is(:empty, :has([data-release-message]:empty)) { padding: 0; margin-top: -.8rem; border: 0; background: none; }
.release-status[data-kind="error"] { border-color: #f1b4a4; color: #f5cec1; }
.release-status > .site-icon { display: none; margin-inline-end: .55rem; color: var(--copper); }
.release-status[data-kind="success"] > .site-icon { display: inline-block; }
.release-privacy { border-block-start: 1px solid var(--fine-rule); color: var(--type-muted); font-size: .9rem; }
.release-privacy summary {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: #997b60;
  text-underline-offset: .22em;
}
.release-privacy summary::-webkit-details-marker { display: none; }
.release-privacy summary > .site-icon {
  width: .84em;
  height: .84em;
  color: var(--gilt);
}
.release-privacy summary:hover { color: var(--cream); }
.release-privacy p { margin-top: .2rem; }
.release-result { max-width: 44rem; padding-block: clamp(3rem, 8vw, 7rem); }
.release-result h1 { margin-block: 1rem; font: 600 clamp(2.5rem, 6vw, 5rem)/1 var(--serif); }
.release-result p { margin-block: 1rem; }
.release-result form, .release-result > a { margin-block-start: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .release-status[data-kind]:not([data-kind=""]) { animation: release-status-in 220ms ease-out both; }
}
@keyframes release-status-in {
  from { opacity: 0; translate: 0 .25rem; }
  to { opacity: 1; translate: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .novel-hero[data-entrance] .shelf-world { animation: shelf-exposure 2050ms var(--cut) both; }
  .novel-hero[data-entrance] .shelf-book-object { animation: pull-from-shelf 1860ms var(--cut) 500ms both; }
  .novel-hero[data-entrance] .novel-hero-copy { animation: reveal-title 1200ms var(--cut) 180ms both; }
  .novel-hero[data-entrance] h1 span { animation: title-mask 960ms var(--cut) 320ms both; }
  .novel-hero[data-entrance] h1 em { animation: title-mask 1160ms var(--cut) 460ms both; }
}

@media (width > 760px) and (not (pointer: coarse)) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .synopsis-still img {
      animation: pass-the-glass linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }

    .novel-waveform::after {
      animation: waveform-light linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 57%;
    }
  }
}

@keyframes shelf-exposure {
  from { filter: brightness(.12); scale: 1.047; }
  to { filter: none; scale: 1; }
}

@keyframes pull-from-shelf {
  0%, 10% { transform: translate3d(45%, 0, -50px) rotateY(-78deg); }
  43% { transform: translate3d(20%, -1%, 20px) rotateY(-44deg); }
  72% { transform: translate3d(-3%, -2%, 35px) rotateY(3deg); }
  to { transform: var(--shelf-rest); }
}

@keyframes reveal-title {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes title-mask {
  from { clip-path: inset(105% -6% -25% -8%); translate: 0 .22em; }
  to { clip-path: inset(-23% -6% -25% -8%); translate: 0; }
}

@keyframes pass-the-glass {
  from { transform: scale(1.07) translateY(1.2%); }
  to { transform: scale(1.015) translateY(-.45%); }
}

@keyframes waveform-light {
  0% { transform: translateX(-56%); opacity: 0; }
  20%, 80% { opacity: .8; }
  100% { transform: translateX(56%); opacity: 0; }
}

@media (max-width: 1140px) {
  .novel-header-inner { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: .7rem; }
  .novel-imprint { min-width: 0; }
  .novel-index a { padding-inline: .65rem; }
}

@media (max-width: 980px) {
  .novel-hero { min-height: min(690px, max(590px, calc(100svh - var(--header-height)))); }
}

@media (max-width: 780px) {
  .novel-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 0;
    background: radial-gradient(ellipse at 66% 30%, #291e14, #15110d 70%);
  }

  .novel-hero-copy {
    align-self: stretch;
    width: auto;
    margin-inline-start: 0;
    padding: clamp(34px, 8.5vw, 58px) var(--gutter) 0;
  }
  .novel-hero h1 { font-size: clamp(3rem, 14vw, 6.7rem); }
  .novel-byline { margin-top: 19px; }
  .novel-hook { margin-top: 20px; }
  .novel-hero-actions { margin-top: 17px; }
  .novel-shelf {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(365px, 94vw, 510px);
    margin-top: -16px;
    mask-image: linear-gradient(180deg, transparent, #000 25%);
  }
  .novel-shelf::before { background: linear-gradient(180deg, transparent 76%, #161410 100%); }

  .shelf-world {
    width: max(100cqw, 150cqh, 790px);
    translate: calc(-1 * var(--slot-x)) -38%;
    transform-origin: var(--slot-x) 60%;
  }

  .shelf-book-object { --binding: 15px; }
  .synopsis-inner { grid-template-columns: minmax(0, 1fr); row-gap: 24px; padding-block: 0 clamp(50px, 10vw, 100px); }
  .synopsis-still { inset: 0 0 auto; height: clamp(380px, 70vw, 545px); }
  .synopsis-still img { object-position: 63% 56%; }
  .synopsis-still::after {
    background: linear-gradient(180deg, #161410, #16141018 25%, #16141045 44%, #161410d4 76%, #161410);
  }

  .synopsis-title { padding: clamp(151px, 36vw, 240px) 0 0; font-size: clamp(2.6rem, 7.1vw, 4.6rem); }
  .synopsis-copy { max-width: 62ch; }
  .novel-waveform { max-width: 480px; }
  .release-layout { grid-template-columns: minmax(0, 1fr); }
  .novel-release-form { max-width: 640px; }
  .book-reader[data-enhanced] .reader-spread { grid-template-columns: minmax(0, 1fr); min-height: min(530px, 66svh); }
  .reader-turn.next, .reader-turn.previous { inset-inline: 0; width: 100%; }
  .reader-turn-underlay { inset-inline: 0; width: 100%; }
  .book-reader[data-enhanced] .reader-spread { touch-action: pan-y pinch-zoom; }
  .reader-leaf { padding-inline: clamp(16px, 6vw, 36px); }
  .leaf-copy { font-size: clamp(.96rem, 3.25vw, 1.08rem); }
  .reader-top p { font-size: 1.06rem; }
}

@media (max-width: 700px) {
  :root { --header-height: 104px; }
  .novel-header-inner {
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
    padding-block: 4px;
  }
  .novel-imprint { justify-self: end; font-size: 1.09rem; gap: .5rem; }
  .novel-imprint .imprint-stamp { width: 30px; }
  .novel-index { grid-column: 1 / -1; justify-self: stretch; }
  .novel-index a { flex: 1 1 auto; padding-inline: .4rem; }
  .excerpt-heading { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .excerpt-details { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 .6rem; }
  .novel-page .excerpt-heading .excerpt-details .section-copy { margin: 0; }
}

@media (max-width: 460px) {
  .novel-footer { align-items: start; flex-direction: column; gap: 8px; }
  .novel-hero-actions { gap: 6px 16px; }
  .novel-back { gap: .48rem; }
  .novel-back-arrow { width: 28px; }
  .novel-index a { flex-direction: column; gap: .18rem; font-size: .84rem; }
  .novel-release-form > .novel-button { width: 100%; justify-content: space-between; }
  .reader-controls button, .reader-top button { padding-inline: .5rem; font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
