:root {
  --ww-teal: #1f8a8c;
  --ww-teal-dark: #146062;
  --ww-coral: #ff6f59;
  --ww-gold: #ffc857;
  --ww-cream: #fff8ec;
}

body {
  font-family: 'Nunito', sans-serif;
  color: #333;
}

.brand-font {
  font-family: 'Baloo 2', cursive;
}

/* ---------- Navbar ---------- */
.navbar-brand {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--ww-teal-dark) !important;
}

.nav-link {
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--ww-teal) 0%, var(--ww-teal-dark) 100%);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* clamp() keeps type comfortably sized from small phones up through desktop
   without needing separate breakpoint overrides for every step. */
.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.1;
}

.hero-lead {
  font-size: clamp(1.1rem, 3vw, 1.75rem);
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  opacity: 0.9;
}

/* ---------- Books ---------- */
.book-card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease;
}

.book-card:hover {
  transform: translateY(-4px);
}

.book-cover-placeholder {
  height: clamp(160px, 30vw, 220px);
  background: linear-gradient(135deg, var(--ww-gold) 0%, var(--ww-coral) 100%);
  color: #fff;
  font-size: clamp(2rem, 6vw, 3rem);
  overflow: hidden;
}

.book-cover-placeholder img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.btn-buy-amazon {
  background-color: #ff9900;
  border-color: #ff9900;
  color: #111;
  font-weight: 700;
}

.btn-buy-amazon:hover,
.btn-buy-amazon:focus {
  background-color: #e88a00;
  border-color: #e88a00;
  color: #111;
}

/* ---------- About ---------- */
.author-photo-placeholder {
  width: clamp(120px, 30vw, 180px);
  height: clamp(120px, 30vw, 180px);
  border-radius: 50%;
  background: var(--ww-teal);
  color: #fff;
  font-size: clamp(2.5rem, 8vw, 4rem);
}

/* ---------- Social links ---------- */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 1.5rem);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(48px, 10vw, 56px);
  height: clamp(48px, 10vw, 56px);
  border-radius: 50%;
  background: var(--ww-cream);
  color: var(--ww-teal-dark);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.social-icon:hover {
  background: var(--ww-coral);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Signup ---------- */
.signup-section {
  background: linear-gradient(135deg, var(--ww-coral) 0%, #e5484d 100%);
}

.signup-form .form-control {
  border-radius: 0.5rem;
  border: none;
  padding: 0.75rem 1rem;
}

.signup-form .btn {
  border-radius: 0.5rem;
}

#signupMessage:empty {
  display: none;
}

#signupMessage.success {
  color: #d6ffe0;
  font-weight: 600;
}

#signupMessage.error {
  color: #ffe0e0;
  font-weight: 600;
}

/* ---------- Small-screen tightening ---------- */
@media (max-width: 575.98px) {
  .hero {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}
