/* The Beatles Archive — Styles
   A Bodhin Industries Production */

:root {
  --bg: #faf8f3;
  --bg-alt: #f2ede4;
  --bg-card: #ffffff;
  --text: #2c2c2c;
  --text-secondary: #5a5a5a;
  --text-muted: #8a8580;
  --heading: #1a1a2e;
  --accent: #8b6914;
  --accent-hover: #a67c1a;
  --accent-warm: #5c3d1e;
  --link: #5c3d1e;
  --link-hover: #8b4513;
  --border: #ddd5c3;
  --border-light: #ebe6db;
  --nav-bg: #1a1a2e;
  --nav-text: #e8e0d4;
  --hero-bg: #1a1a2e;
  --footer-bg: #1a1a2e;
  --footer-text: #b0a898;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 14px;
  --serif: 'Playfair Display', Georgia, 'Palatino Linotype', 'Book Antiqua', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --body-font: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  --max-content: 820px;
  --max-wide: 1240px;
  --transition: 0.25s ease;
}

[data-theme="dark"] {
  --bg: #121215;
  --bg-alt: #1a1a1f;
  --bg-card: #1e1e24;
  --text: #d5d0ca;
  --text-secondary: #a8a4a0;
  --text-muted: #6e6a65;
  --heading: #e8e0d4;
  --accent: #d4a534;
  --accent-hover: #e8be55;
  --accent-warm: #c9a574;
  --link: #d4a574;
  --link-hover: #e8be88;
  --border: #2e2e35;
  --border-light: #252530;
  --nav-bg: #0d0d12;
  --hero-bg: #0d0d12;
  --footer-bg: #0d0d12;
  --footer-text: #6e6a65;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-content); margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--link-hover); }

img { max-width: 100%; height: auto; }

/* ─── HEADER ── */
.site-header {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #e8e0d4;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.2em;
  white-space: nowrap;
}
.site-logo:hover { color: var(--accent); }
.logo-note { font-size: 1.1em; }

.main-nav {
  display: flex;
  gap: 0.3rem;
}
.main-nav a {
  color: #b0a898;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}
.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.dark-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: #b0a898;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition);
}
.dark-toggle:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #b0a898;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ─── HERO ── */
.hero {
  background: var(--hero-bg);
  color: #e8e0d4;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  border-bottom: 3px solid var(--accent);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.hero-subtitle {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.hero-text {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #b0a898;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ─── SECTIONS ── */
.section { padding: 4rem 0; }
.section + .section { border-top: 1px solid var(--border-light); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--heading);
  margin-bottom: 0.5rem;
}
.section-lead {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}
.section-cta { text-align: center; margin-top: 2rem; }

/* ─── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.archive-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.archive-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--text);
}
.card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.archive-card:hover .card-img img { transform: scale(1.05); }
.card-placeholder { font-size: 3rem; color: var(--text-muted); }
.card-body { padding: 1rem 1.2rem; }
.card-body h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--heading);
}

/* ─── EXPLORE GRID ── */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.explore-card {
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  text-align: center;
}
.explore-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--text); }
.explore-icon { font-size: 2.5rem; display: block; margin-bottom: 0.8rem; }
.explore-card h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--heading); margin-bottom: 0.3rem; }
.explore-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* ─── STATS ── */
.stats-section { text-align: center; padding: 3rem 0; }
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label { font-family: var(--sans); font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ─── FEATURED IMAGES ── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-thumb:hover img { transform: scale(1.05); }
.thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 2rem 0.8rem 0.6rem;
  font-family: var(--sans);
  font-size: 0.85rem;
}

/* ─── PAGE CONTENT ── */
.page-content { padding-top: 2rem; padding-bottom: 4rem; }
.page-header { margin-bottom: 2.5rem; }
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--heading);
  margin-bottom: 0.5rem;
}
.lead { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7; }

/* ─── PROSE / ARTICLE ── */
.prose h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--heading);
  margin: 2.5rem 0 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border-light);
}
.prose h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--heading);
  margin: 1.8rem 0 0.5rem;
}
.prose p { margin-bottom: 1rem; text-align: justify; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.5rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { border-bottom: 1px solid var(--accent); }
.prose a:hover { border-color: var(--link-hover); }
.prose strong { color: var(--heading); }

/* ─── BREADCRUMB ── */
.breadcrumb {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--link); }
.bc-sep { margin: 0 0.3rem; }
.bc-current { color: var(--text-secondary); }

/* ─── CHAPTER LAYOUT ── */
.chapter-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
  align-items: start;
}
.chapter-content { min-width: 0; }
.chapter-content h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--heading);
  margin-bottom: 0.3rem;
}
.chapter-meta {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.chapter-body { margin-top: 1rem; }
.chapter-body h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--heading);
  margin: 2.5rem 0 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border-light);
}
.chapter-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--heading);
  margin: 1.5rem 0 0.4rem;
}
.chapter-body p { margin-bottom: 0.8rem; line-height: 1.75; }

/* ─── CHAPTER SIDEBAR ── */
.chapter-sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.chapter-toc, .sidebar-nav {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.chapter-toc h4, .sidebar-nav h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.chapter-toc ul, .sidebar-nav ul { list-style: none; }
.chapter-toc li {
  padding: 0.2rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.sidebar-nav li { margin-bottom: 1px; }
.sidebar-nav li a {
  display: block;
  padding: 5px 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background var(--transition);
}
.sidebar-nav li a:hover { background: rgba(139,105,20,0.08); }
.sidebar-nav li.active a { background: var(--accent); color: #fff; }

/* ─── CHAPTER NAV ── */
.chapter-nav-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ─── RELATED ── */
.related-chapters { margin-top: 2.5rem; }
.related-chapters h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--heading); margin-bottom: 1rem; }
.related-grid { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.related-item {
  padding: 0.5rem 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.related-item:hover { border-color: var(--accent); color: var(--accent); }

/* ─── IMAGES / FIGURES ── */
.book-figure {
  margin: 1.5rem 0;
  text-align: center;
}
.book-figure img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--transition);
}
.book-figure img:hover { box-shadow: var(--shadow-md); }

/* ─── IMAGE GRID ── */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0;
}
.image-grid-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--transition), transform 0.3s ease;
}
.image-grid-item img:hover { box-shadow: var(--shadow-md); transform: scale(1.03); }

/* ─── SONG TITLES ── */
.song-title {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 2rem 0 0.3rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ─── SESSION DATES ── */
.session-date {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-warm);
  margin: 1.5rem 0 0.5rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px dashed var(--border);
}
[data-theme="dark"] .session-date { color: var(--accent); }

/* ─── RECORDING ENTRIES ── */
.recording-list {
  margin: 0.3rem 0 1.2rem;
  padding: 0;
}
.rec-entry {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.25rem 0.4rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.rec-entry:last-child { border-bottom: none; }
.rec-badge {
  display: inline-block;
  min-width: 2em;
  text-align: center;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.6;
}
.rec-stereo { background: #2a6e3f; color: #fff; }
.rec-mono { background: #5a3d8a; color: #fff; }
.rec-ms { background: #6b5b1e; color: #fff; }
[data-theme="dark"] .rec-stereo { background: #3a8e5f; }
[data-theme="dark"] .rec-mono { background: #7a5daa; }
[data-theme="dark"] .rec-ms { background: #8b7b3e; }
.rec-detail { word-break: break-word; }

/* ─── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  display: block;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  padding: 1.5rem 0.6rem 0.4rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-label { opacity: 1; }

/* ─── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* ─── TOC / CHAPTERS INDEX ── */
.toc-list { display: flex; flex-direction: column; gap: 1rem; }
.toc-card {
  display: flex;
  gap: 1.2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}
.toc-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); color: var(--text); }
.toc-card-img { width: 140px; min-height: 100px; flex-shrink: 0; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.toc-card-img img { width: 100%; height: 100%; object-fit: cover; }
.toc-placeholder { font-size: 2rem; color: var(--text-muted); }
.toc-card-body { padding: 1rem 1.2rem 1rem 0; }
.toc-card-body h3 { font-family: var(--serif); font-size: 1.1rem; color: var(--heading); margin-bottom: 0.2rem; }
.toc-meta { font-family: var(--sans); font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.toc-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }

/* ─── TIMELINE ── */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.tl-era {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 2rem 0 1rem;
  padding: 0.3rem 0;
}
.tl-item {
  position: relative;
  padding-bottom: 2rem;
}
.tl-marker {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 30px;
  display: flex;
  justify-content: center;
}
.tl-year {
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.tl-content h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--heading);
  margin-bottom: 0.3rem;
}
.tl-content p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── SEARCH ── */
.search-container { max-width: 600px; }
.search-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1.05rem;
  font-family: var(--body-font);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
}
.search-input:focus { outline: none; border-color: var(--accent); }
.search-input-sm {
  width: 100%;
  max-width: 350px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-family: var(--body-font);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  margin-bottom: 1rem;
}
.search-input-sm:focus { outline: none; border-color: var(--accent); }
.search-inline { margin-bottom: 0.5rem; }
.search-results { margin-top: 0.5rem; }
.result-item {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-light);
}
.result-item a {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}
.result-item .snippet { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.2rem; }
.result-item mark { background: #f0d060; color: #333; padding: 0 2px; border-radius: 2px; }
[data-theme="dark"] .result-item mark { background: #8b6914; color: #fff; }

/* ─── FOOTER ── */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 0;
  margin-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #e8e0d4;
  margin-bottom: 0.6rem;
}
.footer-tagline { font-size: 0.88rem; line-height: 1.6; }
.footer-nav h4, .footer-info h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #e8e0d4;
  margin-bottom: 0.8rem;
}
.footer-nav a {
  display: block;
  color: var(--footer-text);
  font-size: 0.9rem;
  padding: 0.2rem 0;
  text-decoration: none;
}
.footer-nav a:hover { color: #e8e0d4; }
.footer-info p { font-size: 0.85rem; margin-bottom: 0.3rem; }
.footer-bottom {
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.82rem;
  font-family: var(--sans);
}
.footer-bottom strong { color: var(--accent); }

/* ─── MOBILE ── */
@media (max-width: 1024px) {
  .chapter-layout { grid-template-columns: 1fr; }
  .chapter-sidebar { display: none; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 99;
  }
  .main-nav.open a { padding: 0.8rem 1rem; }
  .mobile-menu-btn { display: flex; }

  .hero { padding: 3rem 1rem 2.5rem; }
  .hero-title { font-size: 2rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .card-grid { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .toc-card { flex-direction: column; }
  .toc-card-img { width: 100%; height: 120px; }
  .toc-card-body { padding: 0.8rem; }
  .chapter-nav-bottom { flex-direction: column; gap: 0.8rem; }
  .chapter-nav-bottom .btn { text-align: center; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .image-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .explore-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .image-grid { grid-template-columns: 1fr; }
}
