/* ============================================
   THE BOY WITH THE BIG EAR
   theboywiththebigear.com
   Palette drawn from Leo Moralina's illustrations
   ============================================ */

:root {
  --cream:       #FAF7F2;
  --brown-deep:  #5C3D28;
  --terracotta:  #B5704A;
  --sky:         #A8C8D8;
  --teal:        #3A7A8C;
  --yellow:      #E0B84A;
  --olive:       #8A8060;
  --taupe:       #C8BEA8;
  --green-hill:  #6A8A60;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--brown-deep);
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

p {
  margin-bottom: 1.4em;
}

p:last-child {
  margin-bottom: 0;
}


/* ============================================
   HEADER
   ============================================ */

header {
  text-align: center;
  padding: 52px 40px 40px;
  border-bottom: 1px solid var(--taupe);
}

.site-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--brown-deep);
  margin-bottom: 12px;
}

.tagline {
  font-family: 'Lato', sans-serif;
  font-size: 0.83rem;
  letter-spacing: 0.13em;
  color: var(--terracotta);
  font-style: italic;
}


/* ============================================
   NAV
   ============================================ */

nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 14px 40px;
  background: var(--cream);
  border-bottom: 1px solid var(--taupe);
}

nav a {
  font-family: 'Lato', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brown-deep);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--teal);
}


/* ============================================
   HERO
   ============================================ */

.hero {
  background: linear-gradient(to bottom, #E8F3F8 0%, var(--cream) 100%);
  text-align: center;
  padding: 88px 40px 80px;
  border-bottom: 1px solid var(--taupe);
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 2.3rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--brown-deep);
  max-width: 640px;
  margin: 0 auto 44px;
}

.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-poem {
  max-width: 440px;
  margin: 0 auto 36px;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 2.1;
  color: var(--brown-deep);
  opacity: 0.82;
}

.hero-poem p {
  margin-bottom: 0;
}

.hero-attribution {
  font-family: 'Lato', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  color: var(--olive);
  text-transform: uppercase;
  margin-bottom: 0;
}


/* ── Hero buy link ───────────────────────────────────────── */
.hero-buy-link {
  display: inline-block;
  margin-top: 2rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.hero-buy-link:hover {
  color: var(--brown-deep);
  border-color: var(--brown-deep);
}


/* ── Home pull quote ─────────────────────────────────────── */
.home-quote {
  max-width: 560px;
  margin: 4rem auto 0;
  padding: 0 2rem;
  text-align: center;
}

.home-quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--brown-deep);
  margin-bottom: 1rem;
}

.home-quote cite {
  font-family: 'Lato', sans-serif;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}


/* ── Buy band (Reviews + Watch & Listen) ─────────────────── */
.buy-band {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  padding: 3.5rem 2rem;
  background: var(--sky-light);
  border-top: 1px solid var(--taupe);
}


/* ── Buy nudge (Ask The Characters) ─────────────────────── */
.buy-nudge {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--taupe);
}

.buy-nudge p {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--brown-deep);
  opacity: 0.75;
  margin-bottom: 1.25rem;
}


/* ============================================
   BOOKS
   ============================================ */

.section-label {
  display: block;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  padding: 56px 40px 0;
  margin-bottom: 0;
}

.books {
  display: flex;
  gap: 56px;
  justify-content: center;
  padding: 44px 48px 80px;
  max-width: 880px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.book-card {
  flex: 1 1 260px;
  max-width: 320px;
  text-align: center;
}

.book-card img {
  width: 100%;
  max-width: 200px;
  display: block;
  margin: 0 auto 28px;
  border-radius: 3px;
  box-shadow: 0 12px 40px rgba(92, 61, 40, 0.18);
}

.book-version {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.book-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--brown-deep);
  margin-bottom: 14px;
  line-height: 1.4;
}

.book-card p {
  font-size: 0.95rem;
  color: var(--brown-deep);
  opacity: 0.78;
  margin-bottom: 28px;
  line-height: 1.75;
}

.btn-amazon {
  display: inline-block;
  padding: 13px 32px;
  background: var(--teal);
  color: var(--cream);
  font-family: 'Lato', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.22s;
}

.btn-amazon:hover {
  background: var(--brown-deep);
}


/* ============================================
   RULE
   ============================================ */

.rule {
  border: none;
  border-top: 1px solid var(--taupe);
  max-width: 600px;
  margin: 0 auto;
}


/* ============================================
   A NOTE TO PARENTS
   ============================================ */

.parents-note {
  background: #F2ECE3;
  padding: 80px 40px;
  border-top: 1px solid var(--taupe);
  border-bottom: 1px solid var(--taupe);
}

.parents-note-inner {
  max-width: 580px;
  margin: 0 auto;
}

.parents-note h2 {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 36px;
  font-weight: 400;
}

.parents-note p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  line-height: 2;
  color: var(--brown-deep);
  margin-bottom: 1.5em;
  font-style: italic;
}

.parents-note p.plain {
  font-family: 'Lato', sans-serif;
  font-style: normal;
  font-size: 1rem;
  color: var(--brown-deep);
  opacity: 0.82;
  margin-bottom: 1.8em;
  line-height: 1.85;
}

.adult-link {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.adult-link:hover {
  color: var(--brown-deep);
  border-color: var(--brown-deep);
}


/* ============================================
   ADULT LINKS
   ============================================ */

.adult-links {
  display: flex;
  gap: 48px;
  justify-content: center;
  padding: 44px 40px;
  border-bottom: 1px solid var(--taupe);
}

.adult-links a {
  font-family: 'Lato', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

.adult-links a:hover {
  color: var(--brown-deep);
}


/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--brown-deep);
  color: var(--taupe);
  padding: 64px 48px;
  text-align: center;
}

.footer-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 10px;
  font-weight: 400;
}

footer p {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  line-height: 1.85;
}

footer a {
  color: var(--taupe);
  text-decoration: none;
}

footer a:hover {
  color: var(--cream);
}

.footer-rule {
  border: none;
  border-top: 1px solid rgba(200, 190, 168, 0.22);
  margin: 32px auto;
  max-width: 380px;
}

.footer-legal {
  font-size: 0.7rem;
  opacity: 0.6;
  letter-spacing: 0.04em;
  line-height: 1.85;
  max-width: 620px;
  margin: 0 auto 12px;
}


/* ============================================
   REVIEWS — PULL QUOTES
   ============================================ */

.quotes-section {
  max-width: 620px;
  margin: 0 auto;
  padding: 64px 40px 88px;
}

.pull-quote {
  margin: 0;
  padding: 48px 0;
  border-bottom: 1px solid var(--taupe);
}

.pull-quote:first-of-type {
  padding-top: 0;
}

.pull-quote:last-of-type {
  border-bottom: none;
}

.pull-quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--brown-deep);
  margin-bottom: 1.25rem;
}

.pull-quote cite {
  font-family: 'Lato', sans-serif;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}


/* ============================================
   WATCH & LISTEN — MEDIA SECTION
   ============================================ */

.media-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 40px 88px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.media-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.media-title {
  font-family: 'Lato', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0;
}

.media-item video {
  width: 100%;
  display: block;
  background: var(--brown-deep);
}


/* ============================================
   ASK THE CHARACTERS — PORTAL HERO
   ============================================ */

.portal-hero {
  background: linear-gradient(to bottom, #E8F3F8 0%, var(--cream) 100%);
  text-align: center;
  padding: 80px 40px 64px;
  border-bottom: 1px solid var(--taupe);
}

.portal-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--brown-deep);
  margin-bottom: 36px;
}

.portal-intro {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 2;
  color: var(--brown-deep);
  opacity: 0.82;
  max-width: 460px;
  margin: 0 auto 0;
}

.portal-intro + .portal-intro {
  margin-top: 1.4em;
}


/* ============================================
   ASK THE CHARACTERS — FORM
   ============================================ */

.portal-form-section {
  padding: 72px 40px 88px;
  max-width: 640px;
  margin: 0 auto;
}

.portal-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Character selection */

.character-fieldset {
  border: none;
  padding: 0;
}

.character-fieldset legend {
  font-family: 'Lato', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 24px;
  font-weight: 400;
  display: block;
}

.character-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--taupe);
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.character-card:last-child {
  margin-bottom: 0;
}

.character-card:hover {
  border-color: var(--teal);
  background: #F4F9FB;
}

.character-card input[type="radio"] {
  margin-top: 4px;
  accent-color: var(--teal);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.character-card:has(input:checked) {
  border-color: var(--teal);
  background: #EEF6FA;
}

.character-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.character-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brown-deep);
}

.character-carries {
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  color: var(--olive);
  line-height: 1.5;
  font-style: italic;
}

/* Form fields */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field label {
  font-family: 'Lato', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 400;
}

.optional {
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  opacity: 0.7;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--taupe);
  background: white;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--brown-deep);
  line-height: 1.6;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.form-field textarea {
  resize: vertical;
  min-height: 160px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--olive);
  opacity: 0.55;
  font-style: italic;
}

/* Submit button */

.btn-submit {
  align-self: flex-start;
  padding: 14px 40px;
  background: var(--teal);
  color: var(--cream);
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.22s;
}

.btn-submit:hover {
  background: var(--brown-deep);
}


/* ============================================
   PORTAL VIDEO SECTIONS
   ============================================ */

.portal-video-section {
  padding: 3rem 2rem;
  background: var(--cream);
  border-top: 1px solid var(--taupe);
  border-bottom: 1px solid var(--taupe);
}

.portal-video-closing {
  background: #F2ECE3;
}

.portal-video-wrap {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.portal-video-wrap video {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 6px 28px rgba(92, 61, 40, 0.12);
}

.portal-video-caption {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--olive);
  margin-top: 1rem;
}


/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 640px) {

  header {
    padding: 40px 24px 32px;
  }

  .site-title {
    font-size: 1.3rem;
  }

  .hero {
    padding: 64px 24px 60px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-poem {
    font-size: 1rem;
  }

  .section-label {
    padding: 44px 24px 0;
  }

  .books {
    padding: 36px 24px 64px;
    gap: 48px;
  }

  .parents-note {
    padding: 60px 24px;
  }

  .adult-links {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 40px 24px;
  }

  footer {
    padding: 52px 24px;
  }

}
