.featured-book {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 1.3fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 760px) {
  .featured-book {
    grid-template-columns: 1fr;
  }
}

.book-stage {
  position: relative;
}
.book-stage::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(226, 160, 82, 0.35),
    transparent
  );
  animation: sun 7s ease-in-out infinite;
}
.hero-books {
  position: absolute;
  right: clamp(1.25rem, 4vw, 4rem);
  top: 54%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hero-books .cover {
  width: clamp(110px, 11.5vw, 200px);
  margin-left: -2.6vw;
  flex: none;
}
.hero-books .cover.square {
  aspect-ratio: 1/1;
  height: auto;
}
@media (max-width: 1000px) {
  .hero-books {
    display: none;
  }
}

/* Full-width hero */
.page-hero {
  padding-inline: 0;
}
.page-hero > .wrap {
  width: 100%;
  max-width: none;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}
.page-hero .hero-leaf {
  right: 0;
  width: min(55vw, 720px);
}
@media (min-width: 1001px) {
  .page-hero h1 {
    max-width: min(52vw, 18ch);
  }
}

/* One section per book */
.jump-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  padding-block: 0.5rem;
  margin: 0 50px 0 50px;
  width: 100%;
}
.jump-bar a {
  color: var(--ivory);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 2px solid transparent;
  border-radius: 50px;
  background: rgb(226 160 82 / 25%);
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.jump-bar a:hover,
.jump-bar a:focus-visible {
  background: #e2a052;
  color: #fff;
  border-color: #e2a052;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgb(226 160 82 / 30%);
  outline: none;
}

.jump-bar a:active {
  transform: translateY(-1px);
  box-shadow: none;
}
.book-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 10rem);
  background: var(--c2);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--c1) 75%, #0a1a11),
    var(--c2) 85%
  );
}
.bk-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) 1.2fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}
.book-section.flip .bk-cover {
  order: 2;
}
.bk-cover {
  position: relative;
  max-width: 340px;
  width: 100%;
  justify-self: center;
}
.bk-text h2 {
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  max-width: 14ch;
  margin-bottom: 10px;
}
.bk-points {
  list-style: none;
  margin: 1.4rem 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  max-width: 56ch;
}
.bk-points li {
  position: relative;
  padding-left: 1.7rem;
  color: rgba(247, 242, 230, 0.9);
}
.bk-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.9rem;
  height: 2px;
  background: var(--gold);
}
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.sun {
  left: calc(50% - 35vmin);
  bottom: -25%;
  width: 70vmin;
  height: 70vmin;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(226, 160, 82, 0.7),
    transparent
  );
}
.rays {
  left: calc(50% - 50vmin);
  top: calc(50% - 50vmin);
  width: 100vmin;
  height: 100vmin;
  background: repeating-conic-gradient(
    rgba(226, 160, 82, 0.13) 0 6deg,
    transparent 6deg 18deg
  );
  -webkit-mask: radial-gradient(closest-side, #000 25%, transparent 100%);
  mask: radial-gradient(closest-side, #000 25%, transparent 100%);
}
.motes {
  inset: 0;
}
.motes i {
  position: absolute;
  bottom: 4%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 225, 160, 0.95);
  box-shadow: 0 0 12px 3px rgba(255, 205, 120, 0.5);
  opacity: 0;
}
.trail {
  inset: 0;
  width: 100%;
  height: 100%;
}
.trail path {
  fill: none;
  stroke-linecap: round;
}
.trail-dots {
  stroke: rgba(247, 242, 230, 0.3);
  stroke-width: 3;
  stroke-dasharray: 2 16;
}
.trail-line {
  stroke: var(--gold);
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.75;
}
.dleaf {
  width: 44px;
  height: 44px;
  color: rgba(247, 242, 230, 0.22);
}
.dleaf svg {
  width: 100%;
  height: 100%;
}
.pg {
  width: 64px;
  height: 90px;
  border-radius: 3px;
  background: rgba(247, 242, 230, 0.14);
  border: 1px solid rgba(247, 242, 230, 0.28);
}
.star {
  width: var(--s, 24px);
  height: var(--s, 24px);
  background: rgba(255, 225, 160, 0.95);
  clip-path: polygon(
    50% 0,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  filter: drop-shadow(0 0 6px rgba(255, 205, 120, 0.6));
}
.cloud {
  height: 56px;
  border-radius: 999px;
  background: rgba(247, 242, 230, 0.16);
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 50%;
  border-radius: 50%;
  background: inherit;
}
.cloud::before {
  left: 16%;
  width: 38%;
  aspect-ratio: 1;
}
.cloud::after {
  right: 14%;
  width: 30%;
  aspect-ratio: 1;
}
.cloud.c1 {
  left: 6%;
  top: 14%;
  width: 200px;
}
.cloud.c2 {
  right: 8%;
  top: 48%;
  width: 260px;
}
.cloud.c3 {
  left: 30%;
  bottom: 8%;
  width: 170px;
}
.book-section[data-scene="stars"] .cover,
.hero-books .cover.square {
  aspect-ratio: 1/1;
}
.book-section[data-scene="stars"] .bk-cover {
  max-width: 380px;
}
.moon {
  font-size: clamp(80px, 12vw, 150px);
  width: 1em;
  height: 1em;
  right: 9%;
  top: 7%;
  border-radius: 50%;
  box-shadow: inset -0.26em -0.05em 0 0 #ffe9b8;
  filter: drop-shadow(0 0 18px rgba(255, 220, 150, 0.5));
}
.shoot {
  width: 110px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, #fff);
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.45);
  opacity: 0;
}
.bub {
  bottom: 2%;
  border-radius: 50%;
  border: 2px solid rgba(247, 242, 230, 0.5);
  background: rgba(247, 242, 230, 0.08);
  opacity: 0;
}
.rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.rings i {
  position: absolute;
  inset: -3%;
  border: 2px solid rgba(247, 242, 230, 0.55);
  border-radius: 14px;
  opacity: 0;
}
@media (max-width: 800px) {
  .bk-grid {
    grid-template-columns: 1fr;
  }
  .book-section.flip .bk-cover {
    order: 0;
  }
  .bk-cover {
    max-width: 260px;
  }
  .sun {
    bottom: 35%;
  }
}
@media (max-width: 800px) {
  .book-section[data-scene="stars"] .bk-cover {
    max-width: 280px;
  }
  .moon {
    top: 3%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .trail-line {
    stroke-dashoffset: 0;
  }
  .motes i {
    opacity: 0.6;
  }
  .bub {
    opacity: 0.5;
  }
}

.bk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.2rem 0;
}

.bk-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 50px;
  background: rgba(187, 187, 187, 0.15);
  border: 1px solid rgba(221, 221, 221, 0.4);
  color: var(--ivory);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
