/* ============================================
   DESIGN SYSTEM - Beatrice Okyere-Manu
   Extracted from design-preview.html
   ============================================ */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --bg:            #FAF8F4;
  --bg-white:      #FFFFFF;
  --surface:       #F0EBE3;
  --text-primary:  #1C1410;
  --text-secondary:#6B5E54;
  --accent:        #F64900;
  --accent-hover:  #D43E00;
  --gold:          #B8943D;
  --dark-bg:       #1E1714;
  --dark-surface:  #2a2520;
  --dark-text:     #FAF8F4;
  --shadow-sm:     0 2px 20px rgba(28,20,16,0.06);
  --shadow-md:     0 4px 24px rgba(28,20,16,0.08), 0 8px 32px rgba(28,20,16,0.04);
  --shadow-lg:     0 8px 40px rgba(28,20,16,0.10), 0 16px 56px rgba(28,20,16,0.06);
  --shadow-glow:   0 4px 16px rgba(246,73,0,0.25);
  --radius:        8px;
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Source Sans 3', 'Source Sans Pro', sans-serif;

  /* Easing curves - each with a purpose */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);        /* Exiting: fast start, gentle land */
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);       /* Symmetrical: smooth both ends */
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);    /* Overshoot: playful bounce */
  --ease-smooth:   cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Default: natural motion */

  /* Duration scale */
  --dur-fast:      150ms;
  --dur-normal:    250ms;
  --dur-slow:      400ms;
  --dur-reveal:    600ms;
}

/* Kente stripe band pattern */
:root {
  --pattern-kente-stripe: url("data:image/svg+xml,%3Csvg width='80' height='20' viewBox='0 0 80 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Crect x='0' y='0' width='20' height='5' fill='%23F64900' opacity='0.6'/%3E%3Crect x='20' y='0' width='20' height='5' fill='%23B8943D' opacity='0.6'/%3E%3Crect x='40' y='0' width='20' height='5' fill='%23F64900' opacity='0.4'/%3E%3Crect x='60' y='0' width='20' height='5' fill='%23B8943D' opacity='0.4'/%3E%3Crect x='0' y='7' width='10' height='3' fill='%23F64900' opacity='0.3'/%3E%3Crect x='10' y='7' width='10' height='3' fill='%23B8943D' opacity='0.5'/%3E%3Crect x='20' y='7' width='10' height='3' fill='%23F64900' opacity='0.5'/%3E%3Crect x='30' y='7' width='10' height='3' fill='%23B8943D' opacity='0.3'/%3E%3Crect x='40' y='7' width='10' height='3' fill='%23F64900' opacity='0.3'/%3E%3Crect x='50' y='7' width='10' height='3' fill='%23B8943D' opacity='0.5'/%3E%3Crect x='60' y='7' width='10' height='3' fill='%23F64900' opacity='0.5'/%3E%3Crect x='70' y='7' width='10' height='3' fill='%23B8943D' opacity='0.3'/%3E%3Crect x='0' y='12' width='16' height='4' fill='%23B8943D' opacity='0.4'/%3E%3Crect x='16' y='12' width='16' height='4' fill='%23F64900' opacity='0.5'/%3E%3Crect x='32' y='12' width='16' height='4' fill='%23B8943D' opacity='0.5'/%3E%3Crect x='48' y='12' width='16' height='4' fill='%23F64900' opacity='0.4'/%3E%3Crect x='64' y='12' width='16' height='4' fill='%23B8943D' opacity='0.4'/%3E%3Crect x='0' y='18' width='80' height='1' fill='%23F64900' opacity='0.2'/%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================
   ACCESSIBILITY: Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================
   NAVBAR - with scroll state transition
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(250,248,244,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  border-bottom: 1px solid rgba(28,20,16,0);
  transition:
    background var(--dur-slow) var(--ease-smooth),
    backdrop-filter var(--dur-slow) var(--ease-smooth),
    border-color var(--dur-slow) var(--ease-smooth),
    box-shadow var(--dur-slow) var(--ease-smooth);
}

.navbar.scrolled {
  background: rgba(250,248,244,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(28,20,16,0.06);
  box-shadow: 0 1px 12px rgba(28,20,16,0.04);
}

.navbar-wordmark {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity var(--dur-normal) var(--ease-smooth);
}

.navbar-wordmark:hover { opacity: 0.7; }

.navbar-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navbar-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  transition: color var(--dur-normal) var(--ease-smooth);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--dur-slow) var(--ease-out);
}

.navbar-link:hover,
.navbar-link.active { color: var(--text-primary); }

.navbar-link.active::after,
.navbar-link:hover::after { width: 100%; }

.navbar-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition:
    background var(--dur-normal) var(--ease-smooth),
    transform var(--dur-normal) var(--ease-spring),
    box-shadow var(--dur-normal) var(--ease-smooth);
}

.navbar-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

.navbar-cta:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

/* ============================================
   LAYOUT
   ============================================ */
.page-spacer { height: 72px; }

.section {
  padding: 120px 48px;
  max-width: 1296px;
  margin: 0 auto;
}

.section--full {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section--surface { background: var(--surface); }
.section--dark { background: var(--dark-bg); color: var(--dark-text); }

/* Kente stripe band divider */
.kente-stripe-band {
  width: 100%;
  height: 8px;
  background-image: var(--pattern-kente-stripe);
  background-repeat: repeat-x;
  background-size: 80px 20px;
  opacity: 0.6;
}

/* ============================================
   SCROLL REVEAL SYSTEM
   Elements start hidden, animate in on scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
}

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

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 400ms; }

/* Slide from left variant */
.reveal--left {
  transform: translateX(-32px);
}
.reveal--left.visible {
  transform: translateX(0);
}

/* Scale up variant */
.reveal--scale {
  transform: scale(0.95);
}
.reveal--scale.visible {
  transform: scale(1);
}

/* ============================================
   HERO - orchestrated load sequence
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 48px;
  max-width: 1296px;
  margin: 0 auto;
  overflow: visible;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

/* Hero photo - sepia fade treatment */
.hero-photo {
  position: absolute;
  right: -48px; /* bleeds past container padding */
  top: 0;
  width: 55vw;
  height: 100%;
  z-index: 1;
  opacity: 0;
  animation: heroPhotoReveal 1.2s var(--ease-out) 0.3s forwards;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) sepia(35%) brightness(1.05) contrast(0.95);
  will-change: transform;
  /* Gradient mask: fades left, right, and bottom edges into background */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 12%, black 35%, black 75%, transparent 100%),
    linear-gradient(to top, transparent 0%, black 15%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 12%, black 35%, black 75%, transparent 100%),
    linear-gradient(to top, transparent 0%, black 15%);
  mask-composite: intersect;
}

@keyframes heroPhotoReveal {
  to { opacity: 1; }
}

.hero-accent-line {
  width: 0;
  height: 4px;
  background: var(--accent);
  margin-bottom: 32px;
  border-radius: 2px;
  animation: accentLineGrow 0.8s var(--ease-out) 0.2s forwards;
}

@keyframes accentLineGrow {
  to { width: 64px; }
}

.hero-eyebrow {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeIn 0.6s var(--ease-out) 0.4s forwards;
}

.hero-title {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.7s var(--ease-out) 0.55s forwards;
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.6s var(--ease-out) 0.75s forwards;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeIn 0.6s var(--ease-out) 0.95s forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.section--dark .eyebrow { color: var(--gold); }

h1, .h1 {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--dark-text); }

.text-body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.text-large {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============================================
   STAT COUNTERS - animated on scroll
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  text-align: center;
  padding: 64px 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.section--dark .stat-number { color: var(--accent); }

.stat-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 8px;
}

.section--dark .stat-label { color: rgba(250,248,244,0.6); }

/* ============================================
   BUTTONS - rich hover with glow + scale
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  position: relative;
  transition:
    background var(--dur-normal) var(--ease-smooth),
    color var(--dur-normal) var(--ease-smooth),
    transform var(--dur-normal) var(--ease-spring),
    box-shadow var(--dur-normal) var(--ease-smooth),
    border-color var(--dur-normal) var(--ease-smooth);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(246,73,0,0.15);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--text-primary);
}

.btn--secondary:hover {
  background: var(--text-primary);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 16px rgba(28,20,16,0.2);
}

.btn--secondary:active {
  transform: translateY(0) scale(0.98);
}

/* Secondary on dark: white outline + text at rest, orange fill on hover */
.section--dark .btn--secondary,
.cta-band .btn--secondary {
  color: #fff;
  border-color: #fff;
}

.section--dark .btn--secondary:hover,
.cta-band .btn--secondary:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: 0;
  height: auto;
}

.btn--ghost::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--dur-slow) var(--ease-out);
}

.btn--ghost:hover::after { width: 100%; }

.btn--on-dark {
  background: var(--accent);
  color: #fff;
}

.btn--on-dark:hover {
  background: #fff;
  color: var(--text-primary);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 24px rgba(255,255,255,0.15);
}

.btn--on-dark:active {
  transform: translateY(0) scale(0.98);
}

.btn-arrow {
  display: inline-block;
  margin-left: 8px;
  transition: transform var(--dur-normal) var(--ease-spring);
}

.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================
   CARDS - multi-layer shadow hover depth
   ============================================ */
.card {
 background: var(--bg-white);
 border-radius: var(--radius);
 padding: 32px;
 box-shadow: var(--shadow-sm);
 transition:
   box-shadow var(--dur-slow) var(--ease-smooth),
   transform var(--dur-slow) var(--ease-out);
 position: relative;
 overflow: hidden;
 display: flex;
 flex-direction: column;
 align-items: flex-start;
}

.card .card-spacer { flex: 1; }

.card:has(.card-link-overlay) { cursor: pointer; }

.card > a.card-link-overlay {
 position: absolute;
 inset: 0;
 z-index: 1;
}

.card .btn { position: relative; z-index: 2; }

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card--accent {
  border-left: none;
  padding-left: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 200px;
  gap: 0;
}

.card--accent .card-pattern {
  flex: 0 0 140px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -32px 24px -32px -32px;
  opacity: 0.15;
  transition: opacity var(--dur-slow) var(--ease-smooth);
}

.card--accent:hover .card-pattern {
  opacity: 0.28;
}

.card--accent .card-pattern img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: right center;
}

.card--accent .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.card--accent .card-content .card-spacer { flex: 1; }

/* Bold variant */
.card--accent-bold .card-pattern {
  opacity: 0.3;
}

.card--accent-bold:hover .card-pattern {
  opacity: 0.45;
}

/* Scattered variant - circles at multiple corners (business card style) */
.card--scattered {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  min-height: 220px;
}

.card--scattered h3 { color: #fff; }
.card--scattered .text-body { color: rgba(255,255,255,0.75); }

.card--scattered .card-pattern-corner {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
  transition: opacity var(--dur-slow) var(--ease-smooth);
}

.card--scattered:hover .card-pattern-corner {
  opacity: 0.25;
}

.card--scattered .card-pattern-corner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card--scattered .card-pattern-corner--tl {
  top: -20px;
  left: -60px;
  width: 240px;
  height: 120px;
  transform: rotate(180deg);
}

.card--scattered .card-pattern-corner--br {
  bottom: -20px;
  right: -60px;
  width: 260px;
  height: 130px;
}

.card--scattered .card-scattered-content {
  position: relative;
  z-index: 1;
}

/* Dark card accent uses white SVG */
.card--accent.card--dark .card-pattern {
  opacity: 0.12;
}

.card--accent.card--dark:hover .card-pattern {
  opacity: 0.22;
}

.card--dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}

.card--dark .text-body { color: rgba(250,248,244,0.6); }

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

/* ============================================
   FEATURED BOOK
   ============================================ */
.featured-book {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.book-cover-placeholder {
 aspect-ratio: 3/4;
 background: linear-gradient(135deg, var(--dark-bg) 0%, #2a2018 100%);
 border-radius: var(--radius);
 box-shadow: var(--shadow-lg);
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 color: var(--dark-text);
 padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-smooth);
}

.book-cover-placeholder:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 20px 60px rgba(28,20,16,0.2), 0 8px 24px rgba(28,20,16,0.12);
}

.book-cover-placeholder .eyebrow { color: var(--gold); position: relative; }
.book-cover-placeholder h2 { color: var(--dark-text); font-size: 32px; position: relative; }
.book-cover-placeholder .text-body { color: rgba(250,248,244,0.5); font-size: 14px; position: relative; margin-top: 8px; }

.book-details .eyebrow { margin-bottom: 12px; }
.book-details h2 { margin-bottom: 8px; }
.book-details .text-body { margin-bottom: 32px; }

.book-endorsement {
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin-top: 40px;
  transition: border-color var(--dur-normal) var(--ease-smooth);
}

.book-endorsement:hover {
  border-left-color: var(--accent);
}

.book-endorsement blockquote {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.book-endorsement cite {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: normal;
  color: var(--text-secondary);
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  position: relative;
  padding: 80px 48px;
  text-align: center;
  overflow: hidden;
}

.cta-band h2 { color: var(--dark-text); margin-bottom: 16px; }
.cta-band .text-large { color: rgba(250,248,244,0.6); margin-bottom: 40px; }

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.newsletter-input {
  flex: 1;
  height: 48px;
  padding: 0 20px;
  border: 1.5px solid rgba(28,20,16,0.12);
  border-radius: var(--radius);
  background: var(--bg-white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  transition:
    border-color var(--dur-normal) var(--ease-smooth),
    box-shadow var(--dur-normal) var(--ease-smooth);
}

.newsletter-input::placeholder { color: var(--text-secondary); opacity: 0.6; }

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(246,73,0,0.1);
}

.newsletter-privacy {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  padding: 64px 48px 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 12px;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-smooth);
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(28,20,16,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p, .footer-bottom a {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-bottom a {
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-smooth);
}

.footer-bottom a:hover { color: var(--accent); }

/* ============================================
   BOOK SHOWCASE - cover + details + shelf
   ============================================ */
.book-showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 0;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 480px;
  margin-top: 48px;
}

/* Main cover display */
.book-showcase-cover {
  position: relative;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}

.book-showcase-cover img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(28,20,16,0.15), 0 2px 8px rgba(28,20,16,0.1);
  transition: transform var(--dur-slow) var(--ease-out);
}

.book-showcase-cover:hover img {
  transform: scale(1.03);
}

/* Book details panel */
.book-showcase-details {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-showcase-year {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.book-showcase-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 8px;
}

.book-showcase-subtitle {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 24px;
}

.book-showcase-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.book-showcase-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: gap var(--dur-normal) var(--ease-spring);
}

.book-showcase-cta:hover {
  gap: 12px;
}

/* Bookshelf selector strip */
.book-shelf {
  width: 100px;
  background: var(--surface);
  border-left: 1px solid rgba(28,20,16,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  gap: 16px;
}

.book-shelf-item {
  width: 72px;
  height: 108px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition:
    opacity var(--dur-normal) var(--ease-smooth),
    border-color var(--dur-normal) var(--ease-smooth),
    transform var(--dur-normal) var(--ease-spring);
}

.book-shelf-item:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.book-shelf-item.active {
  opacity: 1;
  border-color: var(--accent);
}

.book-shelf-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Crossfade for book switching */
.book-showcase-slide {
  display: none;
}

.book-showcase-slide.active {
  display: contents;
}

/* Mobile: shelf becomes horizontal strip on top */
@media (max-width: 935px) {
  .book-showcase {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: auto;
  }

  .book-shelf {
    width: 100%;
    flex-direction: row;
    border-left: none;
    border-bottom: 1px solid rgba(28,20,16,0.06);
    padding: 16px 24px;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    order: -1;
  }

  .book-shelf-item {
    width: 56px;
    height: 84px;
    flex-shrink: 0;
  }

  .book-showcase-cover {
    padding: 32px;
  }

  .book-showcase-cover img {
    max-height: 300px;
  }

  .book-showcase-details {
    padding: 32px 24px;
  }

  .book-showcase-title {
    font-size: 26px;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  h1, .h1 { font-size: 48px; }
  h2, .h2 { font-size: 32px; }
  .stat-number { font-size: 48px; }
  .navbar-links { gap: 20px; }
  .navbar-link { font-size: 12px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); } /* stays 2-col on tablet */
  .featured-book { grid-template-columns: 1fr; gap: 48px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   MOBILE NAV - full-screen overlay
   ============================================ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1002;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  border-radius: 2px;
  transition:
    transform var(--dur-normal) var(--ease-out),
    opacity var(--dur-fast) var(--ease-smooth);
  transform-origin: center;
}

/* Hamburger -> X animation */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: var(--dark-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-slow) var(--ease-out),
    visibility var(--dur-slow) var(--ease-out);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--dark-text);
  text-decoration: none;
  padding: 12px 0;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out),
    color var(--dur-normal) var(--ease-smooth);
}

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

/* Staggered cascade */
.mobile-nav-overlay.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(7) { transition-delay: 0.4s; }

.mobile-nav-link:hover {
  color: var(--accent);
}

.mobile-nav-link.active {
  color: var(--accent);
}

.mobile-nav-cta {
  margin-top: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
}

.mobile-nav-overlay.open .mobile-nav-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

/* Body scroll lock + raise navbar above overlay */
body.nav-open {
  overflow: hidden;
}
body.nav-open .navbar {
  z-index: 1002;
  background: var(--dark-bg);
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.nav-open .navbar-wordmark {
  color: #fff;
}
body.nav-open .mobile-menu-toggle span {
  background: #fff;
}

@media (max-width: 935px) {
  .navbar { padding: 0 24px; }
  .navbar-links { display: none; }
  .navbar-cta { display: none; }
  .mobile-menu-toggle { display: block; }
  .hero { min-height: auto; padding: 80px 24px; flex-direction: column-reverse; }
  .hero-content { max-width: 100%; }
  .hero-photo {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    height: 630px;
    margin-bottom: 32px;
    opacity: 1;
    animation: none;
  }
  .hero-photo img {
    -webkit-mask-image:
      linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image:
      linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
}

/* ============================================
   PUBLICATION FILTERS
   ============================================ */
.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-filter {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: transparent;
  border: 1.5px solid rgba(28,20,16,0.12);
  border-radius: 100px;
  cursor: pointer;
  transition:
    background var(--dur-normal) var(--ease-smooth),
    color var(--dur-normal) var(--ease-smooth),
    border-color var(--dur-normal) var(--ease-smooth),
    transform var(--dur-normal) var(--ease-spring);
}

.pub-filter:hover {
  color: var(--text-primary);
  border-color: rgba(28,20,16,0.25);
  transform: translateY(-1px);
}

.pub-filter.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

.pub-filter.active:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Filtered-out items */
.pub-item.filtered-out {
  display: none !important;
}

/* Empty section when all items filtered */
.pub-section.section-empty .eyebrow,
.pub-section.section-empty h2 {
  opacity: 0.3;
}

/* ============================================
   BLOG GRID & CARDS
   ============================================ */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition:
    box-shadow var(--dur-slow) var(--ease-smooth),
    transform var(--dur-slow) var(--ease-out);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-card__image {
  width: 200px;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  flex-shrink: 0;
  transition: transform var(--dur-slow) var(--ease-out);
}

.blog-card:hover .blog-card__image {
  transform: scale(1.03);
}

.blog-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card__category {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.blog-card__excerpt {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__date {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: auto;
}

@media (max-width: 768px) {
  .blog-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .blog-card__image {
    width: 100%;
    height: 200px;
  }
  
  .blog-card__content {
    padding: 0;
  }
}

/* ============================================
   PROSE / POST BODY
   Typography for markdown content
   ============================================ */
.post-body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-primary);
}

.post-body p {
  margin-bottom: 1.5em;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.post-body h1 { font-size: 36px; font-weight: 700; }
.post-body h2 { font-size: 28px; font-weight: 600; }
.post-body h3 { font-size: 22px; font-weight: 600; }
.post-body h4 { font-size: 18px; font-weight: 600; }

.post-body h1:first-child,
.post-body h2:first-child,
.post-body h3:first-child {
  margin-top: 0;
}

.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur-fast) var(--ease-smooth);
}

.post-body a:hover {
  color: var(--accent-hover);
}

.post-body strong {
  font-weight: 600;
  color: var(--text-primary);
}

.post-body em {
  font-style: italic;
}

.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--text-secondary);
}

.post-body blockquote p:last-child {
  margin-bottom: 0;
}

.post-body ul,
.post-body ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

.post-body li {
  margin-bottom: 0.5em;
}

.post-body ul li {
  list-style-type: disc;
}

.post-body ol li {
  list-style-type: decimal;
}

.post-body li > ul,
.post-body li > ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 2em 0;
  box-shadow: var(--shadow-sm);
}

.post-body figure {
  margin: 2em 0;
}

.post-body figure img {
  margin: 0;
}

.post-body figcaption {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.75em;
  font-style: italic;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--surface);
  margin: 3em 0;
}

.post-body code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.post-body pre {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: 1.5em;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5em 0;
}

.post-body pre code {
  background: none;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 15px;
}

.post-body th,
.post-body td {
  padding: 0.75em 1em;
  text-align: left;
  border-bottom: 1px solid var(--surface);
}

.post-body th {
  font-weight: 600;
  background: var(--surface);
}

.post-body tr:hover td {
  background: var(--surface);
}

/* Poem styling - preserve line breaks */
.post-body p br {
  display: block;
  content: "";
  margin-bottom: 0.5em;
}

/* ============================================
   FORMS
   ============================================ */
.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-white);
  border: 1.5px solid rgba(28,20,16,0.15);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  transition:
    border-color var(--dur-normal) var(--ease-smooth),
    box-shadow var(--dur-normal) var(--ease-smooth);
}

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

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(246,73,0,0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B5E54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-feedback {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
}

.form-feedback--success {
  background: rgba(34, 134, 58, 0.08);
  border: 1.5px solid rgba(34, 134, 58, 0.25);
  color: #1a6e30;
}

.form-feedback--error {
  background: rgba(246, 73, 0, 0.07);
  border: 1.5px solid rgba(246, 73, 0, 0.25);
  color: var(--accent-hover);
}

@media (max-width: 768px) {
  .section { padding: 64px 24px; }
  h1, .h1 { font-size: 40px; }
  h2, .h2 { font-size: 28px; }
  .stat-number { font-size: 40px; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-photo { height: 570px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .newsletter-form { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}