/* Say Again sample guide. Colours and type follow docs/player_page_design.html. */

:root {
  --bg: #0D0D12;
  --surface: #121119;
  --card: #1A1924;
  --card-deep: #17142A;
  --border: #2E2B3D;
  --border-strong: #3A3750;
  --fg: #ECEAF3;
  --fg-soft: #D9D6E4;
  --muted: #A6A3B8;
  --accent: #B9A7F5;
  --on-accent: #140F24;
  --link: #C7B8F7;
  --link-hover: #E2D9FF;

  --font-body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* The audio player's theme (see audio-player README, Tokens). */
  --pm-bg: var(--card);
  --pm-fg: var(--fg);
  --pm-fg-muted: var(--muted);
  --pm-border: var(--border);
  --pm-radius: 8px;
  --pm-padding: 28px;
  --pm-accent: #DCD9E6;
  --pm-on-accent: var(--bg);
  --pm-accent-hover: #FFFFFF;
  --pm-play-size: 72px;
  --pm-focus-ring: var(--link);
  --pm-error: #FFB4A8;
  --pm-wave-played: var(--fg);
  --pm-wave-unplayed: #4A4660;
  --pm-wave-height: 56px;
  --pm-heading-fg: var(--fg);
  --pm-speaker-fg: var(--fg);
  --pm-line-active-bg: #2A2150;
  --pm-line-active-fg: var(--fg);
  --pm-line-hover-bg: var(--surface);
  --pm-transcript-max-height: 28rem;
  --pm-font-body: var(--font-body);
  --pm-font-heading: var(--font-display);
  --pm-font-mono: var(--font-mono);
  --pm-title-size: 18px;
  --pm-title-weight: 600;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Top bar ── */
.guide-header { border-bottom: 1px solid var(--border); }
.guide-header .wrap {
  padding-top: 16px; padding-bottom: 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.guide-brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; text-decoration: none; color: var(--fg); }
.guide-brand:hover { color: var(--fg); }
.guide-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.guide-place { font-size: 14px; color: var(--muted); }
.lang-switcher { display: flex; align-items: center; gap: 12px; }
.lang-switcher label { font-size: 14px; color: var(--muted); }
.lang-switcher select {
  min-height: 44px; padding: 0 36px 0 12px;
  background: var(--card); color: var(--fg);
  border: 1px solid var(--border-strong); border-radius: 4px;
  font-family: inherit; font-size: 16px;
}

/* ── Stop navigation ── */
.stop-nav { border-bottom: 1px solid var(--border); background: var(--surface); }
.stop-nav .wrap { overflow-x: auto; }
.stop-nav ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; min-width: max-content; }
.stop-nav a {
  display: flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 16px;
  text-decoration: none; color: var(--muted); font-size: 16px;
  border-bottom: 3px solid transparent;
}
.stop-nav a:hover { color: var(--fg); }
.stop-nav a[aria-current] { color: var(--fg); font-weight: 700; border-bottom-color: var(--accent); }
.stop-nav-num { font-family: var(--font-mono); font-size: 14px; }
.stop-nav a[aria-current] .stop-nav-num { color: var(--accent); }

/* ── Page body ── */
.guide-main { flex: 1 0 auto; width: 100%; padding-top: 56px; padding-bottom: 64px; }

.kicker {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}

.stop-header h1 {
  margin: 12px 0 0;
  font-family: var(--font-display); font-size: 64px; line-height: 1.02; font-weight: 600; letter-spacing: -0.02em;
}
.stop-lede { margin: 20px 0 0; max-width: 62ch; font-size: 20px; color: var(--fg-soft); }

.stop-listen { margin-top: 32px; }

.stop-player .pm-player { box-shadow: none; }
.stop-translation-note { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.stop-player-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* The transcript as rendered without JavaScript, replaced by the player's own. */
.static-transcript h2 { margin: 24px 0 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.static-transcript dl { margin: 16px 0 0; display: grid; grid-template-columns: 96px 1fr; gap: 6px 16px; font-size: 16px; line-height: 1.6; }
.static-transcript dt { font-weight: 700; }
.static-transcript dd { margin: 0; }
.static-transcript dd p { margin: 0; }

/* The well under the player: what really happened, what is invented, sources. */
.well { margin-top: 40px; padding: 32px 28px; border-radius: 16px; background: var(--card); }
.well::before { content: ""; display: block; width: 44px; height: 4px; margin-bottom: 20px; background: var(--accent); }
.well h2 { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: 1.15; font-weight: 600; }
.well section { margin-top: 24px; }
.well h3 { margin: 0; font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.well p, .well ul { margin: 12px 0 0; font-size: 16px; }
.well p + p { margin-top: 12px; }
.well ul { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.well .soft { color: var(--fg-soft); }
.well .small { font-size: 14px; color: var(--muted); }
.well .sources { list-style: none; padding: 0; font-size: 15px; gap: 12px; }

/* ── Next stop ── */
.next-stop {
  margin-top: 64px; padding: 40px; border-radius: 8px;
  background: var(--card-deep); border: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.next-stop-text { flex: 1 1 420px; min-width: 0; }
.next-stop-question { margin: 10px 0 0; font-family: var(--font-display); font-size: 30px; line-height: 1.2; font-weight: 500; }
.next-stop-links { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 20px;
  border-radius: 6px; border: 1px solid var(--border-strong);
  color: var(--fg); text-decoration: none; font-size: 16px;
}
.button:hover { color: var(--fg); border-color: var(--muted); }
.button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.button--primary:hover { color: var(--on-accent); background: var(--link-hover); }

/* ── Introduction ── */
.intro h1 { margin: 12px 0 0; font-family: var(--font-display); font-size: 64px; line-height: 1.02; font-weight: 600; letter-spacing: -0.02em; }
.intro-stops { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.intro-stops a { display: block; height: 100%; padding: 24px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--fg); text-decoration: none; }
.intro-stops a:hover { border-color: var(--accent); color: var(--fg); }
.intro-stops h2 { margin: 8px 0 0; font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.intro-stops p { margin: 8px 0 0; font-size: 16px; color: var(--fg-soft); }

/* ── Footer ── */
.guide-footer { border-top: 1px solid var(--border); background: var(--surface); }
.guide-footer .wrap { padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.studio { font-family: var(--font-display); font-weight: 500; color: var(--fg); }

/* ── Phone ── */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .guide-main { padding-top: 32px; }
  .stop-header h1, .intro h1 { font-size: 44px; }
  .stop-lede { font-size: 18px; }
  .well { padding: 24px 20px; }
  .static-transcript dl { grid-template-columns: 1fr; gap: 2px; }
  .static-transcript dd { margin-bottom: 10px; }
  .next-stop { padding: 24px; margin-top: 48px; }
  .next-stop-question { font-size: 24px; }
  :root { --pm-padding: 20px; --pm-play-size: 64px; }
}
