/* Cast — Last Best Hope.
 *
 * commons.css owns structure (the 680px column, masthead, footer). This file
 * owns palette and typography only.
 *
 * The look is Babylon 5's exterior rather than its interior: deep space
 * twilight, cool steel light, a violet edge. The first pass used the station's
 * amber — right for a corridor on B5, wrong for the show's own identity, which
 * reads blue everywhere it matters: title card, starfield, jumpgate.
 */

:root {
  /* Space, not black. True black flattens; this keeps depth behind the text. */
  --ground: #080b14;
  --ground-raised: #0f1420;
  --rule: #1c2536;

  --ink: #e8edf7;
  --ink-soft: #9aa7bf;
  --ink-faint: #62708c;

  /* Jumpgate blue. One accent, used sparingly enough to still mean something. */
  --accent: #6ea8fe;
  --accent-dim: #4b7fd1;
  /* Minbari violet, the second voice only: eyebrows and speaker labels. */
  --violet: #a78bfa;

  /* One family throughout. Long-form reading is paid for in measure and
   * leading rather than by switching to a serif halfway down the site. */
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

body {
  background: var(--ground);
  background-image: radial-gradient(120% 60% at 50% 0%, #101830 0%, #080b14 60%);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  padding-bottom: 4rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: .18em; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* --- Masthead ------------------------------------------------------------ */

.masthead {
  padding: 2.5rem 0 1.75rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

/* Wide tracking, cool weight: the show's title card, not a logo. */
.wordmark {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .28em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--accent); }

.masthead nav a {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.masthead nav a:hover { color: var(--accent); }

/* --- Home ---------------------------------------------------------------- */

.show-intro {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 3.25rem;
}
.show-blurb { color: var(--ink-soft); font-size: .975rem; margin: 0; max-width: 34em; }
.show-blurb p { margin: 0; }

.eyebrow {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 .85rem;
}

.latest { padding-bottom: 3rem; border-bottom: 1px solid var(--rule); }

.episode-title {
  font-size: 1.6rem;
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -.015em;
  margin: 0 0 .5rem;
}
.episode-title a { text-decoration: none; }

.subtitle { color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 .8rem; }

.meta { font-size: .78rem; letter-spacing: .02em; color: var(--ink-faint); margin: 0; }
.meta .sep { margin: 0 .5em; }

.player {
  display: block;
  width: 100%;
  margin: 1.5rem 0 1rem;
  height: 2.5rem;
  border-radius: 3px;
  color-scheme: dark;
}

.episode-links {
  font-size: .84rem;
  font-weight: 500;
  margin: 1.1rem 0 0;
  display: flex;
  gap: 1.5rem;
}
.episode-links a { color: var(--accent); text-decoration: none; }
.episode-links a:hover { text-decoration: underline; }

/* --- Archive ------------------------------------------------------------- */

.section-heading {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 3rem 0 1.5rem;
}

.episode-list { list-style: none; margin: 0; padding: 0; }
.episode-list > li { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.episode-list > li:last-child { border-bottom: 0; }

.episode-link { display: flex; gap: 1.15rem; align-items: flex-start; text-decoration: none; }
.episode-words { display: block; min-width: 0; }
.episode-words .meta { display: block; margin-top: .4rem; }

.episode-list-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.005em;
}
.episode-list-subtitle {
  display: block;
  color: var(--ink-soft);
  font-size: .92rem;
  margin-top: .2rem;
}
.episode-link:hover .episode-list-title { color: var(--accent); }

.subscribe {
  margin: 3.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: .88rem;
  color: var(--ink-soft);
}
.subscribe a { color: var(--accent); }

/* --- Episode ------------------------------------------------------------- */

.episode .episode-title { font-size: 1.85rem; margin-top: 0; }

.notes { margin-top: 2.5rem; font-size: 1.0125rem; line-height: 1.68; }
.notes p { margin: 0 0 1.15rem; }
.notes a { color: var(--accent); }
.notes hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

.chapters { margin-top: 2.5rem; }
.chapter-list { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.chapter-list li { padding: .35rem 0; display: flex; gap: 1rem; align-items: baseline; }
.chapter-time {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--accent-dim);
  min-width: 4.5em;
  flex: none;
}

.back {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: .84rem;
}
.back a { color: var(--ink-soft); }

/* --- Transcript ---------------------------------------------------------- */

.transcript-body { margin-top: 2.5rem; font-size: 1.0125rem; line-height: 1.75; }
.cue { margin: 0 0 1.3rem; max-width: 36em; }
.speaker {
  display: block;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: .25rem;
}

/* --- Artwork ------------------------------------------------------------- */

.cover {
  width: 116px;
  height: 116px;
  flex: none;
  border-radius: 4px;
  border: 1px solid var(--rule);
}

.hero-frame {
  display: block;
  margin: 0 0 1.5rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--rule);
  transition: border-color .15s ease;
}
.hero-frame:hover { border-color: var(--accent); }
.hero-frame img { width: 100%; display: block; }

.episode-art {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--rule);
  margin-bottom: 1.75rem;
}

/* Bigger: the artwork is per-episode and hand-made, so it should be legible as
 * a picture rather than as a marker that a picture exists. */
.episode-thumb {
  width: 132px;
  height: 132px;
  flex: none;
  border-radius: 4px;
  border: 1px solid var(--rule);
  transition: border-color .15s ease;
}
.episode-link:hover .episode-thumb { border-color: var(--accent); }

.transcript-art {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  border: 1px solid var(--rule);
  margin-bottom: 1rem;
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  margin-top: 5rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--rule);
}
.footer-line {
  font-size: .74rem;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
}
.footer-line a { color: var(--ink-soft); }

@media (max-width: 40rem) {
  .masthead { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .episode .episode-title, .episode-title { font-size: 1.35rem; }
  .show-intro { gap: 1rem; }
  .cover { width: 84px; height: 84px; }
  .episode-thumb { width: 104px; height: 104px; }
  .episode-link { gap: .9rem; }
}
