/* Gemeinsame lokale Schriften für Buch und Startseiten-Cover. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-wollwesen-20260728.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-italic-400-wollwesen-20260806.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-variable-20260805.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-variable-italic-20260805.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
}

@font-face {
  font-family: "Italianno";
  src: url("fonts/italianno-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #0f0e0d;
  --green-black: #151311;
  --deep-green: #211e1b;
  --cover-green: #3a2528;
  --cover-shadow: #0e0b0b;
  --cream: #e9e0cf;
  --paper: #171e18;
  --paper-deep: #141a15;
  --paper-ink: #ead5af;
  --old-gold: #9c824b;
  --gold-light: #c6b27d;
  --gold-hairline: rgba(172, 145, 82, 0.48);
  --serif: "Cormorant Garamond", Georgia, serif;
  --reading: "Newsreader", Georgia, serif;
  --turn-duration: 620ms;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--night);
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% 34%, rgba(80, 66, 61, 0.28), transparent 34rem),
    radial-gradient(circle at 12% 82%, rgba(139, 111, 53, 0.06), transparent 25rem),
    linear-gradient(148deg, #0f0e0d 0%, #1a1816 52%, #0c0b0a 100%);
  font-family: var(--reading);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@supports (padding: env(safe-area-inset-top)) {
  @media (max-width: 720px) {
    .book-header {
      padding-top: env(safe-area-inset-top, 0px);
    }

    .book-footer {
      padding-bottom: env(safe-area-inset-bottom, 0px);
    }
  }
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.16;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(114deg, rgba(231, 218, 187, 0.04) 0 1px, transparent 1px 8px),
    radial-gradient(rgba(212, 194, 151, 0.18) 0.45px, transparent 0.55px);
  background-size: auto, 6px 6px;
}

body.book-page {
  display: flex;
  flex-direction: column;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border-radius: 0;
}

h1,
h2,
p,
figure {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -5rem;
  left: 1rem;
  padding: 0.65rem 0.9rem;
  color: var(--night);
  background: var(--cream);
}

.skip-link:focus {
  top: 1rem;
}

a:focus-visible,
button:focus-visible,
.book:focus-visible {
  outline: 1px solid var(--gold-light);
  outline-offset: 5px;
}

.book-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(92vw, 1440px);
  min-height: 82px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(172, 145, 82, 0.22);
}

.wordmark {
  display: inline-grid;
  justify-items: start;
  line-height: 1.1;
  text-align: left;
}

.wordmark__eyebrow {
  color: rgba(152, 127, 71, 0.58);
  font: 400 0.65rem/1.1 "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.wordmark__name {
  color: rgba(152, 127, 71, 0.58);
  font: 400 0.72rem/1.1 "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.book-header__section {
  color: rgba(234, 213, 175, 0.62);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.reader {
  width: min(100%, 1560px);
  margin: 0 auto;
  padding: clamp(1rem, 2.3vw, 2rem) 3vw 1.25rem;
}

@media (min-width: 761px) {
  body.book-page > .reader {
    display: flex;
    flex: 1;
    min-height: calc(100svh - 108px);
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(1rem, 2.2vh, 1.6rem);
    padding-bottom: clamp(2.5rem, 5.5vh, 4rem);
  }
}

/* Keep the semantic page title without a duplicate title above the cover. */
.reader > .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reader__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: min(92vw, 1180px);
  margin: 0 auto clamp(0.75rem, 1.5vw, 1.15rem);
}

.reader__heading > p,
.reader__heading h1 {
  color: var(--old-gold);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.67rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.reader__workspace {
  display: grid;
  justify-items: center;
}

.book-stage {
  width: min(1040px, 88vw, calc((100svh - 220px) * 1.54));
  aspect-ratio: 1.54 / 1;
  perspective: 2200px;
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
}

.book {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotateX(1.2deg);
  transform-style: preserve-3d;
  isolation: isolate;
}

.book__ground {
  position: absolute;
  z-index: -3;
  right: 3%;
  bottom: -2.8%;
  left: 3%;
  height: 8%;
  opacity: 0.82;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.68);
  filter: blur(21px);
  transform: translateZ(-30px);
}

.book-cover {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 1.5%;
  left: 50%;
  width: 43%;
  cursor: default;
  color: var(--gold-light);
  background:
    linear-gradient(90deg, rgba(10, 6, 7, 0.76), transparent 6.5%, transparent 94%, rgba(10, 6, 7, 0.68)),
    radial-gradient(ellipse at 50% 14%, rgba(204, 178, 112, 0.09), transparent 27%),
    radial-gradient(ellipse at 64% 78%, rgba(156, 130, 75, 0.12), transparent 38%),
    repeating-linear-gradient(84deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px),
    linear-gradient(120deg, #171012 0%, #251719 46%, var(--cover-green) 100%);
  border: 1px solid rgba(185, 156, 89, 0.62);
  box-shadow:
    -13px 17px 35px rgba(0, 0, 0, 0.5),
    8px 13px 0 -2px #cfc4a9,
    12px 16px 0 -4px #665d4d;
  transform: translateX(-50%) rotateY(-4deg) translateZ(12px);
  transform-origin: left center;
  transform-style: preserve-3d;
}

.book-cover::before {
  position: absolute;
  inset: 18px;
  content: "";
  pointer-events: none;
  border: 1px solid var(--gold-hairline);
}

.book-cover::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5.5%;
  width: 1px;
  content: "";
  background: linear-gradient(transparent 2%, rgba(191, 162, 96, 0.4) 16%, rgba(191, 162, 96, 0.4) 84%, transparent 98%);
  box-shadow: 5px 0 12px rgba(0, 0, 0, 0.26);
}

.book-cover__inner {
  position: absolute;
  inset: 9.5% 11.5% 8.8% 15%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  text-align: center;
}

.book-cover__house,
.book-cover__genre,
.book-cover__title > p {
  font-size: clamp(0.47rem, 0.65vw, 0.68rem);
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.book-cover__house {
  color: rgba(198, 178, 125, 0.72);
}

.book-cover__monogram {
  position: relative;
  display: block;
  margin: 0;
  padding-bottom: clamp(0.9rem, 1.35vw, 1.2rem);
  color: rgba(212, 190, 133, 0.72);
  font: 400 clamp(2.6rem, 4vw, 4.25rem)/0.66 "Italianno", var(--serif);
  text-shadow: 0 1px 0 rgba(11, 8, 7, 0.65);
}

.book-cover__monogram::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: clamp(1.5rem, 2.1vw, 2.15rem);
  height: 1px;
  content: "";
  background: rgba(190, 159, 92, 0.42);
  transform: translateX(-50%);
}

.book-cover__title {
  align-self: center;
  width: 100%;
  margin: 0;
  transform: translateY(-1.5%);
}

.book-cover__title > p {
  display: grid;
  grid-template-columns: minmax(1.4rem, 1fr) auto minmax(1.4rem, 1fr);
  gap: clamp(0.7rem, 1.15vw, 1rem);
  align-items: center;
  margin-bottom: clamp(0.95rem, 1.45vw, 1.3rem);
  color: rgba(198, 178, 125, 0.68);
  font-size: clamp(0.62rem, 0.78vw, 0.76rem);
  letter-spacing: 0.23em;
}

.book-cover__title > p::before,
.book-cover__title > p::after {
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(190, 159, 92, 0.4));
}

.book-cover__title > p::after {
  background: linear-gradient(90deg, rgba(190, 159, 92, 0.4), transparent);
}

.book-cover__title h2 {
  color: var(--gold-light);
  font: 400 clamp(3rem, 5vw, 5.25rem)/0.86 "Italianno", var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.book-cover__title h2::after {
  display: block;
  width: clamp(2.35rem, 3vw, 3.2rem);
  height: 1px;
  margin: clamp(1.2rem, 1.8vw, 1.55rem) auto 0;
  content: "";
  background: var(--gold-hairline);
}

.book-cover__genre {
  position: relative;
  align-self: end;
  width: 78%;
  margin: 0 auto;
  color: var(--gold-light);
  line-height: 1.48;
  letter-spacing: 0.145em;
  white-space: normal;
}

.book-spread {
  position: absolute;
  z-index: 3;
  inset: 0 0 1.5%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  color: var(--paper-ink);
  border-radius: 4px 7px 7px 4px;
  background: var(--paper);
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.48),
    0 6px 0 -2px #c9bea6,
    0 10px 0 -4px #776e5d;
  transform: translateZ(4px);
}

.book-spread::after {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 22px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(63, 53, 39, 0.18), rgba(255, 255, 255, 0.12) 46%, rgba(63, 53, 39, 0.2));
  transform: translateX(-50%);
  mix-blend-mode: multiply;
}

.book-spread > .book-page {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 34% 36%, rgba(77, 100, 78, .16), transparent 38%),
    repeating-linear-gradient(96deg, rgba(222, 207, 171, .012) 0 1px, transparent 1px 7px),
    radial-gradient(rgba(197, 171, 112, .06) .4px, transparent .55px);
  background-size: auto, auto, 7px 7px;
}

.book-page--portrait {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 4vw, 4.4rem) clamp(2.4rem, 4.5vw, 4.7rem);
  box-shadow: inset -25px 0 30px -29px rgba(41, 33, 23, 0.72);
}

.book-page--text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6.4rem) clamp(2.8rem, 5.8vw, 6rem);
  box-shadow: inset 25px 0 30px -29px rgba(41, 33, 23, 0.72);
}

.book-portrait {
  position: relative;
  width: min(76%, 300px);
  aspect-ratio: 2 / 3;
  padding: clamp(7px, .8vw, 10px);
  background: #211e1b;
  border: 2px solid #8d7240;
  box-shadow:
    0 0 0 1px rgba(181, 153, 91, .26),
    0 17px 27px rgba(46, 37, 24, 0.18);
}

.book-portrait::after {
  position: absolute;
  inset: clamp(7px, .8vw, 10px);
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(196, 167, 104, 0.56);
}

.book-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #171513;
}

.book-portrait__profile {
  position: absolute;
  z-index: 3;
  inset: 0;
  cursor: pointer;
}

.book-page__copy {
  position: relative;
  z-index: 1;
}

.book-page__kicker {
  margin-bottom: clamp(1.1rem, 2vw, 1.8rem);
  color: #b49a66;
  font-size: clamp(0.55rem, 0.75vw, 0.7rem);
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.book-page__copy h2 {
  max-width: none;
  color: var(--paper-ink);
  font: 500 clamp(2.125rem, 3.4vw, 3.05rem)/0.91 var(--serif);
  letter-spacing: -0.042em;
  hyphens: none;
  overflow-wrap: normal;
  white-space: nowrap;
  text-wrap: nowrap;
  word-break: normal;
}

.book-page__title {
  max-width: none;
  margin-top: clamp(1rem, 1.8vw, 1.55rem);
  color: #c5a96e;
  font: 400 clamp(.82rem, 1.1vw, 1.02rem)/1.34 var(--serif);
  letter-spacing: .105em;
  text-transform: uppercase;
  white-space: nowrap;
  text-wrap: nowrap;
}

.book[data-person="graf-ferdinand"] .book-page__title {
  max-width: none;
  font-size: clamp(0.68rem, 0.9vw, 0.82rem);
  letter-spacing: 0.075em;
  white-space: nowrap;
  text-wrap: nowrap;
}

.book-page__profile {
  position: relative;
  z-index: 4;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: clamp(0.85rem, 1.4vw, 1.2rem);
  color: #d8c4a3;
  font-size: clamp(0.78rem, 1vw, 0.94rem);
  font-weight: 500;
  letter-spacing: 0.035em;
  border-bottom: 1px solid rgba(126, 104, 56, 0.56);
}

.book-page__profile:hover,
.book-page__profile:focus-visible {
  color: #ead5af;
}

.book-page__imprint {
  position: absolute;
  right: clamp(2.8rem, 5.8vw, 6rem);
  bottom: clamp(1.7rem, 2.4vw, 2.5rem);
  color: rgba(69, 59, 42, 0.48);
  font-size: clamp(0.46rem, 0.6vw, 0.58rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.book-page__folio {
  position: absolute;
  bottom: clamp(1.5rem, 2.2vw, 2.3rem);
  color: rgba(69, 59, 42, 0.52);
  font: 400 clamp(0.75rem, 0.9vw, 0.9rem)/1 var(--serif);
}

.book-page--portrait .book-page__folio {
  left: clamp(2rem, 3.4vw, 3.5rem);
}

.book-page--text .book-page__folio {
  right: clamp(2rem, 3.4vw, 3.5rem);
}

.page-turn {
  position: absolute;
  z-index: 14;
  top: 0;
  left: 50%;
  display: none;
  width: 50%;
  height: 98.5%;
  pointer-events: none;
  transform-style: preserve-3d;
}

.page-turn__face {
  position: absolute;
  inset: 0;
  display: block;
  backface-visibility: hidden;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, .3), transparent 13%, transparent 86%, rgba(219, 204, 171, .035)),
    repeating-linear-gradient(96deg, rgba(222, 207, 171, .012) 0 1px, transparent 1px 7px),
    radial-gradient(rgba(197, 171, 112, .06) .4px, transparent .55px);
  background-size: auto, auto, 7px 7px;
}

.page-turn__face--front::after,
.page-turn__face--back::after {
  position: absolute;
  right: 12%;
  bottom: 8%;
  left: 12%;
  height: 1px;
  content: "";
  background: rgba(126, 104, 56, 0.24);
}

.page-turn__face--back {
  background-image:
    linear-gradient(270deg, rgba(0, 0, 0, .3), transparent 13%, transparent 86%, rgba(219, 204, 171, .035)),
    repeating-linear-gradient(96deg, rgba(222, 207, 171, .012) 0 1px, transparent 1px 7px),
    radial-gradient(rgba(197, 171, 112, .06) .4px, transparent .55px);
  transform: rotateY(180deg);
}

.book[data-turn="next"] .page-turn {
  display: block;
  transform-origin: left center;
  animation: turn-next var(--turn-duration) cubic-bezier(0.48, 0.05, 0.2, 1) both;
}

.book[data-turn="previous"] .page-turn {
  left: 0;
  display: block;
  transform-origin: right center;
  animation: turn-previous var(--turn-duration) cubic-bezier(0.48, 0.05, 0.2, 1) both;
}

.book[data-view="cover"][data-turn="next"] .book-cover {
  animation: cover-open calc(var(--turn-duration) * 0.58) cubic-bezier(0.56, 0.03, 0.45, 1) both;
}

.book[data-view="cover"][data-turn="previous"] .book-cover {
  animation: cover-settle calc(var(--turn-duration) * 0.52) cubic-bezier(0.2, 0.72, 0.28, 1) both;
}

@keyframes turn-next {
  0% {
    box-shadow: -6px 4px 12px rgba(38, 29, 17, 0.12);
    transform: rotateY(0deg);
  }
  48% {
    box-shadow: -24px 9px 35px rgba(23, 17, 10, 0.3);
  }
  100% {
    box-shadow: 8px 5px 14px rgba(38, 29, 17, 0.12);
    transform: rotateY(-180deg);
  }
}

@keyframes turn-previous {
  0% {
    box-shadow: 6px 4px 12px rgba(38, 29, 17, 0.12);
    transform: rotateY(0deg);
  }
  48% {
    box-shadow: 24px 9px 35px rgba(23, 17, 10, 0.3);
  }
  100% {
    box-shadow: -8px 5px 14px rgba(38, 29, 17, 0.12);
    transform: rotateY(180deg);
  }
}

@keyframes cover-open {
  from {
    transform: translateX(-50%) rotateY(-4deg) translateZ(12px);
  }
  to {
    transform: translateX(-50%) rotateY(-105deg) translateZ(12px);
  }
}

@keyframes cover-settle {
  from {
    opacity: 0.72;
    transform: translateX(-50%) rotateY(-16deg) translateZ(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) rotateY(-4deg) translateZ(12px);
  }
}

.book-edge {
  position: absolute;
  z-index: 20;
  top: 10%;
  bottom: 10%;
  width: 8%;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
  background: transparent;
  border: 0;
}

.book-edge:disabled {
  cursor: default;
  opacity: 0;
  pointer-events: none;
}

.book-edge span {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1px;
  background: rgba(126, 104, 56, 0.55);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.book-edge--previous {
  left: 0;
}

.book-edge--next {
  right: 0;
}

.book-edge--previous span {
  left: 14px;
}

.book-edge--next span {
  right: 14px;
}

.book-edge:hover span,
.book-edge:focus-visible span {
  opacity: 1;
  transform: scaleX(1.35);
}

.book[data-view="cover"] .book-edge--previous {
  display: none;
}

.book[data-view="cover"] .book-edge--next {
  right: 27.5%;
  width: 7%;
}

.reader-controls {
  display: grid;
  grid-template-columns: minmax(5.5rem, 1fr) minmax(13rem, auto) minmax(5.5rem, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  width: min(88vw, 720px);
  margin-top: clamp(1rem, 1.8vw, 1.5rem);
}

#book-previous {
  grid-column: 1;
}

#book-status {
  grid-column: 2;
}

#book-next {
  grid-column: 3;
}

.reader-control {
  padding: 0.5rem 0;
  color: var(--gold-light);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(172, 145, 82, 0.44);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.reader-control:hover,
.reader-control:focus-visible {
  color: var(--cream);
  border-bottom-color: var(--gold-light);
}

.reader-control:disabled {
  color: rgba(234, 213, 175, 0.25);
  cursor: default;
  border-bottom-color: rgba(233, 224, 207, 0.1);
}

.reader-status {
  color: rgba(234, 213, 175, 0.67);
  font: 400 clamp(0.92rem, 1.3vw, 1.13rem)/1.25 var(--serif);
  text-align: center;
}

.reader-hint,
.no-script {
  margin-top: 0.8rem;
  color: rgba(234, 213, 175, 0.43);
  font-size: 0.7rem;
  letter-spacing: 0.035em;
  text-align: center;
}

.no-script {
  color: var(--cream);
}

@media (min-width: 761px) and (max-width: 1100px) {
  .reader__heading {
    width: min(94vw, 900px);
    margin-bottom: clamp(0.65rem, 1.3vh, 0.9rem);
  }

  .book-stage {
    width: min(94vw, 900px, calc((100svh - 210px) * 1.54));
  }

  .reader-controls {
    width: min(78vw, 620px);
    margin-top: clamp(0.7rem, 1.3vh, 0.95rem);
  }
}

@media (max-width: 760px) {
  .book-header {
    width: 91vw;
    min-height: 66px;
  }

  .wordmark__eyebrow {
    color: rgba(152, 127, 71, .58);
    font-size: .58rem;
    letter-spacing: .21em;
  }

  .wordmark__name {
    color: rgba(152, 127, 71, .58);
    font-size: .66rem;
  }

  .book-header__section {
    font-size: 0.65rem;
  }

  .reader {
    padding: 0.55rem 2.5vw 1rem;
  }

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

  .book-stage {
    width: min(91vw, 420px, calc((100svh - 166px) * 0.667));
    aspect-ratio: 2 / 3;
  }

  .book-cover {
    top: 0;
    right: 0;
    bottom: 1.2%;
    left: 0;
    width: 100%;
    transform: rotateY(-3deg) translateZ(10px);
  }

  .book-cover::before {
    inset: 13px;
  }

  .book-cover__inner {
    inset: 8.8% 10.5% 8.3% 13.5%;
  }

  .book-cover__house,
  .book-cover__genre,
  .book-cover__title > p {
    font-size: 0.48rem;
  }

  .book-cover__monogram {
    padding-bottom: 0.85rem;
    font-size: clamp(2.55rem, 10.5vw, 3.15rem);
  }

  .book-cover__title h2 {
    font-size: clamp(2.55rem, 11.5vw, 3.2rem);
    line-height: 0.89;
  }

  .book-cover__title > p {
    grid-template-columns: minmax(1rem, 1fr) auto minmax(1rem, 1fr);
    gap: 0.65rem;
    margin-bottom: 0.9rem;
    font-size: 0.58rem;
  }

  .book-cover__title h2::after {
    margin-top: 1.05rem;
  }

  .book-cover__genre {
    width: 84%;
    font-size: 0.54rem;
    line-height: 1.42;
    letter-spacing: 0.12em;
  }

  .book-spread {
    display: block;
    border-radius: 3px 7px 7px 3px;
  }

  .book-spread::after {
    top: 0;
    bottom: 0;
    left: 0;
    width: 12px;
    background: linear-gradient(90deg, rgba(50, 40, 27, 0.24), rgba(255, 255, 255, 0.13) 60%, transparent);
    transform: none;
  }

  .book-page--portrait {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 67%;
    padding: 1.6rem 1.7rem 0.8rem;
    box-shadow: none;
  }

  .book-page--text {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 33%;
    justify-content: flex-start;
    padding: 0.85rem 2rem 1.45rem;
    box-shadow: inset 0 22px 23px -27px rgba(41, 33, 23, 0.64);
  }

  .book-portrait {
    width: auto;
    height: 94%;
  }

  .book-page__kicker {
    margin-bottom: 0.45rem;
    font-size: 0.49rem;
  }

  .book-page__copy h2 {
    max-width: none;
    font-size: clamp(1.7rem, 8.4vw, 2.2rem);
    line-height: 0.88;
  }

  .book-page__title {
    max-width: none;
    margin-top: 0.45rem;
    font-size: clamp(.76rem, 3.4vw, .9rem);
    line-height: 1.24;
    letter-spacing: .085em;
  }

  .book-page__profile {
    margin-top: 0.55rem;
    font-size: 0.76rem;
  }

  .book-page__copy {
    pointer-events: none;
  }

  .book-page__profile {
    min-width: min(100%, 13rem);
    pointer-events: auto;
  }

  .book-page__imprint,
  .book-page--portrait .book-page__folio {
    display: none;
  }

  .book-page--text .book-page__folio {
    right: 1.25rem;
    bottom: 1.1rem;
    font-size: 0.72rem;
  }

  .page-turn,
  .book[data-turn="previous"] .page-turn {
    left: 0;
    width: 100%;
    height: 98.8%;
  }

  .book[data-view="cover"][data-turn="next"] .book-cover {
    animation-name: cover-open-mobile;
  }

  .book[data-view="cover"][data-turn="previous"] .book-cover {
    animation-name: cover-settle-mobile;
  }

  @keyframes cover-open-mobile {
    from {
      transform: rotateY(-3deg) translateZ(10px);
    }
    to {
      transform: rotateY(-105deg) translateZ(10px);
    }
  }

  @keyframes cover-settle-mobile {
    from {
      opacity: 0.72;
      transform: rotateY(-16deg) translateZ(10px);
    }
    to {
      opacity: 1;
      transform: rotateY(-3deg) translateZ(10px);
    }
  }

  .book-edge {
    width: 14%;
  }

  .book[data-view="cover"] .book-edge--next {
    right: 0;
    width: 16%;
  }

  .reader-controls {
    grid-template-columns: 4.7rem minmax(9.5rem, 1fr) 4.7rem;
    gap: 0.65rem;
    width: 91vw;
    margin-top: 0.85rem;
  }

  .reader-controls[data-view="spread"] {
    min-height: 2.5rem;
  }

  .reader-control {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .reader-status {
    font-size: 0.91rem;
  }

  .reader-hint {
    width: 88vw;
    margin-top: 0.6rem;
    font-size: 0.64rem;
  }
}

@media (max-width: 390px) {
  .book-page--text {
    padding-right: 1.65rem;
    padding-left: 1.65rem;
  }

  .book-page__copy h2 {
    font-size: clamp(1.7rem, 8.4vw, 2.2rem);
  }

  .book-page__title {
    font-size: .74rem;
  }

  .reader-controls {
    grid-template-columns: 4rem minmax(8.5rem, 1fr) 4rem;
  }
}

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