:root {
  --navy-deep: #1f3a5f;
  --navy-darker: #15283f;
  --cream: #e8ddd0;
  --terracotta: #c8693e;
  --terracotta-light: #d4815e;
  --sage: #7a8d6b;
  --ochre: #d4a02a;
  --burgundy: #7a2e3b;
  --indigo: #2c3e6b;
  --display: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SF Mono', Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--navy-deep);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

body {
  background-image:
    radial-gradient(ellipse at top left, rgba(200, 105, 62, 0.06), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(31, 58, 95, 0.4), transparent 60%);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

a {
  color: var(--terracotta-light);
  text-decoration: underline;
  text-decoration-style: dotted;
}

a:hover {
  color: var(--ochre);
}

/* ── Top nav ── */
.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--navy-darker);
  margin-bottom: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(232, 221, 208, 0.08);
}

.topnav a {
  color: rgba(232, 221, 208, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.topnav a:hover {
  color: var(--terracotta-light);
}

.topnav .home {
  display: inline-block;
  background: var(--cream);
  color: var(--navy-deep);
  padding: 8px 14px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.topnav .home:hover {
  background: var(--terracotta-light);
  color: var(--navy-deep);
}

.topnav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* ── Masthead ── */
.masthead {
  text-align: center;
  margin-bottom: 40px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin-bottom: 12px;
}

h1.title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--cream);
}

h1.title em {
  font-style: italic;
  color: var(--terracotta-light);
}

.subhead {
  margin: 16px auto 0;
  font-size: 15px;
  color: rgba(232, 221, 208, 0.8);
  max-width: 660px;
  line-height: 1.7;
}

/* ── Hero image ── */
.hero-img {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: 32px auto;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ── Quick links ── */
.quick-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0;
}

.quick-link-btn {
  background: var(--navy-darker);
  color: var(--cream);
  border: 1px solid rgba(232, 221, 208, 0.2);
  padding: 12px 20px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-link-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta-light);
}

/* ── Section headings ── */
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
  margin: 40px 0 24px;
  color: var(--cream);
  border-bottom: 1px solid rgba(232, 221, 208, 0.12);
  padding-bottom: 12px;
}

h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 24px 0 12px;
  color: var(--cream);
}

/* ── Character sections ── */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin: 32px 0;
}

.character-card {
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid var(--cream);
  padding: 24px;
  border-radius: 2px;
}

.character-card h3 {
  margin: 0 0 16px;
  font-size: 1.3rem;
  color: var(--cream);
}

.character-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(232, 221, 208, 0.7);
  margin-bottom: 12px;
  line-height: 1.8;
}

.character-meta strong {
  color: var(--cream);
  font-weight: 600;
  display: inline-block;
  margin-right: 6px;
}

.character-bio {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(232, 221, 208, 0.85);
  margin-bottom: 12px;
}

.character-voice {
  font-size: 13px;
  font-style: italic;
  color: rgba(232, 221, 208, 0.75);
  padding: 10px 12px;
  background: rgba(200, 105, 62, 0.1);
  border-left: 2px solid var(--terracotta);
  margin-top: 12px;
}

/* Character accent colors */
.character-card.wei {
  border-left-color: var(--sage);
}

.character-card.amara {
  border-left-color: var(--ochre);
}

.character-card.mateo {
  border-left-color: var(--burgundy);
}

.character-card.yuki {
  border-left-color: var(--indigo);
}

.character-card.benali {
  border-left-color: var(--terracotta);
}

/* ── Cast grid image ── */
.cast-grid-img {
  width: 100%;
  max-width: 900px;
  display: block;
  margin: 32px auto;
  border-radius: 2px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ── Session cards ── */
.sessions-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.session-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(232, 221, 208, 0.1);
  padding: 24px;
  border-radius: 3px;
  transition: all 0.2s;
}

.session-card:hover {
  border-color: rgba(232, 221, 208, 0.3);
  background: rgba(0, 0, 0, 0.3);
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.session-number {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--terracotta-light);
  margin: 0;
}

.session-mode {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(200, 105, 62, 0.2);
  color: var(--terracotta-light);
  padding: 4px 8px;
  border-radius: 2px;
}

.session-date {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(232, 221, 208, 0.7);
  margin-bottom: 12px;
}

.session-episode {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--ochre);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(232, 221, 208, 0.1);
}

.session-anchors {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.anchor-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: 600;
}

.anchor-wei {
  background: rgba(122, 141, 107, 0.3);
  color: var(--sage);
}

.anchor-amara {
  background: rgba(212, 160, 42, 0.3);
  color: var(--ochre);
}

.anchor-mateo {
  background: rgba(122, 46, 59, 0.3);
  color: var(--burgundy);
}

.anchor-yuki {
  background: rgba(44, 62, 107, 0.3);
  color: var(--indigo);
}

.anchor-benali {
  background: rgba(200, 105, 62, 0.3);
  color: var(--terracotta-light);
}

.session-mission {
  background: rgba(212, 160, 42, 0.15);
  border-left: 2px solid var(--ochre);
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.session-mission strong {
  color: var(--ochre);
  font-weight: 600;
}

.session-content {
  font-size: 13px;
  color: rgba(232, 221, 208, 0.8);
  line-height: 1.6;
}

.session-content h4 {
  margin: 12px 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 221, 208, 0.7);
}

.session-links {
  list-style: none;
  margin: 6px 0;
  padding: 0;
}

.session-links li {
  margin: 4px 0;
}

.session-links a {
  font-size: 12px;
  color: var(--terracotta-light);
}

.session-img {
  width: 100%;
  border-radius: 2px;
  margin-top: 14px;
  display: none;
}

.session-img.show {
  display: block;
}

/* ── Framework section ── */
.framework-intro {
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid var(--terracotta);
  padding: 24px;
  margin: 32px 0;
  border-radius: 2px;
  font-size: 15px;
  line-height: 1.75;
}

.framework-intro strong {
  color: var(--cream);
}

.framework-intro em {
  color: var(--terracotta-light);
  font-style: italic;
}

.download-btn {
  display: inline-block;
  background: var(--terracotta);
  color: var(--navy-deep);
  padding: 14px 28px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  margin-top: 14px;
  cursor: pointer;
  border: none;
}

.download-btn:hover {
  background: var(--terracotta-light);
  transform: translateY(-2px);
}

/* ── Footer ── */
footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(232, 221, 208, 0.08);
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(232, 221, 208, 0.55);
  letter-spacing: 0.08em;
}

footer p {
  margin: 0;
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .container {
    padding: 30px 16px 50px;
  }

  h1.title {
    font-size: clamp(1.5rem, 3vw, 2rem);
  }

  h2 {
    font-size: 1.3rem;
  }

  .character-grid {
    grid-template-columns: 1fr;
  }

  .sessions-container {
    grid-template-columns: 1fr;
  }

  .topnav {
    flex-direction: column;
    gap: 12px;
  }

  .topnav-links {
    flex-direction: column;
    gap: 12px;
  }

  .quick-links {
    flex-direction: column;
  }

  .quick-link-btn {
    width: 100%;
    text-align: center;
  }
}

/* ── Breadcrumb (back link) ── */
.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 221, 208, 0.6);
  margin-bottom: 24px;
  display: inline-block;
}

.breadcrumb a {
  color: var(--terracotta-light);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--ochre);
}

/* ── Hero section (index redesign) ── */
.hero-section {
  position: relative;
  height: 50vh;
  min-height: 300px;
  background-image: url('img/hero.png');
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  margin-bottom: 48px;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, rgba(31, 58, 95, 0.8));
  pointer-events: none;
}

.hero-content {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  z-index: 2;
}

.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--cream);
}

.hero-subtitle {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin: 0;
}

/* ── Tagline (one sentence max) ── */
.tagline {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(232, 221, 208, 0.9);
  max-width: 720px;
  margin: 40px 0 48px;
}

/* ── CTA buttons (large prominent) ── */
.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta);
  color: var(--navy-deep);
  padding: 16px 32px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.cta-button:hover {
  background: var(--terracotta-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 105, 62, 0.3);
}

.cta-button:active {
  transform: translateY(0);
}

/* ── Teacher footer link ── */
.teacher-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 221, 208, 0.6);
  margin-top: 48px;
}

.teacher-link a {
  color: var(--terracotta-light);
  text-decoration: none;
  transition: color 0.2s;
}

.teacher-link a:hover {
  color: var(--ochre);
}

/* ── Session accordion (sessions redesign) ── */
.sessions-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 32px 0;
}

.session-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(232, 221, 208, 0.15);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.2s ease-out;
}

.session-card.past {
  opacity: 0.6;
}

.session-card.expanded {
  border-color: rgba(232, 221, 208, 0.3);
  background: rgba(0, 0, 0, 0.3);
}

.session-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.session-card:hover .session-meta {
  background: rgba(232, 221, 208, 0.04);
}

.session-meta-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.session-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.session-number-date {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--cream);
}

.session-episode {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--terracotta-light);
}

.session-characters {
  display: flex;
  gap: 6px;
  align-items: center;
}

.character-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(232, 221, 208, 0.3);
  flex-shrink: 0;
}

.character-pill-icon.wei {
  background: var(--sage);
}

.character-pill-icon.amara {
  background: var(--ochre);
}

.character-pill-icon.mateo {
  background: var(--burgundy);
}

.character-pill-icon.yuki {
  background: var(--indigo);
}

.character-pill-icon.benali {
  background: var(--terracotta);
}

.session-chevron {
  font-size: 14px;
  color: rgba(232, 221, 208, 0.5);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.session-card.expanded .session-chevron {
  transform: rotate(180deg);
}

.session-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  border-top: 1px solid rgba(232, 221, 208, 0.1);
}

.session-card.expanded .session-details {
  max-height: 1000px;
}

.session-details-content {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.session-beat {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(232, 221, 208, 0.85);
  font-style: italic;
}

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

.session-lesson-list li {
  font-size: 13px;
}

.session-lesson-list a {
  color: var(--terracotta-light);
  text-decoration: none;
  transition: color 0.2s;
}

.session-lesson-list a:hover {
  color: var(--ochre);
}

.session-unit-link {
  display: inline-block;
  font-size: 12px;
  color: var(--terracotta-light);
  text-decoration: none;
  margin-top: 6px;
  transition: color 0.2s;
}

.session-unit-link:hover {
  color: var(--ochre);
}

.session-mode-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(200, 105, 62, 0.2);
  color: var(--terracotta-light);
  flex-shrink: 0;
}

.session-mission-detail {
  background: rgba(212, 160, 42, 0.12);
  border-left: 2px solid var(--ochre);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(232, 221, 208, 0.85);
}

.session-mission-detail strong {
  color: var(--ochre);
  font-weight: 600;
}

/* Responsive tweaks for accordion */
@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }

  .hero-content {
    bottom: 24px;
    left: 24px;
    right: 24px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
  }

  .session-meta {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
  }

  .session-meta-left {
    width: 100%;
  }

  .session-characters {
    margin-top: 8px;
  }
}

/* ── NEW: Cover page (index.html) ── */
.cover-hero {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 48px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.cover-hero-img {
  display: block;
  width: 100%;
  height: auto;
}

.cover-header {
  text-align: center;
  margin-bottom: 48px;
}

.cover-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin-bottom: 16px;
}

.cover-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--cream);
}

.cover-chapter {
  font-family: var(--display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--cream);
  margin: 0 0 8px;
}

.cover-session {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 221, 208, 0.75);
  margin-bottom: 24px;
}

.cover-tease {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(232, 221, 208, 0.9);
  max-width: 620px;
  margin: 0 auto 40px;
}

.cover-cta {
  display: inline-block;
  background: var(--terracotta);
  color: var(--navy-deep);
  padding: 18px 40px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.cover-cta:hover {
  background: var(--terracotta-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 105, 62, 0.35);
}

.cover-footer {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(232, 221, 208, 0.08);
}

.cover-footer a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta-light);
  text-decoration: none;
  transition: color 0.2s;
}

.cover-footer a:hover {
  color: var(--ochre);
}

/* ── Chapter hero illustration ── */
.chapter-hero {
  margin: 0 0 48px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.chapter-hero-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Story page (story.html) ── */
.story-header {
  text-align: center;
  margin-bottom: 60px;
}

.story-header h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--cream);
}

.story-subtitle {
  font-size: 16px;
  color: rgba(232, 221, 208, 0.75);
  line-height: 1.6;
}

.episode-section {
  margin-bottom: 64px;
}

.episode-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--cream);
  margin: 0 0 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(232, 221, 208, 0.12);
}

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

.chapter-card {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(232, 221, 208, 0.12);
  border-radius: 4px;
  padding: 24px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.chapter-card:hover {
  border-color: rgba(232, 221, 208, 0.3);
  background: rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

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

.chapter-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0;
  color: var(--cream);
}

.chapter-card-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 221, 208, 0.6);
}

.chapter-card-title {
  font-family: var(--display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--terracotta-light);
  margin-bottom: 16px;
}

.chapter-card-characters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.character-pill {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(232, 221, 208, 0.2);
}

.character-pill.sage {
  background: var(--sage);
}

.character-pill.ochre {
  background: var(--ochre);
}

.character-pill.burgundy {
  background: var(--burgundy);
}

.character-pill.indigo {
  background: var(--indigo);
}

.character-pill.terracotta {
  background: var(--terracotta);
}

.chapter-card-arrow {
  color: rgba(232, 221, 208, 0.4);
  font-size: 1.2rem;
  margin-top: auto;
  transition: color 0.2s;
}

.chapter-card:hover .chapter-card-arrow {
  color: var(--terracotta-light);
}

/* ── Chapter pages (chapter/N.html) ── */
.breadcrumb {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 221, 208, 0.6);
  margin-bottom: 32px;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb:hover {
  color: var(--terracotta-light);
}

.chapter-header {
  margin-bottom: 40px;
  text-align: center;
}

.chapter-header h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--cream);
}

.chapter-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 221, 208, 0.7);
  margin: 0 0 16px;
}

.chapter-characters {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.chapter-narrative {
  max-width: 720px;
  margin: 0 auto 48px;
}

.chapter-narrative p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(232, 221, 208, 0.9);
  margin: 0;
}

.scenes-section {
  max-width: 720px;
  margin: 0 auto 48px;
}

.scenes-section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(232, 221, 208, 0.12);
  color: var(--cream);
}

.scenes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scene-card {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(232, 221, 208, 0.1);
  border-radius: 3px;
  padding: 16px 20px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.scene-card:hover {
  border-color: rgba(232, 221, 208, 0.3);
  background: rgba(0, 0, 0, 0.3);
}

.scene-title {
  font-size: 14px;
  color: var(--terracotta-light);
  transition: color 0.2s;
  flex: 1;
}

.scene-card:hover .scene-title {
  color: var(--ochre);
}

.review-note {
  font-size: 14px;
  font-style: italic;
  color: rgba(232, 221, 208, 0.75);
  background: rgba(212, 160, 42, 0.12);
  border-left: 2px solid var(--ochre);
  padding: 16px 20px;
  margin: 0;
  border-radius: 2px;
}

.chapter-nav {
  max-width: 720px;
  margin: 60px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(232, 221, 208, 0.08);
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.chapter-nav-btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-light);
  text-decoration: none;
  transition: color 0.2s;
}

.chapter-nav-btn:hover {
  color: var(--ochre);
}

.chapter-nav-btn.prev {
  text-align: left;
}

.chapter-nav-btn.next {
  text-align: right;
  margin-left: auto;
}

/* ── Top nav updates for story/chapter pages ── */
.topnav-story {
  color: rgba(232, 221, 208, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.topnav-story:hover {
  color: var(--terracotta-light);
}

.theme-toggle {
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  transition: transform 0.2s;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* ── Responsive: cover & story ── */
@media (max-width: 768px) {
  .cover-header {
    margin-bottom: 32px;
  }

  .cover-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 16px;
  }

  .cover-tease {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .cover-cta {
    padding: 16px 32px;
    font-size: 12px;
  }

  .cover-footer {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .chapter-cards {
    grid-template-columns: 1fr;
  }

  .chapter-header h1 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
  }

  .chapter-nav {
    flex-direction: column;
    gap: 12px;
  }

  .chapter-nav-btn.next {
    margin-left: 0;
  }
}



/* ============================================================
   Reader narrative typography — for embedded chapter text
   ============================================================ */

.chapter-narrative.reader-text {
  max-width: 36rem;
  margin: 3rem auto;
  font-family: var(--display, Georgia, 'Times New Roman', serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--cream, #e8ddd0);
}

.chapter-narrative.reader-text .period {
  margin-bottom: 4rem;
}

.chapter-narrative.reader-text .period-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(200, 150, 62, 0.2);
}

.chapter-narrative.reader-text .period-code {
  font-family: var(--mono, 'SF Mono', Menlo, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--terracotta, #c8693e);
  text-transform: uppercase;
  font-weight: 600;
}

.chapter-narrative.reader-text .period-time {
  font-family: var(--display, Georgia, serif);
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(232, 221, 208, 0.7);
}

.chapter-narrative.reader-text p {
  margin: 0 0 1.1rem 0;
  text-align: left;
  hyphens: auto;
}

.chapter-narrative.reader-text p.dialogue {
  margin-left: 0.5rem;
  text-indent: -0.5rem;
}

.chapter-narrative.reader-text hr.scene-break {
  border: none;
  text-align: center;
  margin: 2.5rem 0;
  height: 1.2rem;
}

.chapter-narrative.reader-text hr.scene-break::before {
  content: "✦  ✦  ✦";
  color: rgba(200, 150, 62, 0.5);
  letter-spacing: 0.6em;
  font-size: 0.85rem;
}

/* Light theme overrides */
body.light-theme .chapter-narrative.reader-text {
  color: var(--navy-deep, #1f3a5f);
}
body.light-theme .chapter-narrative.reader-text .period-heading {
  border-bottom-color: rgba(31, 58, 95, 0.15);
}
body.light-theme .chapter-narrative.reader-text .period-time {
  color: rgba(31, 58, 95, 0.65);
}
