:root {
  color-scheme: dark;
  --bg: #08121b;
  --surface: #0e1b26;
  --raised: #15232d;
  --ink: #f2e8d9;
  --muted: #aaa89f;
  --accent: #d8ae7b;
  --copper: #b77b50;
  --line: #354047;
  --control: #7b7060;
  --serif: "Baskerville", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.65;
}

* { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100dvh; margin: 0; background: var(--bg); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, select { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled, select:disabled { opacity: .5; cursor: default; }
button svg { pointer-events: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
input, select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--control);
  border-radius: 3px;
}
input::placeholder { color: var(--muted); }
h1, h2, h3, h4, p, dl, figure { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.17;
}
h2 { font-size: clamp(30px, 3.3vw, 43px); }
h3 { font-size: 25px; }
p { overflow-wrap: anywhere; }
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 36px 60px; }
main:focus { outline: none; }
main [tabindex="-1"]:focus { outline: none; }
section { scroll-margin-top: 28px; }
.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 2.1px;
  line-height: 1.65;
}
.small { font-size: 11px; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 10;
  padding: 12px;
  background: var(--surface);
}
.skip-link:focus { top: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid var(--control);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
}
.primary { color: #17212a; background: var(--accent); border-color: var(--accent); }
.primary:hover { background: #e9c89f; }
.secondary { background: var(--surface); }
.secondary:hover:not(:disabled) { background: var(--raised); border-color: var(--accent); }
.text-link {
  color: var(--accent);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* The transparent vector mark and mission artwork share a quiet frame. */
.site-header {
  width: 100%;
  max-width: 1320px;
  margin: auto;
  padding: 16px 36px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.brand img { display: block; width: 80px; height: 80px; object-fit: contain; }
.brand strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: .4px;
  line-height: 1.2;
}
.brand small { color: var(--accent); font-size: 7px; letter-spacing: 2.3px; }
nav { display: flex; gap: 25px; margin-left: auto; }
nav a { padding: 12px 0; border-bottom: 2px solid transparent; font-size: 12px; color: #cdc6ba; }
nav a:hover { color: var(--accent); }
nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }
.header-label { padding-left: 26px; border-left: 1px solid var(--line); color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 15px; }
.world-hero { padding-top: 14px; }
.channel-banner { margin: 0; border: 1px solid #41413e; }
.channel-banner img { display: block; width: 100%; height: auto; }
.channel-banner figcaption { padding: 6px 10px; color: var(--muted); font-size: 9px; letter-spacing: .5px; }
.hero-copy { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 25px 0; }
.hero-intro { font-family: var(--serif); font-size: 26px; line-height: 1.4; }
.hero-intro span { display: block; margin-top: 4px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--muted); font-size: 12px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.world-context { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 15px 0; border-top: 1px solid var(--line); }
.world-dateline { display: flex; align-items: baseline; gap: 15px; flex-wrap: wrap; }
.world-dateline strong { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.snapshot-caption { color: var(--muted); font-size: 11px; }
.edition-control { display: flex; align-items: center; gap: 10px; min-width: 0; }
.release-label { font-size: 10px; color: var(--muted); }
.edition-control select { width: 275px; min-height: 35px; padding: 6px 9px; font-size: 11px; }
.load-status { display: flex; align-items: center; gap: 15px; margin: 12px 0 20px; padding: 13px 16px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.load-status.error { color: #ecad9b; border-color: #785244; }
.load-status .button { margin-left: auto; flex-shrink: 0; }
.world-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; padding: 19px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.world-stats > div { display: flex; align-items: baseline; gap: 12px; }
.world-stats dt { order: 1; color: var(--muted); font-size: 10px; }
.world-stats dd { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.2; }

/* Stories are arranged as an editorial index, with readable chapters. */
.section { margin-top: 32px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading > p { max-width: 280px; color: var(--muted); font-size: 12px; }
.playlist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 32px; }
.playlist-card { display: grid; gap: 8px; padding: 22px 0 20px; border: 0; border-top: 1px solid var(--control); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; }
.playlist-card[aria-pressed="true"] { border-top: 2px solid var(--accent); padding-top: 21px; }
.playlist-card:hover { border-color: var(--accent); }
.playlist-number { color: var(--accent); font-size: 9px; letter-spacing: 1.8px; }
.playlist-card strong { font-family: var(--serif); font-size: 37px; font-weight: 400; line-height: 1.2; }
.playlist-card > span:not(.playlist-number):not(.playlist-action) { font-size: 12px; color: var(--muted); }
.playlist-action { margin-top: 9px; color: var(--accent); font-size: 11px; }
.story-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 38px; align-items: start; }
.episode-index { min-width: 0; padding-top: 8px; }
.episode-index h3 { font-size: 23px; margin-bottom: 8px; }
.episode-list { display: grid; gap: 0; max-height: 470px; margin-top: 16px; padding: 3px; overflow: auto; }
.episode-card { display: grid; gap: 5px; width: 100%; padding: 16px 12px; border: 0; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; border-radius: 0; background: transparent; text-align: left; line-height: 1.55; }
.episode-card strong { font-family: var(--serif); font-size: 18px; font-weight: 400; overflow-wrap: anywhere; }
.episode-card small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: 1.5px; }
.episode-card[aria-current="true"] { border-left-color: var(--accent); background: var(--surface); }
.episode-reader { min-width: 0; min-height: 240px; padding: 31px 36px; border: 1px solid var(--line); background: var(--surface); }
.episode-reader > h3 { margin-bottom: 12px; font-size: clamp(29px, 3vw, 40px); line-height: 1.2; }
.episode-reader > .eyebrow { margin-bottom: 10px; }
.episode-reader > .text-link { display: inline-block; margin-top: 23px; }
.episode-story { margin-top: 25px; }
.story-formats { margin-top: 18px; }
.story-formats > .text-link { display: inline-block; font-size: 12px; }
.story-markdown { margin-top: 14px; }
.story-markdown > summary { color: var(--accent); cursor: pointer; font-size: 12px; }
.story-markdown > p { margin: 14px 0 10px; line-height: 1.7; }
.story-markdown pre { max-height: 440px; margin: 0; padding: 18px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: #09131c; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.8; tab-size: 2; }
.story-chapter { border-top: 1px solid var(--line); padding: 16px 0; }
.story-chapter:last-child { border-bottom: 1px solid var(--line); }
.story-chapter > summary { cursor: pointer; font-family: var(--serif); font-size: 23px; line-height: 1.35; }
.chapter-intro { margin-top: 15px; color: var(--muted); font-size: 12px; }
.chapter-paragraphs { margin-top: 18px; }
.story-paragraph + .story-paragraph { margin-top: 22px; }
.story-paragraph > p { color: #e1d9cd; font-family: var(--serif); font-size: 19px; line-height: 1.72; }
.complete-narration { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.complete-narration > summary { color: var(--accent); cursor: pointer; font-size: 12px; }
.complete-narration > div { margin-top: 20px; }
.source-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.source-chip { min-width: 28px; min-height: 28px; padding: 2px 6px; border: 0; border-bottom: 1px solid var(--control); border-radius: 0; color: var(--accent); background: transparent; font-size: 10px; line-height: 1.5; }
.source-chip:hover { color: var(--ink); border-color: var(--accent); }
#episode-status { margin-top: 14px; color: var(--muted); font-size: 11px; }
.archive-notes { margin-top: 26px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }
.archive-notes summary { color: var(--ink); font-size: 11px; cursor: pointer; }
.archive-notes p { margin-top: 12px; }
.empty-note { padding: 17px 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

/* Illustrated terrain remains separate from the recorded model positions. */
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map-surface { min-width: 0; background: #0b1822; }
.atlas-frame { position: relative; overflow: hidden; background: #243b37; isolation: isolate; }
#world-map { display: block; width: 100%; height: auto; aspect-ratio: 10 / 7; min-height: 290px; cursor: grab; touch-action: none; user-select: none; }
#world-map:active { cursor: grabbing; }
#world-map:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.atlas-background { fill: #243b37; }
.atlas-terrain { pointer-events: none; }
.atlas-person { fill: #fff4db; stroke: #243b37; stroke-width: 1; cursor: pointer; }
.atlas-community { cursor: pointer; outline: none; }
.atlas-community-halo { fill: #e5ba73; fill-opacity: .16; stroke: #fce5b1; stroke-opacity: .55; stroke-width: 1; }
.atlas-community-dot { fill: #f4d08b; stroke: #243b37; stroke-width: 2; }
.atlas-community-label-bg { fill: #0b171b; fill-opacity: .85; stroke: #f4d08b; stroke-opacity: .3; stroke-width: .7; }
.atlas-community-label { fill: #fff3da; font-family: var(--serif); font-size: 14px; }
.atlas-community:hover .atlas-community-label-bg, .atlas-community:focus-visible .atlas-community-label-bg, .atlas-community.selected .atlas-community-label-bg { fill: #f4d08b; fill-opacity: 1; stroke: #fff3da; }
.atlas-community:hover .atlas-community-label, .atlas-community:focus-visible .atlas-community-label, .atlas-community.selected .atlas-community-label { fill: #152323; }
.atlas-community.selected .atlas-community-halo, .atlas-community:focus-visible .atlas-community-halo { fill-opacity: .35; stroke-width: 2; stroke-opacity: 1; }
.atlas-heading { position: absolute; top: 26px; left: 26px; color: #fff8e8; text-shadow: 0 2px 14px #09191b, 0 1px 3px #09191b; pointer-events: none; }
.atlas-heading span { display: block; font-size: 9px; font-weight: 600; letter-spacing: 4px; }
.atlas-heading strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.atlas-compass { position: absolute; top: 24px; right: 24px; display: grid; justify-items: center; gap: 5px; color: #fff7e3; font-size: 10px; text-shadow: 0 1px 3px #142627; pointer-events: none; }
.atlas-compass i { display: block; width: 13px; height: 28px; background: linear-gradient(90deg, #fff3d5 50%, #416064 50%); clip-path: polygon(50% 0, 100% 100%, 50% 75%, 0 100%); }
.atlas-controls { position: absolute; display: flex; align-items: center; bottom: 18px; left: 18px; padding: 3px; border: 1px solid #a8b6a455; border-radius: 4px; background: #0b171bef; box-shadow: 0 3px 16px #07181b44; }
.atlas-controls button { min-width: 40px; min-height: 40px; padding: 5px 11px; border: 0; background: transparent; color: #f5e8d1; font-size: 23px; }
.atlas-controls button:hover { background: #ffffff14; }
.atlas-controls button:disabled { opacity: .35; }
.atlas-controls #map-reset { border-left: 1px solid #a8b6a455; margin-left: 3px; font-size: 11px; }
.atlas-controls output { min-width: 32px; text-align: center; color: #c6cbbf; font-size: 10px; }
.atlas-empty { position: absolute; top: 45%; left: 10%; right: 10%; margin: 0; padding: 14px; text-align: center; color: #fff3da; background: #0b171bef; font-size: 13px; }
.map-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 13px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.map-legend > span { display: flex; align-items: center; gap: 7px; }
.map-legend > span:last-child { margin-left: auto; }
.map-people-toggle { display: flex; align-items: center; gap: 6px; min-height: 24px; cursor: pointer; }
.map-people-toggle input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
.map-help { margin: 26px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.8; }
#map-record-count { margin: 8px 0 24px; line-height: 1.7; }
.legend-commune { width: 9px; height: 9px; border: 1px solid var(--accent); border-radius: 50%; }
.legend-person { width: 5px; height: 5px; border-radius: 50%; background: #c7beb0; }
.place-panel { min-width: 0; padding: 22px; border-left: 1px solid var(--line); }
.place-panel > label { display: block; margin-bottom: 8px; font-size: 11px; }
#place-details { margin-top: 20px; font-size: 12px; line-height: 1.8; }
#place-details h3 { margin-bottom: 12px; font-size: 27px; }
.fact-list { display: grid; gap: 11px; margin: 20px 0; }
.fact-list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
.fact-list dt { color: var(--muted); font-size: 11px; }
.fact-list dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.place-panel .fact-list > div { grid-template-columns: 1fr; gap: 0; }
.resident-links { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0; }
.inline-person { padding: 5px 8px; border: 1px solid var(--line); border-radius: 2px; color: var(--accent); background: transparent; font-size: 11px; }

/* Life records and supporting context. */
.people-filters { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 15px; margin-bottom: 17px; }
.people-filters label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.people-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 23px; margin: 15px 0 20px; padding: 0; list-style: none; }
.person-card { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 85px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; line-height: 1.5; }
.person-card:hover { border-color: var(--accent); }
.person-initials { display: grid; place-items: center; width: 37px; height: 42px; flex-shrink: 0; border: 1px solid var(--line); color: var(--accent); font-family: var(--serif); font-size: 16px; }
.person-card strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 400; overflow-wrap: anywhere; }
.person-card small { display: block; color: var(--muted); font-size: 10px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; }
.pagination .button { min-height: 36px; font-size: 11px; }
.about-section { padding-top: 0; }
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.about-grid h3 { margin-bottom: 13px; font-size: 25px; }
.about-grid p { color: var(--muted); font-size: 12px; line-height: 1.9; }
.about-grid p + p { margin-top: 13px; }
.economy-stats > div { display: block; }
.economy-stats dd { margin: 6px 0 0; font-size: clamp(22px, 2.4vw, 28px); overflow-wrap: anywhere; }
.economy-context { margin: 16px 0 25px; max-width: 820px; font-size: 12px; line-height: 1.85; }
.economy-landscape { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 38px; align-items: start; }
.economy-block { margin-top: 24px; padding-top: 23px; border-top: 1px solid var(--line); min-width: 0; }
.economy-block h3 { margin-bottom: 14px; font-size: 28px; }
#economy-food-chart { display: block; width: 100%; height: auto; margin: 24px 0 13px; overflow: visible; }
.economy-chart-grid { stroke: var(--line); stroke-width: 1; }
.economy-chart-label { fill: var(--muted); font-size: 16px; }
.economy-chart-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.economy-chart-point { fill: var(--accent); }
.economy-occupations, .economy-sectors { padding: 0; list-style: none; }
.economy-occupations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; margin: 22px 0 0; }
.economy-occupation > div { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; }
.economy-occupation strong { font-weight: 400; overflow-wrap: anywhere; }
.economy-occupation span { color: var(--accent); }
.economy-occupation meter { display: block; width: 100%; height: 8px; margin-top: 6px; accent-color: var(--accent); }
.economy-occupation meter::-webkit-meter-bar { border: 0; border-radius: 0; background: var(--raised); }
.economy-occupation meter::-webkit-meter-optimum-value { background: var(--accent); }
.economy-occupation meter::-moz-meter-bar { background: var(--accent); }
#economy-flows .fact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 35px; }
#economy-flows .fact-list > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.economy-sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; margin-top: 12px; }
.economy-sector { padding: 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.economy-sector h4 { margin-bottom: 10px; font-size: 22px; overflow-wrap: anywhere; }
.economy-sector p { margin-top: 7px; font-size: 11px; }
.economy-paid { color: var(--accent); }
.economy-communes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; align-items: start; }
.economy-commune { min-width: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.economy-commune summary { cursor: pointer; font-family: var(--serif); font-size: 23px; }
.economy-commune > p { margin-top: 10px; font-size: 11px; }
.literature-section { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--line); }
.literature-section h3 { font-size: clamp(27px, 3vw, 34px); }
.literature-intro { max-width: 800px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.literature-filters { margin-top: 24px; }
#literature-count { margin-top: 18px; scroll-margin-top: 20px; }
#literature-retry { margin-top: 14px; }
.literature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; margin: 8px 0 24px; padding: 0; list-style: none; }
.literature-entry { min-width: 0; padding: 23px 0; border-bottom: 1px solid var(--line); }
.literature-meta { color: var(--accent); font-size: 10px; }
.literature-entry h4 { margin: 9px 0; font-size: 23px; line-height: 1.3; overflow-wrap: anywhere; }
.literature-authors { color: var(--ink); font-size: 12px; }
.literature-topics, .literature-status { margin-top: 8px; color: var(--muted); font-size: 10px; }
.literature-notes { margin-top: 13px; font-size: 11px; line-height: 1.85; }
.literature-notes summary { cursor: pointer; color: var(--ink); }
.literature-notes p { margin-top: 12px; color: var(--muted); }
.literature-notes strong { color: var(--ink); font-weight: 550; }
.literature-entry > .text-link { display: inline-block; margin-top: 14px; font-size: 11px; }
footer { display: flex; align-items: center; gap: 27px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px 36px 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.footer-brand { color: var(--accent); font-family: var(--serif); font-size: 26px; }
footer > a:last-child { margin-left: auto; }
dialog { width: min(660px, calc(100% - 32px)); max-height: 85dvh; padding: 28px 32px; overflow: auto; border: 1px solid var(--control); border-radius: 4px; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: #030b12d9; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.dialog-heading .eyebrow { margin: 0; }
.close-button { width: 36px; height: 36px; border: 1px solid var(--control); border-radius: 2px; background: transparent; font-size: 24px; line-height: 1; }
dialog h2 { font-size: 33px; line-height: 1.25; }
dialog h3 { margin: 24px 0 13px; font-size: 25px; }
dialog p { margin-top: 15px; font-size: 12px; line-height: 1.85; }
.source-description { color: var(--ink); font-family: var(--serif); font-size: 20px !important; }
.source-reference { color: var(--accent); font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.relationship-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.relationship-list li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.dialog-note { padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); }
.original-wording { margin-top: 20px; color: var(--muted); font-size: 11px; }
.original-wording summary { cursor: pointer; }
.source-link { display: inline-block; margin-top: 24px; }
::selection { color: #17212a; background: var(--accent); }

@media (max-width: 1100px) {
  .header-label { display: none; }
  .hero-actions { gap: 15px; }
  .hero-intro { font-size: 24px; }
  .story-layout { grid-template-columns: 195px minmax(0, 1fr); gap: 24px; }
  .episode-reader { padding: 27px; }
  .map-layout { grid-template-columns: minmax(0, 1fr) 245px; }
  .people-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world-stats > div { display: block; }
  .world-stats dt { margin-top: 4px; }
  .world-stats dd { margin-top: 2px; }
}

@media (max-width: 720px) {
  main { padding: 0 18px 38px; }
  .site-header { flex-wrap: wrap; gap: 5px; padding: 9px 18px 8px; }
  .brand img { width: 60px; height: 60px; }
  .brand strong { font-size: 30px; }
  .brand small { font-size: 6px; letter-spacing: 1.8px; }
  nav { justify-content: space-between; gap: 4px; width: 100%; margin: 3px 0 0; border-top: 1px solid var(--line); }
  nav a { display: grid; place-items: center; min-height: 44px; padding: 8px 4px 5px; font-size: 11px; }
  .world-hero { padding-top: 6px; }
  .channel-banner { margin: 0 -18px; border-right: 0; border-left: 0; }
  .hero-copy { align-items: start; flex-direction: column; gap: 14px; padding: 17px 0; }
  .hero-intro { font-size: 24px; line-height: 1.25; }
  .hero-intro span { max-width: 340px; margin-top: 7px; font-size: 11px; line-height: 1.65; }
  .hero-actions { gap: 20px; width: 100%; }
  .hero-actions .button { min-height: 38px; padding: 9px 13px; font-size: 11px; }
  .hero-actions .text-link { font-size: 11px; }
  .world-context { align-items: stretch; flex-direction: column; gap: 10px; padding: 12px 0; }
  .world-dateline { gap: 7px 12px; }
  .world-dateline strong { font-size: 19px; }
  .snapshot-caption { font-size: 10px; }
  .edition-control { gap: 12px; }
  .edition-control select { width: 100%; min-height: 33px; font-size: 10px; }
  .release-label { width: 43px; flex-shrink: 0; font-size: 9px; }
  .world-stats { gap: 10px; padding: 12px 0; }
  .world-stats dt { margin: 0; font-size: 8px; line-height: 1.4; }
  .world-stats dd { margin-top: 4px; font-size: 24px; }
  .section { margin-top: 23px; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 19px; }
  .section-heading h2 { font-size: 33px; }
  .section-heading > p { max-width: none; font-size: 11px; }
  .section-heading .eyebrow { margin-bottom: 7px; }
  .playlist-grid { gap: 20px; margin-bottom: 22px; }
  .playlist-card { gap: 8px; padding: 15px 0; }
  .playlist-card[aria-pressed="true"] { padding-top: 14px; }
  .playlist-card strong { font-size: 30px; }
  .playlist-number { font-size: 7px; letter-spacing: 1px; }
  .playlist-card > span:not(.playlist-number):not(.playlist-action) { font-size: 10px; line-height: 1.65; }
  .playlist-action { margin-top: 5px; font-size: 10px; }
  .story-layout { grid-template-columns: 1fr; gap: 18px; }
  .episode-index { padding: 0; }
  .episode-index h3 { font-size: 24px; }
  .episode-list { display: flex; gap: 10px; max-height: none; margin-top: 12px; padding: 3px 3px 8px; overflow: auto; scroll-snap-type: x proximity; }
  .episode-card { min-width: 210px; max-width: 260px; padding: 12px; flex-shrink: 0; scroll-snap-align: start; border: 1px solid var(--line); }
  .episode-card[aria-current="true"] { border-color: var(--accent); }
  .episode-card strong { font-size: 19px; }
  .episode-reader { padding: 23px 19px; }
  .episode-reader > h3 { font-size: 31px; }
  .story-chapter > summary { font-size: 23px; }
  .story-paragraph > p { font-size: 18px; line-height: 1.7; }
  .source-chip { min-height: 32px; min-width: 32px; }
  .map-layout { grid-template-columns: 1fr; }
  .map-surface { overflow: hidden; }
  #world-map { min-height: 0; }
  .atlas-heading { display: none; }
  .atlas-compass { top: 14px; right: 14px; }
  .atlas-controls { position: static; justify-content: center; border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
  .map-legend { gap: 13px; padding: 12px; font-size: 9px; }
  .map-legend > span:last-child { margin-left: 0; }
  .place-panel { padding: 21px; border-top: 1px solid var(--line); border-left: 0; }
  .place-panel .fact-list > div { grid-template-columns: 100px minmax(0, 1fr); }
  .people-filters { grid-template-columns: 1fr 1fr; gap: 12px; }
  .search-field { grid-column: 1 / -1; }
  .people-list { grid-template-columns: 1fr; }
  .person-card { min-height: 75px; padding: 11px 0; }
  .person-card strong { font-size: 18px; }
  .about-section { padding-top: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .economy-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .economy-landscape, .economy-occupations, .economy-sectors, .economy-communes, #economy-flows .fact-list { grid-template-columns: 1fr; }
  .economy-landscape { gap: 0; }
  .economy-chart-label { font-size: 24px; }
  .literature-list { grid-template-columns: 1fr; }
  .literature-section { margin-top: 28px; padding-top: 25px; }
  .about-grid h3 { margin-bottom: 10px; font-size: 27px; }
  footer { flex-wrap: wrap; gap: 10px; padding: 22px 18px 27px; }
  footer > p { width: 100%; order: 2; }
  footer > a:last-child { font-size: 9px; }
  dialog { padding: 22px 20px; }
  dialog h2 { font-size: 30px; }
  .fact-list > div { grid-template-columns: 100px minmax(0, 1fr); }
  .load-status { align-items: start; flex-direction: column; }
  .load-status .button { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
