/* ==========================================================================
   Chris Baker — Children's Book Author
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Nunito:wght@300;400;500;600;700&display=swap');

/* ── Custom Properties ────────────────────────────────────────────────────── */
:root {
  --cream:        #FAF7EF;
  --cream-mid:    #EEE5D0;
  --cream-dark:   #D8CCBA;
  --indigo:       #2E4466;
  --indigo-dark:  #1C2E4A;
  --indigo-mid:   #4A6882;
  --indigo-light: #95AEC8;
  --indigo-pale:  #E6EEF6;
  --amber:        #B87840;
  --amber-light:  #D4A870;
  --amber-pale:   #F5EAD4;
  --bark:         #3A2418;
  --midnight:     #0C1A2E;
  --night-mid:    #152438;
  --night-text:   #B0C8E0;
  --text:         #1A1510;
  --text-muted:   #706050;
  --text-light:   #A09080;
  --white:        #FFFFFF;

  --shadow-xs:  0 1px 4px rgba(12, 26, 46, 0.08);
  --shadow-sm:  0 2px 10px rgba(12, 26, 46, 0.10);
  --shadow:     0 4px 24px rgba(12, 26, 46, 0.12);
  --shadow-lg:  0 8px 48px rgba(12, 26, 46, 0.18);
  --shadow-xl:  0 16px 64px rgba(12, 26, 46, 0.24);

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Nunito', system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:  150ms ease;
  --t-med:   250ms ease;
  --t-slow:  400ms var(--ease-out);

  --nav-h: 72px;
  --max-w: 1100px;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.05rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 96px 0; }

/* ── Section Labels ───────────────────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 12px;
}
.section-header { margin-bottom: 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: all var(--t-med);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--indigo);
  color: var(--white);
  border-color: var(--indigo);
}
.btn-primary:hover {
  background: var(--indigo-dark);
  border-color: var(--indigo-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--indigo-dark);
  border-color: var(--indigo-dark);
}
.btn-outline:hover {
  background: var(--indigo-dark);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-amber {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn-amber:hover {
  background: var(--bark);
  border-color: var(--bark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--indigo);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
  border-bottom: 2px solid var(--indigo-light);
}
.btn-ghost:hover {
  color: var(--indigo-dark);
  border-bottom-color: var(--indigo-dark);
}
.btn-sm { padding: 9px 22px; font-size: 0.83rem; }

/* ── Divider ──────────────────────────────────────────────────────────────── */
.divider {
  width: 48px; height: 3px;
  background: var(--indigo-light);
  border-radius: var(--radius-full);
  margin: 20px 0;
}

/* ── NAVIGATION ───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(250, 247, 239, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-dark);
  transition: box-shadow var(--t-slow);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--indigo-dark);
  letter-spacing: 0.01em;
  flex-shrink: 0;
  transition: opacity var(--t-fast);
}
.nav-brand:hover { opacity: 0.75; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover, .nav-link.active {
  color: var(--indigo-dark);
  background: var(--indigo-pale);
}
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
  cursor: pointer;
}
.nav-dropdown:hover .nav-dropdown-btn,
.nav-dropdown-btn.active {
  color: var(--indigo-dark);
  background: var(--indigo-pale);
}
.dropdown-chevron {
  width: 10px; height: 6px;
  transition: transform var(--t-med);
  flex-shrink: 0;
}
.nav-dropdown:hover .dropdown-chevron { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--t-med), transform var(--t-med);
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t-fast), background var(--t-fast);
}
.dropdown-panel a:hover {
  color: var(--indigo-dark);
  background: var(--indigo-pale);
}
.dropdown-icon { font-size: 1.1rem; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  padding: 8px;
  transition: background var(--t-fast);
}
.nav-toggle:hover { background: var(--indigo-pale); }
.nav-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t-med);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  /* Disable backdrop-filter on mobile — Safari treats it as a containing block
     for position:fixed children, which breaks the menu's inset positioning */
  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(250, 247, 239, 0.98);
  }
  .nav-menu {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    z-index: 300;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 32px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--t-slow);
    box-shadow: var(--shadow-xl);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-link, .nav-dropdown-btn {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.04em;
    padding: 14px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--cream-dark);
    background: none !important;
  }
  .nav-dropdown { display: contents; }
  .dropdown-chevron { display: none; }
  .dropdown-panel {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    opacity: 1;
    pointer-events: all;
    transform: none;
    padding: 0 0 0 16px;
    background: transparent;
  }
  .dropdown-panel a {
    padding: 10px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--cream-dark);
    background: transparent !important;
  }
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
/* ── HOME — PREORDER FEATURE ──────────────────────────────────────────────── */
.preorder-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 88px 0;
}
.preorder-bg {
  position: absolute;
  inset: 0;
  background: url('../img/weaver-bg.png') center center / cover no-repeat;
  z-index: 0;
}
.preorder-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 26, 0.27);
}
.preorder-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 72px;
  align-items: start;
}
.preorder-label {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 8rem);
  font-style: italic;
  font-weight: 700;
  color: #85D9FF;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  animation: label-glow 4.5s ease-in-out infinite;
}
@keyframes label-glow {
  0%, 100% { text-shadow: 0 0 30px rgba(133, 217, 255, 0.7), 0 0 80px rgba(133, 217, 255, 0.45); }
  50%       { text-shadow: 0 0 50px rgba(133, 217, 255, 1), 0 0 120px rgba(133, 217, 255, 1), 0 0 200px rgba(133, 217, 255, 0.55); }
}
.preorder-date {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}
.preorder-review:first-of-type { margin-top: 80px; }
.preorder-review {
  background: rgba(4, 12, 26, 0.55);
  border-left: 3px solid #85D9FF;
  padding: 16px 20px;
  margin: 12px 0 0;
  max-width: 480px;
}
.preorder-review p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 8px;
}
.preorder-review cite {
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #85D9FF;
}
.preorder-cover { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.preorder-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.preorder-section .btn-primary {
  background: var(--amber); border-color: var(--amber); color: var(--white);
}
.preorder-section .btn-primary:hover { background: #8A5A28; border-color: #8A5A28; }
.preorder-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 700; letter-spacing: 0.04em;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85); background: transparent;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  text-decoration: none;
}
.preorder-btn-ghost:hover {
  border-color: var(--white); color: var(--white);
  background: rgba(255,255,255,0.08);
}
.preorder-cover-img {
  width: clamp(300px, 35vw, 475px);
  display: block;
  box-shadow: 0 24px 72px rgba(0,0,0,0.65), 0 4px 16px rgba(0,0,0,0.5);
}
@media (max-width: 900px) {
  /* Dissolve both wrappers so children become direct flex items, then reorder */
  .preorder-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
  .preorder-cover { display: contents; }
  .preorder-text  { display: contents; }
  .preorder-label   { order: 1; font-size: 3.5rem; }
  .preorder-date    { order: 2; }
  .preorder-cover > a { order: 3; }
  .preorder-review  { order: 4; margin-left: auto; margin-right: auto; }
  .preorder-actions { order: 5; }
  .preorder-review:first-of-type { margin-top: 0; }
  .preorder-cover-img { width: min(85vw, 380px); display: block; }
  .preorder-bg { background-position: center 35%; }
}
@media (max-width: 540px) {
  .preorder-section { padding: 56px 0 64px; }
}

/* ── HOME — BOOKS SECTION ────────────────────────────────────────────────── */
.books-section { background: var(--cream-mid); }
.books-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.book-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: auto 1fr;
  transition: box-shadow var(--t-med), transform var(--t-med);
}
.book-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.book-card-cover { width: 140px; flex-shrink: 0; }
.book-card-cover .book-cover {
  width: 140px; height: 100%;
  aspect-ratio: unset; min-height: 180px; border-radius: 0;
}
.book-cover-img { display: block; width: 100%; }
.book-card-cover .book-cover-img { width: 140px; height: 100%; object-fit: cover; }
.book-feature-cover img { width: 280px; box-shadow: var(--shadow-xl); display: block; }
.book-card-body { padding: 28px 24px; }
.book-card-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--indigo); margin-bottom: 8px;
}
.book-card-title {
  font-family: var(--font-serif); font-size: 1.5rem;
  font-weight: 500; color: var(--text);
  margin-bottom: 10px; line-height: 1.2;
}
.book-card-desc {
  font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.65; margin-bottom: 20px;
}
.book-card-link {
  font-size: 0.83rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--indigo);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--t-fast), color var(--t-fast);
}
.book-card-link:hover { color: var(--indigo-dark); gap: 10px; }
.book-card-link svg { width: 14px; height: 14px; }

@media (max-width: 768px) {
  .books-grid { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: 120px 1fr; }
  .book-card-cover { width: 120px; }
  .book-card-cover .book-cover-img { width: 120px; }
}
@media (max-width: 480px) {
  .book-card { grid-template-columns: 100px 1fr; }
  .book-card-cover { width: 100px; }
  .book-card-cover .book-cover-img { width: 100px; }
  .book-card-body { padding: 18px 14px; }
}

/* ── HOME — EVENTS SECTION ───────────────────────────────────────────────── */
.events-section { background: var(--cream); }
.events-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.event-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--cream-dark);
  transition: box-shadow var(--t-med), transform var(--t-med), border-color var(--t-med);
}
.event-item:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
  border-color: var(--indigo-light);
}
.event-date { display: flex; flex-direction: column; align-items: center; width: 54px; flex-shrink: 0; }
.event-date-month {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--indigo);
}
.event-date-day {
  font-family: var(--font-serif); font-size: 2rem;
  font-weight: 400; line-height: 1; color: var(--text);
}
.event-divider-v { width: 1px; height: 48px; background: var(--cream-dark); flex-shrink: 0; }
.event-info { min-width: 0; }
.event-title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.event-meta { font-size: 0.85rem; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.event-meta span { display: flex; align-items: center; gap: 5px; }
.event-meta svg { width: 13px; height: 13px; opacity: 0.6; }
.event-cta { flex-shrink: 0; }

@media (max-width: 680px) {
  .event-item { grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 12px 16px; }
  .event-divider-v { display: none; }
  .event-cta { grid-column: 1 / -1; justify-self: start; }
}

/* ── HOME — NEWSLETTER CTA ───────────────────────────────────────────────── */
.newsletter-section {
  background: var(--indigo-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.newsletter-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.newsletter-bg-shape {
  position: absolute; right: -80px; top: -80px;
  width: 380px; height: 380px;
  opacity: 0.06; color: var(--white);
}
.newsletter-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  justify-content: space-between; gap: 48px;
}
.newsletter-text { color: var(--cream); }
.newsletter-text .eyebrow { color: var(--amber-light); }
.newsletter-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--cream); margin-bottom: 12px;
}
.newsletter-text p { color: var(--night-text); font-size: 1.05rem; max-width: 440px; }
.newsletter-action { flex-shrink: 0; }
.btn-newsletter {
  background: var(--cream); color: var(--indigo-dark);
  border-color: var(--cream); font-weight: 700;
}
.btn-newsletter:hover {
  background: var(--white); border-color: var(--white);
  transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
  .newsletter-inner { flex-direction: column; text-align: center; align-items: flex-start; }
}

/* ── INTERIOR PAGE HERO ───────────────────────────────────────────────────── */
.page-hero {
  background: var(--cream-mid);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--cream-dark);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 12px; color: var(--indigo-dark); }
.page-hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; }

/* ── BIO PAGE ─────────────────────────────────────────────────────────────── */
.bio-section { background: var(--cream); }
.bio-layout { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }
.bio-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.author-photo-wrap {
  width: 100%; aspect-ratio: 4/5;
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--cream-mid);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); margin-bottom: 24px; position: relative;
}
.author-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.bio-sidebar-details { display: flex; flex-direction: column; gap: 12px; }
.bio-detail-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--text-muted); }
.bio-detail-icon { color: var(--indigo); flex-shrink: 0; margin-top: 2px; }
.bio-text h2 { margin-bottom: 24px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.bio-text p { font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.bio-text p + p { margin-top: 20px; }
.bio-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.bio-highlight-card {
  background: var(--indigo-pale); border-radius: var(--radius);
  padding: 24px; border-left: 3px solid var(--indigo);
  transition: background var(--t-fast), transform var(--t-med);
  display: block;
}
.bio-highlight-card:hover {
  background: var(--indigo-light);
  transform: translateY(-2px);
}
.bio-highlight-card h4 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--indigo-dark); margin-bottom: 6px; }
.bio-highlight-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

@media (max-width: 900px) {
  .bio-layout { grid-template-columns: 1fr; }
  .bio-sidebar { position: static; max-width: 380px; }
  .bio-highlights { grid-template-columns: 1fr; }
}

/* ── BOOKS PAGE ───────────────────────────────────────────────────────────── */
.books-page-section { background: var(--cream); }
.book-feature {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 56px; align-items: start;
  padding: 56px 0; border-bottom: 1px solid var(--cream-dark);
}
.book-feature:last-child { border-bottom: none; }
.book-feature.reverse { grid-template-columns: 1fr 280px; }
.book-feature.reverse .book-feature-cover { order: 2; }
.book-feature.reverse .book-feature-info { order: 1; }
.book-feature-cover .book-cover { width: 280px; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }
.book-feature-badge {
  display: inline-block;
  background: var(--indigo-pale); color: var(--indigo-dark);
  border: 1px solid var(--indigo-light);
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px;
}
.book-feature-title { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); color: var(--text); margin-bottom: 6px; }
.book-feature-author { font-family: var(--font-serif); font-style: italic; color: var(--text-muted); font-size: 1.1rem; margin-bottom: 20px; }
.book-feature-desc { font-size: 1rem; color: var(--text); line-height: 1.8; margin-bottom: 28px; }
.book-feature-details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.book-feature-detail { display: flex; gap: 8px; font-size: 0.88rem; color: var(--text-muted); }
.book-feature-detail strong { color: var(--text); font-weight: 600; min-width: 80px; }
.book-buy-links { display: flex; gap: 12px; flex-wrap: wrap; }
.book-buy-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 600;
  border: 2px solid var(--cream-dark); color: var(--text-muted);
  background: var(--white); transition: all var(--t-med);
}
.book-buy-link:hover {
  border-color: var(--indigo); color: var(--indigo-dark);
  background: var(--indigo-pale); transform: translateY(-2px);
}
.book-buy-link--primary {
  background: var(--indigo); color: var(--white); border-color: var(--indigo);
}
.book-buy-link--primary:hover {
  background: var(--indigo-dark); border-color: var(--indigo-dark); color: var(--white);
}

/* Blurb / praise */
.book-blurb {
  background: var(--indigo-pale);
  border-left: 3px solid var(--indigo-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.book-blurb p { font-size: 0.92rem; color: var(--text); font-style: italic; margin-bottom: 4px; }
.book-blurb cite { font-size: 0.78rem; font-style: normal; font-weight: 700; letter-spacing: 0.06em; color: var(--indigo); }

@media (max-width: 768px) {
  .book-feature, .book-feature.reverse { grid-template-columns: 1fr; }
  .book-feature.reverse .book-feature-cover { order: 0; }
  .book-feature.reverse .book-feature-info { order: 1; }
  .book-feature-cover .book-cover { width: 220px; }
  .book-feature-cover img { width: 220px; }
}

/* ── RESOURCES PAGES ──────────────────────────────────────────────────────── */
.resources-section { background: var(--cream); }
.resources-intro { max-width: 680px; margin-bottom: 56px; }
.resources-intro p { font-size: 1.05rem; color: var(--text-muted); }
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }
.resource-card {
  background: var(--white); border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
  transition: box-shadow var(--t-med), transform var(--t-med), border-color var(--t-med);
}
.resource-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--indigo-light); }
.resource-card-icon {
  width: 48px; height: 48px;
  background: var(--indigo-pale); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--indigo); flex-shrink: 0;
}
.resource-card-icon svg { width: 24px; height: 24px; }
.resource-card h4 { font-family: var(--font-serif); font-size: 1.15rem; color: var(--text); }
.resource-card p { font-size: 0.88rem; color: var(--text-muted); flex: 1; }
.resource-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--cream-dark);
}
.resource-card-type {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber); background: var(--amber-pale); padding: 3px 10px; border-radius: var(--radius-full);
}
.resource-download-btn {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.83rem; font-weight: 700; color: var(--indigo);
  transition: color var(--t-fast), gap var(--t-fast);
}
.resource-download-btn:hover { color: var(--indigo-dark); gap: 8px; }
.resource-download-btn svg { width: 14px; height: 14px; }
.resources-note {
  background: var(--amber-pale); border: 1px solid var(--amber-light);
  border-radius: var(--radius-lg); padding: 28px 32px; max-width: 640px;
}
.resources-note p { font-size: 0.95rem; color: var(--bark); margin-bottom: 0; }
.resources-note strong { color: var(--amber); }

@media (max-width: 900px) { .resources-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .resources-grid { grid-template-columns: 1fr; } }

/* ── EVENTS PAGE ──────────────────────────────────────────────────────────── */
.events-page-section { background: var(--cream); }
.events-full-list { display: flex; flex-direction: column; gap: 20px; }
.event-card {
  background: var(--white); border-radius: var(--radius-xl);
  border: 1px solid var(--cream-dark); overflow: hidden;
  display: grid; grid-template-columns: 100px 1fr auto;
  transition: box-shadow var(--t-med), border-color var(--t-med);
}
.event-card:hover { box-shadow: var(--shadow); border-color: var(--indigo-light); }
.event-card-date {
  background: var(--indigo-dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px 12px; flex-shrink: 0;
}
.event-card-month { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--indigo-light); }
.event-card-day { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 400; color: var(--cream); line-height: 1; }
.event-card-year { font-size: 0.72rem; color: var(--indigo-light); opacity: 0.7; }
.event-card-body { padding: 24px 28px; }
.event-card-type { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo); margin-bottom: 6px; }
.event-card-title { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.event-card-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 12px; }
.event-card-meta span { display: flex; align-items: center; gap: 5px; }
.event-card-meta svg { width: 14px; height: 14px; opacity: 0.6; }
.event-card-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }
.event-card-action { padding: 24px; display: flex; align-items: center; border-left: 1px solid var(--cream-dark); }

@media (max-width: 768px) {
  .event-card { grid-template-columns: 80px 1fr; grid-template-rows: auto auto; }
  .event-card-action { grid-column: 1 / -1; border-left: none; border-top: 1px solid var(--cream-dark); padding: 16px 20px; }
}

/* ── NEWSLETTER PAGE ──────────────────────────────────────────────────────── */
.newsletter-page-section { background: var(--cream); }
.newsletter-page-inner { max-width: 640px; }
.newsletter-perks { display: flex; flex-direction: column; gap: 20px; margin: 40px 0; }
.newsletter-perk { display: flex; gap: 16px; align-items: flex-start; }
.newsletter-perk-icon {
  width: 44px; height: 44px; background: var(--indigo-pale);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; color: var(--indigo); flex-shrink: 0;
}
.newsletter-perk-icon svg { width: 20px; height: 20px; }
.newsletter-perk-text h4 { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 4px; }
.newsletter-perk-text p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.newsletter-substack-box {
  background: var(--indigo-pale); border: 1px solid var(--indigo-light);
  border-radius: var(--radius-xl); padding: 40px; text-align: center; margin-top: 40px;
}
.newsletter-substack-box h3 { font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 12px; color: var(--indigo-dark); }
.newsletter-substack-box p { color: var(--text-muted); margin-bottom: 24px; }

/* ── CONTACT PAGE ──────────────────────────────────────────────────────────── */
.contact-section { background: var(--cream); }
.contact-layout { display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.83rem; font-weight: 700; letter-spacing: 0.05em; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--cream-dark); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 0.95rem; color: var(--text);
  background: var(--white); transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none; appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-pale);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-light); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-info-card {
  background: var(--white); border: 1px solid var(--cream-dark);
  border-radius: var(--radius-xl); padding: 32px; margin-bottom: 24px;
}
.contact-info-card h3 { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 20px; color: var(--text); }
.contact-info-items { display: flex; flex-direction: column; gap: 18px; }
.contact-info-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-info-icon {
  width: 38px; height: 38px; background: var(--indigo-pale);
  border-radius: var(--radius-sm); display: flex;
  align-items: center; justify-content: center; color: var(--indigo); flex-shrink: 0;
}
.contact-info-icon svg { width: 17px; height: 17px; }
.contact-info-text { padding-top: 2px; }
.contact-info-text strong {
  display: block; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 2px;
}
.contact-info-text span { font-size: 0.93rem; color: var(--text); }
.contact-social-card {
  background: var(--indigo-pale); border-radius: var(--radius-xl);
  padding: 28px 32px; border: 1px solid var(--indigo-light);
}
.contact-social-card h4 { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 16px; color: var(--indigo-dark); }
.social-links { display: flex; flex-direction: column; gap: 10px; }
.social-link {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--indigo-dark); font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: background var(--t-fast);
}
.social-link:hover { background: rgba(46, 68, 102, 0.1); }
.social-link svg { width: 18px; height: 18px; flex-shrink: 0; }

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

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.site-footer { background: var(--midnight); padding: 80px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(149, 174, 200, 0.15);
  margin-bottom: 40px;
}
.footer-brand-name {
  font-family: var(--font-serif); font-size: 1.8rem;
  font-style: italic; color: var(--cream); margin-bottom: 8px; display: block;
}
.footer-brand-line { font-size: 0.82rem; color: var(--night-text); margin-bottom: 24px; }
.footer-brand svg { width: 48px; height: 48px; color: var(--indigo-light); opacity: 0.5; margin-bottom: 16px; }
.footer-social-row { display: flex; gap: 10px; }
.footer-social-btn {
  width: 36px; height: 36px; border-radius: var(--radius-full);
  border: 1px solid rgba(149, 174, 200, 0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--night-text); transition: all var(--t-med);
}
.footer-social-btn:hover { background: rgba(149, 174, 200, 0.12); border-color: var(--indigo-light); color: var(--cream); }
.footer-social-btn svg { width: 15px; height: 15px; }
.footer-col-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cream); margin-bottom: 18px;
}
.footer-nav-list { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-list a { font-size: 0.9rem; color: var(--night-text); transition: color var(--t-fast); }
.footer-nav-list a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--night-text); opacity: 0.6;
}
.footer-bottom a { color: inherit; transition: opacity var(--t-fast); }
.footer-bottom a:hover { opacity: 1; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── ACTIVITY PAGES ──────────────────────────────────────────────────────── */
.activity-section { background: var(--cream); }
.activity-lead {
  font-size: 1.05rem; line-height: 1.85; color: var(--text);
  margin-bottom: 20px;
}
.activity-callout {
  background: var(--amber-pale);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px; margin: 36px 0;
  font-style: italic; color: var(--bark);
  font-size: 1.05rem; line-height: 1.7;
}
.spore-illustration {
  display: flex; justify-content: center;
  margin: 40px 0;
}
.spore-illustration img {
  width: 55%; max-width: 420px;
  filter: drop-shadow(0 8px 24px rgba(58, 36, 24, 0.18));
}
.activity-download {
  background: var(--indigo-pale); border: 1px solid var(--indigo-light);
  border-radius: var(--radius-xl); padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; margin-top: 56px;
}
.activity-download-text h3 {
  font-family: var(--font-serif); font-size: 1.35rem;
  color: var(--indigo-dark); margin-bottom: 6px;
}
.activity-download-text p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.activity-nav {
  border-top: 1px solid var(--cream-dark);
  background: var(--cream-mid); padding: 32px 0;
}
.activity-nav-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.activity-nav-link { display: flex; flex-direction: column; gap: 4px; }
.activity-nav-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
}
.activity-nav-title {
  font-size: 0.9rem; font-weight: 600; color: var(--indigo);
  display: flex; align-items: center; gap: 6px;
  transition: color var(--t-fast);
}
.activity-nav-title svg { width: 14px; height: 14px; }
.activity-nav-link:hover .activity-nav-title { color: var(--indigo-dark); }

.reference-photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin: 36px 0;
}
.reference-photo-grid img {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

@media (max-width: 600px) {
  .spore-grid { grid-template-columns: repeat(2, 1fr); }
  .activity-download { flex-direction: column; text-align: center; }
  .activity-nav-inner { flex-direction: column; gap: 24px; align-items: flex-start; }
  .reference-photo-grid { grid-template-columns: 1fr; }
  .reference-photo-grid img { aspect-ratio: 4/3; }
}

/* ── Small-screen spacing ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .page-hero { padding: 52px 0 44px; }
  .site-footer { padding: 64px 0 32px; }
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.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; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
