@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #101315;
  --panel: #191e20;
  --ink: #ede9df;
  --muted: #a4aaa6;
  --line: #343c3b;
  --accent: #e78a73;
  --accent-strong: #df6954;
  --sage: #b8c9b6;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  font-family: var(--sans);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.65; }
body.reader-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-underline-offset: 5px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--sage); outline-offset: 5px; }
::selection { background: #793c32; color: #fff; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.8rem); letter-spacing: -.055em; line-height: 1.12; font-weight: 500; margin-bottom: 24px; }
h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.25; letter-spacing: -.03em; }
.section-shell { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.section-space { padding-block: 108px; }
.eyebrow, .tiny-label, .hero-topline, .hero-bottom, .map-caption { font: .69rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.eyebrow { color: var(--sage); margin-bottom: 27px; }
.section-number { color: var(--accent); margin-right: 16px; }
.tiny-label { color: var(--muted); }
.small { font-size: .8rem; }
.muted { color: var(--muted); }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px 20px; background: var(--ink); color: var(--bg); z-index: 20; }
.skip-link:focus { top: 12px; }
.site-header { height: 88px; display: flex; align-items: center; gap: 36px; padding-inline: 56px; border-bottom: 1px solid var(--line); background: #101315f0; position: sticky; top: 0; z-index: 10; backdrop-filter: blur(18px); }
.wordmark { display: inline-flex; align-items: center; gap: 7px; font-size: 1.65rem; font-weight: 800; letter-spacing: -.08em; text-decoration: none; line-height: 1; }
.brand-dot { width: 6px; height: 6px; display: inline-block; background: var(--accent-strong); border-radius: 50%; margin-top: 13px; }
.primary-nav { display: flex; gap: 27px; margin: auto; }
.primary-nav a { color: var(--muted); font-size: .78rem; text-decoration: none; }
.primary-nav a:hover { color: var(--ink); }
.spoiler-control { position: relative; display: flex; align-items: center; gap: 10px; min-height: 24px; cursor: pointer; font-size: .71rem; color: var(--muted); white-space: nowrap; }
.spoiler-control strong { color: var(--ink); font-weight: 500; }
.spoiler-control input { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 24px; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch { display: inline-block; width: 30px; height: 17px; border: 1px solid #68736c; border-radius: 20px; position: relative; }
.switch::after { content: ""; position: absolute; height: 9px; width: 9px; background: var(--muted); border-radius: 50%; top: 3px; left: 3px; transition: transform .2s; }
.spoiler-control input:checked + .switch { background: #5b2d27; border-color: var(--accent); }
.spoiler-control input:checked + .switch::after { background: var(--accent); transform: translateX(13px); }
.spoiler-control input:focus-visible + .switch { outline: 2px solid var(--sage); outline-offset: 5px; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; font-size: .8rem; }
.hero { min-height: 760px; height: calc(100svh - 88px); max-height: 1040px; position: relative; display: flex; flex-direction: column; isolation: isolate; }
.hero-topline { display: flex; justify-content: space-between; padding-top: 35px; color: var(--muted); }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 10px #b8c9b640; margin-right: 9px; vertical-align: middle; }
.hero-copy { position: relative; padding-top: clamp(50px, 8vh, 90px); }
.hero-copy .eyebrow { color: var(--muted); margin-bottom: 6px; font-size: .62rem; }
h1 { font-size: clamp(8rem, 17.5vw, 16.5rem); line-height: .98; letter-spacing: -.08em; font-weight: 850; margin: 0 0 26px -9px; }
.title-period { color: var(--accent-strong); }
.hero-tagline { font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 2.15rem); line-height: 1.28; letter-spacing: -.02em; margin-bottom: 18px; }
.hero-description { color: var(--muted); max-width: 315px; font-size: .84rem; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 38px; min-height: 49px; border: 1px solid transparent; padding: 12px 21px; text-decoration: none; font-size: .8rem; font-weight: 600; transition: background .2s, transform .2s; border-radius: 2px; }
.button-primary { background: var(--sage); color: #17201b; }
.button-primary:hover:not(:disabled) { background: #d0dfce; transform: translateY(-2px); }
.button-secondary { border-color: var(--line); background: var(--panel); }
.button-secondary:hover:not(:disabled) { border-color: var(--sage); }
.text-link { border: 0; padding: 8px 0; background: transparent; color: var(--ink); font-size: .8rem; text-decoration: none; }
.text-link:hover { color: var(--accent); }
.text-link span { margin-left: 12px; }
.content-advisory { margin-top: 21px; max-width: 380px; font-size: .66rem; color: var(--muted); }
.content-advisory span { color: var(--accent); margin-right: 5px; }
.hero-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; padding-block: 28px; color: var(--muted); font-size: .6rem; }
.hero-bottom a { text-decoration: none; }
.hero-bottom a span { margin-left: 25px; }
.hero-art { position: absolute; inset: 0 -56px; overflow: hidden; z-index: -1; pointer-events: none; }
.starfield { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 60% 19%, #e6ddd8 90%, transparent),radial-gradient(1px 1px at 73% 45%, #b7c6bc 90%, transparent),radial-gradient(1.5px 1.5px at 83% 11%, #e6ddd8 90%, transparent),radial-gradient(1px 1px at 51% 37%, #b7c6bc 90%, transparent),radial-gradient(1px 1px at 92% 64%, #e6ddd8 90%, transparent),radial-gradient(1px 1px at 89% 29%, #e6ddd8 90%, transparent); opacity: .6; }
.hero-moon { position: absolute; width: clamp(280px, 34vw, 550px); aspect-ratio: 1; top: 13%; right: 8%; border-radius: 50%; background: radial-gradient(ellipse at 32% 26%, #a99d85 0, #726c5d 15%, #444940 37%, #202a28 58%, #101817 76%); box-shadow: -12px -8px 45px #c0b29b12, inset 2px 2px 8px #dcd8bc80, 0 0 130px #af442017; overflow: hidden; transform: rotate(-18deg); }
.hero-moon::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(ellipse at 30% 24%, transparent 0 9px, #0b121238 12px 14px, transparent 18px 31px), radial-gradient(ellipse at 70% 24%, #0005 0 8%, transparent 9%), radial-gradient(ellipse at 42% 65%, #0e1618 0 10%, transparent 12%); opacity: .42; }
.hero-moon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 8%, #10131520 30%, #101315c7 76%); }
.hero-moon span { position: absolute; inset: 0; background: #e47c57; clip-path: polygon(38% 0, 43% 16%, 39% 28%, 47% 43%, 41% 50%, 48% 69%, 42% 85%, 46% 100%, 44% 100%, 40% 85%, 45% 69%, 38% 50%, 44% 43%, 36% 28%, 40% 16%, 36% 0); filter: drop-shadow(0 0 8px #d65939); opacity: .75; }
.horizon { position: absolute; width: 120%; height: 58%; border-radius: 50% 50% 0 0; bottom: -23%; right: -35%; background: radial-gradient(ellipse at 30% 0, #614335 0, #242526 13%, #101315 51%); border-top: 1px solid #a9795b7a; box-shadow: 0 -15px 55px #b7603220; transform: rotate(-15deg); }
.orbit-line { position: absolute; width: 66%; height: 47%; border: 1px solid #77807420; right: -5%; top: 35%; border-radius: 50%; transform: rotate(-26deg); }
.premise { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12%; border-top: 1px solid var(--line); }
.premise-copy { padding-top: 7px; }
.premise-copy p { color: var(--muted); font-size: .95rem; }
.premise-copy .lead { color: var(--ink); font-size: 1.2rem; line-height: 1.6; }
.premise-rule { margin-top: 32px; padding-left: 20px; border-left: 2px solid var(--accent-strong); }
.premise-rule p { color: var(--ink); font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; margin: 7px 0 0; }
.stat-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 74px; padding-block: 28px 0; border-top: 1px solid var(--line); gap: 30px; }
.stat-strip strong { font-family: var(--mono); font-weight: 400; font-size: 2.2rem; letter-spacing: -.07em; }
.stat-strip strong span { font-size: .58rem; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; margin-left: 9px; }
.stat-strip p { color: var(--muted); font-size: .73rem; max-width: 170px; margin-top: 5px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 35px; }
.section-heading h2 { margin-bottom: 0; }
.section-aside { color: var(--muted); font-size: .83rem; max-width: 285px; }
.section-aside p { margin-bottom: 15px; }
.section-aside .text-link { display: block; font-size: .7rem; color: var(--muted); }
#chapters { border-top: 1px solid var(--line); }
.chapter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 30px; }
.chapter-card { position: relative; text-align: left; padding: 27px 24px; min-height: 235px; background: var(--bg); border: 0; display: flex; flex-direction: column; align-items: flex-start; transition: background .2s; }
.chapter-card:hover { background: #202524; }
.chapter-card .chapter-number { color: var(--muted); font: .65rem var(--mono); letter-spacing: .1em; }
.chapter-card .chapter-arrow { position: absolute; right: 23px; top: 22px; font-size: 1.1rem; color: var(--muted); transition: color .2s, transform .2s; }
.chapter-card:hover .chapter-arrow { color: var(--accent); transform: translate(2px, -2px); }
.chapter-card h3 { margin: 29px 0 10px; font-family: var(--serif); font-size: 1.6rem; }
.chapter-card p { font-size: .75rem; color: var(--muted); line-height: 1.65; margin-bottom: 25px; }
.chapter-card .chapter-period { margin-top: auto; font: .62rem var(--mono); color: var(--sage); }
.chapter-card.is-read::after { content: "READ"; color: var(--sage); font: .6rem var(--mono); position: absolute; right: 23px; bottom: 29px; }
.chapter-card:nth-child(5) { background: #271c1a; }
.chapter-card:nth-child(5):hover { background: #342320; }
.world-section, .signals-section { background: #151a1b; border-block: 1px solid var(--line); }
.universe-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; }
.mission-map { min-width: 0; padding-top: 10px; }
.mission-map svg { width: 100%; height: auto; }
.map-grid { fill: none; stroke: #65767026; stroke-width: 1; }
.map-routes { stroke: #5e71675e; fill: none; stroke-width: 1.5; stroke-dasharray: 4 5; }
.map-routes .active { stroke: var(--accent); stroke-width: 2; stroke-dasharray: none; }
.map-nodes { fill: #6e7c73; }
.map-nodes .active { fill: var(--accent); filter: drop-shadow(0 0 7px #e78a7380); }
.map-labels { fill: var(--muted); font: 9px var(--mono); letter-spacing: 1px; }
.map-caption { text-align: center; font-size: .58rem; color: var(--muted); }
.fleet-selector { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.fleet-selector button, .filter-group button { padding: 9px 13px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 2px; font-size: .74rem; min-height: 40px; }
.fleet-selector button[aria-pressed="true"], .filter-group button[aria-pressed="true"] { border-color: var(--sage); color: var(--ink); background: #b8c9b612; }
.fleet-detail { min-height: 290px; margin-top: 30px; }
.fleet-detail h3 { font: 2.8rem/1.15 var(--serif); margin: 10px 0 16px; }
.fleet-detail p { font-size: .85rem; color: var(--muted); }
.fleet-detail dl { display: grid; grid-template-columns: 1fr 1fr; margin: 23px 0; gap: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
dt { font: .6rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 5px; }
dd { margin: 0; font-size: .85rem; }
.spoiler-note { padding: 12px 15px; border-left: 2px solid var(--accent); background: #e78a7308; }
.spoiler-note p { margin: 3px 0 0; }
.world-notes { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 50px; align-items: center; border-top: 1px solid var(--line); padding-top: 35px; margin-top: 35px; }
.world-notes h3 { font-family: var(--serif); font-size: 2rem; margin-top: 10px; }
.world-notes p { color: var(--muted); font-size: .81rem; }
.two-moons { position: relative; height: 180px; }
.agape { position: absolute; width: 78px; height: 78px; border-radius: 50%; background: radial-gradient(circle at 27% 27%, #d3c9b6, #6c7062 45%, #212b28 80%); top: 38px; left: 25%; box-shadow: -4px -4px 20px #d3c9b615; }
.ales { position: absolute; width: 33px; height: 33px; border-radius: 50%; background: linear-gradient(120deg, #a6b6b0, #586963 35%, #222e2a 60%); top: 85px; left: 70%; }
.moon-orbit { position: absolute; border: 1px solid #69796b38; width: 96%; height: 100px; border-radius: 50%; transform: rotate(-25deg); top: 37px; left: 7%; }
.character-toolbar { display: flex; justify-content: space-between; gap: 25px; align-items: flex-end; margin-bottom: 28px; }
.search-label { display: flex; flex-direction: column; gap: 8px; flex: 0 1 310px; }
input[type="search"] { background: transparent; border: 0; border-bottom: 1px solid #657068; color: var(--ink); width: 100%; min-height: 45px; padding: 8px 0; font-size: .85rem; border-radius: 0; }
input::placeholder { color: var(--muted); opacity: .9; }
.filter-group { display: flex; flex-wrap: wrap; gap: 7px; }
.character-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: start; }
.character-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 460px; overflow-y: auto; scrollbar-color: #647366 var(--bg); padding: 6px; margin: -6px; }
.person-button { display: flex; align-items: center; gap: 13px; padding: 15px 12px; border: 1px solid var(--line); background: transparent; text-align: left; min-height: 77px; }
.person-button[aria-pressed="true"] { background: #b8c9b610; border-color: var(--sage); }
.person-initials { font: .75rem var(--mono); display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 35px; border: 1px solid #536258; color: var(--sage); border-radius: 50%; }
.person-name { display: block; font-size: .82rem; line-height: 1.3; }
.person-role { display: block; font-size: .65rem; color: var(--muted); margin-top: 5px; }
.character-detail { position: relative; padding: 34px; border: 1px solid var(--line); background: linear-gradient(130deg, #252d27, #171c1c 70%); min-height: 380px; }
.character-detail .portrait-mark { width: 65px; height: 65px; border: 1px solid #687567; border-radius: 50%; display: grid; place-items: center; font: 1.2rem var(--mono); color: var(--sage); margin-bottom: 28px; }
.character-detail h3 { font: 2.1rem var(--serif); margin: 7px 0 20px; }
.character-detail p { font-size: .9rem; color: #bbc2b8; }
.character-detail details { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 20px; }
.character-detail summary { font-size: .8rem; color: var(--sage); cursor: pointer; }
.identity-list { padding-left: 19px; columns: 2; font-size: .8rem; color: var(--muted); }
.empty-state { grid-column: 1 / -1; padding: 25px 10px; color: var(--muted); }
.timeline-section { border-top: 1px solid var(--line); }
.timeline-years { display: grid; grid-template-columns: repeat(9, 1fr); border-bottom: 1px solid var(--line); overflow-x: auto; }
.timeline-years button { min-width: 78px; padding: 16px 7px 22px; font: .85rem var(--mono); background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); }
.timeline-years button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.timeline-detail { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; padding-block: 42px 30px; min-height: 220px; }
.timeline-year { font: clamp(3rem, 7vw, 6rem)/1 var(--mono); letter-spacing: -.08em; color: #56615a; }
.timeline-detail h3 { font-size: 1.5rem; margin-bottom: 15px; }
.timeline-detail p { color: var(--muted); max-width: 640px; font-size: .9rem; }
.locked-label { color: var(--accent); font: .62rem var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.signal-controls { display: flex; justify-content: space-between; gap: 22px; align-items: center; margin-bottom: 30px; }
.segmented-control { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line); }
.segmented-control button { border: 0; background: transparent; color: var(--muted); font-size: .8rem; min-height: 38px; padding: 8px 17px; }
.segmented-control button[aria-pressed="true"] { background: var(--sage); color: #142018; }
.metric-label { font: .65rem var(--mono); text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: 15px; }
select { max-width: 100%; color: var(--ink); background: var(--panel); border: 1px solid var(--line); padding: 9px 30px 9px 11px; border-radius: 2px; font-family: var(--sans); font-size: .8rem; min-height: 41px; }
.chart-layout { display: grid; grid-template-columns: 1.8fr 1fr; gap: 55px; }
.chart-scale { margin-left: 156px; display: flex; justify-content: space-between; color: var(--muted); font: .6rem var(--mono); margin-bottom: 10px; }
.chart-bars { display: grid; gap: 5px; }
.chart-bar { display: grid; grid-template-columns: 140px 1fr 30px; gap: 16px; align-items: center; min-height: 43px; background: transparent; padding: 4px 5px 4px 0; border: 1px solid transparent; text-align: left; }
.chart-bar[aria-pressed="true"] { border-color: #74826c; background: #b8c9b60a; }
.bar-title { font-size: .72rem; color: var(--muted); padding-left: 7px; }
.bar-track { height: 15px; background: repeating-linear-gradient(to right, #66746314 0 calc(20% - 1px), #71816c38 calc(20% - 1px) 20%); display: block; }
.bar-fill { display: block; height: 100%; width: 0; background: var(--sage); transition: width .45s ease; }
.bar-value { font: .74rem var(--mono); color: var(--ink); text-align: right; }
.chart-bars.intensity .bar-fill { background: var(--accent); }
.signal-detail { padding: 29px; background: #101515; border-top: 2px solid var(--sage); align-self: start; min-height: 320px; }
.signal-detail h3 { margin: 15px 0; font-family: var(--serif); font-size: 1.8rem; }
.signal-score { font: 3.3rem/1 var(--mono); letter-spacing: -.06em; margin: 21px 0 13px; }
.signal-score small { font-size: .8rem; color: var(--muted); margin-left: 7px; }
.signal-detail p { font-size: .81rem; color: var(--muted); }
.signal-detail button { margin-top: 15px; }
.chart-note { color: var(--muted); font-size: .74rem; margin: 30px 0 0; max-width: 850px; }
.source-scores { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 17px; }
.source-scores summary { cursor: pointer; color: var(--sage); font-size: .8rem; }
.table-scroll { overflow-x: auto; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; font: .72rem var(--mono); text-align: left; }
caption { text-align: left; color: var(--muted); margin-bottom: 10px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--sage); font-weight: 400; }
.closing { text-align: center; }
.closing blockquote { font: clamp(1.8rem, 4vw, 3.3rem)/1.35 var(--serif); letter-spacing: -.04em; margin: 25px auto; }
.closing > p:not(.eyebrow) { color: var(--muted); font-size: .85rem; margin-bottom: 30px; }
.site-footer { display: flex; align-items: center; gap: 45px; padding-block: 30px; border-top: 1px solid var(--line); }
.site-footer p { margin: 0 auto 0 0; font-size: .7rem; color: var(--muted); }
.site-footer > a:not(.wordmark) { font-size: .73rem; text-decoration: none; }
.site-footer a span.small { display: block; color: var(--muted); font-size: .65rem; }
.site-footer .back-top { border: 1px solid var(--line); padding: 10px 17px; }
.notice, .site-notice { border: 1px solid #ac765f; background: #32211a; padding: 14px 18px; color: #f1c3ab; font-size: .83rem; margin: 25px 0 0; }
.error-message { color: #f4b5a5; background: #38211d; border-left: 2px solid var(--accent); padding: 16px; }
.retry-button { display: block; margin-top: 12px; background: transparent; border: 1px solid var(--accent); padding: 8px 14px; color: var(--ink); }
.reader { padding: 0; color: var(--ink); background: #171b1b; border: 1px solid #596258; border-radius: 4px; width: min(920px, calc(100% - 40px)); height: min(94svh, 1100px); max-height: 94svh; max-width: none; overflow: hidden; }
.reader[open] { display: flex; flex-direction: column; }
.reader::backdrop { background: #04090bea; backdrop-filter: blur(7px); }
.reader-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 32px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.reader-header h2 { font: 1.6rem var(--serif); margin: 3px 0 0; letter-spacing: -.03em; }
.icon-button { background: transparent; border: 1px solid var(--line); font-size: 1rem; min-width: 43px; min-height: 43px; }
.reader-toolbar { display: flex; gap: 20px; align-items: center; padding: 12px 32px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.reader-toolbar label { font-size: .7rem; display: flex; align-items: center; gap: 10px; }
.reader-text-controls { display: flex; gap: 4px; margin-left: auto; }
.reader-text-controls button { min-height: 39px; min-width: 39px; background: transparent; border: 1px solid var(--line); font-family: var(--serif); }
.reader-toolbar > a { font-size: .68rem; white-space: nowrap; }
.reader-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 32px clamp(24px, 7vw, 90px) 60px; scrollbar-color: #70806d #171b1b; }
.reader-advisory { color: #c9a79d; font: .67rem/1.7 var(--mono); border-left: 2px solid #754a3e; padding-left: 13px; margin-bottom: 28px; }
.reader-meta { font: .64rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.reader-content { font: var(--reading-size, 19px)/1.9 var(--serif); color: #dfdfd3; padding-top: 24px; }
.reader-content p { white-space: pre-line; margin: 0 0 1.45em; }
.reader-content .source-context { font: .72rem/1.8 var(--mono); color: var(--sage); margin-bottom: 3em; }
.reader-content hr { border: 0; width: 46px; border-top: 1px solid #7d8b75; margin: 2.7em auto; }
.reader-footer { flex-shrink: 0; border-top: 1px solid var(--line); padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; }
#mark-read { margin-top: 25px; }
@media (min-width: 1600px) { .hero-art { inset-inline: -120px; } }
@media (max-width: 1150px) {
  .site-header { gap: 25px; padding-inline: 32px; }
  .primary-nav { gap: 17px; }
  .section-shell { width: calc(100% - 64px); }
  .hero-art { inset-inline: -32px; }
  .character-layout { gap: 30px; }
  .character-toolbar { align-items: flex-start; }
  .filter-group { max-width: 410px; justify-content: flex-end; }
  .universe-layout { gap: 25px; }
}
@media (max-width: 900px) {
  .site-header { height: 72px; gap: 22px; }
  .menu-toggle { display: inline-flex; gap: 10px; margin-left: auto; }
  .primary-nav { position: absolute; top: 71px; left: 0; right: 0; padding: 18px 32px; background: #191e20; border-bottom: 1px solid var(--line); gap: 22px; flex-wrap: wrap; }
  .site-header:not(.menu-open) .primary-nav { display: none; }
  .hero { min-height: 720px; height: calc(100svh - 72px); }
  .hero-moon { right: 0; top: 18%; opacity: .7; }
  .hero-copy { padding-top: 65px; }
  .hero-copy h1 { font-size: clamp(8rem, 22vw, 12rem); }
  .section-space { padding-block: 78px; }
  .chapter-grid { grid-template-columns: repeat(2, 1fr); }
  .universe-layout, .character-layout { grid-template-columns: 1fr; }
  .mission-map { max-width: 580px; margin: auto; width: 100%; }
  .fleet-detail { min-height: 0; }
  .world-notes { gap: 25px; }
  .character-list { max-height: 300px; grid-template-columns: repeat(3, 1fr); }
  .character-detail { min-height: 0; }
  .chart-layout { gap: 25px; grid-template-columns: 1.5fr 1fr; }
  .chart-bar { grid-template-columns: 105px 1fr 23px; gap: 8px; }
  .chart-scale { margin-left: 115px; }
  .signal-detail { padding: 20px; }
  .premise { column-gap: 7%; }
  .hero-topline { font-size: .58rem; }
  .timeline-years { grid-template-columns: repeat(9, minmax(78px, 1fr)); }
}
@media (max-width: 600px) {
  :root { scroll-padding-top: 80px; }
  .section-shell { width: calc(100% - 40px); }
  .site-header { padding-inline: 20px; gap: 12px; }
  .wordmark { font-size: 1.45rem; }
  .spoiler-control { font-size: .64rem; gap: 6px; }
  .menu-toggle { padding: 9px 4px; font-size: .72rem; }
  .primary-nav { padding-inline: 20px; }
  .hero { height: auto; min-height: 760px; }
  .hero-art { inset-inline: -20px; }
  .hero-topline { padding-top: 25px; font-size: .5rem; gap: 15px; }
  .hero-copy { padding-top: 115px; }
  .hero-copy .eyebrow { font-size: .52rem; }
  .hero-copy h1 { font-size: clamp(7.6rem, 30vw, 11rem); margin-left: -5px; margin-bottom: 21px; }
  .hero-tagline { font-size: 1.75rem; }
  .hero-moon { width: 220px; top: 75px; right: -35px; opacity: .53; }
  .hero-description { max-width: 280px; }
  .hero-bottom { font-size: .5rem; padding-top: 45px; }
  .archive-code { display: none; }
  .hero-actions { gap: 23px; flex-wrap: wrap; }
  .hero-actions .button { font-size: .76rem; gap: 22px; }
  .content-advisory { max-width: 275px; font-size: .63rem; }
  .section-space { padding-block: 62px; }
  .premise { grid-template-columns: 1fr; }
  .premise-copy { margin-top: 15px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 37px; }
  .stat-strip strong { font-size: 2rem; }
  .stat-strip strong span { display: block; margin-left: 0; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 22px; }
  .section-aside { max-width: none; }
  .chapter-card { padding: 22px 17px; min-height: 242px; }
  .chapter-card h3 { font-size: 1.4rem; margin-top: 36px; }
  .chapter-card p { font-size: .71rem; }
  .chapter-card.is-read::after { bottom: 10px; right: 17px; font-size: .5rem; }
  .chapter-card .chapter-arrow { right: 17px; }
  .world-notes { grid-template-columns: 1fr 1fr; gap: 15px; }
  .world-notes > :last-child { grid-column: 1 / -1; }
  .two-moons { height: 135px; }
  .agape { width: 64px; height: 64px; left: 15%; }
  .ales { left: 72%; width: 25px; height: 25px; }
  .moon-orbit { left: 0; width: 100%; }
  .character-toolbar { flex-direction: column; align-items: stretch; }
  .search-label { flex-basis: auto; }
  .filter-group { justify-content: flex-start; }
  .character-list { grid-template-columns: repeat(2, 1fr); }
  .person-button { padding: 12px 9px; gap: 9px; }
  .person-name { font-size: .73rem; }
  .person-initials { width: 28px; height: 28px; flex-basis: 28px; font-size: .62rem; }
  .character-detail { padding: 25px; }
  .timeline-detail { grid-template-columns: 1fr; gap: 22px; padding-top: 30px; }
  .timeline-year { font-size: 3.6rem; }
  .signal-controls { align-items: stretch; flex-direction: column; }
  .segmented-control { align-self: flex-start; }
  .metric-label { justify-content: space-between; }
  .chart-layout { grid-template-columns: 1fr; }
  .signal-detail { min-height: 0; }
  .bar-title { font-size: .65rem; }
  .signal-score { font-size: 2.4rem; }
  .site-footer { gap: 25px; flex-wrap: wrap; }
  .site-footer p { margin-left: auto; text-align: right; font-size: .65rem; }
  .site-footer > a:not(.wordmark) { font-size: .7rem; }
  .site-footer .back-top { margin-left: auto; }
  .reader { width: 100%; height: 100svh; max-height: 100svh; margin: 0; border-radius: 0; border: 0; }
  .reader-header { padding: 16px 20px; }
  .reader-header h2 { font-size: 1.4rem; }
  .reader-toolbar { padding: 10px 20px; gap: 10px; flex-wrap: wrap; }
  .reader-toolbar label { flex: 1; min-width: 180px; }
  .reader-toolbar select { max-width: 175px; }
  .reader-toolbar > a { margin-left: auto; }
  .reader-scroll { padding: 23px 24px 40px; }
  .reader-footer { padding: 10px 20px; }
  .reader-footer .tiny-label { font-size: .58rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
