:root {
  --blue: #2D6CDF;
  --blue-dark: #1f4fb0;
  --yellow: #FFC93C;
  --cream: #FCF3DF;
  --cream-2: #FFFCF3;
  --ink: #232323;
  --body-text: #4a4a42;
  --muted: #8a8272;
  --border: #ecdfc0;
  --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(--ink); margin: 0; }

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

/* ---------- Hero ---------- */
.home-hero {
  text-align: center;
  padding: 76px 24px 56px;
  animation: fade-up 0.6s ease both;
}
.home-hero-inner { max-width: 560px; margin: 0 auto; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--blue);
  margin: 0 0 14px;
}
.wordmark {
  color: var(--ink);
  font-size: clamp(30px, 5.5vw, 46px);
  line-height: 1.2;
  font-weight: 700;
}
.wordmark-highlight {
  display: inline-block;
  color: var(--blue-dark);
  background: var(--yellow);
  padding: 0 12px;
  border-radius: 8px;
  animation: wiggle 3.5s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 83%, 100% { transform: rotate(0deg); }
  86% { transform: rotate(-8deg); }
  89% { transform: rotate(7deg); }
  92% { transform: rotate(-6deg); }
  95% { transform: rotate(4deg); }
  97% { transform: rotate(-2deg); }
  99% { transform: rotate(1deg); }
}
.home-hero-sub {
  font-size: 17px;
  max-width: 460px;
  margin: 18px auto 0;
  color: var(--muted);
}

@keyframes fade-up {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

.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;
}

.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(--blue);
  white-space: nowrap;
  text-decoration: none;
}

/* ---------- Series card ---------- */
.book-card-featured {
  padding: 28px;
  gap: 28px;
  border-width: 3px;
}
.book-card-featured:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); border-color: var(--blue); }
.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(--blue);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
}
.book-cta-btn:hover { background: var(--blue-dark); }
.book-cta-outline {
  display: inline-block;
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 15px;
}
.book-cta-outline:hover { background: var(--blue); 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(--blue);
  letter-spacing: 1.5px;
  font-size: 13px;
  margin-bottom: 10px;
}
.footer-fine { margin-top: 14px; font-style: italic; }
