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

body {
  font-family: 'Lato', sans-serif;
  color: #000;
  background: #fff;
  line-height: 1.6;
}

/* ── Navigation ── */
header {
  background: #fff;
  border-bottom: 2px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-brand {
  text-align: center;
  padding: 1rem 1.5rem 0.4rem;
  border-bottom: 1px solid #f0f0f0;
}
.site-brand a {
  font-family: 'Mali', cursive;
  font-size: 2.4rem;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.site-brand a:hover { color: #e07b39; }

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  align-items: center;
}
.nav-links > li > a {
  text-decoration: none;
  color: #000;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links > li > a:hover { color: #e07b39; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  transition: 0.3s;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown > a::after { content: ' ▾'; font-size: 0.7rem; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.5rem;
  min-width: 230px;
  z-index: 200;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  z-index: -1;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.83rem;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: #fef6f0; color: #e07b39; }

/* ── Cover ticker ── */
.cover-ticker {
  overflow: hidden;
  background: #fef6f0;
  border-bottom: 2px solid #e8e8e8;
  padding: 0.75rem 0;
}
.cover-ticker-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: ticker-scroll 45s linear infinite;
}
.cover-ticker:hover .cover-ticker-track { animation-play-state: paused; }
.cover-ticker img {
  height: 90px;
  width: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cover-ticker a:hover img {
  transform: scale(1.07);
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.btn {
  display: inline-block;
  background: #e07b39;
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { background: #c96a2a; transform: translateY(-1px); }

/* ── Main content ── */
main { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }
section { margin-bottom: 3.5rem; }

section h2 {
  font-family: 'Lato', sans-serif;
  font-size: 1.6rem;
  color: #000;
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid #e07b39;
  display: inline-block;
}

/* ── Book grid ── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.book-card { text-align: center; }
.book-cover-wrap {
  width: 100%;
  border-radius: 5px;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.15);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.book-cover-wrap:hover { transform: translateY(-3px); box-shadow: 3px 7px 16px rgba(0,0,0,0.2); }
.book-cover-wrap a { display: block; }
.book-cover-wrap img { width: 100%; height: auto; display: block; }
.book-card h3 { font-size: 0.92rem; font-weight: 700; color: #000; margin-bottom: 0.35rem; }
.book-card .age-label { font-size: 0.7rem; color: #888; font-weight: 400; }
.book-card p { font-size: 0.8rem; color: #000; margin-bottom: 0.5rem; line-height: 1.4; }
.book-card a.more { font-size: 0.82rem; color: #e07b39; font-weight: 700; text-decoration: none; }
.book-card a.more:hover { text-decoration: underline; }

/* cover placeholder colors */
.cover-red    { background: #c9503a; }
.cover-purple { background: #7c5cbf; }
.cover-green  { background: #4a9e6b; }
.cover-orange { background: #d4732e; }
.cover-pink   { background: #c46b8a; }
.cover-teal   { background: #3d9ea6; }
.cover-blue   { background: #3a72b8; }
.cover-yellow { background: #c8973a; }
.cover-sage   { background: #6b9e6a; }
.cover-sky    { background: #4a87c8; }
.cover-earth  { background: #8a7a3a; }

/* ── Book detail cover (individual book pages) ── */
.book-detail-cover img { width: 100%; height: auto; border-radius: 6px; display: block; }

/* ── About author photo ── */
.about-author-photo {
  float: right;
  margin: 0 0 1.5rem 2rem;
  width: 200px;
  border-radius: 8px;
  box-shadow: 4px 4px 14px rgba(0,0,0,0.15);
}
@media (max-width: 600px) {
  .about-author-photo { float: none; display: block; margin: 0 auto 1.5rem; }
}

/* ── About page ── */
.about-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.about-section h1 {
  font-family: 'Lato', sans-serif;
  font-size: 2rem;
  color: #000;
  margin-bottom: 1.5rem;
}
.about-section p {
  color: #000;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.about-section a { color: #e07b39; }

/* ── Footer ── */
.footer-brand {
  display: block;
  text-align: center;
  margin: 0 auto 1.25rem;
  font-family: 'Mali', cursive;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  opacity: 0.7;
  text-decoration: none;
}
footer {
  background: #fff;
  color: #000;
  border-top: 1px solid #e8e8e8;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
footer p { font-size: 0.82rem; margin-bottom: 1rem; }
.social-links { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
.social-links a {
  color: #555;
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1;
  transition: color 0.2s;
}
.social-links a:hover { color: #e07b39; }

/* ── Book extras (reviews, endorsements, metadata — individual book pages) ── */
.book-extras { max-width: 820px; margin: 0 auto; padding: 0 1.5rem 3.5rem; }
.book-extras h2 { font-family: 'Lato', sans-serif; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #000; margin: 2rem 0 0.9rem; padding-bottom: 0.3rem; border-bottom: 2px solid #000; display: inline-block; }
.book-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; margin-bottom: 0.25rem; }
.meta-item dt { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #000; }
.meta-item dd { font-size: 0.88rem; color: #000; margin-left: 0; }
.quote-card { padding: 0.85rem 0; margin-bottom: 0.85rem; }
.quote-card blockquote { font-size: 0.9rem; color: #000; line-height: 1.65; margin-bottom: 0.4rem; }
.quote-card cite { font-size: 0.77rem; color: #000; font-style: normal; font-weight: 700; }
.review-card { border-bottom: 1px solid #e0e0e0; padding: 0.85rem 0; margin-bottom: 0.85rem; }
.review-card .stars { color: #e07b39; font-size: 0.85rem; margin-bottom: 0.25rem; }
.review-card blockquote { font-size: 0.9rem; color: #000; line-height: 1.65; margin-bottom: 0.4rem; }
.review-card cite { font-size: 0.75rem; color: #000; font-style: normal; }
.note-block { padding: 0.85rem 0; font-size: 0.88rem; color: #000; line-height: 1.65; }
.kid-quote { font-size: 0.9rem; color: #000; line-height: 1.5; margin-bottom: 0.4rem; }
.kid-name { font-weight: 700; }

/* ── Buy Direct button (IngramSpark) ── */
.buy-btn-direct { display: flex; width: max-content; align-items: center; height: 40px; padding: 0 1.25rem; background: #e07b39; color: #fff; font-family: 'Lato', sans-serif; font-weight: 700; font-size: 0.9rem; border-radius: 4px; text-decoration: none; margin-bottom: 0.75rem; transition: opacity 0.15s, transform 0.15s; white-space: nowrap; }
.buy-btn-direct:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── Responsive ── */
@media (max-width: 700px) {
  .site-brand a { font-size: 1.8rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #eee; padding: 1rem; gap: 0.5rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  nav { justify-content: flex-end; flex-wrap: wrap; position: relative; }
  .dropdown-menu { position: static; box-shadow: none; border: none; border-left: 3px solid #e07b39; margin-left: 1rem; }
  .book-grid { grid-template-columns: 1fr; }
}
