/* Books & Worlds page — page-specific styles. Global styles are in style.css. */

.books-worlds-page .books-hero {
  background: linear-gradient(135deg, #ffffff 0%, #eef5ff 58%, #fff8e8 100%);
  border-bottom: 1px solid var(--line);
}

.books-hero-inner {
  padding: 68px 0;
  width: 100%;
  max-width: 920px;
  margin-left: 0;
  margin-right: auto;
}

.books-eyebrow,
.world-label {
  color: var(--blue-dark);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: 12px;
}

.books-worlds-page .books-hero h1 {
  color: var(--blue);
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 1.08;
  margin-bottom: 16px;
}

.books-worlds-page .books-hero .lead {
  max-width: 820px;
  margin: 0;
}

.story-growth-grid,
.keepsake-grid,
.future-vault {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 42px;
  align-items: center;
}

.growth-card {
  background: linear-gradient(135deg, #f2f7ff, #fff8e8);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 44px);
  box-shadow: var(--shadow);
}

.growth-kicker {
  color: var(--blue-dark);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 14px;
}

.growth-line {
  font-family: Merriweather, Georgia, serif;
  color: var(--blue);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 900;
  line-height: 1.22;
  margin: 0 0 8px;
}


/* ==========================================================
   CONNECTED WORLDS — FEATURE CARDS
   Artwork is atmospheric; text is the primary information.
   ========================================================== */

.world-card {
  position: relative;
  min-height: 185px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  background: #f7faff;
}

.world-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(.78) contrast(.82) brightness(1.08);
}

.world-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.world-card-bella::before {
  background-image: url("/assets/images/worlds/bella-world.webp");
  background-position: 66% center;
}
.world-card-bella::after {
  background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.90) 35%, rgba(255,255,255,.60) 54%, rgba(255,255,255,.20) 75%, rgba(255,255,255,.10) 100%);
}

.world-card-maddison::before {
  background-image: url("/assets/images/worlds/maddison-world.webp");
  background-position: 24% center;
}
.world-card-maddison::after {
  background: linear-gradient(270deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.92) 34%, rgba(255,255,255,.54) 53%, rgba(255,255,255,.14) 70%, rgba(255,255,255,.06) 100%);
}

.world-card-stephen::before {
  background-image: url("/assets/images/worlds/stephen-world.webp");
  background-position: 35% center;
}
.world-card-stephen::after {
  background: linear-gradient(270deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.91) 36%, rgba(255,255,255,.61) 57%, rgba(255,255,255,.20) 77%, rgba(255,255,255,.10) 100%);
}

.world-card-content {
  position: relative;
  z-index: 1;
  width: min(62%, 500px);
  padding: 14px 18px 12px;
}

.world-card-text-left .world-card-content { margin-right: auto; }
.world-card-text-right .world-card-content { margin-left: auto; }

.world-card h3,
.world-card p,
.world-story-list {
  text-align: left;
  color: #17233b;
}

.world-card .eyebrow {
  color: #004fae;
}

.world-card h3 {
  color: #004fae;
}

.world-card p {
  color: #17233b;
}

.world-card .world-story-list {
  color: #26354d;
}

.world-card h3 { margin-top: .35rem; }

.world-story-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--muted);
}

.world-story-list li {
  margin: .42rem 0;
  font-weight: 700;
}

.world-story-list li::before {
  content: "•";
  color: var(--blue);
  margin-right: .55rem;
}

.keepsake-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 42px);
  box-shadow: var(--shadow);
}

.keepsake-points {
  display: grid;
  gap: 14px;
}

.keepsake-point {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 15px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.keepsake-point > span {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #eef5fb;
  color: var(--blue-dark);
  display: grid;
  place-items: center;
  font-family: Merriweather, Georgia, serif;
  font-weight: 900;
  font-size: 1.25rem;
}

.keepsake-point h3 {
  margin-bottom: 5px;
}

.keepsake-point p {
  margin: 0;
  color: var(--muted);
}

.companion-card {
  height: 100%;
}

.future-vault {
  background: linear-gradient(135deg, #ffffff, #f2f7ff 55%, #fff8e8);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 44px);
  box-shadow: var(--shadow);
}

.future-note {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
  margin-top: 18px;
}

.vault-symbol {
  width: clamp(150px, 22vw, 240px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--blue);
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(4rem, 10vw, 7rem);
}

.books-close {
  text-align: left;
}

.books-close-line {
  font-family: Merriweather, Georgia, serif;
  color: var(--blue);
  font-weight: 900;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.25;
  margin: 0 0 18px;
}

.books-close .tag-row {
  margin-top: 26px;
}

@media (max-width: 900px) {
  .story-growth-grid,
  .keepsake-grid,
  .future-vault {
    grid-template-columns: 1fr;
  }

  .world-card {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .books-hero-inner {
    padding: 48px 0;
  }

  .growth-card,
  .keepsake-card,
  .future-vault {
    padding: 24px;
  }

  .keepsake-point {
    grid-template-columns: 46px 1fr;
    padding: 15px;
  }

  .keepsake-point > span {
    width: 42px;
    height: 42px;
  }

  .books-close .tag-row .btn {
    width: 100%;
  }
}


/* ==========================================================
   OTHER WORLDS
   Top row text sits outside; lower row text draws inward.
   ========================================================== */

.other-worlds-section { border-top: 1px solid var(--line); }

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

.other-world-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  background: #f7faff;
}

.other-world-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(.76) contrast(.80) brightness(1.10);
}

.other-world-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.other-world-card > h3,
.other-world-card > p {
  position: relative;
  z-index: 1;
  width: 48%;
  margin-left: 24px;
  margin-right: 24px;
}

.other-world-card > h3 {
  margin-top: 34px;
  margin-bottom: 10px;
}

.other-world-card > p {
  margin-top: 0;
  color: var(--muted);
}

.other-world-text-right { align-items: flex-end; }
.other-world-text-right > h3,
.other-world-text-right > p { text-align: left; }

.other-world-card-wanderbears::before {
  background-image: url("/assets/images/worlds/wanderbears-world.webp");
  background-position: 68% center;
}
.other-world-card-wanderbears::after {
  background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.90) 38%, rgba(255,255,255,.53) 59%, rgba(255,255,255,.16) 80%, rgba(255,255,255,.08) 100%);
}

.other-world-card-shoo-fly::before {
  background-image: url("/assets/images/worlds/shoo-fly-world.webp");
  background-position: 35% center;
}
.other-world-card-shoo-fly::after {
  background: linear-gradient(270deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.91) 38%, rgba(255,255,255,.54) 59%, rgba(255,255,255,.16) 80%, rgba(255,255,255,.08) 100%);
}

.other-world-card-zipp::before {
  background-image: url("/assets/images/worlds/zipp-world.webp");
  background-position: 34% center;
}
.other-world-card-zipp::after {
  background: linear-gradient(270deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.91) 38%, rgba(255,255,255,.54) 59%, rgba(255,255,255,.16) 80%, rgba(255,255,255,.08) 100%);
}

.other-world-card-tula::before {
  background-image: url("/assets/images/worlds/tula-world.webp");
  background-position: 64% center;
}
.other-world-card-tula::after {
  background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.91) 38%, rgba(255,255,255,.54) 59%, rgba(255,255,255,.16) 80%, rgba(255,255,255,.08) 100%);
}

@media (max-width: 1000px) {
  .world-card-content { width: 58%; }
}

@media (max-width: 900px) {
  .world-card { min-height: 210px; }
  .world-card-content { width: 64%; }
}

@media (max-width: 700px) {
  .world-card::after {
    background: linear-gradient(to bottom, rgba(255,255,255,.80) 0%, rgba(255,255,255,.90) 42%, rgba(255,255,255,.97) 100%);
  }

  .world-card-content {
    width: 100%;
    padding: 24px 20px;
    margin: 0;
  }

  .other-worlds-grid { grid-template-columns: 1fr; }
  .other-world-card { min-height: 330px; }

  .other-world-card::after {
    background: linear-gradient(to bottom, rgba(255,255,255,.68) 0%, rgba(255,255,255,.87) 50%, rgba(255,255,255,.97) 100%);
  }

  .other-world-card > h3,
  .other-world-card > p {
    width: auto;
    max-width: 88%;
    margin-left: 20px;
    margin-right: 20px;
  }

  .other-world-card > h3 { margin-top: 24px; }
  .other-world-text-right { align-items: flex-start; }
}


/* Compact feature-card typography */
.world-card .eyebrow {
  margin-bottom: .25rem;
}

.world-card h3 {
  margin-top: .2rem;
  margin-bottom: .55rem;
}

.world-card p {
  margin-top: 0;
  margin-bottom: .65rem;
  line-height: 1.48;
}

.world-card .world-story-list {
  margin-top: .55rem;
}

.world-card .world-story-list li {
  margin: .28rem 0;
  line-height: 1.38;
}

/* Match Other Worlds text contrast to the feature cards. */
.other-world-card h3 {
  color: #004fae;
}

.other-world-card p {
  color: #17233b;
}

/* Do not let tablet rules make the feature cards tall again. */
@media (max-width: 900px) and (min-width: 701px) {
  .world-card {
    min-height: 300px;
  }

  .world-card-content {
    width: 62%;
  }
}

/* On phones, height follows the content rather than a large fixed card. */
@media (max-width: 700px) {
  .world-card {
    min-height: 0;
  }
}


/* V4: compact feature-card vertical rhythm */
.world-card .world-label {
  margin-bottom: 4px;
}

.world-card h3 {
  margin-top: 0;
  margin-bottom: 7px;
}

.world-card p {
  margin-bottom: 7px;
  line-height: 1.38;
}

.world-card .world-story-list {
  margin-top: 5px;
}

.world-card .world-story-list li {
  margin: 2px 0;
  line-height: 1.3;
}
