:root {
  --red: #E8402A;
  --red-dark: #c53420;
  --navy: #22405e;
  --cream: #fbf6ec;
  --cream-2: #fffdf9;
  --ink: #1a1a1a;
  --body-text: #444;
  --muted: #7a756c;
  --border: #e7ded0;
  --radius: 18px;
  --font-head: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--body-text);
  line-height: 1.55;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--navy); margin: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: var(--navy);
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.series-back-link {
  display: block;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.2px;
  color: #fff;
  text-decoration: none;
  background: var(--navy);
  border-bottom: 4px solid var(--red);
  padding: 20px 24px;
  transition: background 0.15s ease;
}
.series-back-link:hover { background: var(--red); }

/* ---------- Hero ---------- */
.home-hero {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 72px 24px 64px;
}
.home-hero-inner { max-width: 640px; margin: 0 auto; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--red);
  margin: 0 0 14px;
}
.wordmark {
  color: #fff;
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.1;
  font-weight: 700;
}
.wordmark-highlight {
  display: inline-block;
  color: #fff;
  background: var(--red);
  padding: 0 16px;
  border-radius: 10px;
  transform: rotate(-2deg);
  animation: drop-in-city 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes drop-in-city {
  0% { transform: translateY(-70vh) rotate(-2deg); opacity: 0; }
  65% { transform: translateY(10px) rotate(-2deg); opacity: 1; }
  82% { transform: translateY(-6px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(-2deg); }
}
.home-hero-sub {
  font-size: 17px;
  max-width: 460px;
  margin: 20px auto 0;
  color: rgba(255,255,255,0.88);
}

/* ---------- Series list ---------- */
.section { padding: 56px 24px 80px; max-width: 780px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(24px, 4vw, 30px); }

.book-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.book-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
a.book-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); border-color: var(--red); }
.book-card-featured:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); border-color: var(--red); }

.book-card-soon { opacity: 0.72; }

.book-cover {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: var(--cream);
}

.book-info { flex: 1; min-width: 0; }
.book-info-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.book-info-top h3 { font-size: 19px; }
.book-info p { font-size: 14.5px; margin: 0; color: var(--body-text); }

.book-status {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.book-status-published { background: #e4f3ea; color: #1d7a4c; }
.book-status-soon { background: var(--cream); color: var(--muted); }

.book-cta {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--red);
  white-space: nowrap;
  text-decoration: none;
}

@media (max-width: 520px) {
  .book-card { flex-wrap: wrap; }
  .book-cta { width: 100%; text-align: right; }
}

/* ---------- Featured (published) book card ---------- */
.book-card-featured {
  padding: 28px;
  gap: 28px;
  border-width: 3px;
}
.book-cover-image {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.book-card-featured .book-info-top h3 { font-size: 26px; }
.book-card-featured .book-info p { font-size: 16px; margin-bottom: 14px; }
.book-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.book-cta-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
}
.book-cta-btn:hover { background: var(--red-dark); }
.book-cta-outline {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 15px;
}
.book-cta-outline:hover { background: var(--navy); color: #fff; }

@media (max-width: 560px) {
  .book-card-featured { flex-direction: column; text-align: center; }
  .book-card-featured .book-info-top { justify-content: center; }
  .book-cta-group { justify-content: center; }
  .book-cta-group .book-cta { width: auto; text-align: center; }
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 40px 24px 50px;
  color: var(--muted);
  font-size: 14px;
}
.footer-brand {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--red);
  letter-spacing: 1.5px;
  font-size: 13px;
  margin-bottom: 10px;
}
.footer-fine { margin-top: 14px; font-style: italic; }
