/* ============================================
   Happy Ending Authors — styles.css
   Real Photos + Scroll Animation Upgrade
   ============================================ */

:root {
  --cream: #FAF6F0;
  --ivory: #F5EFE3;
  --sand: #E8D9C0;
  --warm-white: #FFFDF9;
  --sage: #9AAF8E;
  --sage-light: #C4D4BC;
  --seafoam: #A8C4BE;
  --teal: #6BA3A0;
  --sky: #B8D4DC;
  --navy: #2C3E50;
  --slate: #4A5568;
  --blush: #D4907A;
  --terracotta: #C07355;
  --blush-light: #E8B5A0;
  --gold: #C9A96E;
  --text-dark: #2A2520;
  --text-mid: #5C5248;
  --text-light: #8A7E74;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', 'Times New Roman', Georgia, serif;
  background-color: var(--warm-white);
  color: var(--text-dark);
  overflow-x: hidden;
  font-size: 18px;
  line-height: 1.7;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* ══════════════════════════════════════════
   DARK / EVENING MODE
   ══════════════════════════════════════════ */
body.dark-mode {
  --cream: #1A1F2E;
  --ivory: #1E2336;
  --sand: #2A3048;
  --warm-white: #161B28;
  --text-dark: #F0EAE0;
  --text-mid: #BEB4A8;
  --text-light: #8A8278;
  --navy: #E8DDD0;
  --slate: #C8BFB5;
  --teal: #7BBFBC;
  --blush: #D4907A;
  --terracotta: #C07355;
  background-color: #161B28;
  color: #F0EAE0;
}

body.dark-mode nav {
  background: rgba(22, 27, 40, 0.92);
  border-bottom-color: rgba(42, 48, 72, 0.8);
}

body.dark-mode .hero-photo-overlay {
  background: linear-gradient(
    105deg,
    rgba(22,27,40,0.96) 0%,
    rgba(22,27,40,0.85) 38%,
    rgba(22,27,40,0.50) 58%,
    rgba(22,27,40,0.10) 100%
  );
}

body.dark-mode .fv-card-accent,
body.dark-mode .author-card,
body.dark-mode .hero-card-tag {
  background: #1E2336;
  border-color: #2A3048;
}

body.dark-mode footer { background: #0E1120; }
body.dark-mode .quote-section { background: linear-gradient(135deg, #0E1120 0%, #1A1F2E 100%); }
body.dark-mode .marquee-band { background: #0E1120; }
body.dark-mode .announcement-bar { background: #0E1120; }

body.dark-mode .month-pick-title,
body.dark-mode .author-name,
body.dark-mode .book-title,
body.dark-mode .section-title,
body.dark-mode .hero-title,
body.dark-mode .blog-title {
  color: #F0EAE0;
}

body.dark-mode .dark-toggle { color: #F0EAE0; }

/* ══════════════════════════════════════════
   GRAIN TEXTURE OVERLAY
   ══════════════════════════════════════════ */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  background-repeat: repeat;
}

/* ══════════════════════════════════════════
   ANNOUNCEMENT BAR
   ══════════════════════════════════════════ */
.announcement-bar {
  background: var(--navy);
  padding: 9px 0;
  overflow: hidden;
}

.announcement-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  gap: 0;
}

.announcement-track span {
  font-family: 'EB Garamond', serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 0 48px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   NAV
   ══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 36px; left: 0; right: 0;
  z-index: 100;
  padding: 18px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 217, 192, 0.5);
  transition: all 0.4s ease;
}

nav.scrolled {
  top: 0;
  box-shadow: 0 4px 30px rgba(44,62,80,0.08);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo span { color: var(--blush); font-style: italic; }

.nav-links { display: flex; gap: 36px; list-style: none; }

.nav-links a {
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--blush);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--blush); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-family: 'EB Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: var(--blush);
  border: none;
  padding: 10px 28px;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--terracotta); transform: translateY(-1px); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Dark mode toggle */
.dark-toggle {
  background: none;
  border: 1.5px solid var(--sand);
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  color: var(--navy);
  line-height: 1;
  flex-shrink: 0;
}

.dark-toggle:hover {
  border-color: var(--blush);
  transform: rotate(20deg) scale(1.1);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav-drawer.open { display: flex; }

.nav-drawer a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  font-style: italic;
  transition: color 0.3s;
}

.nav-drawer a:hover { color: var(--blush); }

.nav-drawer-close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--slate);
  cursor: pointer;
  line-height: 1;
}

.nav-drawer .drawer-cta {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: var(--terracotta);
  padding: 14px 40px;
  border-radius: 50px;
  font-style: normal;
  margin-top: 8px;
}

/* ══════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   Hero elements are NEVER hidden on load —
   only below-fold elements animate in.
   ══════════════════════════════════════════ */
.reveal-up,
.reveal-left,
.reveal-right {
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Below-fold elements start hidden until JS fires */
.reveal-up.below-fold    { opacity: 0; transform: translateY(48px); }
.reveal-left.below-fold  { opacity: 0; transform: translateX(-48px); }
.reveal-right.below-fold { opacity: 0; transform: translateX(48px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ══════════════════════════════════════════
   HERO LOAD ANIMATIONS (always fire, no JS needed)
   ══════════════════════════════════════════ */
@keyframes heroSlideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes heroSlideRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-animate-left {
  animation: heroSlideLeft 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero-animate-right {
  animation: heroSlideRight 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

/* ══════════════════════════════════════════
   HERO — FULL PHOTO BACKGROUND
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.hero-bg-img.loaded { transform: scale(1); }

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(250,246,240,0.97) 0%,
    rgba(250,246,240,0.88) 38%,
    rgba(250,246,240,0.55) 58%,
    rgba(250,246,240,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 160px 80px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 100vh;
}

.hero-left { }

.hero-eyebrow {
  font-family: 'EB Garamond', serif;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--teal);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5.5vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero-title em { font-style: italic; color: var(--blush); }

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--text-mid);
  margin-bottom: 28px;
  font-weight: 300;
  line-height: 1.5;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.85;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: var(--terracotta);
  border: none;
  padding: 16px 40px;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--blush);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(192,115,85,0.35);
}

.btn-outline {
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: transparent;
  border: 1.5px solid rgba(44,62,80,0.3);
  padding: 15px 36px;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.btn-outline:hover { border-color: var(--navy); background: rgba(250,246,240,0.8); }

.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(232,217,192,0.8);
  flex-wrap: wrap;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Hero floating photo card */
.hero-photo-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(44,62,80,0.22);
  max-height: 560px;
}

.hero-card-img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
}

.hero-card-tag {
  position: absolute;
  background: rgba(255,253,249,0.75);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  padding: 12px 18px;
  font-family: 'EB Garamond', serif;
  box-shadow: 0 8px 32px rgba(44,62,80,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
  animation: float 6s ease-in-out infinite;
}

.tag-top {
  top: 24px; right: -16px;
  font-size: 0.82rem;
  color: var(--teal);
  letter-spacing: 0.05em;
}

.tag-bottom {
  bottom: 28px; left: -20px;
  animation-delay: -3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag-emoji { font-size: 1.2rem; }
.tag-title { font-family: 'Playfair Display', serif; font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.tag-sub { font-size: 0.75rem; color: var(--text-light); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ══════════════════════════════════════════
   WAVE DIVIDERS
   ══════════════════════════════════════════ */
.wave-top, .wave-section {
  line-height: 0;
  overflow: hidden;
}

/* ══════════════════════════════════════════
   MARQUEE
   ══════════════════════════════════════════ */
.marquee-band {
  background: var(--navy);
  padding: 16px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  padding: 0 40px;
  flex-shrink: 0;
}

.marquee-item span { color: var(--blush-light); margin: 0 16px; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   SHARED
   ══════════════════════════════════════════ */
section { padding: 100px 80px; }

.section-eyebrow {
  font-family: 'EB Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.section-title em { font-style: italic; color: var(--blush); }

.link-arrow {
  font-family: 'EB Garamond', serif;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blush);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
  white-space: nowrap;
}

.link-arrow:hover { gap: 14px; }

/* ══════════════════════════════════════════
   FEATURES + REAL PHOTO
   ══════════════════════════════════════════ */
.features {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.features-text p {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-top: 20px;
  max-width: 480px;
  line-height: 1.85;
}

.features-list { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; gap: 18px; align-items: flex-start; }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.2rem;
  border: 1px solid var(--sand);
}

.feature-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 500;
  color: var(--navy); margin-bottom: 4px;
}

.feature-item p { font-size: 0.9rem; color: var(--text-light); margin: 0; line-height: 1.6; }

.features-visual { position: relative; height: 540px; }

.fv-card {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(44,62,80,0.15);
}

.fv-card-main { width: 70%; right: 0; top: 0; bottom: 0; }
.fv-card-main img { width: 100%; height: 100%; object-fit: cover; }

.fv-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,62,80,0.2) 0%, transparent 50%);
}

.fv-card-accent {
  width: 44%;
  left: 0; bottom: 0;
  height: 54%;
  background: var(--warm-white);
}

.fv-card-inner { padding: 26px 24px; }

.month-pick-label {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 12px;
  font-family: 'EB Garamond', serif;
}

.month-pick-cover { margin-bottom: 14px; }
.month-pick-title { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 500; color: var(--navy); margin-bottom: 4px; line-height: 1.3; }
.month-pick-author { font-size: 0.82rem; color: var(--text-light); font-style: italic; margin-bottom: 8px; }
.month-pick-desc { font-size: 0.78rem; color: var(--text-mid); line-height: 1.55; }
.month-pick-stars { margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.stars { color: var(--gold); font-size: 0.85rem; }
.review-count { font-size: 0.75rem; color: var(--text-light); }

/* ══════════════════════════════════════════
   BOOKS — PHOTO COVERS
   ══════════════════════════════════════════ */
.books { background: var(--warm-white); }

.books-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 52px; flex-wrap: wrap; gap: 16px;
}

.books-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

.book-card { cursor: pointer; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.book-card:hover { transform: translateY(-10px); }

.book-cover {
  width: 100%; aspect-ratio: 2/3;
  border-radius: 16px; margin-bottom: 16px;
  position: relative; overflow: hidden;
  box-shadow: 0 16px 50px rgba(44,62,80,0.16);
}

.book-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,25,20,0.78) 0%, rgba(30,25,20,0.1) 55%, transparent 100%);
}

.book-title-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px;
}

.book-title-over {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; font-weight: 500;
  color: rgba(255,255,255,0.95);
  line-height: 1.3; margin-bottom: 2px;
}

.book-author-over { font-size: 0.78rem; color: rgba(255,255,255,0.7); font-style: italic; }

.book-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--terracotta); color: white;
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px; font-family: 'EB Garamond', serif;
}

.book-genre { font-size: 0.73rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); margin-bottom: 5px; }
.book-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 500; color: var(--navy); line-height: 1.3; margin-bottom: 3px; }
.book-author { font-size: 0.88rem; color: var(--text-light); font-style: italic; }

/* ══════════════════════════════════════════
   QUOTE
   ══════════════════════════════════════════ */
.quote-section {
  background: linear-gradient(135deg, var(--navy) 0%, #3d5a7a 100%);
  text-align: center; position: relative; overflow: hidden;
  padding: 100px 120px;
}

.quote-section::before {
  content: '';
  position: absolute; top: -50%; left: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(168,196,190,0.13) 0%, transparent 70%);
  pointer-events: none;
}

.quote-mark {
  font-family: 'Playfair Display', serif; font-size: 8rem;
  color: rgba(255,255,255,0.07); line-height: 0.5; margin-bottom: 28px;
  display: block; position: relative; z-index: 1;
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.35rem, 2.8vw, 2.3rem);
  font-style: italic; color: rgba(255,255,255,0.92);
  line-height: 1.58; max-width: 800px;
  margin: 0 auto 28px; position: relative; z-index: 1;
}

.quote-attr {
  font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blush-light); position: relative; z-index: 1;
}

/* ══════════════════════════════════════════
   AUTHORS — REAL HEADSHOTS
   ══════════════════════════════════════════ */
.authors { background: var(--ivory); }

.authors-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 52px; flex-wrap: wrap; gap: 16px;
}

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

/* Horizontal scroll strip on larger screens */
.authors-scroll {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 28px;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;
}

.authors-scroll::-webkit-scrollbar { height: 4px; }
.authors-scroll::-webkit-scrollbar-track { background: transparent; }
.authors-scroll::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 2px; }

.authors-scroll .author-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

.author-card {
  background: rgba(255,253,249,0.7);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border-radius: 24px; padding: 32px 28px;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 4px 24px rgba(44,62,80,0.07), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: box-shadow 0.35s, transform 0.35s;
  cursor: pointer;
}

.author-card:hover {
  box-shadow: 0 24px 70px rgba(44,62,80,0.13), inset 0 1px 0 rgba(255,255,255,0.9);
  transform: translateY(-5px);
}

.author-avatar { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 18px; overflow: hidden; }
.author-name { font-family: 'Playfair Display', serif; font-size: 1.18rem; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.author-genre { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.author-bio { font-size: 0.92rem; color: var(--text-mid); line-height: 1.72; margin-bottom: 18px; }

.author-books-count {
  font-size: 0.84rem; color: var(--text-light);
  display: flex; align-items: center; gap: 8px;
}

.author-books-count::before {
  content: ''; display: block; width: 20px; height: 1px;
  background: var(--sand);
}

/* ══════════════════════════════════════════
   JOIN — FULL PHOTO PANEL
   ══════════════════════════════════════════ */
.join-section {
  background: var(--cream);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  padding: 0;
}

.join-visual {
  position: relative; height: 680px; overflow: hidden;
}

.join-visual img { transition: transform 8s ease-out; }
.join-visual img.loaded { transform: scale(1.04); }

.join-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--cream) 100%);
}

.join-text {
  padding: 80px 80px 80px 0;
}

.join-text .section-title { margin-bottom: 20px; }
.join-text p { font-size: 1.05rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 14px; }

.join-perks { list-style: none; margin: 28px 0 36px; display: flex; flex-direction: column; gap: 12px; }
.join-perks li { display: flex; align-items: center; gap: 14px; font-size: 1rem; color: var(--text-mid); }
.perk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blush); flex-shrink: 0; }

.email-form {
  display: flex;
  max-width: 460px; border-radius: 50px; overflow: hidden;
  border: 1.5px solid var(--sand); background: var(--warm-white);
}

.email-form input {
  flex: 1; border: none; background: transparent;
  padding: 15px 22px; font-family: 'EB Garamond', serif;
  font-size: 1rem; color: var(--text-dark); outline: none; min-width: 0;
}

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

.email-form button {
  font-family: 'EB Garamond', serif; font-size: 0.88rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--warm-white); background: var(--terracotta);
  border: none; padding: 15px 26px;
  cursor: pointer; transition: background 0.3s; white-space: nowrap;
}

.email-form button:hover { background: var(--blush); }
.form-note { font-size: 0.8rem; color: var(--text-light); margin-top: 10px; }

/* ══════════════════════════════════════════
   BLOG — REAL PHOTOS
   ══════════════════════════════════════════ */
.blog { background: var(--warm-white); }

.blog-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 52px; flex-wrap: wrap; gap: 16px;
}

.blog-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; }

.blog-card { cursor: pointer; transition: transform 0.32s; }
.blog-card:hover { transform: translateY(-5px); }

.blog-image {
  width: 100%; aspect-ratio: 4/3;
  border-radius: 18px; margin-bottom: 18px;
  overflow: hidden; background: var(--ivory);
}

.blog-image img { transition: transform 0.6s ease; }
.blog-card:hover .blog-image img { transform: scale(1.04); }

.blog-card.featured .blog-image { aspect-ratio: 16/10; }

.blog-cat { font-size: 0.73rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blush); margin-bottom: 8px; }

.blog-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem; font-weight: 500;
  color: var(--navy); line-height: 1.4; margin-bottom: 8px;
}

.blog-card.featured .blog-title { font-size: 1.45rem; }
.blog-meta { font-size: 0.84rem; color: var(--text-light); }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 80px 80px 40px;
}

.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p { font-size: 0.95rem; line-height: 1.75; max-width: 280px; }

.footer-col h5 {
  font-family: 'EB Garamond', serif; font-size: 0.78rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.38); margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: rgba(255,255,255,0.62); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--blush-light); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.84rem; color: rgba(255,255,255,0.33);
  flex-wrap: wrap; gap: 16px;
}

.social-links { display: flex; gap: 14px; }

.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); cursor: pointer;
  text-decoration: none; font-size: 0.88rem; transition: all 0.3s;
}

.social-link:hover { border-color: var(--blush-light); color: var(--blush-light); }

/* ════════════════════════════════════════
   TYPOGRAPHY REFINEMENTS
   ════════════════════════════════════════ */
/* Tighter letter-spacing on section eyebrows */
.section-eyebrow { letter-spacing: 0.3em; }

/* Refined hero headline — tighter at large sizes */
.hero-title { letter-spacing: -0.035em; }

/* Larger, bolder stats */
.stat-num { font-size: 2.2rem; letter-spacing: -0.02em; }

/* Slightly more generous line-height on section titles */
.section-title { line-height: 1.15; }

/* Crisper body text */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  nav { padding: 16px 32px; top: 36px; }
  section { padding: 72px 40px; }
  .hero-content { grid-template-columns: 1fr; padding: 140px 40px 60px; min-height: 100vh; }
  .hero-photo-card { display: none; }
  .hero-photo-overlay {
    background: linear-gradient(
      rgba(250,246,240,0.96) 0%,
      rgba(250,246,240,0.88) 50%,
      rgba(250,246,240,0.70) 100%
    );
  }
  .features { grid-template-columns: 1fr; gap: 40px; padding: 72px 40px; }
  .features-visual { display: none; }
  .books-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .authors-grid { grid-template-columns: repeat(2,1fr); }
  .join-section { grid-template-columns: 1fr; padding: 0; }
  .join-visual { display: none; }
  .join-text { padding: 60px 40px; }
  .blog-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .blog-card.featured { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  footer { padding: 60px 40px 32px; }
  /* Wave dividers scale on tablet */
  .wave-top svg, .wave-section svg { height: 40px; }
}

/* ════════════════════════════════════════
   RESPONSIVE — MOBILE (≤640px)
   ════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Announcement bar */
  .announcement-bar { display: none; }

  /* Nav — hide desktop links, show hamburger */
  nav { top: 0 !important; padding: 14px 20px; }
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
  .nav-hamburger { display: flex !important; }

  /* Sections — reduce padding so no blank gaps */
  section { padding: 48px 20px; }
  .features { padding: 48px 20px; }
  .quote-section { padding: 48px 24px; }
  .blog { padding: 48px 20px; }
  .authors { padding: 48px 20px; }
  .books { padding: 48px 20px; }

  /* Wave dividers — smaller on mobile */
  .wave-top, .wave-section { line-height: 0; }
  .wave-top svg, .wave-section svg { height: 30px; display: block; }

  /* Hero */
  .hero { min-height: auto; }
  .hero-content { padding: 100px 20px 48px; min-height: auto; grid-template-columns: 1fr; }
  .hero-photo-card { display: none; }
  .hero-photo-overlay {
    background: linear-gradient(
      rgba(250,246,240,0.97) 0%,
      rgba(250,246,240,0.90) 60%,
      rgba(250,246,240,0.75) 100%
    );
  }
  .hero-title { font-size: clamp(2.6rem, 10vw, 3.4rem); line-height: 1.08; }
  .hero-subtitle { font-size: 1.1rem; margin-bottom: 16px; }
  .hero-desc { font-size: 1rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .btn-primary, .btn-outline { text-align: center; padding: 16px 24px; width: 100%; }
  .hero-stats { gap: 20px; margin-top: 28px; padding-top: 20px; flex-wrap: wrap; }
  .stat-num { font-size: 1.7rem; }

  /* Books */
  .books-header { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 28px; }
  .books-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .book-title { font-size: 0.92rem; }
  .book-author { font-size: 0.82rem; }

  /* Authors — revert scroll to stacked grid on mobile */
  .authors-header { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 28px; }
  .authors-scroll { display: grid; grid-template-columns: 1fr; gap: 16px; overflow-x: visible; padding-bottom: 0; }
  .authors-scroll .author-card { flex: none; }
  .author-card { padding: 24px 20px; }

  /* Join */
  .join-section { padding: 0; }
  .join-visual { display: none; }
  .join-text { padding: 48px 20px; }
  .email-form { flex-direction: column; border-radius: 16px; max-width: 100%; }
  .email-form input { padding: 16px 20px; border-bottom: 1px solid var(--sand); }
  .email-form button { border-radius: 0 0 14px 14px; padding: 16px 20px; }

  /* Blog */
  .blog-header { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 28px; }
  .blog-grid { grid-template-columns: 1fr; gap: 28px; }
  .blog-card.featured .blog-title { font-size: 1.25rem; }

  /* Quote */
  .quote-mark { font-size: 4.5rem; }
  .quote-text { font-size: 1.25rem; }

  /* Footer */
  footer { padding: 48px 20px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤380px)
   ════════════════════════════════════════ */
@media (max-width: 380px) {
  .hero-title { font-size: 2.2rem; }
  .hero-content { padding: 90px 16px 40px; }
  section { padding: 40px 16px; }
  .features { padding: 40px 16px; }
  .books-grid { grid-template-columns: 1fr; max-width: 260px; margin: 0 auto; }
  .stat-num { font-size: 1.5rem; }
}
