/* Series styles: Book 2 "Making Happy Park", the series line-up, and the
   Book 3 "Rex and the Great Road Rescue" teaser.
   Layers on top of assets/styles.css and assets/book1.css - same tokens, same
   furniture (.home-section, .section-head), no new brand colours. */

/* ---------- Shared badges & status pills ---------- */

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px dashed #f6bd93;
  border-radius: 100px;
  padding: 7px 17px;
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.button-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border: 2px dashed #b9d9e8;
  border-radius: 100px;
  padding: 13px 24px;
  color: #4c7799;
  font: 700 15px "DM Sans", sans-serif;
  text-align: center;
}

/* ---------- Book 2 introduction ---------- */

.book2 {
  background: linear-gradient(170deg, #fff 0%, #fffaf0 55%, var(--sky) 100%);
  border-top: 1px solid #f0eadf;
}

.book2 .section-head {
  max-width: 700px;
  margin-bottom: 34px;
}

.book2-title {
  font-family: Fredoka, sans-serif;
  color: var(--orange);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -.5px;
  margin: 14px 0 0;
}

.theme-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  max-width: 780px;
  margin: 0 auto;
}

.theme-chips li {
  background: #fff;
  border: 1px solid #ffe6c4;
  border-radius: 100px;
  color: #a5561f;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
}

.book2-cta {
  text-align: center;
  margin: 34px 0 0;
}

.book2-cta-note {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}

/* ---------- Book 2 gallery ---------- */

.peek-book2 {
  background: #fff;
}

.gallery-book2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 940px;
  margin: 0 auto;
}

.gallery-book2 figure {
  margin: 0;
  background: var(--cream);
  border: 1px solid #f0e6d6;
  border-radius: var(--radius);
  padding: 14px 14px 6px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-book2 figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.gallery-book2 img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: #dff3fb;
}

.gallery-book2 figcaption {
  padding: 14px 8px 12px;
  text-align: center;
}

.gallery-book2 figcaption strong {
  display: block;
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 19px;
}

.gallery-book2 figcaption span {
  display: block;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
  margin-top: 5px;
}

/* ---------- Series line-up ---------- */

.series {
  background: var(--sky);
  border-top: 1px solid #cde7f2;
}

.series .section-head h2 {
  font-size: clamp(28px, 3.8vw, 44px);
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  max-width: 900px;
  margin: 0 auto;
}

.series-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d9ecf5;
  border-radius: var(--radius);
  padding: 22px 22px 26px;
  box-shadow: var(--shadow-soft);
}

.series-card.upcoming {
  border-style: dashed;
  border-color: #b9d9e8;
  background: #fbfdff;
}

.series-art {
  border-radius: 16px;
  background: var(--sky);
  padding: 16px;
  margin-bottom: 20px;
}

.series-art img {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 22px #173a6333;
}

.series-card .eyebrow {
  margin-bottom: 8px;
}

.series-card h3 {
  font-family: Fredoka, sans-serif;
  color: var(--navy);
  font-size: clamp(22px, 2.6vw, 27px);
  line-height: 1.12;
  margin: 0 0 10px;
}

.series-card p {
  color: #526776;
  font-size: 16px;
  margin: 0;
}

.series-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 16px 0 20px !important;
}

.series-status.available {
  color: #2f7a4a;
}

.series-status.pending {
  color: #5c86a3;
}

.series-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.series-card .button,
.series-card .button-soon {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Book 3 teaser ---------- */

.book3 {
  background: radial-gradient(120% 90% at 50% 0%, #24547f 0%, #173a63 55%, #102a48 100%);
  color: #eaf3fa;
}

.book3-inner {
  max-width: 900px;
  text-align: center;
}

.book3 .badge-soon {
  background: #ffffff14;
  border-color: #ffd65a80;
  color: var(--yellow);
}

.book3-title {
  font-family: Fredoka, sans-serif;
  color: #fff;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  margin: 0;
}

.book3-heading {
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  color: var(--yellow);
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.25;
  margin: 18px auto 0;
  max-width: 24ch;
}

.book3-lead {
  color: #c9dcec;
  font-size: 18px;
  margin: 16px auto 0;
  max-width: 40ch;
}

.book3-art {
  margin: 40px auto 0;
  max-width: 720px;
  padding: 12px;
  background: #ffffff10;
  border: 1px solid #ffffff24;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px #06152a66;
}

.book3-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 14px;
  background: #0d2340;
}

.book3-quote {
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  color: #fff;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.35;
  margin: 38px auto 0;
  max-width: 30ch;
}

.book3-quote::before,
.book3-quote::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  border-radius: 3px;
  background: var(--yellow);
  margin: 0 auto 22px;
}

.book3-quote::after {
  margin: 22px auto 0;
}

.book3-note {
  color: #9dbcd6;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .6px;
  margin: 20px 0 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1004px) {
  .gallery-book2 {
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .gallery-book2,
  .series-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .gallery-book2 figure:hover {
    transform: none;
  }
  .series-card {
    padding: 18px 18px 22px;
  }
  .series-art img {
    max-width: 200px;
  }
  .theme-chips {
    gap: 8px;
  }
  .theme-chips li {
    font-size: 13px;
    padding: 7px 13px;
  }
  .book3-art {
    margin-top: 30px;
    padding: 8px;
  }
  .book2-cta .button,
  .book2-cta .button-soon,
  .series-card .button,
  .series-card .button-soon {
    width: 100%;
    align-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-book2 figure {
    transition: none;
  }
}
