.book-art {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 18%, rgba(83, 105, 142, 0.13), transparent 28rem),
    radial-gradient(circle at 86% 62%, rgba(144, 93, 169, 0.13), transparent 30rem),
    rgba(12, 11, 19, 0.84);
}

.book-art-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  align-items: end;
  gap: clamp(40px, 8vw, 110px);
  margin-bottom: 58px;
}

.book-art-heading h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.1rem, 5.8vw, 6.2rem);
  line-height: 0.98;
}

.book-art-heading > p {
  margin: 0;
  color: var(--ink-muted);
}

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

.book-art-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: rgba(10, 9, 16, 0.82);
  box-shadow: var(--shadow);
}

.book-art-card:first-child {
  grid-column: span 7;
}

.book-art-card:nth-child(2) {
  grid-column: span 5;
}

.book-art-card:nth-child(3) {
  grid-column: 3 / span 8;
}

.book-art-image {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  isolation: isolate;
}

.book-art-card figcaption {
  padding: 24px 26px 28px;
}

.book-art-card figcaption > span {
  display: block;
  margin-bottom: 8px;
  color: var(--violet-bright);
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.book-art-card figcaption strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
}

.book-art-card figcaption p {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Flooded rainwood */
.book-art-rainwood .book-art-image {
  background:
    radial-gradient(ellipse at 50% 78%, rgba(190, 174, 215, 0.29), transparent 31%),
    linear-gradient(180deg, #18212a 0%, #1f2732 38%, #392e49 68%, #9788a7 100%);
}

.rainwood-canopy,
.rainwood-root,
.rainwood-rain,
.rainwood-glow {
  position: absolute;
}

.rainwood-canopy {
  top: -14%;
  height: 72%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 70%, rgba(78, 100, 92, 0.88), transparent 59%),
    radial-gradient(circle, rgba(34, 54, 51, 0.97), rgba(10, 18, 21, 0.98) 68%);
  filter: blur(1px);
}

.canopy-one {
  left: -18%;
  width: 76%;
  transform: rotate(9deg);
}

.canopy-two {
  right: -20%;
  width: 80%;
  transform: rotate(-8deg);
}

.rainwood-root {
  bottom: -6%;
  width: 9%;
  height: 62%;
  border-radius: 52% 48% 10% 12%;
  background: linear-gradient(90deg, rgba(105, 92, 121, 0.18), rgba(226, 214, 238, 0.7), rgba(96, 82, 112, 0.14));
  box-shadow: 0 0 30px rgba(198, 177, 218, 0.26);
}

.root-one {
  left: 26%;
  transform: rotate(17deg);
}

.root-two {
  right: 23%;
  transform: rotate(-13deg);
}

.rainwood-rain {
  inset: 0;
  opacity: 0.4;
  background: repeating-linear-gradient(104deg, transparent 0 21px, rgba(235, 228, 241, 0.24) 22px 23px, transparent 24px 44px);
  filter: blur(0.3px);
}

.rainwood-glow {
  left: 50%;
  bottom: 9%;
  width: 62%;
  height: 20%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(222, 205, 234, 0.55), transparent 69%);
  filter: blur(14px);
}

/* Door at dusk */
.book-art-door .book-art-image {
  background:
    radial-gradient(circle at 50% 42%, rgba(203, 170, 224, 0.2), transparent 24%),
    linear-gradient(180deg, #231c31 0%, #171523 54%, #08080e 100%);
}

.door-horizon,
.door-ring,
.door-core,
.door-path {
  position: absolute;
}

.door-horizon {
  left: -10%;
  right: -10%;
  bottom: 20%;
  height: 26%;
  border-radius: 50% 50% 0 0;
  background:
    linear-gradient(180deg, transparent, rgba(14, 13, 22, 0.38)),
    repeating-linear-gradient(168deg, rgba(32, 41, 47, 0.95) 0 12%, rgba(16, 22, 28, 0.96) 13% 22%);
  clip-path: polygon(0 62%, 14% 31%, 30% 57%, 49% 18%, 65% 52%, 82% 27%, 100% 55%, 100% 100%, 0 100%);
}

.door-ring {
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(223, 204, 233, 0.35);
  border-radius: 50%;
}

.door-ring-one {
  width: 63%;
  aspect-ratio: 1;
  border-style: dashed;
}

.door-ring-two {
  width: 39%;
  aspect-ratio: 1;
}

.door-core {
  left: 50%;
  top: 42%;
  width: 12%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #d8c0df;
  box-shadow: 0 0 55px rgba(216, 192, 223, 0.75);
}

.door-path {
  left: 50%;
  bottom: 0;
  width: 30%;
  height: 55%;
  transform: translateX(-50%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  background: linear-gradient(to bottom, rgba(232, 210, 231, 0.54), transparent 88%);
  filter: blur(9px);
}

/* Deep time */
.book-art-deep-time .book-art-image {
  min-height: 380px;
  background:
    radial-gradient(circle at 51% 49%, rgba(149, 112, 190, 0.2), transparent 24%),
    linear-gradient(135deg, #10131d 0%, #191326 52%, #090810 100%);
}

.deep-time-orbit,
.deep-time-star,
.deep-time-vein {
  position: absolute;
}

.deep-time-orbit {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(217, 198, 229, 0.24);
  border-radius: 50%;
}

.orbit-one {
  width: 72%;
  aspect-ratio: 1.7 / 1;
  transform: translate(-50%, -50%) rotate(8deg);
}

.orbit-two {
  width: 48%;
  aspect-ratio: 1.7 / 1;
  transform: translate(-50%, -50%) rotate(-17deg);
  border-style: dashed;
}

.orbit-three {
  width: 25%;
  aspect-ratio: 1;
}

.deep-time-star {
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--violet-bright);
  box-shadow: 0 0 22px rgba(194, 165, 234, 0.6);
}

.star-one {
  left: 19%;
  top: 33%;
}

.star-two {
  right: 17%;
  top: 56%;
  width: 13px;
}

.star-three {
  left: 43%;
  bottom: 17%;
  width: 6px;
  background: var(--rose);
}

.deep-time-vein {
  left: 50%;
  top: 50%;
  width: 72%;
  height: 1px;
  transform: translate(-50%, -50%) rotate(-29deg);
  background: linear-gradient(90deg, transparent, rgba(220, 198, 230, 0.62), transparent);
  box-shadow: 0 0 26px rgba(209, 181, 224, 0.23);
}

@media (max-width: 900px) {
  .book-art-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .book-art-card:first-child,
  .book-art-card:nth-child(2),
  .book-art-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .book-art-heading h2 {
    font-size: clamp(2.9rem, 14vw, 4.7rem);
  }

  .book-art-grid {
    display: block;
  }

  .book-art-card + .book-art-card {
    margin-top: 18px;
  }

  .book-art-image {
    min-height: 330px;
  }

  .book-art-deep-time .book-art-image {
    min-height: 310px;
  }
}
