/* =========================================================
   Linda Mazzia - The Bunny in the Superhero Cape
   Light, friendly, children's book theme
   Palette pulled from the book cover:
   - coral red (cape)        - golden yellow (title)
   - sky blue (sky)          - soft leaf green
   - cream background        - warm cocoa text
   ========================================================= */

:root {
  --c-cream:        #FFF8EC;
  --c-cream-soft:   #FFFBF4;
  --c-coral:        #E94B3C;
  --c-coral-dark:   #C13A2C;
  --c-gold:         #F5B82E;
  --c-gold-soft:    #FFD86B;
  --c-sky:          #6EC1E4;
  --c-sky-soft:     #B7E3F2;
  --c-leaf:         #8BC34A;
  --c-leaf-soft:    #C5E1A5;
  --c-cocoa:        #3D2B1F;
  --c-cocoa-soft:   #6B4F3F;
  --c-muted:        #8a7866;
  --c-white:        #ffffff;

  --shadow-sm: 0 2px 8px rgba(61, 43, 31, 0.08);
  --shadow-md: 0 8px 28px rgba(61, 43, 31, 0.12);
  --shadow-lg: 0 18px 50px rgba(61, 43, 31, 0.18);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1180px;

  --font-display: 'Fredoka', 'Baloo 2', system-ui, sans-serif;
  --font-body:    'Nunito', 'Quicksand', system-ui, sans-serif;
  --font-script:  'Caveat', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--c-cream);
  color: var(--c-cocoa);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft decorative dotted backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(245, 184, 46, 0.10) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: var(--c-coral-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-coral); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-cocoa);
  margin: 0 0 .6em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: var(--shadow-sm);
}
.btn-primary {
  background: var(--c-coral);
  color: #fff;
}
.btn-primary:hover {
  background: var(--c-coral-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: var(--c-gold);
  color: var(--c-cocoa);
}
.btn-secondary:hover {
  background: var(--c-gold-soft);
  color: var(--c-cocoa);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--c-coral-dark);
  border: 2px solid var(--c-coral);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--c-coral);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 236, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(61, 43, 31, 0.06);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-cocoa);
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-coral) 0%, var(--c-gold) 100%);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .2px;
}
.brand-tag {
  display: block;
  font-family: var(--font-script);
  color: var(--c-coral-dark);
  font-size: 1rem;
  line-height: 1;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--c-cocoa);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: .95rem;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--c-gold-soft);
  color: var(--c-cocoa);
}
.nav-cta {
  background: var(--c-coral);
  color: #fff !important;
  padding: 10px 18px !important;
}
.nav-cta:hover {
  background: var(--c-coral-dark) !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--c-cocoa);
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--c-cream);
    padding: 12px 24px 20px;
    border-bottom: 1px solid rgba(61,43,31,.08);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}

/* ---------- Sections ---------- */
section { padding: 90px 0; position: relative; }
.section-sm { padding: 60px 0; }

.eyebrow {
  font-family: var(--font-script);
  color: var(--c-coral);
  font-size: 1.5rem;
  display: inline-block;
  margin-bottom: 6px;
  line-height: 1;
}
.section-title { margin-bottom: 14px; }
.section-lead {
  color: var(--c-cocoa-soft);
  max-width: 640px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 1.08rem;
}
.text-center { text-align: center; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top left,  rgba(110,193,228,.25), transparent 55%),
    radial-gradient(ellipse at top right, rgba(245,184,46,.22), transparent 55%),
    radial-gradient(ellipse at bottom,    rgba(139,195,74,.18), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--c-coral);
  line-height: 1;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--c-coral); }
.hero h1 .accent-gold { color: var(--c-gold); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--c-cocoa-soft);
  margin-bottom: 28px;
  max-width: 520px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  display: flex; gap: 26px; flex-wrap: wrap;
  margin-top: 32px;
  color: var(--c-cocoa-soft);
  font-size: .95rem;
}
.hero-meta strong { color: var(--c-cocoa); font-family: var(--font-display); font-size: 1.4rem; display: block; }

/* Floating book cover */
.hero-cover {
  position: relative;
  perspective: 1200px;
}
.hero-cover img {
  border-radius: 14px;
  box-shadow:
    0 30px 60px rgba(61, 43, 31, 0.25),
    0 8px 20px rgba(61, 43, 31, 0.15);
  transform: rotate(-3deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-2deg) translateY(-14px); }
}

/* Floating shapes */
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .35;
  z-index: 0;
  pointer-events: none;
}
.shape-1 { width: 90px; height: 90px; background: var(--c-gold); top: 12%; left: 6%; animation: float 7s ease-in-out infinite; }
.shape-2 { width: 60px; height: 60px; background: var(--c-sky); top: 70%; left: 10%; animation: float 5s ease-in-out infinite reverse; }
.shape-3 { width: 120px; height: 120px; background: var(--c-leaf); top: 65%; right: 8%; animation: float 8s ease-in-out infinite; }
.shape-4 { width: 50px; height: 50px; background: var(--c-coral); top: 18%; right: 12%; animation: float 6s ease-in-out infinite reverse; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-meta { justify-content: center; }
}

/* ---------- About teaser ---------- */
.about-teaser {
  background: var(--c-cream-soft);
}
.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  background: var(--c-cream);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  border: 6px solid var(--c-gold-soft);
  pointer-events: none;
  transform: rotate(-1.5deg) translate(10px, 10px);
  z-index: -1;
}
.about-content .signature {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--c-coral);
  margin-top: 8px;
  line-height: 1;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 420px; margin: 0 auto; }
}

/* ---------- Book section ---------- */
.book-section {
  background: linear-gradient(180deg, var(--c-cream) 0%, var(--c-sky-soft) 100%);
}
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.book-cover-stage {
  display: grid;
  place-items: center;
  padding: 20px;
}
.book-cover-stage img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  transform: rotate(-2deg);
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
}
.feature-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  align-items: flex-start;
}
.feature-list li::before {
  content: '✦';
  color: var(--c-gold);
  font-size: 1.3rem;
  line-height: 1.3;
}
@media (max-width: 820px) {
  .book-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .feature-list li { justify-content: center; }
}

/* ---------- Trailer ---------- */
.video-frame {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,.55)),
    url('../assets/book-cover.png') center/cover;
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .3s ease;
}
.video-frame:hover { transform: translateY(-4px); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.play-button {
  width: 96px; height: 96px;
  background: var(--c-coral);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.2rem;
  box-shadow: 0 0 0 12px rgba(233, 75, 60, 0.25), var(--shadow-md);
  transition: transform .25s ease;
}
.video-frame:hover .play-button { transform: scale(1.08); }
.video-caption {
  text-align: center;
  margin-top: 22px;
  color: var(--c-cocoa-soft);
  font-style: italic;
}

/* ---------- Blog teaser / Blog page ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.blog-grid[hidden] { display: none !important; }
.post-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--c-gold-soft), var(--c-coral));
  position: relative;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-align: center;
  padding: 12px;
}
.post-thumb.alt-1 { background: linear-gradient(135deg, var(--c-sky), var(--c-leaf)); }
.post-thumb.alt-2 { background: linear-gradient(135deg, var(--c-gold), var(--c-coral)); }
.post-thumb.alt-3 { background: linear-gradient(135deg, var(--c-leaf-soft), var(--c-sky)); }
.post-thumb.alt-4 { background: linear-gradient(135deg, var(--c-coral), var(--c-gold)); }
.post-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.post-date {
  font-size: .85rem;
  color: var(--c-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.post-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--c-cocoa);
}
.post-excerpt {
  color: var(--c-cocoa-soft);
  font-size: .96rem;
  margin-bottom: 14px;
  flex: 1;
}
.post-link {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-coral);
}

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--c-cream-soft); }
.tcard {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  border-top: 4px solid var(--c-gold);
}
.tcard.t-coral { border-top-color: var(--c-coral); }
.tcard.t-sky   { border-top-color: var(--c-sky); }
.tcard.t-leaf  { border-top-color: var(--c-leaf); }
.tcard p {
  font-style: italic;
  color: var(--c-cocoa-soft);
  font-size: 1.02rem;
}
.tcard .stars { color: var(--c-gold); font-size: 1.1rem; margin-bottom: 10px; letter-spacing: 2px; }
.tcard .who { font-family: var(--font-display); font-weight: 600; color: var(--c-cocoa); margin-top: 12px; }
.tcard .role { font-size: .9rem; color: var(--c-muted); }

/* ---------- Contact / Forms ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}
.contact-info {
  background: linear-gradient(160deg, var(--c-coral) 0%, var(--c-gold) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.contact-info h3 { color: #fff; }
.contact-info p, .contact-info a { color: rgba(255,255,255,.95); }
.contact-info a:hover { color: #fff; text-decoration: underline; }
.contact-info .info-item { margin: 18px 0; display: flex; gap: 14px; align-items: flex-start; }
.contact-info .info-item span:first-child {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: grid; place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-coral);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(233,75,60,0.25);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.socials a:hover { background: #d8463c; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(233,75,60,0.35); }

form.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-cocoa);
  margin-bottom: 6px;
  font-size: .95rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #f0e6d4;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--c-cream-soft);
  color: var(--c-cocoa);
  transition: border-color .2s ease, background .2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-coral);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 140px; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Page Banner (subpages) ---------- */
.page-banner {
  padding: 70px 0 60px;
  background:
    radial-gradient(ellipse at top right, rgba(245,184,46,.30), transparent 55%),
    radial-gradient(ellipse at top left, rgba(110,193,228,.25), transparent 55%),
    var(--c-cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner h1 { margin-bottom: 8px; }
.page-banner .crumbs {
  font-family: var(--font-body);
  color: var(--c-cocoa-soft);
  font-size: .95rem;
}
.page-banner .crumbs a { color: var(--c-coral-dark); font-weight: 700; }

/* ---------- Footer ---------- */
.footer {
  background: #2a1d15;
  color: #f5e9d7;
  padding: 70px 0 30px;
  margin-top: 0;
}
.footer a { color: #f5e9d7; }
.footer a:hover { color: var(--c-gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  color: var(--c-gold);
  font-size: 1.05rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin: 8px 0; }
.footer .brand-name { color: #fff; }
.footer .brand-tag { color: var(--c-gold-soft); }
.footer p { color: #d8c8af; font-size: .95rem; }
.footer .socials a {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.footer .socials a:hover { background: var(--c-coral); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  text-align: center;
  color: #b3a18a;
  font-size: .9rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Generic content layout for sub pages ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
  color: var(--c-cocoa-soft);
}
.prose p { margin-bottom: 1.2em; }
.prose h2, .prose h3 { color: var(--c-cocoa); margin-top: 1.4em; }

/* Two-column reading layout */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 820px) {
  .split-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* tag chips */
.chip {
  display: inline-block;
  background: var(--c-sky-soft);
  color: var(--c-cocoa);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 700;
  margin: 4px 6px 4px 0;
}
.chip.gold { background: var(--c-gold-soft); }
.chip.leaf { background: var(--c-leaf-soft); }
.chip.coral { background: #fbd0cb; }

/* Card grid for testimonials/blog wrappers */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

/* small utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--c-muted); }

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, var(--c-coral), var(--c-gold));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,.95); margin-bottom: 24px; }
.cta-strip .btn-primary { background: #fff; color: var(--c-coral-dark); }
.cta-strip .btn-primary:hover { background: var(--c-cream); color: var(--c-coral-dark); }

    /* === Brand logo (prominent) === */
    .brand { display: flex !important; align-items: center; gap: 14px; text-decoration: none; }
    .brand-mark, .brand-logo { display: none !important; }
    .brand .brand-icon { height: 84px !important; width: auto; flex-shrink: 0; display: block; }
    .brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
    .brand .brand-text .brand-name { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--c-cocoa); display: block; white-space: nowrap; margin: 0; letter-spacing: -0.01em; }
    .brand .brand-text .brand-tag { font-family: var(--font-script); font-size: 1.05rem; color: var(--c-coral); margin: 2px 0 0; display: block; white-space: nowrap; }
    .nav { padding-block: 6px; }
    @media (max-width: 1180px) { .nav .brand .brand-text .brand-tag { display: none; } }
    @media (max-width: 980px)  { .nav .brand .brand-icon { height: 64px !important; } .nav .brand .brand-text .brand-name { font-size: 1.35rem; } }
    @media (max-width: 720px)  { .nav .brand .brand-icon { height: 54px !important; } .nav .brand .brand-text .brand-name { font-size: 1.2rem; } }
    @media (max-width: 520px)  { .nav .brand .brand-text { display: none; } .nav .brand .brand-icon { height: 50px !important; } }
    /* Footer variant - bigger, white text */
    .brand-footer .brand-text .brand-name { color: #fff; font-size: 1.45rem; }
    .brand-footer .brand-text .brand-tag { color: var(--c-coral); display: block !important; }
    .brand-footer .brand-icon { height: 76px !important; }

    /* === Hero book carousel === */
    .hero-cover-wrap { position: relative; }
    .hero-cover { transition: opacity .35s ease, transform .35s ease; }
    .hero-cover.swapping { opacity: 0; transform: scale(0.96); }
    .hero-copy > * { transition: opacity .25s ease; }
    .hero-copy.swapping > * { opacity: 0; }

    .hero-arrow {
      position: absolute; top: 50%; transform: translateY(-50%);
      width: 58px; height: 58px; border-radius: 50%;
      background: var(--c-coral); color: #fff; border: none;
      box-shadow: 0 8px 24px rgba(233,75,60,0.35), 0 2px 6px rgba(0,0,0,0.08);
      cursor: pointer; display: grid; place-items: center;
      transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
      z-index: 5;
    }
    .hero-arrow:hover { background: #d8463c; transform: translateY(-50%) scale(1.08); box-shadow: 0 10px 30px rgba(233,75,60,0.45); }
    .hero-arrow:active { transform: translateY(-50%) scale(0.96); }
    .hero-arrow-next { right: -10px; }
    .hero-arrow-prev { left: -10px; }
    .hero-arrow[hidden] { display: none !important; }
    @media (max-width: 720px) { .hero-arrow { width: 48px; height: 48px; } .hero-arrow-next { right: 4px; }
    .hero-arrow-prev { left: 4px; } }

    .hero-dots { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
    .hero-dots .dot {
      width: 12px; height: 12px; border-radius: 50%;
      background: rgba(61,43,31,0.18); border: none; padding: 0; cursor: pointer;
      transition: background .2s ease, transform .2s ease;
    }
    .hero-dots .dot:hover { background: rgba(61,43,31,0.35); }
    .hero-dots .dot.active { background: var(--c-coral); transform: scale(1.25); }

    /* === Blog modal === */
    .blog-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
    .blog-modal[hidden] { display: none; }
    .blog-modal-backdrop { position: absolute; inset: 0; background: rgba(33,22,15,.62); backdrop-filter: blur(4px); }
    .blog-modal-content {
      position: relative; z-index: 1;
      background: #fff; border-radius: var(--radius-lg);
      max-width: 720px; width: 100%; max-height: 88vh; overflow-y: auto;
      padding: 48px 44px 40px;
      box-shadow: 0 30px 80px rgba(0,0,0,.35);
      animation: blogIn .25s ease;
    }
    @keyframes blogIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
    .blog-modal-close {
      position: absolute; top: 14px; right: 18px;
      width: 40px; height: 40px; border-radius: 50%;
      background: var(--c-cream); color: var(--c-cocoa);
      border: none; font-size: 1.7rem; line-height: 1; cursor: pointer;
      transition: background .15s ease, transform .15s ease;
    }
    .blog-modal-close:hover { background: var(--c-coral); color: #fff; transform: rotate(90deg); }
    .blog-modal-content .modal-date { font-family: var(--font-script); color: var(--c-coral); margin: 14px 0 6px; font-size: 1.05rem; }
    .blog-modal-content h2 { font-size: 2rem; margin-bottom: 22px; line-height: 1.15; }
    .blog-modal-content .modal-body p { margin-bottom: 16px; line-height: 1.7; color: var(--c-cocoa); }
    .blog-modal-content em { color: var(--c-coral); font-style: italic; }
    @media (max-width: 600px) {
      .blog-modal-content { padding: 38px 22px 28px; }
      .blog-modal-content h2 { font-size: 1.5rem; }
    }
    /* chip color helpers for "From: <book>" */
    .post-body .chip { margin-bottom: 8px; }
    body.modal-open { overflow: hidden; }

    /* === Write a Review === */
    .review-section { padding-top: 30px; }
    .review-form {
      max-width: 720px; margin: 0 auto;
      background: #fff; border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      padding: 44px 38px;
    }
    .review-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    @media (max-width: 600px) { .review-form .form-row { grid-template-columns: 1fr; } }
    .review-form .form-group { margin-bottom: 18px; }
    .review-form label { display: block; font-family: var(--font-display); font-weight: 600; color: var(--c-cocoa); margin-bottom: 6px; font-size: .95rem; }
    .review-form input, .review-form textarea, .review-form select {
      width: 100%; padding: 13px 16px;
      border: 2px solid #efe4d3; border-radius: 12px;
      font-family: inherit; font-size: 1rem; background: #fffaf2;
      color: var(--c-cocoa); transition: border .15s ease, background .15s ease;
    }
    .review-form input:focus, .review-form textarea:focus, .review-form select:focus {
      outline: none; border-color: var(--c-coral); background: #fff;
    }
    .review-form textarea { resize: vertical; min-height: 140px; }
    .star-rating { display: flex; gap: 8px; margin: 6px 0 4px; }
    .star-rating button {
      background: none; border: none; cursor: pointer; padding: 0;
      font-size: 2.4rem; line-height: 1; color: #e3d9c8;
      transition: transform .15s ease, color .15s ease;
    }
    .star-rating button:hover { transform: scale(1.15); }
    .star-rating button.filled { color: #F5B82E; }
    .star-rating button.filled.coral { color: var(--c-coral); }
    .rating-help { font-size: .85rem; color: var(--c-cocoa-soft); margin-top: 2px; }
    .rating-help.success { color: var(--c-leaf); }

    /* === Testimonial card chip === */
    .cards-3[hidden] { display: none !important; }
    .tcard .chip { display: inline-block; margin-bottom: 12px; }

    /* === Live book mockup (3D paperback) === */
    .live-book { display: grid; place-items: center; padding: 30px 20px; perspective: 1600px; }
    .live-book-inner {
      position: relative;
      max-width: 360px;
      transform: rotateY(-14deg) rotateZ(-1deg);
      transform-style: preserve-3d;
      transition: transform .35s ease;
    }
    .live-book:hover .live-book-inner { transform: rotateY(-8deg) rotateZ(-1deg) translateY(-4px); }
    .live-book-inner img {
      display: block;
      width: 100%; height: auto;
      border-radius: 3px 8px 8px 3px;
      box-shadow:
        /* page-edge thickness on the right (since left side is the spine) */
        1px 0 0 #d4c3a5, 2px 0 0 #fdf6e3, 3px 0 0 #d4c3a5,
        4px 0 0 #fdf6e3, 5px 0 0 #d4c3a5, 6px 0 0 #fdf6e3,
        7px 0 0 #d4c3a5, 8px 0 0 #fdf6e3, 9px 0 0 #d4c3a5,
        10px 0 0 #fdf6e3, 11px 0 0 #c9b48f,
        /* soft spine line on the left */
        inset 6px 0 8px -4px rgba(0,0,0,0.18),
        /* floating drop shadow */
        24px 38px 45px rgba(45,28,15,0.32);
    }
    @media (max-width: 600px) {
      .live-book-inner { max-width: 240px; }
    }

    .book-card .cover-wrap {
      aspect-ratio: 4/5;
      background:
        radial-gradient(circle at 80% 15%, rgba(255,255,255,0.55), transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(255,255,255,0.4), transparent 40%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 22px, transparent 22px 44px),
        linear-gradient(160deg, var(--c-sky-soft) 0%, var(--c-cream) 70%, #e8d9b8 100%);
      display: grid; place-items: center;
      padding: 32px 20px 56px;
      overflow: hidden;
      text-decoration: none;
      position: relative;
    }
    /* Decorative sparkles in corners */
    .book-card .cover-wrap::before {
      content: '✦';
      position: absolute; top: 18px; left: 22px;
      color: rgba(255,255,255,0.85);
      font-size: 26px;
      font-family: var(--font-display);
      text-shadow: 0 2px 4px rgba(0,0,0,0.08);
    }
    .book-card .cover-wrap::after {
      content: '✦';
      position: absolute; top: 30px; right: 30px;
      color: rgba(255,184,46,0.65);
      font-size: 18px;
    }
    /* The "shelf" wood strip at the bottom */
    .book-card .cover-wrap > .shelf-strip {
      position: absolute; left: 0; right: 0; bottom: 0;
      height: 28px;
      background:
        linear-gradient(180deg, rgba(141,93,40,0.95) 0%, rgba(95,58,22,0.95) 100%),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.04) 0 4px, transparent 4px 12px);
      box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    }
    .book-card .cover-wrap > .shelf-strip::before {
      content: '';
      position: absolute; left: 0; right: 0; top: 0;
      height: 3px;
      background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent);
    }
    .book-card .cover-wrap img {
      max-width: 88%;
      max-height: 90%;
      width: auto; height: auto;
      object-fit: contain;
      border-radius: 5px;
      box-shadow:
        0 28px 32px -8px rgba(45,28,15,0.45),
        5px 0 0 #fdf6e3, 6px 0 0 #c9b48f, 7px 0 0 #fdf6e3, 8px 0 0 #c9b48f;
      transform: rotate(-3deg);
      transition: transform .3s ease;
      position: relative; z-index: 1;
      margin-bottom: 10px;
    }
    .book-card:hover .cover-wrap img { transform: rotate(-1deg) translateY(-4px); }
    .book-card.coming-soon .cover-wrap {
      background:
        radial-gradient(circle at 80% 15%, rgba(255,255,255,0.55), transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(255,255,255,0.4), transparent 40%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 22px, transparent 22px 44px),
        linear-gradient(160deg, var(--c-gold-soft) 0%, var(--c-cream) 70%, #f0d9a5 100%);
    }

    /* === Meet the Characters slideshow === */
    .characters-section { position: relative; padding: 80px 0 90px; overflow: hidden; }
    .character-stage {
      position: relative;
      max-width: 1100px; margin: 40px auto 0;
      border-radius: var(--radius-lg);
      background: linear-gradient(135deg, #fff7ea, #fbe9d4);
      box-shadow: 0 24px 60px rgba(45,28,15,0.18);
      overflow: hidden;
      min-height: 460px;
    }
    .char-slide {
      position: absolute; inset: 0;
      display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
      padding: 40px 60px;
      opacity: 0; visibility: hidden;
      transition: opacity .6s ease, visibility 0s linear .6s;
      align-items: center;
    }
    .char-slide.active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
    .char-slide .char-image-wrap {
      display: grid; place-items: center;
      position: relative;
    }
    .char-slide .char-image-wrap::before {
      content: '';
      position: absolute;
      width: 360px; height: 360px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, transparent 70%);
      z-index: 0;
    }
    .char-slide img {
      position: relative; z-index: 1;
      max-height: 380px; max-width: 100%; width: auto; height: auto;
      object-fit: contain;
      filter: drop-shadow(0 16px 18px rgba(45,28,15,0.22));
      animation: charBob 4s ease-in-out infinite;
    }
    @keyframes charBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
    .char-slide .char-info { color: var(--c-cocoa); }
    .char-slide .char-name {
      font-family: var(--font-display);
      font-size: 3.4rem;
      font-weight: 700; line-height: 1;
      margin: 6px 0 14px;
      letter-spacing: -0.02em;
    }
    .char-slide .char-quote {
      font-family: var(--font-script);
      font-size: 1.45rem;
      color: var(--c-coral);
      line-height: 1.25;
      margin-bottom: 18px;
    }
    .char-slide .char-bio { font-size: 1.02rem; line-height: 1.65; color: var(--c-cocoa-soft); margin-bottom: 18px; }
    .char-slide .char-chip { font-size: .75rem; margin-bottom: 10px; }
    /* Per-character theme stages */
    .character-stage.theme-bunny  { background: linear-gradient(135deg, #fff2db, #ffd4cd); }
    .character-stage.theme-joshua { background: linear-gradient(135deg, #e7f4ff, #fdf5e1); }
    .character-stage.theme-spike  { background: linear-gradient(135deg, #fff1c9, #ffd9a8); }
    /* Slideshow controls */
    .char-arrow {
      position: absolute; top: 50%; transform: translateY(-50%);
      width: 50px; height: 50px;
      border-radius: 50%;
      background: var(--c-coral); color: #fff;
      border: none; cursor: pointer;
      display: grid; place-items: center;
      box-shadow: 0 6px 18px rgba(233,75,60,0.45);
      z-index: 5;
      transition: transform .15s ease, background .15s ease;
    }
    .char-arrow:hover { transform: translateY(-50%) scale(1.08); background: #d8463c; }
    .char-arrow.prev { left: -22px; }
    .char-arrow.next { right: -22px; }
    .char-arrow svg { display: block; }
    .char-dots {
      display: flex; gap: 10px; justify-content: center;
      margin-top: 28px;
    }
    .char-dots .dot {
      width: 12px; height: 12px; border-radius: 50%;
      background: rgba(61,43,31,0.22);
      cursor: pointer;
      transition: background .2s ease, transform .2s ease;
    }
    .char-dots .dot.active { background: var(--c-coral); transform: scale(1.3); }
    /* Mobile */
    @media (max-width: 800px) {
      .char-slide { grid-template-columns: 1fr; padding: 30px 24px 36px; text-align: center; }
      .char-slide img { max-height: 240px; }
      .char-slide .char-image-wrap::before { width: 240px; height: 240px; }
      .char-slide .char-name { font-size: 2.4rem; }
      .char-slide .char-quote { font-size: 1.15rem; }
      .char-arrow.prev { left: 8px; }
      .char-arrow.next { right: 8px; }
      .character-stage { min-height: 600px; }
    }



    /* === Illustrated Linda avatar — positioned beside the heading === */
    .about-content { position: relative; padding-right: 160px; }
    .about-content img.author-avatar {
      position: absolute !important;
      top: 0; right: 0;
      width: 140px !important; height: auto !important;
      max-width: 140px !important;
      border-radius: 0 !important;
      box-shadow: none !important;
      filter: drop-shadow(0 10px 14px rgba(0,0,0,0.22));
      animation: charBob 5s ease-in-out infinite;
      pointer-events: none;
      z-index: 5;
    }
    @media (max-width: 1100px) {
      .about-content { padding-right: 130px; }
      .about-content img.author-avatar { width: 115px !important; max-width: 115px !important; }
    }
    @media (max-width: 820px) {
      .about-content { padding-right: 0; }
      .about-content img.author-avatar {
        position: static !important;
        display: block !important;
        width: 110px !important; max-width: 110px !important;
        margin: 0 auto 14px !important;
      }
    }

    /* Shelf mockups override (wider 3D book renders) */
    .book-card .cover-wrap img { transform: none !important; max-width: 94% !important; max-height: 96% !important; box-shadow: none !important; border-radius: 0 !important; margin-bottom: 0 !important; filter: drop-shadow(0 12px 18px rgba(45,28,15,0.32)); }
    .book-card .cover-wrap > .shelf-strip { display: none !important; }
    .book-card .cover-wrap { padding: 25px 18px !important; aspect-ratio: 5/4 !important; }

html{scroll-behavior:smooth;}
    /* Linda's Book Shelf */
    .shelf-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:36px; margin-top:20px; }
    .book-card { background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); overflow:hidden; display:flex; flex-direction:column; transition:transform .25s ease, box-shadow .25s ease; }
    .book-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-md); }
    
    
    .book-card .card-body { padding:26px 28px 30px; flex:1; display:flex; flex-direction:column; }
    .book-card .card-body .chips { margin-bottom:10px; }
    .book-card h3 { margin-bottom:8px; font-size:1.4rem; }
    .book-card .blurb { color:var(--c-cocoa-soft); flex:1; margin-bottom:18px; }
    .book-card .actions { display:flex; gap:10px; flex-wrap:wrap; }
    
    .book-card.coming-soon .placeholder-cover { width:180px; aspect-ratio:2/3; border-radius:8px; background:repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 12px, rgba(255,255,255,.25) 12px 24px), var(--c-coral); box-shadow:var(--shadow-md); transform:rotate(-3deg); display:grid; place-items:center; color:#fff; font-family:var(--font-display); font-size:1.2rem; text-align:center; padding:14px; line-height:1.2; }
    .book-card.coming-soon h3 { color:var(--c-cocoa-soft); }
    .shelf-section { padding-top:30px; }
/* ---------- Blog archive, single post, About ---------- */
/* .blog-grid / .post-card / .post-thumb all come from site.css - these only
   cover what WordPress adds on top. */
.post-thumb {                      /* it is an <a> here, a <div> on the home page */
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { color: var(--c-coral); }

/* Reading column. The 1180px container is far too wide for 17px body text. */
.lm-single { max-width: 760px; margin: 0 auto; }
.lm-single .page-title { margin: 10px 0 6px; }
.lm-single .post-date { margin-bottom: 28px; }
.lm-prose p { margin: 0 0 20px; line-height: 1.75; }
.lm-prose p:first-of-type { font-size: 1.08rem; color: var(--c-cocoa); }
.lm-back { margin-top: 36px; text-align: center; }

/* About page: photo sits beside the text on desktop, above it on mobile. */
.page-content .lm-author-photo,
.page-content img.lm-author-photo {
  float: left;
  width: 320px;
  max-width: 42%;
  margin: 4px 32px 20px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.page-content::after { content: ''; display: table; clear: both; }
.page-content .signature {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--c-coral);
}
.page-content { max-width: 900px; }

@media (max-width: 760px) {
  .page-content .lm-author-photo,
  .page-content img.lm-author-photo {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 22px;
    display: block;
  }
}

/* WordPress pagination, in her button idiom. */
.woocommerce-pagination, .navigation.pagination { margin-top: 36px; text-align: center; }
.navigation.pagination .page-numbers {
  display: inline-block;
  min-width: 42px;
  padding: 9px 14px;
  margin: 0 4px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--c-cocoa);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover { background: var(--c-coral); color: #fff; }

/* height:auto is load-bearing. wp_get_attachment_image() emits width and height
   attributes; setting only a CSS width leaves the height attribute in force, so
   the photo renders 320x500 instead of 320x400 - stretched. Same trap that hit
   the product detail cover. */
.page-content .lm-author-photo,
.page-content img.lm-author-photo,
.lm-prose img,
.page-content img { height: auto; }

/* Contact form notices + honeypot */
.lm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lm-form-notice {
  margin: 0 0 22px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--c-leaf);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--c-cocoa);
  font-family: var(--font-body);
}
.lm-form-notice.is-err { border-left-color: var(--c-coral); }
.lm-contact-email {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--c-coral);
  margin-top: 18px;
  text-align: center;
}
.lm-contact-email a { color: inherit; text-decoration: none; }
.lm-contact-wrap { max-width: 760px; margin: 0 auto; }

/* Star rating built from radio inputs, so it works without JavaScript.
   The radios are laid out 5..1 in source order and the row is reversed, which
   is what makes "highlight this star and everything before it" possible with
   a plain sibling selector. */
.lm-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.lm-stars input { position: absolute; opacity: 0; width: 0; height: 0; }
.lm-stars label {
  font-size: 2rem;
  line-height: 1;
  color: #e2d6bf;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}
.lm-stars label:hover,
.lm-stars label:hover ~ label,
.lm-stars input:checked ~ label { color: var(--c-gold); }
.lm-stars label:hover { transform: scale(1.12); }
.lm-stars input:focus-visible + label { outline: 2px solid var(--c-coral); outline-offset: 2px; }
