:root {
  --navy: #1c1447;
  --navy-deep: #100b2d;
  --navy-soft: #30265f;
  --purple: #855abf;
  --purple-deep: #604092;
  --cyan: #9de9f6;
  --lilac: #e5e6fa;
  --mauve: #c1c1e5;
  --page: #f5f4fc;
  --ink: #211a45;
  --muted: #625b7c;
  --shadow: rgba(8, 5, 28, 0.38);
  --book-width: min(1040px, calc(100vw - 160px));
  --display-font: bree, Verdana, Geneva, sans-serif;
  font-family: Verdana, Geneva, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--lilac);
  background:
    radial-gradient(circle at 18% 12%, rgba(133, 90, 191, 0.28), transparent 32rem),
    radial-gradient(circle at 82% 72%, rgba(157, 233, 246, 0.12), transparent 30rem),
    linear-gradient(145deg, var(--navy-deep), var(--navy) 48%, #151039);
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--navy-deep);
  background: var(--cyan);
  transform: translateY(-160%);
}

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

.site-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
}

.binary-veil {
  position: fixed;
  z-index: -2;
  inset: -8vh -8vw;
  display: grid;
  align-content: space-around;
  width: 116vw;
  height: 116vh;
  padding: 2vh 0;
  color: var(--cyan);
  opacity: 0.072;
  transform: rotate(-5deg) scale(1.04);
  transform-origin: center;
  font-size: clamp(0.72rem, 1.1vw, 1rem);
  line-height: 1.7;
  letter-spacing: 0.35em;
  white-space: nowrap;
  user-select: none;
  mask-image: radial-gradient(ellipse at center, black 24%, rgba(0, 0, 0, 0.9) 62%, transparent 100%);
}

.binary-veil span {
  display: block;
  width: max-content;
}

.binary-veil span::after {
  content: "  101101001011 001101010110 110100101101 010010110100 110010101001 011010010110 101101001011 001011010010";
}

.binary-veil span:nth-child(odd) {
  transform: translateX(-2vw) skewX(-5deg);
}

.binary-veil span:nth-child(even) {
  transform: translateX(8vw) skewX(4deg);
}

.site-header,
.site-footer {
  width: min(1400px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid rgba(229, 230, 250, 0.14);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--lilac);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.header-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.header-wordmark {
  display: block;
  width: 180px;
  height: 30px;
  overflow: hidden;
}

.header-wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.site-nav a,
.site-footer a,
.text-link,
.cover-text-link {
  color: var(--mauve);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"],
.site-footer a:hover,
.site-footer a:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.cover-text-link:hover,
.cover-text-link:focus-visible {
  color: var(--cyan);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  aspect-ratio: 1;
  border: 1px solid rgba(157, 233, 246, 0.55);
  border-radius: 50% 50% 45% 55%;
  color: var(--cyan);
  box-shadow: inset 0 0 18px rgba(157, 233, 246, 0.16);
  font-size: 0.76rem;
}

.prototype-label {
  color: var(--mauve);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main {
  width: min(1460px, 100%);
  margin-inline: auto;
}

.cover-view {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 142px);
  padding: 54px 24px 72px;
  perspective: 1800px;
}

.site-shell.is-opening .cover-view {
  position: absolute;
  z-index: 30;
  top: 76px;
  right: 0;
  left: 0;
  pointer-events: none;
}

.site-shell.is-opening .cover-book {
  transform-origin: left center;
  animation: open-front-cover 920ms cubic-bezier(0.55, 0.03, 0.2, 1) both;
}

.site-shell.is-opening .book-view {
  animation: reveal-open-book 920ms ease-out both;
}

.cover-book {
  position: relative;
  width: min(720px, 92vw);
  min-height: 680px;
  padding: clamp(34px, 5vw, 52px);
  overflow: hidden;
  border: 1px solid rgba(193, 193, 229, 0.32);
  border-radius: 12px 28px 28px 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 8%, transparent 92%, rgba(0, 0, 0, 0.18)),
    linear-gradient(145deg, #261b59, var(--navy) 54%, #171039);
  box-shadow:
    -15px 18px 0 #0b0723,
    0 34px 80px rgba(3, 2, 14, 0.6),
    inset 0 0 0 7px rgba(133, 90, 191, 0.13);
  clip-path: polygon(
    0.7% 0.8%, 13% 0.15%, 28% 0.65%, 44% 0.1%, 59% 0.7%, 76% 0.2%, 91% 0.75%, 99.2% 0.35%,
    99.75% 12%, 99.15% 27%, 99.85% 43%, 99.2% 61%, 99.8% 78%, 99.1% 92%, 99.45% 99.1%,
    84% 99.8%, 68% 99.2%, 52% 99.85%, 35% 99.25%, 19% 99.8%, 0.6% 99.05%,
    0.15% 87%, 0.8% 73%, 0.1% 58%, 0.75% 42%, 0.15% 26%
  );
  filter:
    drop-shadow(0 0 5px rgba(157, 233, 246, 0.36))
    drop-shadow(0 0 19px rgba(157, 233, 246, 0.2));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  text-align: center;
}

.cover-book::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 1% 3%, rgba(193, 193, 229, 0.42), transparent 10%),
    radial-gradient(circle at 99% 6%, rgba(157, 233, 246, 0.18), transparent 9%),
    radial-gradient(circle at 98% 97%, rgba(133, 90, 191, 0.27), transparent 12%),
    radial-gradient(circle at 3% 96%, rgba(193, 193, 229, 0.24), transparent 11%);
  mix-blend-mode: screen;
  opacity: 0.78;
}

.cover-book::after {
  content: "";
  position: absolute;
  inset: 20px;
  pointer-events: none;
  border: 1px solid rgba(157, 233, 246, 0.16);
  border-radius: 5px 18px 18px 5px;
}

.cover-rule {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 26px;
  width: 5px;
  background: linear-gradient(90deg, transparent, rgba(157, 233, 246, 0.28), transparent);
}

.cover-glow {
  position: absolute;
  z-index: 0;
  top: 6%;
  left: 50%;
  width: 26rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 233, 246, 0.18), rgba(133, 90, 191, 0.1) 42%, transparent 70%);
  transform: translateX(-50%);
  filter: blur(2px);
}

.cover-arrow {
  position: absolute;
  z-index: 0;
  top: 24%;
  right: 7%;
  width: clamp(112px, 22%, 172px);
  height: auto;
  pointer-events: none;
  opacity: 0.13;
  transform: rotate(5deg);
  filter:
    drop-shadow(0 0 5px rgba(157, 233, 246, 0.28))
    drop-shadow(0 0 13px rgba(157, 233, 246, 0.12));
}

.cover-bookmark {
  position: absolute;
  z-index: 4;
  top: 0;
  right: auto;
  left: clamp(46px, 7%, 64px);
  width: 156px;
  height: 154px;
  pointer-events: none;
}

.cover-bookmark-button {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  width: 156px;
  min-height: 82px;
  padding: 17px 18px 28px;
  border: 1px solid rgba(157, 233, 246, 0.72);
  border-top: 0;
  color: #fff;
  background: linear-gradient(155deg, #7147ad, #482b82 58%, #2e1c65);
  box-shadow:
    0 8px 18px rgba(3, 2, 14, 0.42),
    0 0 17px rgba(157, 233, 246, 0.2),
    inset 0 0 16px rgba(229, 230, 250, 0.08);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  font: 700 0.93rem/1.2 Verdana, Arial, sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  pointer-events: auto;
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.cover-bookmark-button:hover,
.cover-bookmark-button:focus-visible {
  outline: none;
  filter: brightness(1.12);
  transform: translateY(3px);
  box-shadow:
    0 8px 18px rgba(3, 2, 14, 0.42),
    0 0 0 3px rgba(157, 233, 246, 0.18),
    0 0 25px rgba(157, 233, 246, 0.58);
}

.bookmark-cord {
  position: absolute;
  z-index: 1;
  top: 62px;
  right: auto;
  left: 50%;
  width: 10px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(var(--cyan), var(--cyan)) 4px 0 / 2px 13px no-repeat,
    linear-gradient(63deg, transparent 41%, var(--cyan) 43%, var(--cyan) 57%, transparent 59%) 4px 12px / 4px 6px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 7px 17px / 2px 13px no-repeat;
  opacity: 0.9;
  transform: none;
  filter: drop-shadow(0 0 4px rgba(157, 233, 246, 0.42));
}

.bookmark-cord::after {
  content: "";
  position: absolute;
  right: auto;
  left: -4px;
  bottom: -65px;
  width: 24px;
  height: 66px;
  background: linear-gradient(90deg, #8256c1, var(--cyan) 48%, #6d43a8 52%, #a67add);
  clip-path: polygon(50% 0, 64% 7%, 59% 20%, 78% 100%, 52% 91%, 26% 100%, 41% 20%, 36% 7%);
  transform: rotate(8deg);
  transform-origin: 50% 0;
  filter: drop-shadow(0 0 5px rgba(157, 233, 246, 0.34));
}

.logo-field,
.cover-wordmark,
.cover-book h1,
.cover-book p,
.cover-book .button {
  position: relative;
  z-index: 1;
}

.logo-field {
  width: 210px;
  height: 168px;
  margin: 0 auto 10px;
  overflow: hidden;
}

.logo-field img {
  width: 100%;
  height: auto;
  padding: 0;
}

.cover-wordmark {
  width: min(340px, 78%);
  height: 58px;
  margin: 0 auto 18px;
  overflow: hidden;
}

.cover-wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.6;
  text-transform: uppercase;
}

.cover-book h1 {
  margin: 0;
  color: #fff;
  font-family: var(--display-font);
  font-weight: 400;
  font-size: clamp(2.08rem, 4.73vw, 3.53rem);
  line-height: 1.23;
  letter-spacing: -0.055em;
}

.cover-copy {
  max-width: 570px;
  margin: 24px auto 30px;
  color: var(--lilac);
  font-size: clamp(1rem, 2vw, 1.17rem);
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.button-dark {
  border-color: rgba(157, 233, 246, 0.5);
  color: var(--navy-deep);
  background: var(--cyan);
}

.button-dark:hover,
.button-dark:focus-visible {
  border-color: #fff;
  outline: none;
  box-shadow:
    0 0 0 3px rgba(157, 233, 246, 0.2),
    0 0 24px rgba(157, 233, 246, 0.58);
  transform: translateY(-2px);
}

.copy-email-button {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.copy-email-button.text-link {
  padding: 0;
  border: 0;
  background: transparent;
}

.discord-button {
  border-color: rgba(224, 227, 255, 0.56);
  color: #fff;
  background: #5865f2;
}

.discord-button img {
  width: 24px;
  height: 18px;
  flex: 0 0 auto;
}

.discord-button:hover,
.discord-button:focus-visible {
  border-color: #fff;
  outline: none;
  box-shadow:
    0 0 0 3px rgba(88, 101, 242, 0.22),
    0 0 22px rgba(88, 101, 242, 0.64);
  transform: translateY(-2px);
}

.cover-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cover-text-link {
  font-size: 0.9rem;
}

.button-light {
  margin-top: auto;
  border-color: rgba(28, 20, 71, 0.22);
  color: var(--page);
  background: var(--purple-deep);
}

.button-light:hover,
.button-light:focus-visible {
  border-color: var(--navy);
  outline: none;
  box-shadow:
    0 0 0 3px rgba(28, 20, 71, 0.14),
    0 0 18px rgba(28, 20, 71, 0.36);
  transform: translateY(-2px);
}

.book-view {
  min-height: calc(100vh - 142px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 24px 38px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.book-layout {
  position: relative;
  width: var(--book-width);
  margin-inline: auto;
  perspective: 1800px;
}

.book {
  position: relative;
  filter:
    drop-shadow(0 32px 34px rgba(2, 1, 13, 0.52))
    drop-shadow(0 0 6px rgba(157, 233, 246, 0.3))
    drop-shadow(0 0 23px rgba(157, 233, 246, 0.15));
}

.book-cover-edge {
  position: absolute;
  z-index: -1;
  inset: -13px -14px -18px;
  border: 1px solid rgba(133, 90, 191, 0.5);
  border-radius: 16px 24px 24px 16px;
  background: linear-gradient(145deg, var(--navy-soft), var(--navy-deep));
  box-shadow:
    0 0 0 1px rgba(157, 233, 246, 0.24),
    0 0 32px rgba(157, 233, 246, 0.19);
}

.book-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 680px;
  min-height: 570px;
  overflow: hidden;
  border-radius: 9px 16px 16px 9px;
  color: var(--ink);
  background: var(--page);
  transform-style: preserve-3d;
}

.book-spread:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 18px;
}

.book-page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: clamp(36px, 5vw, 66px);
}

.page-left {
  border-radius: 9px 0 0 9px;
  background:
    linear-gradient(90deg, rgba(28, 20, 71, 0.035), transparent 18%),
    linear-gradient(270deg, rgba(28, 20, 71, 0.11), transparent 9%),
    var(--page);
}

.page-right {
  border-radius: 0 16px 16px 0;
  background:
    linear-gradient(90deg, rgba(28, 20, 71, 0.11), transparent 9%),
    linear-gradient(270deg, rgba(133, 90, 191, 0.04), transparent 20%),
    #f5f4fc;
}

.book-page::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(28, 20, 71, 0.07);
  border-radius: inherit;
}

.book-page::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 1% 4%, rgba(96, 64, 146, 0.24), transparent 10%),
    radial-gradient(circle at 2% 19%, rgba(28, 20, 71, 0.14), transparent 8%),
    radial-gradient(circle at 0% 43%, rgba(133, 90, 191, 0.17), transparent 9%),
    radial-gradient(circle at 3% 69%, rgba(96, 64, 146, 0.16), transparent 11%),
    radial-gradient(circle at 1% 95%, rgba(28, 20, 71, 0.18), transparent 10%),
    radial-gradient(ellipse at 58% 2%, rgba(133, 90, 191, 0.07), transparent 13%),
    radial-gradient(ellipse at 72% 98%, rgba(28, 20, 71, 0.06), transparent 15%),
    repeating-linear-gradient(4deg, transparent 0 8px, rgba(28, 20, 71, 0.025) 9px, transparent 10px 18px);
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.page-right::before {
  transform: scaleX(-1);
}

.book-page > * {
  position: relative;
  z-index: 1;
}

.book-spine {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 30px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(28, 20, 71, 0.17), rgba(255, 255, 255, 0.4), rgba(28, 20, 71, 0.14), transparent);
  transform: translateX(-50%);
  opacity: 0.8;
}

.turning-sheet {
  position: absolute;
  z-index: 9;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: rotateY(0deg);
  transform-origin: left center;
  transform-style: preserve-3d;
  will-change: transform;
}

.turning-sheet.is-turning-forward,
.turning-sheet.is-turning-backward {
  visibility: visible;
  opacity: 1;
}

.turning-sheet.is-turning-forward {
  left: 50%;
  transform-origin: left center;
  clip-path: polygon(0 0, 20% 0.6%, 39% 0.1%, 58% 0.8%, 77% 0.15%, 98.8% 0.9%, 99.8% 17%, 98.7% 35%, 99.9% 54%, 98.6% 73%, 99.7% 90%, 98.9% 99.1%, 77% 99.8%, 56% 99.1%, 35% 99.85%, 16% 99.2%, 0 100%);
  animation: turn-page-forward 760ms cubic-bezier(0.45, 0.04, 0.22, 1) both;
}

.turning-sheet.is-turning-backward {
  left: 0;
  transform-origin: right center;
  clip-path: polygon(1.2% 0.9%, 23% 0.15%, 44% 0.8%, 65% 0.1%, 84% 0.7%, 100% 0, 100% 100%, 82% 99.2%, 63% 99.85%, 42% 99.1%, 21% 99.8%, 1.1% 99.05%, 0.2% 87%, 1.3% 72%, 0.15% 56%, 1.4% 39%, 0.2% 22%);
  animation: turn-page-backward 760ms cubic-bezier(0.45, 0.04, 0.22, 1) both;
}

.sheet-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 66px);
  overflow: hidden;
  border: 1px solid rgba(28, 20, 71, 0.12);
  color: var(--ink);
  background:
    radial-gradient(circle at 2% 10%, rgba(96, 64, 146, 0.18), transparent 10%),
    radial-gradient(circle at 1% 88%, rgba(28, 20, 71, 0.13), transparent 10%),
    repeating-linear-gradient(4deg, transparent 0 8px, rgba(28, 20, 71, 0.022) 9px, transparent 10px 18px),
    var(--page);
  box-shadow: inset 0 0 28px rgba(28, 20, 71, 0.09);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.sheet-face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(28, 20, 71, 0.2), transparent 10%, transparent 84%, rgba(28, 20, 71, 0.11));
  opacity: 0.55;
}

.sheet-front {
  border-radius: 0 16px 16px 0;
  transform: translateZ(0.8px);
}

.sheet-back {
  border-radius: 16px 0 0 16px;
  transform: rotateY(180deg) translateZ(0.8px);
}

.sheet-face p,
.sheet-face strong,
.sheet-page-number,
.sheet-ornament {
  position: relative;
  z-index: 1;
}

.turning-sheet .sheet-face p,
.turning-sheet .sheet-face strong,
.turning-sheet .sheet-page-number {
  opacity: 0;
}

.sheet-face p {
  margin: 0 0 14px;
  color: var(--purple-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sheet-face strong {
  max-width: 17ch;
  color: var(--navy);
  font-family: var(--display-font);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.8vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.sheet-page-number {
  position: absolute;
  top: 24px;
  right: 30px;
  color: rgba(28, 20, 71, 0.42);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.sheet-back .sheet-page-number {
  right: auto;
  left: 30px;
}

.sheet-ornament {
  width: 70%;
  height: 2px;
  margin-top: 30px;
  background: linear-gradient(90deg, var(--purple), var(--cyan), transparent);
}

.turning-sheet.is-turning-forward::after,
.turning-sheet.is-turning-backward::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 5, 28, 0.34), transparent 22%, transparent 78%, rgba(8, 5, 28, 0.2));
  backface-visibility: hidden;
  animation: turning-shadow 760ms ease-in-out both;
}

.book-spread.is-changing-mobile {
  animation: mobile-chapter-change 320ms ease-in-out both;
}

@keyframes turn-page-forward {
  0% {
    opacity: 1;
    transform: rotateY(0deg) translateZ(1px);
  }
  42% {
    opacity: 1;
    transform: rotateY(-78deg) translateZ(14px);
  }
  54% {
    opacity: 1;
    transform: rotateY(-101deg) translateZ(14px);
  }
  82% {
    opacity: 0.86;
  }
  100% {
    opacity: 0;
    transform: rotateY(-180deg) translateZ(1px);
  }
}

@keyframes turn-page-backward {
  0% {
    opacity: 1;
    transform: rotateY(0deg) translateZ(1px);
  }
  42% {
    opacity: 1;
    transform: rotateY(78deg) translateZ(14px);
  }
  54% {
    opacity: 1;
    transform: rotateY(101deg) translateZ(14px);
  }
  82% {
    opacity: 0.86;
  }
  100% {
    opacity: 0;
    transform: rotateY(180deg) translateZ(1px);
  }
}

@keyframes turning-shadow {
  0%, 100% {
    opacity: 0.08;
  }
  48%, 56% {
    opacity: 0.72;
  }
}

@keyframes mobile-chapter-change {
  0%, 100% {
    opacity: 1;
    transform: translateX(0);
  }
  48% {
    opacity: 0.18;
    transform: translateX(-10px);
  }
  52% {
    opacity: 0.18;
    transform: translateX(10px);
  }
}

@keyframes open-front-cover {
  0% {
    opacity: 1;
    transform: rotateY(0deg) translateX(0) scale(1);
  }
  42% {
    opacity: 1;
    transform: rotateY(-68deg) translateX(-2%) scale(0.98);
  }
  53% {
    opacity: 1;
    transform: rotateY(-88deg) translateX(-4%) scale(0.97);
  }
  54% {
    opacity: 0;
    transform: rotateY(-91deg) translateX(-4.2%) scale(0.97);
  }
  100% {
    opacity: 0;
    transform: rotateY(-158deg) translateX(-14%) scale(0.94);
  }
}

@keyframes reveal-open-book {
  0% {
    opacity: 0.12;
    transform: scale(0.965);
  }
  46% {
    opacity: 0.42;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.page-number {
  position: absolute;
  top: 24px;
  color: rgba(28, 20, 71, 0.42);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.page-left .page-number {
  left: 30px;
}

.page-right .page-number {
  right: 30px;
}

.chapter-kicker,
.page-label {
  margin: 0 0 13px;
  color: var(--purple-deep);
  font-family: var(--display-font);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.book-page h3 {
  max-width: 19ch;
  margin: 0;
  color: var(--navy);
  font-family: var(--display-font);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.book-spread[data-active-chapter="ai"] h3 {
  font-size: clamp(1.8rem, 2.75vw, 2.75rem);
}

.book-spread[data-active-chapter="ai"] .chapter-lede {
  margin-top: 18px;
}

.book-spread[data-active-chapter="ai"] .evidence-path {
  margin-block: 18px;
}

.chapter-lede {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}

.evidence-path {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 76px;
  height: 76px;
  margin: 22px 0 20px;
  overflow: hidden;
}

.evidence-path img {
  display: block;
  width: 75%;
  height: 75%;
  opacity: 0.9;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(133, 90, 191, 0.2));
}

.page-callout {
  margin-top: auto;
  padding: 18px 20px;
  border-left: 4px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  background: rgba(229, 230, 250, 0.72);
}

.page-callout strong {
  display: block;
  color: var(--navy);
  font-family: var(--display-font);
  font-weight: 400;
}

.page-callout p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

.chapter-list {
  display: grid;
  gap: 0;
  margin: 4px 0 28px;
  padding: 0;
  list-style: none;
}

.chapter-list li {
  display: grid;
  gap: 6px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(28, 20, 71, 0.12);
}

.chapter-list strong {
  color: var(--navy);
  font-family: var(--display-font);
  font-weight: 400;
  font-size: 0.92rem;
}

.chapter-list span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.page-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.page-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(28, 20, 71, 0.2);
  border-radius: 7px;
  color: var(--navy);
  background: rgba(229, 230, 250, 0.7);
  font-size: 0.76rem;
  font-weight: 700;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.page-nav-next {
  justify-self: end;
  justify-content: flex-end;
}

.book-launch-link {
  border-color: var(--purple-deep);
  color: #fff;
  background: var(--purple-deep);
  text-decoration: none;
}

.book-launch-link:hover,
.book-launch-link:focus-visible {
  border-color: var(--navy);
  color: #fff;
  outline: none;
  background: var(--navy);
  box-shadow: 0 0 16px rgba(28, 20, 71, 0.3);
  transform: translateY(-1px);
}

.page-nav-button:hover:not(:disabled),
.page-nav-button:focus-visible {
  border-color: var(--navy);
  outline: none;
  background: var(--page);
  box-shadow: 0 0 16px rgba(28, 20, 71, 0.3);
  transform: translateY(-1px);
}

.page-nav-button:disabled {
  cursor: default;
  opacity: 0.34;
}

.spread-position {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.bookmarks {
  position: absolute;
  z-index: 6;
  top: 68px;
  left: calc(100% + 12px);
  display: grid;
  gap: 10px;
}

.bookmark {
  width: 116px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid rgba(229, 230, 250, 0.24);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  color: var(--lilac);
  background: rgba(48, 38, 95, 0.94);
  box-shadow: 8px 10px 18px rgba(4, 2, 18, 0.24);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  transition: width 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.bookmark:hover,
.bookmark:focus-visible {
  width: 126px;
  border-color: var(--cyan);
  outline: none;
  box-shadow: 0 0 20px rgba(157, 233, 246, 0.32);
}

.bookmark.is-active {
  width: 132px;
  border-color: var(--cyan);
  color: var(--navy-deep);
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(157, 233, 246, 0.36);
}

.text-button {
  display: block;
  margin: 34px auto 0;
  padding: 9px 12px;
  border: 0;
  color: var(--mauve);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--cyan);
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
  padding-block: 20px;
  border-top: 1px solid rgba(229, 230, 250, 0.12);
  color: var(--mauve);
  font-size: 0.76rem;
}

.site-footer > div,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer strong {
  color: var(--lilac);
}

.beta-invite {
  width: min(820px, calc(100% - 48px));
  margin: 54px auto 12px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(157, 233, 246, 0.28);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(48, 38, 95, 0.94), rgba(28, 20, 71, 0.94));
  box-shadow: 0 0 34px rgba(157, 233, 246, 0.12);
  text-align: center;
}

.beta-invite h2 {
  margin: 8px 0 16px;
  font-family: var(--display-font);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
}

.beta-invite > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 auto;
  color: var(--mauve);
  line-height: 1.75;
}

.beta-invite-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}

.content-main {
  width: min(1040px, calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(54px, 8vw, 100px) 0;
}

.content-hero {
  max-width: 820px;
  margin-bottom: 42px;
}

.content-hero h1 {
  max-width: 18ch;
  margin: 8px 0 20px;
  font-family: var(--display-font);
  font-size: clamp(2.32rem, 6.64vw, 4.81rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.content-hero > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--mauve);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.content-card,
.reading-spread {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(193, 193, 229, 0.2);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(245, 244, 252, 0.97);
  box-shadow: 0 18px 45px rgba(8, 5, 28, 0.18);
}

.content-card h2,
.content-card h3,
.reading-spread h2,
.reading-spread h3 {
  margin-top: 0;
  color: var(--navy);
  font-family: var(--display-font);
  font-weight: 400;
}

.content-card h2,
.reading-spread h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.content-card p,
.content-card li,
.reading-spread p,
.reading-spread li {
  color: var(--muted);
  line-height: 1.75;
}

.content-card a,
.reading-spread a {
  color: var(--purple-deep);
}

.content-card ul,
.reading-spread ul {
  padding-left: 1.25rem;
}

.content-card ol {
  padding-left: 1.35rem;
}

.file-hash {
  overflow-wrap: anywhere;
  color: var(--navy);
}

.content-stack {
  display: grid;
  gap: 24px;
}

.notice {
  padding: 18px 20px;
  border-left: 4px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  color: var(--lilac);
  background: rgba(48, 38, 95, 0.78);
  line-height: 1.7;
}

.signup-frame-card {
  max-width: 720px;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid rgba(193, 193, 229, 0.2);
  border-radius: 14px;
  background: rgba(245, 244, 252, 0.97);
  box-shadow: 0 18px 45px rgba(8, 5, 28, 0.18);
}

.signup-frame {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
}

.signup-disclosure {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--mauve);
  font-size: 0.92rem;
  line-height: 1.7;
}

.signup-disclosure a {
  color: var(--cyan);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.purchase-main {
  width: min(1180px, calc(100% - 40px));
}

.purchase-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  margin-bottom: 32px;
}

.purchase-hero h1 {
  max-width: 17ch;
  margin: 8px 0 22px;
  font-family: var(--display-font);
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.purchase-hero > div > p:not(.eyebrow),
.purchase-close > p:not(.eyebrow) {
  color: var(--mauve);
  line-height: 1.75;
}

.purchase-lede {
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.price-card {
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(157, 233, 246, 0.45);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(48, 38, 95, 0.97), rgba(28, 20, 71, 0.97));
  box-shadow: 0 24px 65px rgba(4, 2, 18, 0.38), 0 0 32px rgba(157, 233, 246, 0.12);
  text-align: center;
}

.price-kicker {
  margin: 0;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.price {
  margin: 12px 0 2px;
  color: #fff;
  font-family: var(--display-font);
  font-size: clamp(4rem, 8vw, 6.3rem);
  line-height: 1;
}

.price span {
  margin-right: 0.14em;
  color: var(--lilac);
  font-family: var(--body-font);
  font-size: 0.26em;
  font-weight: 700;
  vertical-align: 1.65em;
}

.price-caption {
  margin: 0 0 26px;
  color: var(--lilac);
  line-height: 1.55;
}

.checkout-button {
  width: 100%;
}

.checkout-note {
  margin: 20px 0 0;
  color: var(--mauve);
  font-size: 0.82rem;
  line-height: 1.65;
}

.purchase-summary {
  margin-bottom: 24px;
}

.purchase-summary > p:last-child {
  margin-bottom: 0;
}

.check-list li::marker {
  color: var(--purple-deep);
}

.purchase-grid {
  align-items: stretch;
}

.purchase-grid .content-card {
  height: 100%;
}

.purchase-close {
  margin-top: 32px;
  padding: clamp(34px, 6vw, 64px);
  border: 1px solid rgba(157, 233, 246, 0.3);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(48, 38, 95, 0.95), rgba(28, 20, 71, 0.95));
  box-shadow: 0 0 34px rgba(157, 233, 246, 0.1);
  text-align: center;
}

.purchase-close h2 {
  max-width: 19ch;
  margin: 8px auto 18px;
  font-family: var(--display-font);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
}

.purchase-close > p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto 28px;
}

.purchase-close a:not(.button) {
  color: var(--cyan);
}

.purchase-close .checkout-button {
  width: auto;
  min-width: min(100%, 280px);
}

.policy-main {
  width: min(1120px, calc(100% - 40px));
}

.policy-menu {
  margin-bottom: 24px;
}

.policy-menu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.policy-menu-links a {
  display: inline-flex;
  padding: 0.72rem 0.95rem;
  border: 1px solid rgba(28, 20, 71, 0.2);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.policy-menu-links a:hover,
.policy-menu-links a:focus-visible {
  border-color: var(--purple-deep);
  outline: none;
  background: rgba(133, 90, 191, 0.1);
}

.policy-stack {
  gap: 32px;
}

.policy-document {
  scroll-margin-top: 24px;
}

.policy-anchor-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(28, 20, 71, 0.15);
}

.policy-anchor-heading p {
  margin: 0;
  color: var(--purple-deep);
}

.policy-anchor-heading a {
  flex: 0 0 auto;
  font-size: 0.84rem;
}

.policy-copy h1 {
  margin: 0 0 22px;
  color: var(--navy);
  font-family: var(--display-font);
  font-size: clamp(2.25rem, 5vw, 3.7rem);
  font-weight: 400;
  line-height: 1.08;
}

.policy-copy h2 {
  margin: 2.1em 0 0.65em;
  color: var(--navy);
  font-family: var(--display-font);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.18;
}

.policy-copy h3 {
  margin: 1.7em 0 0.55em;
  color: var(--navy);
}

.policy-copy p,
.policy-copy li {
  color: var(--muted);
  line-height: 1.75;
}

.policy-copy ul,
.policy-copy ol {
  padding-left: 1.45rem;
}

.policy-copy hr {
  margin: 2.2rem 0;
  border: 0;
  border-top: 1px solid rgba(28, 20, 71, 0.18);
}

.policy-copy blockquote {
  margin: 1.5rem 0;
  padding: 0.1rem 1.2rem;
  border-left: 4px solid var(--purple-deep);
  background: rgba(133, 90, 191, 0.08);
}

.application-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  align-items: start;
  gap: 24px;
}

.application-form,
.application-aside {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(193, 193, 229, 0.2);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(245, 244, 252, 0.97);
  box-shadow: 0 18px 45px rgba(8, 5, 28, 0.18);
}

.application-form {
  display: grid;
  gap: 28px;
}

.application-form fieldset {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.application-form legend,
.application-aside h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: var(--display-font);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 400;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label,
.form-group-label {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.required-marker {
  color: var(--purple-deep);
}

.form-help,
.form-intro,
.application-aside p,
.application-aside li,
.consent-row span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.form-help,
.form-intro {
  margin: 0;
}

.application-form input[type="text"],
.application-form input[type="email"],
.application-form select,
.application-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid rgba(28, 20, 71, 0.3);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.application-form textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
  border-color: var(--purple-deep);
  outline: 3px solid rgba(133, 90, 191, 0.2);
  outline-offset: 1px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.choice-row,
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.choice-row input,
.consent-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--purple-deep);
}

.choice-row label {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.consent-list {
  display: grid;
  gap: 14px;
}

.consent-row a,
.application-aside a {
  color: var(--purple-deep);
}

.application-form .button {
  justify-self: start;
}

.application-form .button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.application-aside ul {
  margin: 0;
  padding-left: 1.2rem;
}

.application-aside li + li {
  margin-top: 8px;
}

.bot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.response-card {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.response-card h1 {
  max-width: none;
}

.response-card .page-actions {
  justify-content: center;
}

.reading-chapter {
  margin-top: 72px;
}

.reading-chapter > h2 {
  margin: 0 0 24px;
  color: var(--cyan);
  font-family: var(--display-font);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 400;
}

.reading-list {
  display: grid;
  gap: 24px;
}

.reading-spread .chapter-kicker {
  color: var(--purple-deep);
}

.reading-spread blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--cyan);
  background: rgba(229, 230, 250, 0.72);
}

.reading-spread blockquote strong {
  display: block;
  color: var(--navy);
}

.reading-spread h3 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

@media (min-width: 861px) {
  .book-spread {
    overflow: visible;
    background: transparent;
  }

  .book-cover-edge {
    clip-path: polygon(
      0.4% 1.1%, 12% 0.2%, 27% 0.8%, 42% 0.15%, 58% 0.7%, 73% 0.1%, 88% 0.65%, 99.4% 0.2%,
      99.8% 13%, 99.3% 27%, 99.9% 43%, 99.35% 61%, 99.85% 78%, 99.25% 91%, 99.6% 99.2%,
      84% 99.8%, 67% 99.3%, 51% 99.9%, 35% 99.35%, 18% 99.85%, 0.35% 99.15%,
      0.75% 86%, 0.15% 71%, 0.7% 54%, 0.1% 38%, 0.65% 21%
    );
  }

  .page-left {
    clip-path: polygon(
      1.35% 1.15%, 11% 0.15%, 25% 1.05%, 39% 0.1%, 54% 0.95%, 68% 0.2%, 84% 1.1%, 100% 0,
      100% 100%, 84% 99.1%, 69% 99.85%, 53% 98.95%, 38% 99.9%, 23% 98.85%, 10% 99.75%, 1.15% 98.8%,
      0.15% 92%, 1.3% 84%, 0.2% 75%, 1.55% 65%, 0.1% 54%, 1.4% 44%, 0.15% 34%, 1.5% 24%, 0.2% 14%
    );
    filter: drop-shadow(-9px 7px 6px rgba(8, 5, 28, 0.18));
  }

  .page-right {
    clip-path: polygon(
      0 0, 16% 1%, 31% 0.15%, 47% 1.05%, 62% 0.1%, 77% 0.95%, 90% 0.2%, 98.75% 1.2%,
      99.85% 10%, 98.65% 20%, 99.9% 31%, 98.45% 42%, 99.9% 54%, 98.6% 66%, 99.85% 77%, 98.55% 87%, 99.8% 95%, 98.95% 98.85%,
      88% 99.8%, 74% 98.9%, 59% 99.85%, 44% 98.95%, 29% 99.9%, 14% 98.85%, 0 100%
    );
    filter: drop-shadow(9px 7px 6px rgba(8, 5, 28, 0.18));
  }
}

[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  :root {
    --book-width: min(900px, calc(100vw - 150px));
  }

  .book-page {
    padding: 42px;
  }
}

@media (max-width: 860px) {
  :root {
    --book-width: calc(100vw - 48px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-block: 14px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding-bottom: 10px;
  }

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

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

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

  .price-card {
    max-width: 560px;
  }

  .book-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 16px;
  }

  .bookmarks {
    position: static;
    display: flex;
    width: 100%;
    overflow-x: auto;
    padding: 5px 3px 12px;
  }

  .bookmark,
  .bookmark:hover,
  .bookmark:focus-visible,
  .bookmark.is-active {
    flex: 0 0 auto;
    width: auto;
    min-width: 126px;
    border: 1px solid rgba(229, 230, 250, 0.24);
    border-radius: 9px;
    text-align: center;
  }

  .bookmark.is-active {
    border-color: var(--cyan);
  }

  .book-spread {
    grid-template-columns: 1fr;
    height: auto;
  }

  .book-spine {
    display: none;
  }

  .turning-sheet {
    display: none;
  }

  .page-left {
    border-radius: 9px 9px 0 0;
    background: var(--page);
  }

  .page-right {
    border-radius: 0 0 16px 16px;
    background: #f5f4fc;
  }

  .page-right .page-number {
    top: auto;
    bottom: 24px;
  }
}

@media (max-width: 560px) {
  .header-wordmark {
    width: 150px;
    height: 25px;
  }

  .site-header,
  .site-footer {
    width: min(100% - 30px, 1400px);
  }

  .cover-view,
  .book-view {
    padding-inline: 15px;
  }

  .cover-book {
    min-height: 590px;
    padding: 48px 28px;
    border-radius: 9px 20px 20px 9px;
    box-shadow: -7px 10px 0 #0b0723, 0 28px 54px rgba(3, 2, 14, 0.58);
  }

  .cover-bookmark {
    right: auto;
    left: 22px;
    width: 124px;
    height: 138px;
  }

  .cover-bookmark-button {
    width: 124px;
    min-height: 70px;
    padding: 14px 12px 24px;
    font-size: 0.78rem;
  }

  .bookmark-cord {
    top: 53px;
    right: auto;
    left: 50%;
    width: 9px;
    height: 27px;
  }

  .bookmark-cord::after {
    left: -4px;
  }

  .cover-rule {
    left: 14px;
  }

  .logo-field {
    width: 184px;
    height: 147px;
  }

  .cover-wordmark {
    width: min(290px, 86%);
    height: 50px;
    margin-bottom: 15px;
  }

  .cover-arrow {
    top: 30%;
    right: 4%;
    width: 108px;
    opacity: 0.1;
  }

  .cover-book h1 {
    font-size: clamp(1.91rem, 9.55vw, 2.86rem);
  }

  .book-cover-edge {
    inset: -8px -7px -12px;
  }

  .book-page {
    padding: 44px 30px;
  }

  .book-page h3 {
    font-size: clamp(1.8rem, 10vw, 2.65rem);
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer > div,
  .site-footer nav {
    flex-wrap: wrap;
  }

  .form-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .application-form .button {
    width: 100%;
  }

  .policy-anchor-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-menu-links,
  .policy-menu-links a {
    width: 100%;
  }
}

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