@font-face {
  font-family: "Tropic Island";
  src: url("assets/fonts/Tropic_Island.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #FDFBF7;
  --cream-2: #F8F3EA;
  --sage: #9DC0A4;
  --sage-dark: #4F8C63;
  --blush: #F0C9C9;
  --gold: #D9B060;
  --mint: #D3E9E1;
  --lavender: #E6DAF0;
  --pale-yellow: #F3EDC3;
  --pale-sage: #DCEAD1;
  --ink: #2A2A2A;
  --ink-soft: #6B6B65;
  --border: #E8DFCC;

  --font-display: "Tropic Island", "Baloo 2", sans-serif;
  --font-body: "Quicksand", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a { color: inherit; }

/* grain overlay removed for a cleaner look */

/* ---------- Nav ---------- */
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.5rem clamp(1.25rem, 5vw, 4rem);
  gap: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo {
  height: 110px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.nav__links--left { justify-content: flex-start; }
.nav__links--right { justify-content: flex-end; }

.nav__links a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--sage-dark); }
.nav__links a.nav__links--active { color: var(--sage-dark); text-decoration: underline; text-underline-offset: 4px; }

.nav__cta {
  background: var(--sage-dark);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}
.nav__cta:hover { background: var(--sage); }

@media (max-width: 720px) {
  .nav__links { gap: 0.7rem; font-size: 0.78rem; }
  .nav { grid-template-columns: 1fr auto 1fr; gap: 0.5rem; }
  .nav__logo { height: 72px; }
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem clamp(1.25rem, 5vw, 4rem) 4rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero__text { flex: 1 1 420px; max-width: 560px; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}
.eyebrow--center { text-align: center; }
.eyebrow--light { color: #fff; text-shadow: 0 1px 2px rgba(90,86,80,0.15); }

.hero__headline {
  font-family: var(--font-display);
  font-weight: normal;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 1.2rem;
  color: var(--sage-dark);
}
.hero__headline em {
  font-style: normal;
  color: var(--gold);
}

.hero__sub {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 2rem;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--sage-dark); color: #fff; }
.btn--primary:hover { background: var(--sage); }

.btn--ghost { background: transparent; border-color: var(--sage-dark); color: var(--sage-dark); }
.btn--ghost:hover { background: var(--sage-dark); color: #fff; }

.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #b8935a; }

/* breathing bloom */
.hero__visual {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 320px;
  margin: 0 auto;
}

.bloom {
  max-width: 340px;
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center bottom;
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.98); }
  50% { transform: scale(1.02); }
}

.bloom__caption {
  font-family: var(--font-display);
  font-weight: normal;
  color: var(--sage-dark);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  min-height: 1.6em;
}

@media (prefers-reduced-motion: reduce) {
  .bloom__flower { animation: none; }
}

/* ---------- Dividers ---------- */
.divider { line-height: 0; margin: 0 auto; max-width: 1200px; padding: 0 clamp(1.25rem, 5vw, 4rem); }
.divider svg { width: 100%; height: 32px; display: block; }
.divider--flip svg { transform: scaleY(-1); }

/* ---------- Sections ---------- */
.section {
  padding: 3.5rem clamp(1.25rem, 5vw, 4rem) 4.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section--narrow { max-width: 720px; text-align: center; }

.series-cover {
  display: block;
  max-width: 340px;
  width: 100%;
  height: auto;
  margin: 0 auto 0.5rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: normal;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--sage-dark);
  text-align: center;
  margin: 0 0 0.7rem;
}
.section__title--light { color: var(--sage-dark); }

.section__sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto 2.5rem;
}
.section__sub--light { color: var(--ink); }

.section--sage {
  background: linear-gradient(160deg, var(--mint) 0%, var(--lavender) 100%);
  border-radius: 28px;
  max-width: 1200px;
  color: var(--ink);
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.section--cta {
  text-align: center;
}

/* ---------- Books ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.1rem;
}

.series-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.series-grid .book-card {
  flex: 0 1 190px;
  width: 190px;
}

.book-card {
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(79, 107, 87, 0.12);
}

.book-card.series-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}
  position: absolute;
  top: -10px;
  right: 10px;
  background: var(--gold);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  z-index: 2;
}

.book-card__title .crossed-word {
  text-decoration: line-through;
  text-decoration-color: #B85C5C;
  color: #B85C5C;
}

.title-swap {
  color: var(--sage-dark);
}
.font-teen {
  font-family: "Permanent Marker", cursive;
  font-size: 1.05em;
  transform: rotate(-2deg);
  display: inline-block;
}
.font-adult {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
}

.book-card__cover {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.book-card__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--sage-dark);
  margin: 0 0 0.35rem;
}

.book-card__desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
}

.book-card__btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--sage-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
}
.book-card__btn:hover { background: var(--sage); }

/* ---------- Forms ---------- */
.template-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.template-form input {
  flex: 1 1 220px;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: #fff;
  color: var(--ink);
}
.template-form input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.form-status {
  text-align: center;
  min-height: 1.4em;
  margin-top: 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Template grid ---------- */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.template-grid a {
  display: block;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 14px;
  padding: 1.1rem;
  text-align: center;
  text-decoration: none;
  color: var(--sage-dark);
  font-weight: 700;
  transition: background 0.2s ease;
}
.template-grid a:hover { background: rgba(255,255,255,0.9); }

/* ---------- Story ---------- */
.story__body {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 1.2rem;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer__social {
  position: absolute;
  left: clamp(1.25rem, 5vw, 4rem);
  bottom: 2.6rem;
  color: var(--sage-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer__social:hover {
  color: var(--gold);
  transform: translateY(-2px);
}
