@property --slide-accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #c4a574;
}

:root {
  --ink: #090c0b;
  --ink-2: #121816;
  --paper: #f3eee4;
  --paper-2: #d9d0c2;
  --gold: #c4a574;
  --gold-2: #e4c99a;
  --muted: #9a9186;
  --line: rgba(243, 238, 228, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 80;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 12, 11, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 20px;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  font-family: var(--serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.brand-sub {
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-2);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
  background: none;
  color: inherit;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a140c;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(196, 165, 116, 0.22);
}

.btn-gold:hover {
  box-shadow: 0 14px 34px rgba(196, 165, 116, 0.34);
}

.btn-ghost {
  border-color: rgba(196, 165, 116, 0.55);
  color: var(--gold-2);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(196, 165, 116, 0.08);
}

.btn-block {
  width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
}

.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.kicker a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(165deg, #141a17 0%, #0b0f0d 52%, #070908 100%);
  transition: --slide-accent 0.85s ease;
}

.hero-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 58% at 74% 38%, color-mix(in srgb, var(--slide-accent, var(--gold)) 34%, transparent), transparent 68%),
    radial-gradient(ellipse 28% 40% at 16% 74%, color-mix(in srgb, var(--slide-accent, var(--gold)) 14%, transparent), transparent 70%);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(243, 238, 228, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 238, 228, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent 75%);
  opacity: 0.45;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-slides {
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: end;
  padding: 72px 0 10px;
}

.hero-copy .kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-copy .kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.85rem);
  max-width: 10.5ch;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-slide.is-active .hero-copy > * {
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-slide.is-active .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-slide.is-active .hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-slide.is-active .hero-copy > *:nth-child(3) { animation-delay: 0.18s; }
.hero-slide.is-active .hero-copy > *:nth-child(4) { animation-delay: 0.26s; }
.hero-slide.is-active .hero-copy > *:nth-child(5) { animation-delay: 0.34s; }

.hero-lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--paper);
  font-size: clamp(1.28rem, 2vw, 1.7rem);
  line-height: 1.28;
  max-width: 18em;
  margin: 18px 0 0;
}

.hero-facts {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.7;
  max-width: 28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  margin-top: 28px;
}

.hero-more {
  color: var(--gold-2);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(196, 165, 116, 0.4);
  padding-bottom: 3px;
}

.hero-more:hover,
.hero-more:focus-visible {
  border-color: var(--gold-2);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.book-stage {
  position: relative;
  width: min(340px, 78vw);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-glow {
  position: absolute;
  width: 128%;
  height: 62%;
  top: 16%;
  left: -14%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--slide-accent, var(--gold)) 46%, transparent),
    transparent 68%
  );
  filter: blur(22px);
  opacity: 0.8;
}

.book-object {
  position: relative;
  width: min(286px, 68vw);
  aspect-ratio: 2 / 3;
  z-index: 2;
  transform: perspective(1800px) rotateY(-6deg) rotateX(1.5deg);
  transform-origin: 50% 100%;
  filter: drop-shadow(16px 22px 28px rgba(0, 0, 0, 0.55));
}

.book-pages {
  position: absolute;
  top: 2.4%;
  bottom: 1.8%;
  right: -10px;
  width: 11px;
  border-radius: 0 1px 1px 0;
  background: repeating-linear-gradient(#f6f1e8 0 1px, #e7dece 1px 2px);
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.35);
}

.book-cover {
  position: relative;
  height: 100%;
  border-radius: 1px 4px 4px 1px;
  overflow: hidden;
  background: #111;
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

.book-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(255, 255, 255, 0.14) 46%, transparent);
  pointer-events: none;
  z-index: 1;
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 20%,
    transparent 72%,
    rgba(255, 255, 255, 0.04) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.book-shelf {
  width: 72%;
  height: 7px;
  margin-top: 14px;
  border-radius: 1px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #6d5c46 0%, #2a231c 42%, #100e0c 100%);
  box-shadow:
    inset 0 1px 0 rgba(228, 201, 154, 0.38),
    0 14px 20px rgba(0, 0, 0, 0.5);
}

.book-shelf::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: -9px;
  height: 12px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 72%);
  filter: blur(2px);
}

.hero-controls {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  padding: 8px 0 22px;
  position: relative;
  z-index: 2;
}

.hero-pager {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-controls .dot,
.dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 99px;
  background: rgba(243, 238, 228, 0.28);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

.dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(196, 165, 116, 0.28);
  background: transparent;
  color: var(--paper-2);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--gold);
  background: rgba(196, 165, 116, 0.1);
}

.progress {
  height: 1px;
  background: rgba(243, 238, 228, 0.08);
}

.progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--gold-2), var(--gold));
  transform-origin: left center;
}

.cover-rail {
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 20px 0 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.38));
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.rail-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: rail 48s linear infinite;
}

.rail-track img {
  height: 72px;
  width: auto;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  opacity: 0.72;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cover-rail:hover .rail-track {
  animation-play-state: paused;
}

.rail-track img:hover {
  opacity: 1;
  transform: translateY(-3px);
}

@keyframes rail {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active .hero-copy > *,
  .rail-track {
    animation: none !important;
  }

  .hero {
    transition: none;
  }
}

.section {
  padding: 88px 0;
}

.section-head h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.lede {
  color: var(--muted);
  max-width: 38rem;
  margin: 10px 0 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}

.filter {
  font-family: inherit;
  background: transparent;
  color: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
  cursor: pointer;
}

.filter.is-active {
  border-color: var(--gold);
  color: var(--gold-2);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #101412;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  min-height: 100%;
}

.card[hidden] {
  display: none;
}

.cover-link {
  display: block;
  background: #070908;
  padding: 22px 22px 0;
  text-decoration: none;
}

.cover-link img {
  margin: 0 auto;
  width: min(190px, 100%);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
}

.card:hover .cover-link img {
  transform: translateY(-4px);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
  flex: 1;
}

.card-body h3 {
  font-size: 1.55rem;
}

.card-body h3 a {
  text-decoration: none;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.card-body .tagline {
  margin: 0 0 8px;
  color: var(--paper-2);
  flex: 1;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill-format {
  color: var(--gold-2);
  border-color: rgba(196, 165, 116, 0.35);
}

.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why article {
  border-top: 1px solid var(--gold);
  padding-top: 16px;
}

.why h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.book-page {
  padding: 56px 0 28px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
}

.book-cover-col {
  position: sticky;
  top: 96px;
  align-self: start;
  z-index: 5;
}

.cover-hover-zoom {
  position: relative;
  width: 100%;
}

.cover-hover-frame {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 4px 12px 12px 4px;
  overflow: hidden;
  cursor: crosshair;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.book-page img.cover-art {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
  user-select: none;
}

.cover-hover-lens {
  position: absolute;
  top: 0;
  left: 0;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(196, 165, 116, 0.85);
  background:
    linear-gradient(rgba(196, 165, 116, 0.18), rgba(196, 165, 116, 0.18)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 9px,
      rgba(243, 238, 228, 0.12) 9px,
      rgba(243, 238, 228, 0.12) 10px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 9px,
      rgba(243, 238, 228, 0.12) 9px,
      rgba(243, 238, 228, 0.12) 10px
    );
  box-shadow: inset 0 0 0 1px rgba(9, 12, 11, 0.25);
  pointer-events: none;
  z-index: 2;
}

.cover-hover-result {
  position: absolute;
  top: 0;
  left: calc(100% + 28px);
  width: min(520px, calc(100vw - 360px));
  height: min(520px, 70vh);
  border: 1px solid rgba(196, 165, 116, 0.35);
  border-radius: 4px;
  background-color: #f7f3ea;
  background-repeat: no-repeat;
  background-position: 0 0;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  z-index: 30;
  pointer-events: none;
  overflow: hidden;
}

.cover-hover-zoom.is-zooming .cover-hover-result {
  animation: cover-result-in 0.18s ease;
}

@keyframes cover-result-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.more-titles {
  margin-top: 28px;
  font-size: 1.8rem;
}

.title-links {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.title-links li + li {
  margin-top: 8px;
}

.title-links a {
  color: var(--gold-2);
  text-decoration: none;
}

.title-links a:hover,
.title-links a:focus-visible {
  text-decoration: underline;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.fact {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text-link {
  color: var(--gold-2);
}

.after-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 14px 0 0;
  font-size: 0.88rem;
}

.after-buy .text-link {
  text-decoration: none;
}

.after-buy .text-link:hover,
.after-buy .text-link:focus-visible,
.fact .text-link:hover,
.fact .text-link:focus-visible {
  text-decoration: underline;
}

.site-footer {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 40% 80% at 12% 0%, rgba(196, 165, 116, 0.1), transparent 70%),
    linear-gradient(180deg, #101614 0%, var(--ink) 100%);
  color: var(--paper-2);
  font-size: 0.86rem;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 0 28px;
}

.footer-mark {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper-2);
  text-decoration: none;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.social-link svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--gold-2);
  border-color: rgba(196, 165, 116, 0.55);
  background: rgba(196, 165, 116, 0.08);
}

.site-footer .footer-bar {
  padding-bottom: 36px;
}

@media (max-width: 960px) {
  .hero-grid,
  .why,
  .book-page {
    grid-template-columns: 1fr;
  }

  .book-cover-col {
    position: static;
    max-width: 280px;
    margin-inline: auto;
  }

  .cover-hover-result {
    left: 0;
    top: calc(100% + 16px);
    width: 100%;
    height: min(360px, 55vh);
  }

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

  @media (hover: none) {
    .cover-hover-frame {
      cursor: default;
    }

    .cover-hover-lens,
    .cover-hover-result {
      display: none !important;
    }
  }

  .hero-slides,
  .hero-grid {
    min-height: 0;
  }

  .hero-visual {
    min-height: 0;
    padding: 12px 0 28px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-controls {
    grid-template-columns: 1fr;
    padding-bottom: 18px;
  }

  .hero-pager {
    grid-column: 1;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .grid,
  .facts {
    grid-template-columns: 1fr;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-social {
    justify-content: flex-start;
  }
}

.reader {
  padding: 8px 0 88px;
}

.reader-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.reader-head h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 12ch;
  margin-bottom: 10px;
}

.reader-count {
  margin: 0;
  color: var(--gold-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.reader-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 720px) auto;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 36px 20px 42px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 55% 70% at 50% 58%, rgba(196, 165, 116, 0.16), transparent 68%),
    linear-gradient(180deg, #171d1a 0%, #0c100e 100%);
  box-shadow: inset 0 0 0 1px rgba(243, 238, 228, 0.08);
}

.reader-arrow {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 84px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 12, 11, 0.45);
  color: var(--paper);
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.reader-arrow span {
  font-size: 1.6rem;
  line-height: 1;
}

.reader-arrow:hover,
.reader-arrow:focus-visible {
  border-color: var(--gold);
  color: var(--gold-2);
}

.bound {
  position: relative;
  width: min(560px, 100%);
  margin-inline: auto;
  padding: 0 54px 16px 0;
}

.bound-block {
  position: absolute;
  z-index: 0;
  top: 14px;
  right: 18px;
  bottom: -8px;
  left: 22px;
  border-radius: 2px 10px 10px 2px;
  background: #efe6d4;
  box-shadow:
    7px 7px 0 #e5d9c4,
    14px 12px 0 #d9ccb4,
    20px 18px 28px rgba(0, 0, 0, 0.35);
}

.bound-peek {
  position: absolute;
  z-index: 1;
  top: 22px;
  right: 0;
  width: 78%;
  height: auto;
  background: #fff8ed;
  border-radius: 2px 12px 12px 2px;
  transform: rotate(2.4deg);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.bound.is-last .bound-peek {
  visibility: hidden;
}

.bound-front {
  position: relative;
  z-index: 2;
  width: 88%;
  background: #fffdf8;
  border-radius: 2px 12px 12px 2px;
  box-shadow:
    -10px 0 18px rgba(0, 0, 0, 0.08),
    0 26px 50px rgba(0, 0, 0, 0.42);
}

.bound-front::after {
  content: "";
  position: absolute;
  top: 8px;
  right: -9px;
  bottom: 8px;
  width: 9px;
  border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(
    90deg,
    #fffdf8 0 1px,
    #eadfcd 1px 2px
  );
}

.bound-page {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px 10px 10px 2px;
}

.bound.is-next .bound-front {
  animation: page-turn-next 0.42s ease;
}

.bound.is-prev .bound-front {
  animation: page-turn-prev 0.42s ease;
}

.reader-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}

.reader-actions {
  display: flex;
  gap: 10px;
  flex: none;
}

.reader .film-card img {
  width: 92px;
  height: 120px;
}

.reading-room {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: #070908;
  color: var(--paper);
}

.reading-room::backdrop {
  background: rgba(4, 6, 5, 0.88);
}

.reading-room[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.room-bar,
.room-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
}

.room-bar {
  border-bottom: 1px solid var(--line);
}

.room-title,
.room-count,
.room-hint {
  margin: 0;
}

.room-title {
  font-family: var(--serif);
  font-size: 1.55rem;
}

.room-count,
.room-hint {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.room-close {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.room-close:hover,
.room-close:focus-visible,
.room-turn:hover,
.room-turn:focus-visible {
  border-color: var(--gold);
  color: var(--gold-2);
}

.room-desk {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 18px 12px;
  background:
    radial-gradient(ellipse 48% 62% at 50% 48%, rgba(196, 165, 116, 0.14), transparent 70%),
    linear-gradient(180deg, #101614 0%, #070908 100%);
}

.folio {
  position: relative;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.folio-page {
  max-height: 100%;
  width: auto;
  max-width: min(760px, 78vw);
  height: auto;
  background: #fff8ed;
  border-radius: 2px 14px 14px 2px;
  box-shadow:
    -14px 0 24px rgba(0, 0, 0, 0.18),
    0 30px 70px rgba(0, 0, 0, 0.5);
  transform-origin: left center;
}

.folio.is-next .folio-page {
  animation: page-turn-next 0.42s ease;
}

.folio.is-prev .folio-page {
  animation: page-turn-prev 0.42s ease;
}

@keyframes page-turn-next {
  0% { transform: rotateY(0) translateX(0); opacity: 1; }
  45% { transform: rotateY(-16deg) translateX(-12px); opacity: 0.35; }
  100% { transform: rotateY(0) translateX(0); opacity: 1; }
}

@keyframes page-turn-prev {
  0% { transform: rotateY(0); opacity: 1; }
  45% { transform: rotateY(14deg) translateX(10px); opacity: 0.35; }
  100% { transform: rotateY(0); opacity: 1; }
}

.folio-hot {
  position: absolute;
  top: 8%;
  bottom: 8%;
  width: 22%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.folio-hot-prev { left: 8%; }
.folio-hot-next { right: 8%; }

.folio-hot-next:hover {
  background: linear-gradient(90deg, transparent, rgba(196, 165, 116, 0.12));
}

.folio-hot-prev:hover {
  background: linear-gradient(270deg, transparent, rgba(196, 165, 116, 0.12));
}

.room-turn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(9, 12, 11, 0.55);
  color: var(--paper);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.room-foot {
  border-top: 1px solid var(--line);
  align-items: end;
}

.film-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.film-card {
  flex: 0 0 auto;
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.film-card img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  object-position: top;
  background: #fff8ed;
  border-radius: 2px 6px 6px 2px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
  outline: 1px solid transparent;
}

.film-card.is-active img {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.film-card.is-active {
  color: var(--gold-2);
}

@media (max-width: 800px) {
  .reader-stage {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .reader-arrow {
    width: auto;
    flex-direction: row;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
  }

  .reader-bar,
  .reader-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bound {
    width: min(420px, 92vw);
    padding-right: 36px;
  }

  .room-bar,
  .room-foot {
    flex-wrap: wrap;
  }

  .room-hint {
    display: none;
  }

  .folio-page {
    max-width: 86vw;
  }

  .room-turn {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bound.is-next .bound-front,
  .bound.is-prev .bound-front,
  .folio.is-next .folio-page,
  .folio.is-prev .folio-page {
    animation: none;
  }
}

