/* Clarence & Pinafor — storybook site styles */

:root {
  --cream: #FFF9EF;
  --cream-deep: #F7ECD4;
  --ink: #3E2F23;
  --forest: #4E7A4E;
  --forest-dark: #38603A;
  --autumn: #D9822B;
  --autumn-dark: #B25F1A;
  --wood: #8B5E34;
  --rose: #C96F5A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, .brand {
  font-family: 'Chewy', 'Quicksand', cursive;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 239, 0.95);
  border-bottom: 3px solid var(--cream-deep);
  backdrop-filter: blur(4px);
}
.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-size: 1.5rem;
  color: var(--forest-dark);
  text-decoration: none;
}
.nav-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--autumn-dark); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, #FFE9C4 0%, var(--cream) 90%);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.series-kicker {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--wood);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--forest-dark);
  margin-bottom: 1rem;
}
.h1-accent { color: var(--autumn-dark); }

.badge {
  display: inline-block;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.blurb p { margin-bottom: 0.9rem; }
.blurb-age { font-weight: 700; color: var(--forest-dark); }

.btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-amazon {
  background: var(--autumn);
  color: #fff;
  box-shadow: 0 4px 0 var(--autumn-dark);
}
.btn-amazon:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--autumn-dark); }
.btn-note { font-size: 0.85rem; color: var(--wood); margin-top: 0.5rem; font-style: italic; }

.hero-image img {
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(62, 47, 35, 0.25);
  border: 6px solid #fff;
}

.hero-teasers { text-align: center; }
.coming-soon-label {
  font-family: 'Chewy', 'Quicksand', cursive;
  font-size: 1.5rem;
  color: var(--forest-dark);
  margin-bottom: 1.1rem;
}
.hero-circles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  justify-items: center;
  max-width: 560px;
  margin: 0 auto;
}
.hero-circles img {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 10px 25px rgba(62, 47, 35, 0.25);
}
.hero-circles img:nth-child(3) { grid-column: 1 / -1; }

/* ---------- sections ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--forest-dark);
  text-align: center;
  margin-bottom: 0.4rem;
}
.section-sub {
  text-align: center;
  color: var(--wood);
  font-weight: 600;
  margin-bottom: 2.25rem;
}

/* ---------- characters ---------- */
.characters { background: var(--cream); }
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.card {
  background: #fff;
  border-radius: 24px;
  padding: 1.75rem;
  border: 3px solid var(--cream-deep);
  box-shadow: 0 10px 30px rgba(62, 47, 35, 0.08);
}
.card img {
  border-radius: 50%;
  width: 220px;
  height: 220px;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 6px solid var(--cream-deep);
}
.card h3 {
  text-align: center;
  font-size: 1.6rem;
  color: var(--autumn-dark);
  margin-bottom: 0.75rem;
}
.card p { margin-bottom: 1rem; }
.facts { list-style: none; }
.facts li {
  padding: 0.45rem 0;
  border-top: 2px dotted var(--cream-deep);
  font-size: 0.95rem;
}
.together {
  text-align: center;
  font-family: 'Chewy', cursive;
  font-size: 1.4rem;
  color: var(--forest-dark);
  margin-top: 2rem;
}

/* ---------- peek inside ---------- */
.peek { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%); max-width: none; }
.peek .peek-grid { max-width: 1100px; margin: 0 auto; }
.peek h2, .peek .section-sub { max-width: 1100px; margin-left: auto; margin-right: auto; }
.peek-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 0 1.25rem;
}
.peek-grid figure {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 10px 28px rgba(62, 47, 35, 0.12);
}
.peek-grid figcaption {
  padding: 0.9rem 1.1rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--wood);
  text-align: center;
}

/* ---------- roadmap ---------- */
.books { list-style: none; display: grid; gap: 1rem; }
.book {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #fff;
  border: 3px solid var(--cream-deep);
  border-radius: 18px;
  padding: 1.1rem 1.4rem;
}
.book-live { border-color: var(--forest); background: #F4F9F0; }
.book-bonus { border-style: dashed; }
.book-num {
  font-family: 'Chewy', cursive;
  font-size: 2rem;
  color: var(--autumn-dark);
  min-width: 3rem;
  text-align: center;
}
.book h3 { font-size: 1.35rem; color: var(--ink); }
.book-theme { color: var(--wood); font-weight: 600; font-size: 0.95rem; }
.book-status {
  margin-left: auto;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
}
.book-status.out { background: var(--forest); color: #fff; }
.book-status.soon { background: var(--cream-deep); color: var(--wood); }

/* ---------- authors ---------- */
.authors { background: linear-gradient(180deg, var(--cream-deep) 0%, var(--cream) 100%); max-width: none; }
.authors-inner { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.authors h2 { max-width: 1100px; margin-left: auto; margin-right: auto; }
.authors-inner p { margin-bottom: 1.1rem; }
.authors-sign {
  font-family: 'Chewy', cursive;
  font-size: 1.25rem;
  color: var(--forest-dark);
  text-align: center;
  margin-top: 1.5rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--forest-dark);
  color: #F3EAD8;
  text-align: center;
  padding: 2.25rem 1.25rem;
}
.site-footer p { margin: 0.25rem 0; }
.footer-sub { font-size: 0.9rem; opacity: 0.85; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image, .hero-teasers { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .peek-grid { grid-template-columns: 1fr; }
  .book { flex-wrap: wrap; }
  .book-status { margin-left: 0; }
}
