@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');

:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1e293b;
  background: #f6f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: #f6f7fb;
  background-image: linear-gradient(180deg, rgba(255, 240, 225, 0.75) 0%, rgba(255, 240, 225, 0.75) 100%), url("../images/Background-child.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center top;
  background-size: cover, cover;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  padding: 0 24px 0;
  background: #f4f0e8;
  color: #1f2937;
  z-index: 100;
}

/* Center header title/subtitle for pages like authors.html */
.site-header .header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  text-align: center;
}

.site-header .header-content h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.site-header .header-content p {
  margin: 0;
  color: #475569;
}

.header-top {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-bottom: 0px;
}

.social-links {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translate(5.5cm, 0.5cm);
}

.header-video-left {
  position: absolute;
  top: -10px;
  left: -3.35cm;
  width: 360px;
  height: 156px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  pointer-events: none;
}

.header-video-bookshelf2 {
  position: absolute;
  top: -10px;
  left: -3.35cm;
  width: 560px;
  height: 156px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  pointer-events: none;
}

.header-video-bookshelf3 {
  position: absolute;
  top: -10px;
  left: -3.35cm;
  width: 760px;
  height: 156px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  pointer-events: none;
}

.header-video-bookshelf4 {
  position: absolute;
  top: -10px;
  left: -3.35cm;
  width: 960px;
  height: 156px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  pointer-events: none;
}

.header-video {
  position: absolute;
  top: -10px;
  right: -3.35cm;
  width: 360px;
  height: 156px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  pointer-events: none;
}

.header-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  border-radius: 12px;
}

.site-brand {
  display: flex;
  justify-content: center;
  padding: 2px 0 1px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.brand {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1f2937;
  font-family: 'Caveat', cursive;
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto 1px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 3px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-1px);
  color: #0b1220;
}

.social-icon {
  width: 22px;
  height: auto;
  display: block;
}

.site-nav a {
  color: #1f2937;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #0b1220;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: center;
  padding: 60px 0;
}

.hero-copy {
  padding-right: 12px;
}

.eyebrow {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2563eb;
}

.hero h1 {
  margin: 16px 0 24px;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #0f172a;
  font-family: 'Caveat', cursive;
  font-weight: 700;
}

.hero-text {
  max-width: 620px;
  margin: 0 0 28px;
  color: #475569;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  color: #ffffff;
  background: #2563eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18);
}

.button-outline {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.hero-image {
  display: flex;
  justify-content: center;
  margin-top: 3cm;
}

.cover-card {
  width: 280px;
  padding: 26px;
  border-radius: 32px;
  background: transparent;
  box-shadow: none;
  position: relative;
}

.cover-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 38%);
}

.cover-front {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
  z-index: 1;
}

.book-cover {
  height: auto;
  min-height: 320px;
  border-radius: 22px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.book-cover-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 100%;
}

.book-cover-1 {
  background: linear-gradient(180deg, #f97316 0%, #fb7185 100%);
}

.book-cover-2 {
  background: linear-gradient(180deg, #0ea5e9 0%, #6366f1 100%);
}

.book-cover-3 {
  background: linear-gradient(180deg, #22c55e 0%, #14b8a6 100%);
}

.tag {
  position: relative;
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #2563eb;
  color: white;
  font-size: 0.85rem;
  z-index: 1;
}

.cover-card a {
  display: block;
}

.cover-front {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 1;
}

.cover-title-image {
  display: block;
  width: 84%;
  max-width: 180px;
  margin: 16px auto 0;
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  box-shadow: none;
  mix-blend-mode: multiply;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: transparent;
  backdrop-filter: blur(6px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading span {
  display: block;
  margin-bottom: 12px;
  color: #2563eb;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 2.7vw, 3rem);
  letter-spacing: -0.04em;
  color: #0f172a;
  font-family: 'Caveat', cursive;
  font-weight: 700;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.author-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.author-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: #0f172a;
  font-family: 'Caveat', cursive;
  font-weight: 700;
}

.author-card p {
  margin: 0 0 18px;
  color: #475569;
  line-height: 1.7;
}

.author-card a {
  color: #2563eb;
  font-weight: 700;
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.book-cover {
  min-height: 320px;
  border-radius: 22px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.book-cover a {
  display: block;
  width: 100%;
  height: 100%;
}

.book-cover-1 {
  background: linear-gradient(180deg, #f97316 0%, #fb7185 100%);
}

.book-cover-2 {
  background: linear-gradient(180deg, #0ea5e9 0%, #6366f1 100%);
}

.book-cover-3 {
  background: linear-gradient(180deg, #22c55e 0%, #14b8a6 100%);
}

.book-details h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: #0f172a;
  font-family: 'Caveat', cursive;
  font-weight: 700;
}

.book-details p {
  margin: 0;
  color: #475569;
}

.purchase-links {
  margin-top: 16px;
}

.buy-label {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
}

.retailer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.retailer-list a {
  color: #2563eb;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.retailer-list a:hover {
  color: #0b1220;
}

.about-grid,
.contact-grid {
  display: grid;
  gap: 24px;
}

.about-grid {
  max-width: 960px;
  margin: 0 auto;
  grid-template-columns: 1.3fr 0.9fr;
}

.author-quote {
  padding: 32px;
  border-radius: 24px;
  background: rgba(37, 99, 235, 0.06);
  color: #0f172a;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.author-quote p {
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.author-quote span {
  font-weight: 700;
  color: #1e293b;
}

.contact-grid {
  max-width: 960px;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
}

.contact-card {
  padding: 32px;
  border-radius: 28px;
  background: transparent;
  border: 1px solid rgba(212, 201, 184, 0.3);
  box-shadow: none;
}

.contact-card h3 {
  margin-top: 0;
  color: #0f172a;
  font-family: 'Caveat', cursive;
  font-weight: 700;
}

.contact-card p {
  margin: 14px 0 0;
  color: #475569;
}

.contact-card a {
  color: #2563eb;
}

.contact-form-card form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.contact-form-card label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: #475569;
}

.contact-form-card input {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid #cbd5e1;
  padding: 0 16px;
  font-size: 1rem;
}

.contact-form-card button {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  color: white;
  background: #2563eb;
  font-weight: 700;
}

.site-footer {
  padding: 32px 0 48px;
  text-align: center;
  color: #64748b;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding-top: 24px;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-bar nav {
    width: 100%;
    justify-content: space-between;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding: 0 0 24px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
