/* ============================================================
   LORI PAPPIN - Design System
   Palette derived from "Welcome to Monster Town" book cover.
   Fonts: Lora (headings) + Inter (body, UI)
   ============================================================ */

/* -- Google Fonts ------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* -- Custom Properties -------------------------------------- */
:root {
  /* Core palette (derived from book cover artwork) */
  --color-cream:       #FAF7F0;      /* background, warmest ivory */
  --color-ivory:       #F5F0E8;      /* subtle section alt */
  --color-warm-white:  #FEFDFB;      /* pure card background */
  --color-navy:        #1C2B4A;      /* primary text, headings */
  --color-navy-light:  #2D3E6B;      /* secondary heading shade */
  --color-sky:         #4A7FB5;      /* CTA, links, accents */
  --color-sky-light:   #6B9FD4;      /* hover sky */
  --color-sky-pale:    #EBF3FA;      /* pale blue tint for sections */
  --color-coral:       #D4756A;      /* warm accent, secondary CTA */
  --color-coral-light: #EAA095;      /* hover coral */
  --color-lavender:    #8B7BAA;      /* illustrative accent */
  --color-green:       #5A8A6A;      /* accent from cover greens */
  --color-text:        #1C2B4A;      /* body text */
  --color-text-muted:  #5C6B7A;      /* secondary text */
  --color-text-light:  #8A9BAA;      /* captions, meta */
  --color-border:      #E4DDD1;      /* soft warm border */
  --color-border-light:#EDE8E0;      /* lighter border */
  --color-shadow:      rgba(28, 43, 74, 0.08);
  --color-shadow-md:   rgba(28, 43, 74, 0.14);

  /* Typography */
  --font-heading: 'Lora', 'Georgia', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */

  /* Line heights */
  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.6;
  --leading-loose:  1.75;

  /* Spacing scale (8px grid) */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* Layout */
  --max-width:        1200px;
  --max-width-text:   680px;
  --max-width-narrow: 540px;
  --gutter:           clamp(1rem, 4vw, 2.5rem);
  --section-padding:  clamp(3.5rem, 7vw, 6.5rem) var(--gutter);

  /* Borders */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px var(--color-shadow), 0 1px 2px var(--color-shadow);
  --shadow-md:  0 4px 16px var(--color-shadow-md);
  --shadow-lg:  0 8px 32px rgba(28, 43, 74, 0.12);
  --shadow-xl:  0 16px 48px rgba(28, 43, 74, 0.16);

  /* Transitions */
  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   400ms;
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:     cubic-bezier(0.4, 0, 0.2, 1);

  /* Header height */
  --header-height: 72px;
}

/* -- Reset & Base ------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  background-color: var(--color-navy);
  overflow-y: scroll;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  background-color: var(--color-cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-sky);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover { color: var(--color-sky-light); }

a:focus-visible {
  outline: 2px solid var(--color-sky);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* -- Typography --------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-navy);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl)); font-weight: 700; }
h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-5xl)); font-weight: 600; }
h3 { font-size: clamp(var(--text-xl), 3vw, var(--text-3xl)); }
h4 { font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl)); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  color: var(--color-text);
  line-height: var(--leading-loose);
  max-width: var(--max-width-text);
}

p + p { margin-top: var(--space-4); }

/* -- Layout Utilities --------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section--alt {
  background-color: var(--color-ivory);
}

.section--blue-pale {
  background-color: var(--color-sky-pale);
}

.section--white {
  background-color: var(--color-warm-white);
}

.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-gap-4 {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* -- Buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.2;
  min-height: 44px; /* Touch target accessibility requirement */
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: 2px solid var(--color-sky);
  outline-offset: 3px;
}

.btn:active { transform: translateY(1px); }

/* Primary: Sky blue */
.btn-primary {
  background-color: var(--color-sky);
  color: #fff;
  border-color: var(--color-sky);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background-color: var(--color-navy-light);
    border-color: var(--color-navy-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}

/* Secondary: Outlined */
.btn-secondary {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background-color: var(--color-navy);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}

/* Ghost: White outline (for dark backgrounds) */
.btn-ghost {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
  }
}

/* Coral accent */
.btn-coral {
  background-color: var(--color-coral);
  color: #fff;
  border-color: var(--color-coral);
}

@media (hover: hover) and (pointer: fine) {
  .btn-coral:hover {
    background-color: #B85E54;
    border-color: #B85E54;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}

.btn-sm {
  font-size: var(--text-sm);
  padding: 0.5rem 1.25rem;
  min-height: 40px;
}

.btn-lg {
  font-size: var(--text-lg);
  padding: 0.95rem 2.25rem;
  min-height: 50px;
}

/* -- Header & Navigation ------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(254, 253, 251, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: 0 1px 8px rgba(28, 43, 74, 0.05);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow var(--duration-base) var(--ease-out);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Wordmark */
.site-wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
}

.wordmark-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  transition: color var(--duration-fast);
}

.wordmark-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-wordmark:hover .wordmark-name { color: var(--color-sky); }

/* Main nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.site-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition:
    color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-navy);
  background-color: var(--color-sky-pale);
}

.site-nav a.active {
  color: var(--color-sky);
  font-weight: 600;
}

.header-cta {
  flex-shrink: 0;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  transition: background-color var(--duration-fast);
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover { background-color: var(--color-sky-pale); }
.menu-toggle:focus-visible {
  outline: 2px solid var(--color-sky);
  outline-offset: 2px;
}

.menu-toggle svg { display: block; }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--color-warm-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  z-index: 99;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform var(--duration-slow) var(--ease-out),
    opacity var(--duration-slow) var(--ease-out),
    visibility var(--duration-slow);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-inner {
  padding: var(--space-6) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.mobile-nav-link {
  display: block;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-navy);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background-color var(--duration-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background-color: var(--color-sky-pale);
  color: var(--color-sky);
}

.mobile-nav-link.active {
  background-color: var(--color-sky-pale);
  color: var(--color-sky);
  font-weight: 600;
}

.mobile-nav-cta {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.mobile-nav-cta .btn {
  width: 100%;
}

/* -- Hero Section with Rich Banner Image ------------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(85vh - var(--header-height));
  display: flex;
  align-items: center;
  background-color: var(--color-navy);
}

/* The genuine, high-quality storybook banner background */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-banner.jpg');
  background-size: cover;
  background-position: 80% center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Carefully tuned dark directional overlay for contrast & readability */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(18, 28, 48, 0.94) 0%,
    rgba(22, 34, 58, 0.88) 46%,
    rgba(25, 40, 68, 0.62) 80%,
    rgba(28, 43, 74, 0.45) 100%
  );
  z-index: 1;
}

/* Subtle watercolor vignette overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(74, 127, 181, 0.16) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(3.5rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-author-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.hero-author-tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--color-sky-light);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-4xl), 5.5vw, 4.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-title span {
  color: var(--color-sky-light);
}

.hero-desc {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: rgba(255, 255, 255, 0.88);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-8);
  max-width: 540px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-book {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-book-cover {
  width: clamp(240px, 26vw, 360px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 50px rgba(74, 127, 181, 0.3);
  transition: transform var(--duration-slow) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .hero-book-cover:hover {
    transform: translateY(-6px) scale(1.02);
  }
}

/* -- Section Headers ---------------------------------------- */
.section-header {
  margin-bottom: var(--space-10);
}

.section-header.text-center {
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

.section-title {
  margin-bottom: var(--space-4);
  color: var(--color-navy);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

/* -- Book Introduction (Homepage) --------------------------- */
.book-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.book-intro-cover-wrap {
  flex-shrink: 0;
}

.book-intro-cover {
  width: clamp(220px, 24vw, 320px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .book-intro-cover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
  }
}

.book-intro-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.book-intro-title {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  color: var(--color-navy);
  line-height: var(--leading-snug);
  margin-bottom: 0;
}

.book-intro-author {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: -0.5rem;
}

.book-tagline {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-sky);
  line-height: var(--leading-snug);
  border-left: 3px solid var(--color-sky-light);
  padding-left: var(--space-4);
  margin: var(--space-2) 0;
}

.book-intro-text {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  max-width: 580px;
}

/* -- Edition Cards (Homepage) ------------------------------- */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.edition-card {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  transition:
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .edition-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--color-sky);
  }
}

.edition-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-sky-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-inline: auto;
}

.edition-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-sky);
  stroke: var(--color-sky);
}

.edition-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0;
  text-align: center;
  width: 100%;
}

.edition-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  text-align: center;
  margin-inline: auto;
  flex: 1;
}

.edition-card .btn {
  align-self: center;
}

/* -- Author Intro (Homepage) -------------------------------- */
.author-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.author-intro-image-wrap {
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}

.author-intro-image {
  width: clamp(240px, 22vw, 320px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition:
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
  will-change: transform, box-shadow;
}

.author-intro-image-wrap::before {
  content: '';
  position: absolute;
  inset: -10px -10px 10px 10px;
  border: 2px solid var(--color-sky-light);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.35;
  transition:
    transform var(--duration-slow) var(--ease-out),
    opacity var(--duration-slow) var(--ease-out),
    border-color var(--duration-slow) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .author-intro-image-wrap:hover .author-intro-image {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 12px 36px rgba(74, 127, 181, 0.25);
  }

  .author-intro-image-wrap:hover::before {
    transform: translate(4px, 4px);
    opacity: 0.75;
    border-color: var(--color-sky);
  }
}

.author-intro-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.author-name {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  color: var(--color-navy);
  margin-bottom: 0;
}

.author-intro-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  max-width: 560px;
}

/* -- Page Hero (Inner Pages) -------------------------------- */
.page-hero {
  background: linear-gradient(
    135deg,
    var(--color-navy) 0%,
    var(--color-navy-light) 100%
  );
  padding: clamp(3rem, 5vw, 5.5rem) var(--gutter);
  text-align: center;
}

.page-hero-inner {
  max-width: var(--max-width);
  margin-inline: auto;
}

.page-hero-title {
  color: #fff;
  font-size: clamp(var(--text-3xl), 4.5vw, var(--text-5xl));
  margin-bottom: var(--space-3);
}

.page-hero-desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  max-width: 580px;
  margin-inline: auto;
}

/* -- Book Page Specific ------------------------------------- */
.book-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: start;
}

.book-feature-cover-wrap {
  flex-shrink: 0;
}

.book-feature-cover {
  width: clamp(260px, 28vw, 400px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: transform var(--duration-slow) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .book-feature-cover:hover {
    transform: translateY(-4px);
  }
}

.book-feature-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.book-title-lg {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  line-height: var(--leading-tight);
  color: var(--color-navy);
}

.book-tagline-lg {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-sky);
  line-height: var(--leading-snug);
  border-left: 3px solid var(--color-sky-light);
  padding-left: var(--space-4);
}

.book-desc-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

.themes-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}

.themes-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.theme-bullet {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-sky);
  flex-shrink: 0;
  margin-top: 7px;
}

/* Editions full (Book Page) */
.editions-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.edition-full-card {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
  transition:
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .edition-full-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--color-sky);
  }
}

.edition-full-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-sky);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration-base) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .edition-full-card:hover::after {
    transform: scaleX(1);
  }
}

.edition-full-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--color-sky-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  flex-shrink: 0;
}

.edition-full-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-sky);
}

.edition-full-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-navy);
  text-align: center;
  width: 100%;
  margin-bottom: 0;
}

.edition-full-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  text-align: center;
  margin-inline: auto;
  flex: 1;
}

.edition-full-card .btn {
  align-self: center;
}

/* Book Author Section (The Book Page) */
.book-author-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    "header media"
    "body   media"
    "button media";
  gap: var(--space-4) clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.book-author-header {
  grid-area: header;
}

.book-author-header .divider {
  margin-bottom: var(--space-4);
}

.book-author-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  color: var(--color-navy);
  margin-bottom: 0;
  line-height: var(--leading-tight);
}

.book-author-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.book-author-p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  max-width: 540px;
  margin-bottom: 0;
}

.book-author-btn-wrap {
  grid-area: button;
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
}

.book-author-btn-wrap .btn {
  align-self: flex-start;
}

.book-author-media {
  grid-area: media;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.book-author-photo-wrap {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.book-author-photo {
  width: auto;
  max-width: clamp(230px, 22vw, 290px);
  max-height: 480px;
  aspect-ratio: 978 / 1968;
  object-fit: contain;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: block;
  background-color: var(--color-warm-white);
  transition:
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
  will-change: transform, box-shadow;
}

.book-author-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -8px -8px 8px 8px;
  border: 2px solid var(--color-sky-light);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.45;
  transition:
    transform var(--duration-slow) var(--ease-out),
    opacity var(--duration-slow) var(--ease-out),
    border-color var(--duration-slow) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .book-author-photo-wrap:hover .book-author-photo {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 12px 36px rgba(74, 127, 181, 0.22);
  }

  .book-author-photo-wrap:hover::before {
    transform: translate(4px, 4px);
    opacity: 0.8;
    border-color: var(--color-sky);
  }
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.about-debut-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* -- Refined Editorial About Page --------------------------- */
.about-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.about-photo-col {
  flex-shrink: 0;
  position: relative;
  max-width: 380px;
}

.about-photo-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  transition:
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
  will-change: transform, box-shadow;
}

.about-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  pointer-events: none;
  transition: box-shadow var(--duration-slow) var(--ease-out);
}

.about-photo-primary {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .about-photo-frame:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 12px 36px rgba(74, 127, 181, 0.25);
  }

  .about-photo-frame:hover .about-photo-primary {
    transform: scale(1.03);
  }

  .about-photo-frame:hover::after {
    box-shadow: inset 0 0 0 2px rgba(74, 127, 181, 0.4);
  }
}

.about-photo-caption {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  font-style: normal;
  letter-spacing: 0.02em;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.about-bio-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.about-bio-title {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  color: var(--color-navy);
}

.about-pullquote {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-sky);
  line-height: var(--leading-snug);
  border-left: 3px solid var(--color-sky-light);
  padding-left: var(--space-4);
  margin: var(--space-2) 0 var(--space-3);
}

.about-bio-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  max-width: 620px;
}

/* Feature Spotlight on About Page */
.about-family-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-family-image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition:
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
  will-change: transform, box-shadow;
}

.about-family-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .about-family-image-wrap:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 12px 36px rgba(74, 127, 181, 0.25);
  }

  .about-family-image-wrap:hover .about-family-image {
    transform: scale(1.03);
  }
}

/* Intentional 4-item photo gallery with captions */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.photo-gallery-card {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .photo-gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
}

.photo-gallery-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-ivory);
}

.photo-gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .photo-gallery-card:hover .photo-gallery-img-wrap img {
    transform: scale(1.03);
  }
}

.photo-gallery-caption {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  background-color: var(--color-warm-white);
}

/* -- Contact Page ------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-info-title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  color: var(--color-navy);
}

.contact-info-text {
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
}

.form-label .required {
  color: var(--color-coral);
  margin-left: var(--space-1);
}

.form-input,
.form-textarea {
  font-family: var(--font-body);
  font-size: 1rem; /* 16px minimum prevents iOS zoom on focus */
  color: var(--color-text);
  background-color: var(--color-cream);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  width: 100%;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
  appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-sky);
  box-shadow: 0 0 0 3px rgba(74, 127, 181, 0.15);
  background-color: #fff;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(212, 117, 106, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: var(--leading-normal);
}

.field-error {
  font-size: var(--text-xs);
  color: var(--color-coral);
  font-weight: 500;
  display: none;
}

.field-error.visible {
  display: block;
}

.form-submit-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.form-success {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  background-color: #EBF7EE;
  border: 1px solid #A8D5B5;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}

.form-success.visible {
  display: flex;
}

.form-success-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: var(--color-green);
  margin-top: 2px;
}

.form-success-text {
  font-size: var(--text-sm);
  color: var(--color-navy);
  line-height: var(--leading-normal);
  max-width: none;
}

/* -- Divider ------------------------------------------------ */
.divider {
  width: 44px;
  height: 2px;
  background-color: var(--color-sky-light);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.divider-center {
  margin-inline: auto;
}

/* -- CTA Band ----------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  padding: clamp(3rem, 5vw, 5.5rem) var(--gutter);
  text-align: center;
}

.cta-band-inner {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.cta-band-title {
  color: #fff;
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
}

.cta-band-desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-lg);
  max-width: 480px;
  margin-inline: auto;
}

.cta-band-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* -- Footer ------------------------------------------------- */
.site-footer {
  background-color: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter) 2.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  gap: var(--space-10);
  align-items: start;
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-wordmark {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color var(--duration-fast);
}

.footer-wordmark:hover {
  color: var(--color-sky-light);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: var(--leading-normal);
  max-width: 300px;
}

.footer-nav-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-3);
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-nav-list a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  transition: color var(--duration-fast);
}

.footer-nav-list a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  line-height: var(--leading-normal);
}

.footer-publisher-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease-out);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-publisher-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-publisher-link:focus-visible {
  outline: 2px solid var(--color-sky-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* -- Animations (Reliable Across All Devices) -------------- */

/* Keyframe for hero entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero entrance with subtle stagger */
.hero-content .hero-author-tag {
  animation: fadeInUp var(--duration-slow) var(--ease-out) 0.05s both;
}

.hero-content .hero-title {
  animation: fadeInUp var(--duration-slow) var(--ease-out) 0.15s both;
}

.hero-content .hero-desc {
  animation: fadeInUp var(--duration-slow) var(--ease-out) 0.25s both;
}

.hero-content .hero-actions {
  animation: fadeInUp var(--duration-slow) var(--ease-out) 0.35s both;
}

.hero-book {
  animation: fadeIn 0.7s var(--ease-out) 0.2s both;
}

/* Fallback: All content is 100% visible by default (zero chance of invisible content) */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal-stagger > * {
  opacity: 1;
  transform: none;
}

/* Progressive enhancement: when JavaScript is confirmed active */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
  will-change: opacity, transform;
}

html.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

html.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
  will-change: opacity, transform;
}

html.js .reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
html.js .reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 80ms; }
html.js .reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 160ms; }
html.js .reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 240ms; }
html.js .reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 320ms; }

/* -- Reduced Motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .hero-content *,
  .hero-book,
  .reveal,
  .reveal-stagger > *,
  .author-intro-image-wrap:hover .author-intro-image,
  .author-intro-image-wrap:hover::before,
  .about-photo-frame,
  .about-photo-frame:hover,
  .about-photo-frame:hover .about-photo-primary,
  .about-family-image-wrap:hover,
  .about-family-image-wrap:hover .about-family-image {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* -- Responsive Breakpoints -------------------------------- */

/* Laptop / Landscape Tablet: <= 1024px */
@media (max-width: 1024px) {
  .hero-inner {
    gap: var(--space-8);
  }

  .grid-2 {
    gap: var(--space-8);
  }

  .about-hero {
    grid-template-columns: 320px 1fr;
    gap: var(--space-8);
  }

  .about-family-spotlight {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .editions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  .edition-card {
    padding: var(--space-6) var(--space-5);
  }

  .editions-full {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  .edition-full-card {
    padding: var(--space-6) var(--space-5);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablet Portrait: <= 860px */
@media (max-width: 860px) {
  .editions-grid,
  .editions-full {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .about-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo-col {
    margin-inline: auto;
    max-width: 320px;
  }

  .about-pullquote {
    border-left: none;
    border-top: 3px solid var(--color-sky-light);
    padding-left: 0;
    padding-top: var(--space-3);
  }

  .about-bio-text {
    margin-inline: auto;
  }
}

/* Tablet: <= 768px */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .site-nav,
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: block; }

  /* Hero adaptation on mobile */
  .hero {
    min-height: auto;
  }

  .hero-bg {
    background-position: center 30%;
  }

  .hero-bg::before {
    background: linear-gradient(
      180deg,
      rgba(16, 25, 44, 0.94) 0%,
      rgba(20, 32, 54, 0.9) 45%,
      rgba(24, 38, 64, 0.85) 100%
    );
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: var(--space-12) var(--space-12);
    gap: var(--space-8);
  }

  .hero-book {
    order: -1;
    justify-content: center;
  }

  .hero-book-cover {
    width: clamp(190px, 50vw, 260px);
  }

  .hero-author-tag {
    justify-content: center;
  }

  .hero-author-tag::before { display: none; }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .book-intro {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-8);
  }

  .book-intro-cover {
    margin-inline: auto;
    max-width: 260px;
  }

  .book-tagline {
    border-left: none;
    border-top: 3px solid var(--color-sky-light);
    padding-left: 0;
    padding-top: var(--space-3);
  }

  .book-intro-text {
    margin-inline: auto;
  }

  .author-intro {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-8);
  }

  .author-intro-image-wrap {
    margin-inline: auto;
  }

  .author-intro-image {
    width: 220px;
    margin-inline: auto;
  }

  .author-intro-image-wrap::before { display: none; }
  .author-intro-text { margin-inline: auto; }

  .book-feature {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-8);
  }

  .book-feature-cover {
    margin-inline: auto;
    max-width: 280px;
  }

  .book-tagline-lg {
    border-left: none;
    border-top: 3px solid var(--color-sky-light);
    padding-left: 0;
    padding-top: var(--space-3);
  }

  .photo-gallery-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }

  /* Center the blue divider line on all mobile pages */
  .divider {
    margin-inline: auto !important;
  }

  /* Center icons, headings, and copy for Kindle, Paperback, Hardcover cards on mobile */
  .edition-card,
  .edition-full-card {
    align-items: center;
    text-align: center;
  }

  .edition-icon,
  .edition-full-icon {
    margin-inline: auto;
  }

  .edition-name,
  .edition-full-name {
    text-align: center;
    width: 100%;
  }

  .edition-desc,
  .edition-full-desc {
    text-align: center;
    margin-inline: auto;
  }

  .edition-card .btn,
  .edition-full-card .btn {
    align-self: center;
  }

  /* Book page: About the Author section on mobile (heading FIRST, author image SECOND, text THIRD, button FOURTH, all centered) */
  .book-author-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-5);
  }

  .book-author-header {
    order: 1; /* Heading About the Author comes FIRST */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .book-author-title {
    text-align: center;
    width: 100%;
  }

  .book-author-media {
    order: 2; /* Author image comes SECOND */
    display: flex;
    justify-content: center;
    width: 100%;
    margin-block: var(--space-2);
  }

  .book-author-photo-wrap {
    margin-inline: auto;
  }

  .book-author-photo {
    width: auto;
    max-width: clamp(180px, 50vw, 220px);
    max-height: 400px;
    aspect-ratio: 978 / 1968;
    object-fit: contain;
    margin-inline: auto;
  }

  .book-author-body {
    order: 3; /* Text comes THIRD */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: var(--space-3);
  }

  .book-author-p {
    margin-inline: auto;
    text-align: center;
    max-width: 520px;
  }

  .book-author-btn-wrap {
    order: 4; /* Button Meet Lori Pappin comes FOURTH, centered */
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: var(--space-4);
  }

  .book-author-btn-wrap .btn {
    align-self: center;
  }

  /* About page: Inspired by Motherhood section on mobile (centered heading & text) */
  .about-family-spotlight {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-8);
  }

  .about-family-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .about-family-content h2 {
    text-align: center;
    width: 100%;
  }

  .about-family-content p {
    margin-inline: auto;
    text-align: center;
  }

  /* Contact page: Say Hello section on mobile (centered heading, text & button) */
  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .contact-info-title {
    text-align: center;
    width: 100%;
  }

  .contact-info-text {
    margin-inline: auto;
    text-align: center;
  }

  .contact-amazon-btn-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  /* About page: Her Debut Picture Book section on mobile */
  .about-debut-block {
    text-align: center;
  }

  .about-debut-block p {
    margin-inline: auto;
  }

  .about-debut-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-inline: auto;
    width: 100%;
  }

  /* Mobile subtle growing animation for author photo */
  @keyframes mobileAuthorGrow {
    0% {
      transform: scale(0.91);
      opacity: 0.85;
    }
    60% {
      transform: scale(1.03);
      opacity: 1;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

  .about-photo-frame {
    animation: mobileAuthorGrow 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
  }

  .about-photo-frame:active {
    transform: scale(1.03);
    transition: transform 0.25s var(--ease-out);
  }
}

/* Mobile: <= 480px */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-band-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-band-actions .btn {
    width: 100%;
  }

  .edition-card .btn,
  .edition-full-card .btn {
    width: 100%;
  }

  .contact-form {
    padding: var(--space-5) var(--space-4);
  }

  .contact-form .btn {
    width: 100%;
  }

  .about-debut-actions {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .about-debut-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Narrow Mobile: <= 360px */
@media (max-width: 360px) {
  :root {
    --gutter: 0.875rem;
  }

  .wordmark-name {
    font-size: 1.1rem;
  }

  .wordmark-tagline {
    font-size: 0.6875rem;
  }

  .hero-title {
    font-size: 1.875rem;
  }
}

/* -- Utilities ---------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
