/* ==========================================================================
   Seeing Logic — A Visual, Interactive Course in Logic (3B1B-inspired)
   Shared Design System & Layout Styles
   ========================================================================== */

:root {
  /* Core Canvas Palette (3Blue1Brown inspired) */
  --bg-deep: #090c14;
  --bg-main: #0f1422;
  --bg-card: #151c2e;
  --bg-elevated: #1c253b;
  --bg-canvas: #0b0f1a;

  /* Borders & Lines */
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);

  /* Text */
  --text-primary: #eef2f8;
  --text-secondary: #a8b5c9;
  --text-muted: #6e7d96;

  /* Semantic Logic Colors */
  --cyan: #58c4dd;
  --cyan-dim: rgba(88, 196, 221, 0.16);
  --cyan-glow: rgba(88, 196, 221, 0.45);

  --gold: #f4c542;
  --gold-dim: rgba(244, 197, 66, 0.15);
  --gold-glow: rgba(244, 197, 66, 0.4);

  --coral: #fc6255;
  --coral-dim: rgba(252, 98, 85, 0.16);
  --coral-glow: rgba(252, 98, 85, 0.45);

  --emerald: #83c167;
  --emerald-dim: rgba(131, 193, 103, 0.16);
  --emerald-glow: rgba(131, 193, 103, 0.45);

  --purple: #a78bfa;
  --purple-dim: rgba(167, 139, 250, 0.16);
  --purple-glow: rgba(167, 139, 250, 0.42);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Sizing */
  --max-width: 860px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --header-h: 62px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(88, 196, 221, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(167, 139, 250, 0.05), transparent 55%),
    var(--bg-deep);
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: #8be0f5;
}

/* ==========================================================================
   Top Navigation Bar
   ========================================================================== */

.book-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(9, 12, 20, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #090c14;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(88, 196, 221, 0.35);
}

.header-chapter-pill {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 999px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toc-toggle-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 7px 13px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s ease;
}

.toc-toggle-btn:hover {
  border-color: var(--cyan);
  background: var(--bg-elevated);
}

/* Reading Progress Bar */
.reading-progress-track {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  z-index: 99;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  box-shadow: 0 0 8px var(--cyan-glow);
  transition: width 0.08s linear;
}

/* ==========================================================================
   Slide-Out Chapter Drawer (TOC)
   ========================================================================== */

.toc-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.65);
  backdrop-filter: blur(4px);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.toc-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.toc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 90vw);
  height: 100vh;
  background: var(--bg-main);
  border-left: 1px solid var(--border-strong);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}

.toc-drawer.open {
  transform: translateX(0);
}

.toc-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.toc-drawer-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.toc-close-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
}

.toc-close-btn:hover {
  color: var(--text-primary);
  border-color: var(--cyan);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.16s ease;
}

.toc-item a:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.toc-item a.active {
  background: var(--cyan-dim);
  border-color: rgba(88, 196, 221, 0.35);
  color: var(--text-primary);
}

.toc-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  width: 24px;
  flex-shrink: 0;
}

.toc-title {
  font-size: 0.9rem;
  line-height: 1.3;
  flex: 1;
}

.toc-check {
  font-size: 0.8rem;
  color: var(--emerald);
  opacity: 0;
}

.toc-item a.completed .toc-check {
  opacity: 1;
}

/* ==========================================================================
   Main Article Layout & Book Typography
   ========================================================================== */

.chapter-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.chapter-hero {
  margin-bottom: 44px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.chapter-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.chapter-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.chapter-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 680px;
  line-height: 1.6;
}

h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 52px 0 16px;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.18rem;
  font-weight: 600;
  margin: 30px 0 12px;
  color: var(--text-primary);
}

p {
  margin: 0 0 20px;
  color: #d6dfee;
}

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

.hl-cyan { color: var(--cyan); font-weight: 600; }
.hl-gold { color: var(--gold); font-weight: 600; }
.hl-coral { color: var(--coral); font-weight: 600; }
.hl-emerald { color: var(--emerald); font-weight: 600; }
.hl-purple { color: var(--purple); font-weight: 600; }

/* ==========================================================================
   Callouts, Principle Cards, & Intuition Boxes
   ========================================================================== */

.insight-box {
  background: linear-gradient(135deg, rgba(244, 197, 66, 0.08), rgba(21, 28, 46, 0.9));
  border: 1px solid rgba(244, 197, 66, 0.28);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
}

.insight-box .insight-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}

.insight-box p:last-child {
  margin-bottom: 0;
}

.principle-box {
  background: linear-gradient(135deg, rgba(88, 196, 221, 0.08), rgba(21, 28, 46, 0.9));
  border: 1px solid rgba(88, 196, 221, 0.28);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
}

.principle-box .principle-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 8px;
  display: block;
}

.principle-box p:last-child {
  margin-bottom: 0;
}

.warning-box {
  background: linear-gradient(135deg, rgba(252, 98, 85, 0.08), rgba(21, 28, 46, 0.9));
  border: 1px solid rgba(252, 98, 85, 0.28);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
}

.warning-box .warning-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin-bottom: 8px;
  display: block;
}

.warning-box p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Interactive Visual Playground Container
   ========================================================================== */

.interactive-stage {
  background: var(--bg-canvas);
  background-image: radial-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 34px 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.stage-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.stage-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(88, 196, 221, 0.3);
}

.stage-hint {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.stage-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.stage-caption {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(21, 28, 46, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Interactive Buttons & Controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
}

.btn:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #38a3c7);
  color: #071018;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(88, 196, 221, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.08);
  color: #071018;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e0a826);
  color: #161004;
  border-color: transparent;
}

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald), #61a847);
  color: #071405;
  border-color: transparent;
}

.btn-coral {
  background: linear-gradient(135deg, var(--coral), #e04438);
  color: #fff;
  border-color: transparent;
}

.btn.active-pill {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(88, 196, 221, 0.2);
}

/* Truth Switch Pill */
.truth-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.truth-switch[data-state="true"] {
  border-color: var(--cyan);
  background: rgba(88, 196, 221, 0.12);
  box-shadow: 0 0 18px rgba(88, 196, 221, 0.18);
}

.truth-switch[data-state="false"] {
  border-color: var(--coral);
  background: rgba(252, 98, 85, 0.1);
}

.truth-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.truth-switch[data-state="true"] .truth-dot {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.truth-switch[data-state="false"] .truth-dot {
  background: var(--coral);
  box-shadow: 0 0 10px var(--coral);
}

/* ==========================================================================
   Intuition Reveal / Pause & Think
   ========================================================================== */

.think-box {
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 26px 0;
}

.think-prompt {
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}

.think-reveal-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.think-reveal-btn:hover {
  background: var(--gold-dim);
}

.think-answer {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  color: #dce6f5;
}

.think-answer.revealed {
  display: block;
  animation: fadeSlideIn 0.25s ease;
}

/* ==========================================================================
   Check Your Intuition (Interactive Quiz Cards)
   ========================================================================== */

.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 34px 0;
}

.quiz-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  margin-bottom: 8px;
}

.quiz-question {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  text-align: left;
  padding: 13px 16px;
  border-radius: 11px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.16s ease;
}

.quiz-option:hover:not(:disabled) {
  border-color: var(--cyan);
  background: var(--bg-elevated);
}

.quiz-option.correct {
  border-color: var(--emerald);
  background: var(--emerald-dim);
  color: #e9fbe2;
}

.quiz-option.wrong {
  border-color: var(--coral);
  background: var(--coral-dim);
  color: #ffe3e0;
}

.quiz-feedback {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  display: none;
}

.quiz-feedback.show {
  display: block;
  animation: fadeSlideIn 0.22s ease;
}

.quiz-feedback.correct {
  background: rgba(131, 193, 103, 0.14);
  border: 1px solid rgba(131, 193, 103, 0.35);
  color: #d7f5cb;
}

.quiz-feedback.wrong {
  background: rgba(252, 98, 85, 0.14);
  border: 1px solid rgba(252, 98, 85, 0.35);
  color: #ffd5d1;
}

/* ==========================================================================
   Chapter Footer Navigation & Completion
   ========================================================================== */

.chapter-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.complete-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.complete-banner.done {
  border-color: rgba(131, 193, 103, 0.5);
  background: linear-gradient(135deg, rgba(131, 193, 103, 0.1), var(--bg-card));
}

.chapter-nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.nav-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.18s ease;
}

.nav-card:hover {
  border-color: var(--cyan);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.nav-card.next {
  text-align: right;
}

.nav-dir {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.nav-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

/* ==========================================================================
   Homepage Specific Styles
   ========================================================================== */

.home-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 64px;
}

.home-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.08;
  margin: 12px 0 18px;
  letter-spacing: -0.025em;
}

.home-hero .lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-visual-card {
  background: var(--bg-canvas);
  background-image: radial-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.progress-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.progress-bar-outer {
  flex: 1;
  min-width: 200px;
  height: 10px;
  background: var(--bg-deep);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.progress-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--emerald));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.part-heading {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 40px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.part-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.chapter-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.chapter-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.chapter-card.completed {
  border-color: rgba(131, 193, 103, 0.45);
}

.chapter-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.chapter-card-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 3px 9px;
  border-radius: 999px;
}

.chapter-card-status {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--emerald);
  opacity: 0;
}

.chapter-card.completed .chapter-card-status {
  opacity: 1;
}

.chapter-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-primary);
}

.chapter-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.chapter-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tag-chip {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .home-hero {
    grid-template-columns: 1fr;
  }
  .chapter-nav-links {
    grid-template-columns: 1fr;
  }
  .header-chapter-pill {
    display: none;
  }
}
