/* A small book built from real CSS planes, with no canvas or animation library. */
.book-scroll {
  --book-width: clamp(150px, 20vw, 216px);
  --book-y: 360deg;
  --book-x: 26deg;
  --book-z: 0deg;
  --book-shift: 44%;
  --cover-angle: -164deg;
  --leaf-angle: -151deg;
  --book-reveal: 1;
  --book-reveal-y: 0px;
  --book-shadow-scale: 1.06;
  --book-intro-opacity: 0;
  position: relative;
  margin-block: 88px 40px;
}
.book-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  align-items: center;
  height: min(740px, calc(100svh - 90px));
  min-height: 570px;
  padding: 34px 28px 92px;
  border-radius: 32px;
  background: #f5f4f1;
  text-align: center;
  overflow: clip;
}
.book-scroll.is-scroll-enhanced {
  height: 190svh;
}
.is-scroll-enhanced .book-stage {
  position: sticky;
  top: 74px;
}
.book-introduction {
  opacity: var(--book-intro-opacity);
}
.book-introduction .eyebrow {
  margin: 0 0 10px;
  color: #68645e;
  font-size: 10px;
  letter-spacing: 0.18em;
}
.book-introduction > p:last-child {
  margin: 0;
  color: #696660;
  font-size: 15px;
  line-height: 1.5;
}
.book-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 100%;
  perspective: 1200px;
  perspective-origin: 50% 35%;
}
.nova-book {
  position: relative;
  width: var(--book-width);
  aspect-ratio: 0.73;
  transform-style: preserve-3d;
  transform: translateX(var(--book-shift)) rotateX(var(--book-x))
    rotateY(var(--book-y)) rotateZ(var(--book-z));
}
.nova-book > div,
.book-cover > div,
.book-turning-page > div {
  position: absolute;
  inset: 0;
}
.book-back {
  border-radius: 3px 9px 9px 3px;
  background: #283544;
  box-shadow: 0 3px 0 #18232f;
  transform: translateZ(-3px);
}
.book-spine {
  right: auto !important;
  width: 23px;
  border-radius: 3px;
  background: linear-gradient(90deg, #1c2834, #425366 45%, #263647);
  transform-origin: left;
  /* Join the back at -3px to the front cover at 20px. */
  transform: translateZ(-3px) rotateY(-90deg);
  display: grid;
  place-items: center;
}
.book-spine span {
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #d9e1e8;
}
.book-paper-block {
  inset: 3px 4px 3px 2px !important;
  border-radius: 1px 6px 6px 1px;
  background: #f7f2e9;
  transform: translateZ(7px);
  box-shadow:
    1px 1px 0 #d3cdbf,
    2px 2px 0 #fffdf7,
    3px 3px 0 #d3cdbf,
    4px 4px 0 #fffdf7,
    5px 5px 0 #d3cdbf,
    6px 6px 0 #fffdf7;
}
.book-page,
.book-leaf-front,
.book-leaf-back {
  border-radius: 1px 6px 6px 1px;
  padding: 25px 20px;
  text-align: left;
  color: #3a4146;
  background: linear-gradient(
    90deg,
    #ded8ca,
    #fcf9f1 12%,
    #fffdf7 82%,
    #f3eee4
  );
}
.book-page-right {
  inset: 3px 4px 3px 2px !important;
  transform: translateZ(15px);
}
.book-page-kicker {
  display: block;
  font-size: 6px;
  line-height: 1.4;
  letter-spacing: 0.13em;
  font-weight: 600;
  color: #777b77;
}
.book-page-heading {
  display: block;
  margin-top: 22px;
  font:
    500 clamp(20px, 2.5vw, 28px) / 1.1 Georgia,
    serif;
  letter-spacing: -0.04em;
}
.book-page-rule {
  display: block;
  width: 26px;
  height: 3px;
  margin: 19px 0;
  background: #b2bec8;
}
.book-page-lines {
  display: block;
  width: 85%;
  height: 48px;
  margin-top: 24px;
  background: repeating-linear-gradient(transparent 0 9px, #7d858429 9px 10px);
}
.book-page-number {
  position: absolute;
  bottom: 18px;
  right: 20px;
  font-size: 7px;
  color: #999b95;
}
.book-cover,
.book-turning-page {
  transform-origin: left center;
  transform-style: preserve-3d;
}
.book-cover {
  transform: translateZ(20px) rotateY(var(--cover-angle));
}
.book-cover > div,
.book-turning-page > div {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.book-cover-outside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 27px 24px;
  text-align: left;
  color: #f8f7f3;
  border-radius: 3px 9px 9px 3px;
  background: linear-gradient(
    90deg,
    #1c2b3a 0,
    #405264 3%,
    #2e4051 5%,
    #334657 9%,
    #263747 100%
  );
  box-shadow:
    inset 0 0 0 1px #ffffff14,
    inset -2px 0 4px #0d1a293d;
}
.book-cover-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.book-cover-brand img {
  filter: invert(1);
  object-fit: contain;
  width: 21px;
  height: 21px;
}
.book-cover-title {
  margin-top: auto;
  font:
    400 clamp(22px, 2.7vw, 30px) / 1.08 Georgia,
    serif;
  letter-spacing: -0.045em;
}
.book-cover-line {
  width: 28px;
  height: 1px;
  margin: 19px 0;
  background: #c3c8ca80;
}
.book-cover-footer {
  font-size: 6px;
  letter-spacing: 0.16em;
  color: #c1cbd3;
}
.book-cover-inside {
  transform: rotateY(180deg);
  background: linear-gradient(90deg, #e7e2d6, #f5f0e4 84%, #d3cdbf);
  border: 5px solid #2d3c4c;
  border-radius: 9px 3px 3px 9px;
  display: grid;
  place-items: center;
}
.book-endpaper-mark {
  font:
    italic 60px Georgia,
    serif;
  color: #c8c2b333;
}
.book-turning-page {
  inset: 3px 4px 3px 2px !important;
  transform: translateZ(17px) rotateY(var(--leaf-angle));
}
.book-leaf-back {
  transform: rotateY(180deg);
  background: linear-gradient(
    90deg,
    #f5f0e6,
    #fffdf7 25%,
    #faf7ef 87%,
    #dcd5c7
  );
  border-radius: 6px 1px 1px 6px;
}
.book-leaf-front .book-page-lines {
  height: 80%;
  margin-top: 0;
}
.book-shadow {
  position: absolute;
  width: calc(var(--book-width) * 2);
  height: 30px;
  bottom: 6%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #28344226, transparent 68%);
  transform: scaleX(var(--book-shadow-scale));
}
.book-invitation h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 62px);
  letter-spacing: -0.055em;
  line-height: 1.12;
}
.book-invitation a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border-radius: 8px;
}
.book-link-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1d1d1f;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
  transition:
    transform 220ms ease,
    background 220ms ease;
}
.book-invitation > p {
  margin: 13px 0 0;
  font-size: 15px;
  color: #696660;
  line-height: 1.5;
}
.is-scroll-enhanced .book-invitation {
  opacity: var(--book-reveal);
  transform: translateY(var(--book-reveal-y));
  pointer-events: none;
}
.is-scroll-enhanced.book-ready .book-invitation {
  pointer-events: auto;
}
.is-scroll-enhanced .book-invitation:focus-within {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .book-invitation a:hover .book-link-arrow {
    transform: translate(2px, -2px);
    background: #0071e3;
  }
}
@media (max-width: 600px) {
  .book-scroll {
    --book-width: 150px;
    margin-top: 60px;
  }
  .book-stage {
    padding: 28px 16px 98px;
    border-radius: 26px;
    grid-template-rows: auto minmax(245px, 1fr) auto;
  }
  .book-scroll.is-scroll-enhanced {
    height: 170svh;
  }
  .book-page,
  .book-leaf-front,
  .book-leaf-back {
    padding: 21px 14px;
  }
  .book-cover-outside {
    padding: 23px 17px;
  }
  .book-page-heading {
    margin-top: 16px;
  }
  .book-page-rule {
    margin-block: 13px;
  }
  .book-page-lines {
    margin-top: 14px;
    height: 30px;
  }
  .book-page-number {
    bottom: 12px;
    right: 14px;
  }
  .book-link-arrow {
    width: 36px;
    height: 36px;
    font-size: 21px;
  }
}
@media (max-height: 600px), (prefers-reduced-motion: reduce) {
  .book-scroll.is-scroll-enhanced {
    height: auto;
  }
  .is-scroll-enhanced .book-stage {
    position: relative;
    top: auto;
  }
  .is-scroll-enhanced .book-invitation {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
