/* =====================================================
   Come Here, Amir! — site styles
   Layout: full-width alternating color bands, 4-page site
   Palette: warm browns + friendly blues + white
   ===================================================== */

:root {
  /* Color tokens — brand palette: blue #4A8CC8, brown #8F5B36, white */
  --cocoa: #4e3620;        /* deep brown — body text, footer accents */
  --brown: #8f5b36;        /* brand brown — nav, buttons */
  --brown-dark: #6f4527;   /* button shadow / hover */
  --honey: #e9c9a3;        /* light warm tan — placeholder fills */
  --cream: #fdf3e5;        /* warm pale fill for cards */
  --sky: #4a8cc8;          /* brand blue — big bands */
  --sky-light: #a3c4e2;    /* lighter blue — newsletter strip */
  --denim: #3a6da0;        /* deeper blue — display text on white */
  --white: #ffffff;

  /* Type */
  --wordmark-face: "IM Fell English", Georgia, serif;
  --display: "Baloo 2", "Comic Sans MS", cursive;
  --body: "Nunito", "Segoe UI", sans-serif;

  --wrap: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--cocoa);
  background: var(--white);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; }

/* ---------- Image placeholders ---------- */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(
    45deg,
    var(--honey),
    var(--honey) 14px,
    #f3dcbf 14px,
    #f3dcbf 28px
  );
  border: 3px dashed var(--brown);
  border-radius: 14px;
  color: var(--cocoa);
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.3;
}
.img-placeholder small {
  font-family: var(--body);
  font-weight: 600;
  opacity: 0.75;
}

.img-placeholder--publisher {
  width: 72px;
  height: 72px;
  border-width: 2px;
  border-radius: 8px;
  font-size: 0.62rem;
  text-decoration: none;
}
.banner-img {
  display: block;
  width: 100%;
  height: auto;
}
.img-placeholder--banner {
  width: 100%;
  height: clamp(220px, 32vw, 380px);
  border-radius: 0;
  border-left: none;
  border-right: none;
  font-size: 1.15rem;
}
.img-placeholder--video {
  width: min(760px, 100%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  font-size: 1.15rem;
  background-color: var(--white);
}
.img-placeholder--cover {
  width: min(300px, 70vw);
  aspect-ratio: 4 / 5;
  font-size: 1.1rem;
  box-shadow: 0 14px 30px rgba(78, 54, 32, 0.25);
  transform: rotate(2deg);
  flex-shrink: 0;
}
.book-cover-img {
  display: block;
  width: min(320px, 70vw);
  height: auto;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(78, 54, 32, 0.25);
  transform: rotate(2deg);
  flex-shrink: 0;
}
.img-placeholder--sheet {
  width: min(300px, 75vw);
  aspect-ratio: 3 / 4;
  transform: rotate(-4deg);
  font-size: 1rem;
  background-color: var(--white);
  box-shadow: 0 14px 30px rgba(30, 55, 80, 0.3);
}
.img-placeholder--portrait {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  flex-shrink: 0;
}
.img-placeholder--activity {
  aspect-ratio: 3 / 2;
  font-size: 0.95rem;
  background-color: var(--white);
}

/* ---------- Masthead (wordmark band) ---------- */
.masthead {
  position: relative;
  background: var(--white);
  padding: 26px 0 18px;
}
.masthead-inner { text-align: center; }
.wordmark {
  font-family: var(--wordmark-face);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 3.8rem);
  line-height: 1.05;
  text-decoration: none;
  color: #4a8cc8;
  letter-spacing: 0.01em;
  display: inline-block;
}
.wordmark span { color: inherit; }
.publisher-spot {
  position: absolute;
  top: 10px;
  right: 16px;
}

/* ---------- Nav bar ---------- */
.navbar {
  background: var(--brown);
  position: sticky;
  top: 0;
  z-index: 50;
}
.navbar-inner { text-align: center; }
.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-links a {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 12px 14px;
  display: inline-block;
}
.nav-links a:hover,
.nav-links a.active { background: var(--brown-dark); }

.nav-toggle {
  display: none;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--white);
  padding: 12px 0;
  cursor: pointer;
  width: 100%;
}

/* ---------- Buttons (rounded, "pressed" 3D) ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--brown);
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  box-shadow: 0 5px 0 var(--brown-dark);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--brown-dark);
}
.btn:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 var(--brown-dark);
}
.btn-small { padding: 10px 22px; font-size: 0.85rem; }

/* ---------- Band basics ---------- */
.display-heading {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--denim);
  margin: 0 0 16px;
}
.display-heading.center { text-align: center; }
.on-blue { color: var(--white); }
.band-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 36px;
}

/* Thin highlight edge at the bottom of bands */
.band-edge {
  height: 6px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

/* ---------- Banner ---------- */
.banner { background: var(--cream); }

/* ---------- Tagline band ---------- */
.tagline-band {
  background: var(--white);
  padding: 56px 0;
}
.tagline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.4;
  color: var(--denim);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.tagline em { color: inherit; font-style: normal; }

/* ---------- Video bands ---------- */
.video-band { background: var(--sky); }
.video-band .wrap { padding-top: 48px; padding-bottom: 48px; }

/* ---------- Newest book band (home) ---------- */
.book-band { padding: 64px 0; }
.book-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.book-copy { text-align: center; }
.book-copy .display-heading { margin-bottom: 26px; }
.book-art { display: flex; justify-content: center; }

/* ---------- Quote band ---------- */
.quote-band { background: var(--sky); }
.quote-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 56px;
  padding-bottom: 56px;
}
.quote-band blockquote {
  margin: 0 auto;
  max-width: 860px;
  text-align: center;
  color: var(--white);
}
.quote-band blockquote p {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  margin: 0 0 14px;
}
.quote-band cite {
  font-style: italic;
  font-size: 0.95rem;
  opacity: 0.9;
}
.quote-arrow {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  flex-shrink: 0;
}
.quote-arrow:hover { color: var(--white); }

/* ---------- Activities band (home) ---------- */
.activities-band {
  background: var(--sky);
  border-top: 6px solid rgba(255, 255, 255, 0.45);
}
.activities-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.activities-inner .img-placeholder--sheet { justify-self: center; }
.sheet-img {
  display: block;
  width: min(300px, 75vw);
  height: auto;
  justify-self: center;
  transform: rotate(-4deg);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(30, 55, 80, 0.3);
}
.activities-copy { text-align: center; }
.activities-copy .display-heading { margin-bottom: 26px; }

/* ---------- Subpage bands ---------- */
.page-band { padding: 56px 0 72px; }

/* Books page: book detail */
.book-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  max-width: 900px;
  margin: 32px auto 0;
}
.book-detail-copy h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--brown);
  margin: 0 0 4px;
}
.book-credit {
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0 0 16px;
  opacity: 0.85;
}
.book-specs {
  font-size: 0.88rem;
  opacity: 0.75;
  margin: 0 0 22px;
}
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Books page: coming soon band */
.coming-band { background: var(--sky); }
.coming-band .wrap { padding-top: 56px; padding-bottom: 40px; }
.coming-band .band-intro { margin-bottom: 0; }

/* Activities page: grid */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 380px));
  gap: 32px;
  justify-content: center;
  margin-top: 8px;
}
.activity-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.activity-card {
  background: #f8e7cd;
  border: 2px solid var(--honey);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(78, 54, 32, 0.12);
}
.activity-card h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brown);
  margin: 16px 0 14px;
}

/* Author & Illustrator page */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 380px));
  gap: 48px;
  justify-content: center;
  margin-top: 32px;
}
.person { text-align: center; }
.person .img-placeholder--portrait { margin: 0 auto 18px; }
.author-photo-img {
  display: block;
  width: 240px;
  height: auto;
  margin: 0 auto 18px;
}
.person h2, .person h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brown);
  margin: 0 0 8px;
}
.person p { margin: 0; }

/* ---------- Newsletter strip ---------- */
.newsletter-band {
  background: var(--sky-light);
  border-top: 6px solid rgba(255, 255, 255, 0.45);
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 36px;
}
.newsletter-pitch {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cocoa);
  margin: 0;
}
.newsletter-form { margin: 0; max-width: 420px; }
.newsletter-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.newsletter-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.newsletter-controls input {
  font-family: var(--body);
  font-size: 1rem;
  padding: 11px 16px;
  border-radius: 6px;
  border: 1px solid #7d97ac;
  width: min(280px, 100%);
}
.btn-submit {
  padding: 11px 26px;
  font-size: 0.9rem;
}
.newsletter-disclaimer {
  font-size: 0.75rem;
  line-height: 1.5;
  opacity: 0.8;
  margin: 10px 0 0;
}

/* ---------- Footer legal ---------- */
.site-footer {
  background: var(--white);
  padding: 28px 0 34px;
}
.footer-inner { text-align: center; }
.footer-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-links a {
  color: var(--cocoa);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--denim); text-decoration: underline; }
.fine-print {
  font-size: 0.82rem;
  opacity: 0.75;
  margin: 4px 0;
}

/* ---------- Utilities ---------- */
:focus-visible {
  outline: 3px solid var(--denim);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .book-inner,
  .activities-inner,
  .newsletter-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .book-detail {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .book-detail .store-row { justify-content: center; }
  .people-grid { grid-template-columns: minmax(0, 420px); }
  .activity-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .newsletter-form { justify-self: center; }
  .newsletter-label, .newsletter-disclaimer { text-align: left; }
  .newsletter-controls { justify-content: center; }
  .publisher-spot { width: 56px; height: 56px; }
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; gap: 0; padding-bottom: 8px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 14px; }
  .quote-arrow { display: none; }
}
