/* site.css — RAUM publication theme
   Quiet chrome. Typography does the work. One accent color.
   Dark/light via CSS light-dark() + a System/Dark/Light toggle. */

:root {
  color-scheme: light dark;

  /* NUI (modules/nui_wc2) checks for --nui-space to decide whether its theme CSS
     is present. We do not use NUI styles, so defining it here keeps NUI from
     injecting its own nui-theme.css on top of this design. */
  --nui-space: 0.5rem;

  --accent: rgb(76, 132, 229);

  /* Light palette (default). Dark overrides below are declared explicitly —
     NOT via light-dark() — because :root custom properties that embed
     light-dark() do not recompute when the data-theme toggle changes
     color-scheme at runtime (Chromium), which breaks the theme switch. */
  --accent-soft: rgba(76, 132, 229, 0.12);
  --bg: #fbfbfa;
  --bg-soft: #f1f1ee;
  --text: #1b1b1a;
  /* Running text — slightly dimmer than --text; headings keep full contrast. */
  --text-body: #3b3b37;
  --text-dim: #666662;
  --text-faint: #9b9b96;
  --border: rgba(20, 20, 18, 0.13);

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 78ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

/* Dark palette — explicit dark mode … */
html[data-theme="dark"] {
  --accent-soft: rgba(76, 132, 229, 0.18);
  --bg: #101113;
  --bg-soft: #17181c;
  --text: #e6e6e4;
  --text-body: #c9c9c5;
  --text-dim: #94948e;
  --text-faint: #5b5b57;
  --border: rgba(255, 255, 255, 0.13);
}
/* … and system mode when the OS prefers dark (unless light is forced). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent-soft: rgba(76, 132, 229, 0.18);
    --bg: #101113;
    --bg-soft: #17181c;
    --text: #e6e6e4;
    --text-body: #c9c9c5;
    --text-dim: #94948e;
    --text-faint: #5b5b57;
    --border: rgba(255, 255, 255, 0.13);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--serif);
  font-size: clamp(1.26rem, 1.22rem + 0.3vw, 1.46rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

a { color: var(--accent); }
::selection { background: var(--accent-soft); }

/* All heading levels keep full contrast while running text uses --text-body. */
h1, h2, h3, h4, h5, h6 { color: var(--text); }

/* ---------- Header / nav ---------- */

.site-header { position: relative; border-bottom: 1px solid var(--border); }
.site-header-inner {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0.95rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
}
.brand-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 0.15rem;
}
.brand {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 200;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand-sub {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav-link {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--text); }
.nav-link.current { color: var(--text); }
.theme-toggle,
.lang-toggle {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-faint);
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover,
.lang-toggle:hover { color: var(--text); border-color: var(--text-dim); }
.nav-controls { display: flex; align-items: center; gap: 1.4rem; margin-left: -0.8rem; }
a.lang-toggle { display: inline-block; text-decoration: none; }

/* Mobile menu toggle (hamburger) — hidden on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-dim);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
  .menu-toggle { display: flex; }
  .site-header { z-index: 100; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    display: none;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem var(--gutter) 1.25rem;
    box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.35);
  }
  .site-header.nav-open .nav { display: flex; }
  .nav-link { padding: 0.7rem 0; font-size: 1.05rem; }
  .nav-controls { margin-left: 0; gap: 0.6rem; margin-top: 0.9rem; }
}

/* ---------- Shared page scaffold ---------- */

/* Note: no bare .wrap rule — it collides with nui-media-player's internal
   .wrap element. Page sections use their own classes with padding directly. */

.site-footer {
  max-width: 60rem;
  margin: 0 auto;
  padding: 3rem var(--gutter) 4.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
}
.site-footer .foot-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

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

.home {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(4.5rem, 14vh, 9rem) var(--gutter) 4rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
}
.threshold {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.22;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}
.threshold-source {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-faint);
  margin: 0 0 clamp(3rem, 8vh, 5rem);
}
.entry-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.9rem; margin-bottom: clamp(3rem, 9vh, 5.5rem); }
@media (max-width: 640px) { .entry-points { grid-template-columns: 1fr; gap: 1.75rem; } }
.lang-note {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-soft);
  padding: 1.4rem 1.6rem;
  margin-bottom: clamp(3rem, 9vh, 5.5rem);
  max-width: 34rem;
}
.lang-note-kicker {
  font-family: var(--sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin: 0 0 0.5rem;
}
.lang-note-text {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}
.entry {
  text-decoration: none;
  display: block;
  background: var(--bg-soft);
  border-radius: 6px;
  padding: 1.4rem 1.5rem 1.6rem;
  transition: background 0.2s ease;
}
.entry:hover { background: var(--accent-soft); }
.entry-kicker {
  font-family: var(--sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin: 0 0 0.4rem;
}
.entry h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin: 0;
  transition: color 0.2s ease;
}
.entry:hover h2 { color: var(--accent); }
.entry-note {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-dim);
  margin: 0.35rem 0 0;
}
/* ---------- Writing list ---------- */

.writing { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 9vh, 5.5rem) var(--gutter) 4rem; }
.page-intro { max-width: 42rem; color: var(--text-dim); margin: 0 0 3.5rem; }
.page-intro strong { color: var(--text); font-weight: 600; }
.page-intro p + p { margin-top: 1rem; }
.page-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 400; letter-spacing: -0.015em; margin: 0 0 0.5rem; }
.page-author {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-dim);
  margin: 0 0 2.2rem;
}
.page-lede { font-family: var(--sans); font-size: 0.95rem; color: var(--text-dim); margin: 0 0 2.5rem; }

.sort-toggle { display: flex; gap: 1.5rem; margin-bottom: 0.5rem; }
.sort-toggle button {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-faint);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.sort-toggle button.active { color: var(--text); border-bottom-color: var(--accent); }
.sort-toggle button:hover { color: var(--text); }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--border);
}
.post-list li:last-child { border-bottom: none; }
.post-list a { color: var(--text); text-decoration: none; }
.post-title { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.3; margin: 0 0 0.5rem; font-weight: 400; letter-spacing: -0.01em; }
.post-list a:hover .post-title { color: var(--accent); }
.post-teaser { color: var(--text-dim); margin: 0 0 0.7rem; }
.post-meta { font-family: var(--sans); font-size: 0.95rem; color: var(--text-faint); }
.post-tags { color: var(--text-faint); }

/* ---------- Essay ---------- */

.essay {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 5.5rem) var(--gutter) 4rem;
}
.essay-header { margin-bottom: 3rem; }

/* Audio player */
.essay-audio { margin-bottom: 3rem; }
.essay-audio .kicker {
  font-family: var(--sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin: 0 0 0.7rem;
}
.essay-audio nui-media-player {
  font-family: var(--sans);
  font-size: 0.95rem;
  --media-box-back: var(--bg-soft);
  --media-bar-back: var(--border);
  --media-bar-proz: var(--text-faint);
  --media-bar-proz-playing: var(--accent);
}
/* Pre-upgrade window (custom element not yet :defined): reserve the final
   geometry and keep it invisible — kills both the native-control flicker
   and the layout shift. Host's own `transition: opacity .3s` fades it in. */
.essay-audio nui-media-player:not(:defined) {
  display: block;
  min-height: var(--media-control-height);
  margin-bottom: var(--nui-space);
  opacity: 0;
}

.essay-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
}
.byline { font-family: var(--sans); font-size: 0.95rem; color: var(--text-dim); }
.byline .sep { color: var(--text-faint); margin: 0 0.4rem; }
.status-note {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-dim);
  margin: -0.5rem 0 1.5rem;
}

.essay-body h1 {
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
}
.essay-body h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 1.1rem;
}
.essay-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2.25rem 0 0.9rem;
}
.essay-body p { margin: 0 0 1.5rem; }
.essay-body strong { font-weight: 600; }
.essay-body hr {
  border: none;
  border-top: 1px solid var(--border);
  width: 3rem;
  margin: 3rem auto;
}
.essay-body blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.4rem;
  border-left: 2px solid var(--border);
  color: var(--text-dim);
}
.essay-body blockquote p { margin-bottom: 0.6rem; }
.essay-body blockquote p:last-child { margin-bottom: 0; }

/* Pillars — defined statements (A/B/C). A slab with a letter badge. */
.essay-body blockquote.pillar {
  margin: 2.2rem 0;
  padding: 1.5rem 1.7rem;
  border-left: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-style: normal;
}
.essay-body blockquote.pillar p { margin: 0; }
.essay-body blockquote.pillar p + p { margin-top: 0.7rem; }
.essay-body blockquote.pillar .pillar-letter {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
  margin-right: 0.7rem;
  vertical-align: 1px;
}
/* Postulate references in prose — written as **A** / **B** / **C** */
.essay-body strong.postulate {
  font-family: var(--sans);
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.08em 0.42em;
  border-radius: 3px;
  white-space: nowrap;
}
.essay-body code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.85em;
  background: var(--bg-soft);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
.essay-body pre {
  background: var(--bg-soft);
  padding: 1.25rem 1.4rem;
  overflow-x: auto;
  border-radius: 4px;
  font-size: 0.88em;
  line-height: 1.5;
}
.essay-body pre code { background: none; padding: 0; }
/* nui-markdown wraps fenced code blocks in <nui-code> (copy button + syntax
   highlighting). Give the wrapper the same rhythm as other blocks. */
.essay-body nui-code { display: block; margin: 0 0 1.5rem; }
.essay-body nui-code .nui-code-copy { background: var(--bg-soft); border: 1px solid var(--border); }
.essay-body nui-code .nui-code-copy:hover { background: var(--bg); }
.essay-body ul, .essay-body ol { margin: 0 0 1.5rem; padding-left: 1.6rem; }
.essay-body li { margin-bottom: 0.5rem; }
.essay-body li > ul, .essay-body li > ol { margin-bottom: 0.25rem; margin-top: 0.25rem; }
.essay-body table, .arena-session table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 1.5rem;
  font-size: 0.9em;
  font-family: var(--sans);
}
.essay-body th, .essay-body td, .arena-session th, .arena-session td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.essay-body th, .arena-session th {
  background: var(--bg-soft);
  font-weight: 600;
}
.essay-body s { color: var(--text-faint); }
.essay-body img, .arena-session img { max-width: 100%; border-radius: 4px; }

/* Series / related navigation */
.series-nav {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-dim);
}
.series-nav .kicker {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
}
.series-nav ol { list-style: none; margin: 0; padding: 0; }
.series-nav li { margin: 0.25rem 0; }
.series-nav li.current { color: var(--text); }
.series-nav li.current::before { content: "— "; color: var(--accent); }
.series-nav .forthcoming { color: var(--text-faint); }
.series-nav .forthcoming::after { content: " (forthcoming)"; }

.related-nav { margin-top: 2rem; }
.related-nav .kicker {
  font-family: var(--sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
}
.related-list { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 0.95rem; }
.related-list li { margin: 0.3rem 0; }

.raw-doc {
  margin-top: 2.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-faint);
}
.raw-doc a { color: var(--text-dim); }
.raw-doc nui-icon, .downloads a nui-icon { vertical-align: -0.15em; margin-right: 0.35em; }
.raw-doc nui-icon svg, .downloads a nui-icon svg { width: 1em; height: 1em; }

/* Process footer — the authoring chain, public */
.meta-footer {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-dim);
}
.meta-footer .kicker {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
}
.meta-chain { list-style: none; margin: 0 0 0.6rem; padding: 0; }
.meta-chain li { margin: 0.2rem 0; }
.meta-chain a { color: var(--text-dim); text-decoration: none; }
.meta-chain a:hover { color: var(--accent); }
.meta-chain .role { color: var(--text-faint); margin-left: 0.4rem; }
.meta-dates { color: var(--text-faint); font-size: 0.95rem; }

/* Author page */
.author {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 5.5rem) var(--gutter) 4rem;
}
.author-role {
  font-family: var(--sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 0.8rem;
}
.author-posts { margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.author-posts .kicker {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
}
.author-post-list { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 0.95rem; }
.author-post-list li { margin: 0.3rem 0; }
.author-post-list a { color: var(--text); text-decoration: none; }
.author-post-list a:hover { color: var(--accent); }
.author-post-list .role { color: var(--text-faint); margin-left: 0.4rem; }

/* About — author directory */
.about-authors { margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.about-authors h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
.author-list { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 0.95rem; }
.author-list li { margin: 0.4rem 0; }
.author-list a { color: var(--text); text-decoration: none; }
.author-list a:hover { color: var(--accent); }
.author-list .role { color: var(--text-faint); margin-left: 0.4rem; }

/* Home — The questions (AEO: question lines carry citation weight) */
.faq { margin-top: 0; margin-bottom: clamp(3rem, 9vh, 5.5rem); }
.faq h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 1.75rem;
}
.faq-item { margin-bottom: 1.75rem; }
.faq-q { font-size: 1.08rem; font-weight: 600; margin: 0 0 0.4rem; }
.faq-a { margin: 0; color: var(--text-dim); }
.faq-a a.faq-link { color: var(--accent); text-decoration: none; white-space: nowrap; }
.faq-a a.faq-link:hover { text-decoration: underline; }

/* ---------- About / Arena ---------- */

.about, .arena {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 5.5rem) var(--gutter) 4rem;
}
.about h2, .arena h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
}
.about p, .arena p { margin: 0 0 1.4rem; }
.about ul, .arena ul { margin: 0 0 1.4rem; padding-left: 1.6rem; }
.about li, .arena li { margin-bottom: 0.5rem; }

/* ---------- Arena ---------- */

.arena-h2 { font-size: 1.35rem; font-weight: 600; margin: 3rem 0 1.2rem; }
.arena-name-note {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-faint);
  margin: 0 0 1.4rem;
}
.arena-list { list-style: none; margin: 0; padding: 0; }
.arena-list .arena-item { margin: 0; padding: 1.6rem 0; border-bottom: 1px solid var(--border); }
.arena-list .arena-item:last-child { border-bottom: none; }
.arena-link { display: flex; align-items: baseline; gap: 0.9rem; text-decoration: none; color: var(--text); flex-wrap: wrap; }
a.arena-link:hover .arena-name { color: var(--accent); }
.arena-no { font-family: var(--sans); font-size: 0.95rem; color: var(--text-faint); min-width: 2ch; }
.arena-name { font-size: 1.35rem; line-height: 1.3; letter-spacing: -0.01em; }
.arena-models { font-family: var(--sans); font-size: 0.95rem; color: var(--text-dim); }
.arena-fnote {
  font-family: var(--sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.arena-link.forthcoming .arena-name { color: var(--text-faint); }
.arena-link.forthcoming:hover .arena-name { color: var(--text-faint); }
.arena-item .arena-case {
  margin: 0.6rem 0 0 3rem;
  padding: 0;
  background: none;
  color: var(--text-dim);
}

.arena-session {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 5.5rem) var(--gutter) 4rem;
}
.arena-case {
  margin: 0 0 2rem;
  padding: 1.25rem 1.4rem;
  background: var(--bg-soft);
  border-radius: 4px;
  color: var(--text);
}
.arena-case-label {
  font-family: var(--sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin: 0 0 0.4rem;
}
.arena-case p { margin: 0; }
.arena-seed {
  margin: 0 0 2rem;
  padding: 1.25rem 1.4rem;
  border-left: 2px solid var(--accent);
  background: var(--bg-soft);
}
.arena-seed-label {
  font-family: var(--sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin: 0 0 0.4rem;
}
.arena-seed-text { margin: 0; color: var(--text-dim); }

.downloads {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  margin: 0 0 3rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.downloads-label { color: var(--text-faint); font-size: 0.95rem; }
.downloads a { color: var(--text-dim); text-underline-offset: 2px; }
.downloads a:hover { color: var(--accent); }

.transcript .turns { list-style: none; margin: 0; padding: 0; }
.transcript .turn {
  margin: 0;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
}
.transcript .turn:first-child { border-top: none; }
.turn-speaker {
  font-family: var(--sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin: 0 0 0.6rem;
}
.turn-b .turn-speaker { color: var(--accent); }
.turn-text p { margin: 0; }
.name-line { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 400; margin: 0 0 0.25rem; letter-spacing: -0.015em; }
.real-name { font-family: var(--sans); font-size: 0.95rem; color: var(--text-dim); margin: 0 0 2rem; }
.lede { font-size: 1.2rem; color: var(--text-dim); line-height: 1.6; margin: 0 0 1.5rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- View Transitions (route swaps) ----------
   Browser-native crossfade. Opt-in per navigation (the JS click handler
   calls document.startViewTransition). Default 150ms — fast fade-out,
   fade-in as a single morph. Both phases are the same duration, so the
   crossfade is symmetric. The old/new keyframes are the same shape
   (opacity 0/1) with different start points; the browser interpolates
   between them in lockstep. */
@media not (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 150ms;
    animation-timing-function: ease;
  }
  ::view-transition-old(root) {
    animation-name: vt-fade-out;
  }
  ::view-transition-new(root) {
    animation-name: vt-fade-in;
  }
  @keyframes vt-fade-out {
    to { opacity: 0; }
  }
  @keyframes vt-fade-in {
    from { opacity: 0; }
  }
}
