/* Amelia's World — bright, cheerful, toddler-friendly */

:root {
  --sky: #7ec8f7;
  --sky-light: #e8f5ff;
  --sun: #ffd94d;
  --sun-dark: #f5b800;
  --pink: #ff9ec6;
  --pink-light: #fff0f6;
  --coral: #ff6b6b;
  --ink: #3a3a4a;
  --white: #ffffff;
  --radius: 24px;
}

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

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: #fffdf7;
  line-height: 1.6;
}

h1, h2, h3, .brand {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  line-height: 1.2;
}

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

/* ---------- Nav ---------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: var(--white);
  border-bottom: 4px solid var(--sun);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.nav .links { display: flex; gap: 18px; align-items: center; }
.nav .links a { text-decoration: none; color: var(--ink); font-weight: 700; }
.nav .links a:hover { color: var(--coral); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 0 rgba(0,0,0,.12);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.12); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(0,0,0,.12); }

.btn-red { background: var(--coral); color: #fff; }
.btn-yellow { background: var(--sun); color: var(--ink); }
.btn-outline { background: #fff; color: var(--ink); border: 3px solid var(--sky); }
.btn-small { padding: 10px 20px; font-size: .95rem; background: var(--sky); color: #fff; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.center { text-align: center; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 60px 6vw;
  background: linear-gradient(180deg, var(--sky-light) 0%, #fffdf7 100%);
}

.hero-text { flex: 1; min-width: 280px; }
.hero-img { flex: 1; min-width: 280px; }
.hero-img img { border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,.12); }

.kicker {
  display: inline-block;
  background: var(--pink-light);
  color: #c2437f;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; }
.tagline { font-family: 'Baloo 2', sans-serif; font-size: 1.4rem; font-weight: 600; color: #e8930c; margin: 6px 0 14px; }
.intro { font-size: 1.1rem; margin-bottom: 20px; max-width: 34rem; }

/* ---------- Sections ---------- */
.section { padding: 64px 6vw; max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--pink-light); border-radius: 40px; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; font-size: 1.1rem; max-width: 44rem; margin: 0 auto 32px; }

/* ---------- Rhyme cards ---------- */
.rhyme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.rhyme-card {
  background: #fff;
  border: 3px solid var(--sky-light);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s ease, border-color .15s ease;
}

.rhyme-card:hover { transform: translateY(-4px); border-color: var(--sky); }
.rhyme-card h3 { font-size: 1.15rem; margin: 10px 0 6px; }
.rhyme-card p { font-size: .95rem; color: #66667a; }
.rhyme-emoji { font-size: 2.4rem; }
.rhyme-more { background: var(--sky-light); border-style: dashed; }

/* ---------- Books ---------- */
.books-wrap, .print-wrap {
  display: flex;
  gap: 44px;
  align-items: center;
}

.books-img, .print-img { flex: 1; min-width: 260px; }
.books-img img, .print-img img { border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.books-text, .print-text { flex: 1.2; min-width: 280px; }
.books-text h2, .print-text h2 { text-align: left; }
.books-text .section-sub, .print-text .section-sub { text-align: left; margin-left: 0; }

.book-list { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.book {
  background: #fff;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.book h3 { font-size: 1.15rem; margin-bottom: 6px; }
.book p { font-size: .98rem; margin-bottom: 12px; color: #55556a; }
.book-soon { border: 3px dashed var(--sun); background: #fffdf0; }

.badge {
  display: inline-block;
  background: var(--sun);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}

/* ---------- Printables ---------- */
.check-list { list-style: none; margin: 0 0 18px; }
.check-list li { font-size: 1.05rem; margin-bottom: 8px; font-weight: 600; }
.soon-note { background: #fffbe8; border-left: 5px solid var(--sun); padding: 12px 16px; border-radius: 0 12px 12px 0; margin-bottom: 18px; }

/* ---------- Signup ---------- */
.signup {
  background: linear-gradient(135deg, var(--sky) 0%, #a5dcf9 60%, var(--pink) 130%);
  border-radius: 40px;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.signup .section-sub { color: #fff; }

.signup-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}

.signup-form input[type="email"] {
  padding: 14px 22px;
  border-radius: 999px;
  border: 3px solid #fff;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  width: min(340px, 90vw);
  text-shadow: none;
}

.thanks { font-size: 1.2rem; font-weight: 800; margin-top: 12px; }
.fine-print { font-size: .85rem; opacity: .9; }

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

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 36px 20px 44px;
  background: var(--ink);
  color: #fff;
}
footer a { color: var(--sun); text-decoration: none; font-weight: 700; }
footer a:hover { text-decoration: underline; }
footer .love { margin-top: 8px; opacity: .85; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .hero { flex-direction: column; padding: 44px 6vw; }
  .books-wrap { flex-direction: column; }
  .print-wrap { flex-direction: column-reverse; }
  .nav .links a:not(.btn) { display: none; }
  .section { padding: 48px 6vw; }
}
