/* Homepage styles for "Let's Build Together! - Book 1".
   Layers on top of assets/styles.css (shared header, footer, buttons, tokens). */

:root {
  --shadow-soft: 0 18px 40px #173a6322;
  --shadow-lift: 0 26px 56px #173a632e;
}

/* ---------- Hero ---------- */

.book-hero {
  background: linear-gradient(160deg, var(--cream) 0%, #fff6e6 42%, var(--sky) 100%);
  border-bottom: 1px solid #ecf3f6;
}

.book-hero-inner {
  max-width: 1140px;
  margin: auto;
  padding: 62px 32px 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: center;
  gap: 68px;
}

.book-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 100px;
  padding: 7px 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px #173a6314;
}

.book-hero h1 {
  font-family: Fredoka, sans-serif;
  color: var(--navy);
  font-size: clamp(44px, 6vw, 74px);
  line-height: .95;
  letter-spacing: -2px;
  margin: 0;
}

.book-hero h1 em {
  display: block;
  font-style: normal;
  color: var(--orange);
}

.hero-subtitle {
  font-family: Fredoka, sans-serif;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.3;
  color: #2f5480;
  margin: 20px 0 0;
  max-width: 25ch;
}

.book-hero .lead {
  max-width: 46ch;
  font-size: 18px;
  color: #526776;
  margin: 18px 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.button-primary .button-icon {
  font-size: 18px;
  line-height: 1;
}

.hero-actions .button {
  padding: 15px 28px;
  font-size: 16px;
}

.hero-meta {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}

/* Cover artwork */

.cover-frame {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

.cover-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #dff3fb;
  box-shadow: var(--shadow-lift);
  transform: rotate(-1.6deg);
}

.cover-badge {
  position: absolute;
  right: -14px;
  bottom: 26px;
  background: var(--yellow);
  color: var(--navy);
  font-family: Fredoka, sans-serif;
  font-size: 15px;
  line-height: 1.15;
  text-align: center;
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  box-shadow: 0 10px 22px #173a6326;
  transform: rotate(5deg);
}

.cover-badge strong {
  display: block;
  font-size: 21px;
}

/* ---------- Shared section furniture ---------- */

.home-section {
  max-width: 1140px;
  margin: auto;
  padding: 92px 32px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-head h2 {
  font-family: Fredoka, sans-serif;
  color: var(--navy);
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0;
}

.section-head p {
  color: #526776;
  font-size: 18px;
  margin: 14px 0 0;
}

/* ---------- Take a peek inside ---------- */

.peek {
  background: #fff;
  border-top: 1px solid #f0eadf;
  border-bottom: 1px solid #f0eadf;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.gallery 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 figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

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

.gallery figcaption {
  font-family: Fredoka, sans-serif;
  color: var(--navy);
  font-size: 19px;
  text-align: center;
  padding: 14px 6px 12px;
}

/* ---------- Colour & create ---------- */

.create {
  background: var(--cream);
}

.pair-set {
  max-width: 900px;
  margin: 0 auto 56px;
}

.pair-set:last-of-type {
  margin-bottom: 0;
}

.pair-title {
  font-family: Fredoka, sans-serif;
  color: var(--navy);
  font-size: clamp(20px, 2.4vw, 26px);
  text-align: center;
  margin: 0 0 20px;
}

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

.pair-card {
  margin: 0;
  background: #fff;
  border: 1px solid #edeade;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.pair-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #f3f5f7;
}

.pair-label {
  display: block;
  font-family: Fredoka, sans-serif;
  font-size: 16px;
  color: var(--navy);
  text-align: center;
  padding: 13px 6px 6px;
}

.create-note {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin: 34px auto 0;
  max-width: 52ch;
}

/* ---------- Meet Max ---------- */

.meet-max {
  background: #fff;
  border-top: 1px solid #f0eadf;
}

.max-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 58px;
}

.max-copy h2 {
  font-family: Fredoka, sans-serif;
  color: var(--navy);
  font-size: clamp(32px, 4.2vw, 46px);
  letter-spacing: -1px;
  margin: 0;
}

.max-copy p {
  font-size: 18px;
  color: #526776;
  margin: 16px 0 0;
  max-width: 44ch;
}

.max-traits {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 26px 0 0;
}

.max-traits li {
  background: #fff6e6;
  color: #a5561f;
  font-weight: 700;
  font-size: 14px;
  border-radius: 100px;
  padding: 8px 16px;
}

.max-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #dff3fb;
  box-shadow: var(--shadow-soft);
}

/* ---------- More adventures ---------- */

.more {
  background: var(--sky);
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.more-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  border: 1px solid #d9ecf5;
}

.more-card .number {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: Fredoka, sans-serif;
  font-size: 20px;
  margin-bottom: 16px;
}

.more-card.published .number {
  background: var(--orange);
}

.more-card h3 {
  font-family: Fredoka, sans-serif;
  color: var(--navy);
  font-size: 22px;
  margin: 0 0 8px;
}

.more-card p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.more-card .status {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--orange);
}

.more-card.upcoming {
  border-style: dashed;
  border-color: #b9d9e8;
  background: #f4fbfe;
}

.more-card.upcoming .status {
  color: #5c86a3;
}

/* ---------- Footer extras ---------- */

.site-footer .site-url {
  font-weight: 700;
  color: #fff;
}

.site-footer .site-url:hover {
  color: var(--yellow);
}

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

@media (max-width: 980px) {
  .book-hero-inner {
    gap: 44px;
  }
  .gallery,
  .more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .max-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .max-copy p {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .book-hero-inner {
    grid-template-columns: 1fr;
    padding: 40px 24px 56px;
    gap: 38px;
  }
  .book-hero .lead {
    max-width: none;
  }
  .hero-subtitle {
    max-width: none;
  }
  .cover-frame {
    order: -1;
    max-width: 330px;
  }
  .cover-frame img {
    transform: none;
  }
  .cover-badge {
    right: -6px;
    bottom: 16px;
    font-size: 13px;
    padding: 11px 13px;
  }
  .home-section {
    padding: 64px 24px;
  }
  .section-head {
    margin-bottom: 34px;
  }
  .gallery,
  .more-grid,
  .pair-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .pair-set {
    margin-bottom: 40px;
  }
  .gallery figure:hover {
    transform: none;
  }
}

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