/* ============ RESET & VARIABLES ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #0a0a0f;
  --bg-card: #12121a;
  --bg-surface: #1a1a26;
  --text-primary: #f0eeeb;
  --text-secondary: #e8e6e3;
  --text-muted: #c5c5c5;
  --accent-gold: #d4b255;
  --accent-gold-dim: #c9a84c;
  --accent-red: #c0392b;
  --accent-blue: #2c5f8a;
  --border: #2a2a36;
  --serif-kr: 'Pretendard Variable', 'Pretendard', sans-serif;
  --serif-en: 'Cormorant Garamond', serif;
  --sans-kr: 'Pretendard Variable', 'Pretendard', sans-serif;
  --sans-en: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--sans-kr);
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ LANGUAGE TOGGLE ============ */
.lang-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  background: rgba(18, 18, 26, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.lang-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-family: var(--sans-en);
  font-weight: 500;
  letter-spacing: 0.5px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}

.lang-btn.active {
  background: var(--accent-gold);
  color: #0a0a0f;
}

.lang-btn:hover:not(.active) { color: var(--text-primary); }

/* Content visibility */
[data-lang="en"] { display: none; }
body.en [data-lang="ko"] { display: none; }
body.en [data-lang="en"] { display: block; }
body.en span[data-lang="en"],
span[data-lang="ko"] { display: inline; }
body.en span[data-lang="ko"] { display: none; }
span[data-lang="en"] { display: none; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  gap: 4px;
  background: rgba(18, 18, 26, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}

.nav a {
  padding: 8px 16px;
  font-size: 12px;
  font-family: var(--sans-en);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s;
}

.nav a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

@media (max-width: 768px) {
  .nav { display: none; }
  .lang-toggle { top: 12px; right: 12px; }
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  background: url('images/hero-bg.jpg') center center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 15, 0.85) 0%, rgba(10, 10, 15, 0.7) 40%, rgba(10, 10, 15, 0.9) 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-series-label {
  font-family: var(--sans-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.hero-title-kr {
  font-family: var(--serif-kr);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
}

.hero-title-en {
  font-family: var(--serif-en);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards;
}

.hero-tagline {
  font-family: var(--serif-kr);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.9;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
}

.hero-formula {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1s 1.1s forwards;
}

.formula-step {
  font-family: var(--sans-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
}

.formula-arrow {
  color: var(--accent-gold);
  font-size: 18px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUp 1s 1.5s forwards;
}

.hero-scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
  margin: 0 auto;
  animation: pulse 2s infinite;
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ============ SECTIONS ============ */
.section {
  padding: 120px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--sans-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--serif-kr);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.9;
  margin-bottom: 64px;
}

/* ============ ABOUT / VISION ============ */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) { .vision-grid { grid-template-columns: 1fr; } }

.vision-text {
  font-family: var(--serif-kr);
  font-size: 17px;
  line-height: 2.05;
  color: var(--text-secondary);
}

.vision-text p { margin-bottom: 24px; }

.vision-text em {
  font-style: normal;
  color: var(--text-primary);
}

.vision-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.stat-number {
  font-family: var(--serif-en);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============ READER JOURNEY ============ */
.journey {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  margin-top: 48px;
}

@media (max-width: 960px) { .journey { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .journey { grid-template-columns: repeat(2, 1fr); } }

.journey-step {
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}

.journey-step:hover {
  background: var(--bg-surface);
  border-color: var(--accent-gold-dim);
}

.journey-num {
  font-family: var(--serif-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.journey-axis {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.journey-feeling {
  font-family: var(--serif-kr);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

/* ============ BOOK CARDS ============ */
.books-container { display: flex; flex-direction: column; gap: 2px; }

.book-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.4s;
  cursor: pointer;
}

.book-card:hover {
  border-color: var(--accent-gold-dim);
  transform: translateX(4px);
}

.book-card.expanded .book-detail { max-height: 2000px; opacity: 1; padding: 0 48px 48px 48px; }

.book-num-bar {
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-en);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-gold);
  border-right: 1px solid var(--border);
  min-height: 120px;
}

.book-main { padding: 36px 48px; }

.book-status {
  display: inline-block;
  font-size: 10px;
  font-family: var(--sans-en);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.status-complete { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.status-draft { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.status-progress { background: rgba(241, 196, 15, 0.15); color: #f1c40f; }
.status-concept { background: rgba(155, 89, 182, 0.15); color: #9b59b6; }

.book-titles {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.book-title-kr {
  font-family: var(--serif-kr);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.book-title-en {
  font-family: var(--sans-en);
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* EN mode: swap title sizes and order */
body.en .book-title-en {
  font-family: var(--sans-en);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  font-style: normal;
  color: var(--text-primary);
  order: -1;
  margin-bottom: 4px;
  line-height: 1.3;
  letter-spacing: 0;
}

body.en .book-title-kr {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.book-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.book-meta-item {
  font-size: 13px;
  color: var(--text-secondary);
}

.book-meta-item strong {
  color: var(--text-secondary);
  font-weight: 500;
}

.book-question {
  font-family: var(--serif-kr);
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.9;
  border-left: 2px solid var(--accent-gold-dim);
  padding-left: 20px;
  margin-top: 16px;
}

.book-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.sample-chapter-link {
  display: inline-block;
  font-family: var(--sans-kr);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-gold);
  text-decoration: none;
  padding: 6px 16px;
  border: 1px solid var(--accent-gold-dim);
  border-radius: 4px;
  transition: all 0.3s;
  letter-spacing: 0.3px;
}

.sample-chapter-link:hover {
  background: var(--accent-gold);
  color: var(--bg-deep);
  border-color: var(--accent-gold);
}

.sample-chapter-coming {
  display: inline-block;
  font-family: var(--sans-en);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  letter-spacing: 1px;
  font-style: italic;
}

.book-expand-hint {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--sans-en);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.book-card:hover .book-expand-hint { color: var(--accent-gold); }

.book-detail {
  grid-column: 1 / -1;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  padding: 0 48px;
}

.book-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .book-card { grid-template-columns: 60px 1fr; }
  .book-main { padding: 24px; }
  .book-detail { padding: 0 24px; }
  .book-card.expanded .book-detail { padding: 0 24px 24px 24px; }
  .book-detail-inner { grid-template-columns: 1fr; }
}

.detail-section h4 {
  font-family: var(--sans-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2;
}

.toc-list li { padding-left: 16px; position: relative; }
.toc-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 1px;
  background: var(--accent-gold-dim);
}

.excerpt {
  font-family: var(--serif-kr);
  font-size: 16px;
  line-height: 2;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.015);
  padding: 24px;
  border-radius: 4px;
}

.excerpt p { margin-bottom: 16px; }
.excerpt p:first-child::first-line {
  color: var(--text-primary);
  font-weight: 700;
}

.contrast-pair {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pair-card {
  padding: 20px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.7;
}

.pair-displaced {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.2);
  color: var(--text-secondary);
}

.pair-discerning {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: var(--text-secondary);
}

.pair-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pair-displaced .pair-label { color: var(--accent-red); }
.pair-discerning .pair-label { color: var(--accent-gold); }

/* ============ AUTHOR ============ */
.author-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) { .author-section { grid-template-columns: 1fr; } }

.author-credentials {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.credential {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.credential-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.credential-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.author-text {
  font-family: var(--serif-kr);
  font-size: 16px;
  line-height: 2;
  color: var(--text-secondary);
}

.author-text p { margin-bottom: 20px; }

/* ============ POSITIONING ============ */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 14px;
}

.comp-table th {
  font-family: var(--sans-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.comp-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(42, 42, 54, 0.5);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.7;
}

.comp-table tr:last-child td { border-bottom: none; }
.comp-table td:first-child { color: var(--text-muted); font-weight: 500; }
.comp-table td:last-child { color: var(--text-primary); }

/* ============ QUOTE ============ */
.big-quote {
  text-align: center;
  padding: 120px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.big-quote blockquote {
  font-family: var(--serif-kr);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  position: relative;
}

.big-quote blockquote::before {
  content: '\201C';
  font-family: var(--serif-en);
  font-size: 120px;
  color: var(--accent-gold-dim);
  position: absolute;
  top: -60px;
  left: -20px;
  opacity: 0.3;
}

.big-quote cite {
  display: block;
  margin-top: 24px;
  font-size: 14px;
  font-style: normal;
  color: var(--text-muted);
  font-family: var(--sans-kr);
}

/* ============ CTA ============ */
.cta-section {
  text-align: center;
  padding: 120px 24px;
  background: linear-gradient(180deg, var(--bg-deep), rgba(201, 168, 76, 0.03), var(--bg-deep));
}

.cta-title {
  font-family: var(--serif-kr);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta-email {
  display: inline-block;
  font-family: var(--sans-en);
  font-size: 16px;
  font-weight: 500;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 16px 48px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
  letter-spacing: 1px;
}

.cta-email:hover {
  background: var(--accent-gold);
  color: var(--bg-deep);
}

/* ============ FOOTER ============ */
footer {
  text-align: center;
  padding: 48px 24px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer-copyright {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-copyright span { color: var(--accent-gold); }

.footer-series {
  font-family: var(--serif-en);
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-rights {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============ DIVIDER ============ */
.divider {
  width: 60px;
  height: 1px;
  background: var(--accent-gold-dim);
  margin: 0 auto;
}

/* ============ SCROLL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
}

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

/* ============================================================
   CHAPTER PAGE STYLES
   ============================================================ */

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-dim));
  width: 0%;
  z-index: 9999;
  transition: width 0.05s linear;
}

/* Chapter header */
.chapter-header {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.back-link {
  font-family: var(--sans-kr);
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.back-link:hover { color: var(--accent-gold); }

.chapter-lang-toggle {
  position: static;
  top: auto;
  right: auto;
}

/* Chapter content area */
.chapter-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.chapter-meta {
  text-align: center;
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.chapter-series {
  display: block;
  font-family: var(--sans-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 24px;
}

.chapter-title {
  font-family: var(--serif-kr);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.chapter-subtitle {
  font-family: var(--serif-kr);
  font-size: 17px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.chapter-divider {
  width: 60px;
  height: 1px;
  background: var(--accent-gold-dim);
  margin: 0 auto;
}

/* Chapter body — reading optimized */
.chapter-body {
  font-family: var(--serif-kr);
  font-size: 18px;
  line-height: 2.0;
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeUp 1s 0.6s forwards;
}

.chapter-body p {
  margin-bottom: 28px;
  text-align: justify;
  word-break: keep-all;
}

.chapter-body h2 {
  font-family: var(--serif-kr);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 56px 0 28px;
  line-height: 1.4;
}

.chapter-body h3 {
  font-family: var(--serif-kr);
  font-size: 21px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 48px 0 24px;
  line-height: 1.4;
}

.chapter-body h4 {
  font-family: var(--sans-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 40px 0 16px;
}

.chapter-body .section-divider {
  border: none;
  height: 1px;
  background: var(--accent-gold-dim);
  width: 60px;
  margin: 56px auto;
}

.chapter-body blockquote {
  border-left: 2px solid var(--accent-gold-dim);
  padding-left: 24px;
  margin: 36px 0;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.9;
}

.chapter-body blockquote p {
  margin-bottom: 8px;
  text-align: left;
}

.chapter-body em {
  color: var(--text-primary);
  font-style: italic;
}

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

.chapter-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
}

.chapter-body table th {
  font-family: var(--sans-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.chapter-body table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(42, 42, 54, 0.5);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.7;
}

.chapter-body .chapter-end {
  text-align: center;
  font-family: var(--serif-kr);
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 48px;
}

.chapter-body .footnotes {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

.chapter-body .footnotes p {
  margin-bottom: 8px;
  text-align: left;
}

/* Chapter bottom navigation */
.chapter-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.chapter-nav a {
  font-family: var(--sans-kr);
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.3s;
}

.chapter-nav a:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold-dim);
}

/* Chapter page footer override */
.chapter-page footer {
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 560px) {
  .chapter-content { padding: 80px 16px 60px; }
  .chapter-body { font-size: 16px; line-height: 1.9; }
  .chapter-nav { flex-direction: column; gap: 12px; }
  .chapter-nav a { width: 100%; text-align: center; }
}
