:root {
  --green: #0b8a5a;
  --green-dark: #075c3d;
  --green-deep: #063f2b;
  --cream: #f7f4ec;
  --paper: #fffdf8;
  --ink: #202521;
  --muted: #65706a;
  --line: #dfe5df;
  --shadow: 0 12px 35px rgba(6, 63, 43, 0.10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

.container {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

/* Header & Logo */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(120%) blur(8px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand img,
.logo-img {
  width: 180px !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  mix-blend-mode: multiply !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #e8f4ee;
  color: var(--green-dark);
}

.nav-toggle { display: none; }

/* Hero Section */
.hero {
  padding: 84px 0 72px;
  background:
    radial-gradient(circle at 80% 20%, rgba(11, 138, 90, 0.13), transparent 30%),
    linear-gradient(180deg, #fffdf8 0%, #f7f4ec 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  color: var(--green-dark);
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1, h2, h3 { line-height: 1.12; margin: 0 0 16px; }
h1 { font-size: clamp(2.45rem, 6vw, 4.6rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.25rem; }

.hero p { font-size: 1.15rem; color: #4e5852; max-width: 650px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Shared Button Styles */
.btn,
.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  border: 2px solid #3c342a !important;
  box-shadow: 0 4px 0 #3c342a !important;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;
  cursor: pointer;
}

.btn:hover,
.btn-buy:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 7px 0 #3c342a !important;
}

.btn:active,
.btn-buy:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 0 #3c342a !important;
}

.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: transparent; color: var(--green-dark); }
.btn-buy { background-color: #438f9c; color: #ffffff; }
.btn-buy:hover { background-color: #387b87; }

/* Hero Art Box */
.hero-art {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  width: 100%;
}

.hero-art-img {
  max-width: 180px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  mix-blend-mode: normal !important;
}

/* Sections & Cards */
.section { padding: 72px 0; }
.section-alt { background: #fffdf8; }
.section-intro { max-width: 720px; margin-bottom: 32px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 7px 24px rgba(6, 63, 43, 0.06);
}

.card p { color: var(--muted); margin-bottom: 0; }
.icon { font-size: 1.7rem; margin-bottom: 12px; }

.cta { background: var(--green-deep); color: white; border-radius: 28px; padding: 46px; }
.cta p { color: #d9e9e2; max-width: 700px; }
.cta .btn-primary { background: white; color: var(--green-deep); }

.page-hero { padding: 64px 0 48px; background: #fffdf8; border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.1rem; }

/* Book Grid (Desktop: 3 Columns) */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.book-card {
  background: #ffffff;
  border: 2px solid #3c342a;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  position: relative;
}

.book-cover {
  width: 100%;
  height: 220px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
}

.book-cover img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

/* Badges */
.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  text-transform: capitalize;
  border: 2px solid #3c342a;
}

.badge-orange { background-color: #d86d3b; }
.badge-green  { background-color: #55a868; }
.badge-blue   { background-color: #45788c; }

.book-card h3 {
  font-size: 1.35rem;
  color: #3c342a;
  margin-bottom: 6px;
  line-height: 1.25;
}

.book-card .age {
  color: #8c8275;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.book-card p {
  color: #5e5549;
  font-size: 0.94rem;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 20px;
}

/* Author Card Base */
.author-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding: 36px;
  background: #ffffff;
}

.author-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #3c342a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.author-bio { flex: 1; }

/* Footer & Forms */
.footer { background: #073c2a; color: #dce9e3; padding: 38px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer a { text-decoration: none; }
.footer small { color: #a9c0b5; }

/* Responsive Mobile Layouts (Under 768px) */
@media (max-width: 992px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 768px) {
  /* Force single column for all grids on mobile */
  .book-grid,
  .cards {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .author-card {
    flex-direction: column !important;
    text-align: center !important;
  }

  .nav { min-height: 70px; }
  .nav-toggle {
    display: block;
    border: 1px solid var(--line);
    background: white;
    border-radius: 10px;
    padding: 9px 12px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 16px; }

  .hero { padding: 58px 0 54px; }
  .hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .hero-art { max-width: 460px; margin: auto; }
  .section { padding: 54px 0; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .brand img,
  .logo-img {
    width: 150px !important;
  }
  .container { width: min(100% - 24px, 1120px); }
  h1 { font-size: 2.45rem; }
  .actions { flex-direction: column; }
  .btn { width: 100%; }
  .cta { padding: 32px 24px; }
}