:root { --paper: #f3ecdc; --paper-2: #ece3cf; --paper-3: #e2d7bd; --ink: #2a241e; --ink-2: #5b5146; --ink-3: #6b6358; --rule: rgba(42,36,30,.22); --rule-strong: rgba(42,36,30,.55); --accent: #7a2e3b; --link: #3b5a7a; --era: #7a2e3b; --serif: "EB Garamond", Georgia, "Times New Roman", serif; --cond: "Barlow Condensed", "Arial Narrow", sans-serif; }
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.5; }
body { margin: 0; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .14 0 0 0 0 .11 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: var(--link); text-decoration: underline; text-decoration-color: rgba(59,90,122,.4); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--link); }
.wordmark, .navlinks a, .crumbs a, .btn, h2 a, ul.plain a, table.list a, .tile a { text-decoration: none; }
ul.plain a:hover, table.list a:hover, h2 a:hover, .navlinks a:hover, .crumbs a:hover, .tile a:hover { text-decoration: underline; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 22px; }
.masthead { border-bottom: 1px solid var(--ink); box-shadow: 0 3px 0 var(--paper), 0 4px 0 var(--rule); }
.masthead .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-top: 16px; padding-bottom: 12px; flex-wrap: wrap; }
.wordmark { font-size: 1.5rem; font-variant: small-caps; color: var(--ink); letter-spacing: .02em; }
.navlinks { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.navlinks a { color: var(--ink-2); }
.crumbs { font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; color: var(--ink-3); margin: 18px 0 6px; }
.crumbs a { color: var(--ink-2); }
.sep { color: var(--ink-3); margin: 0 2px; }
.kicker { font-family: var(--cond); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: var(--accent); margin: 14px 0 4px; display: flex; align-items: center; gap: 8px; }
.era-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--era); border: 1px solid rgba(42,36,30,.35); display: inline-block; }
h1 { font-size: 2.5rem; font-weight: 500; line-height: 1.08; margin: 0 0 12px; letter-spacing: -.005em; }
h2 { font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-weight: 500; font-size: .78rem; color: var(--ink-2); margin: 28px 0 10px; padding-bottom: 5px; border-bottom: 1px solid var(--ink); box-shadow: 0 2px 0 var(--paper), 0 3px 0 var(--rule); }
h2 a { color: var(--ink-2); }
.lede { font-size: 1.18rem; line-height: 1.55; max-width: 50rem; margin: 0 0 12px; }
.lede::first-letter { font-size: 1.6em; line-height: 1; font-weight: 500; }
.subtitle { font-style: italic; color: var(--ink-2); margin: -6px 0 10px; font-size: 1.05rem; }
.actions { margin: 10px 0 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); padding: 8px 16px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }
.btn:hover { background: var(--accent); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule-strong); }
.btn.ghost:hover { border-color: var(--ink); }
.muted { color: var(--ink-3); font-size: .9em; }
.lbl { font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-size: .62rem; color: var(--ink-3); }

/* plates: images and maps framed like engraved plates */
.plate { margin: 6px 0 22px; padding: 10px; background: var(--paper-2); border: 1px solid var(--ink); box-shadow: inset 0 0 0 4px var(--paper-2), inset 0 0 0 5px var(--rule-strong); }
.plate img, .plate svg { width: 100%; height: auto; display: block; }
.plate.hero { max-width: 820px; }
.plate.map svg { border: 1px solid var(--rule-strong); }
.plate.map + .plate.map { margin-top: 18px; }
figcaption { font-size: .8rem; color: var(--ink-3); margin-top: 8px; line-height: 1.4; font-style: italic; padding: 0 2px; }
.plate.wide { margin: 8px 0 18px; }

/* stat tiles */
.tiles { display: flex; flex-wrap: wrap; gap: 1px; background: var(--paper); border: 1px solid var(--rule-strong); margin: 4px 0 22px; }
.tile { flex: 1 1 190px; box-shadow: 0 0 0 1px var(--rule-strong); }
.tile.two { flex: 2 1 380px; }
.tile { background: var(--paper); padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 3px; min-height: 92px; border-top: 3px solid var(--era); }
.tile b { font-weight: 500; font-size: 1.05rem; line-height: 1.3; }
.tile small { color: var(--ink-3); font-size: .8rem; }
.tile .vs { font-style: italic; color: var(--ink-3); font-size: .78rem; font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; }
.tile.two { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 10px; }
.tile.two .lbl { grid-column: 1 / -1; }
.tile.two b:last-child { text-align: right; }

/* timeline and charts */
.timeline-wrap, .chart-wrap { margin: 0 0 22px; }
.timeline-wrap svg, .chart-wrap svg { width: 100%; height: auto; display: block; background: var(--paper-2); border: 1px solid var(--rule); }
.timeline a line:hover { stroke: var(--accent); stroke-width: 2.5; }

/* sky */
.sky { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--rule); background: var(--paper-2); }
.sky .moon { flex: 0 0 56px; }
.sky .moon svg { width: 56px; height: 56px; display: block; }
.sky p { margin: 2px 0 4px; font-size: .98rem; line-height: 1.45; }
.sky small { color: var(--ink-3); font-size: .78rem; font-style: italic; }

/* people */
ul.people { list-style: none; margin: 0; padding: 0; }
ul.people li { display: flex; align-items: center; gap: 8px; padding: 2px 0; border: none; }
.portrait { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule-strong); background: var(--paper-3); flex-shrink: 0; }
.portrait.blank { display: inline-block; }
.portrait.big { width: 120px; height: 120px; border: 2px solid var(--ink); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--rule-strong); }
.hub-head { display: flex; gap: 22px; align-items: flex-start; }
.hub-head .portrait.big { margin-top: 6px; }
ul.plain li .portrait { margin-right: 8px; vertical-align: middle; width: 28px; height: 28px; }

.grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
table.facts { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.4; }
table.facts th, table.facts td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; }
table.facts th { font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; font-size: .64rem; color: var(--ink-3); width: 24%; padding-top: 10px; }
table.facts tr.sides td { font-weight: 500; }
table.facts td { width: 38%; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 5px 0; border-bottom: 1px solid var(--rule); font-size: .98rem; line-height: 1.35; }
.ground { margin-top: 12px; font-size: .95rem; color: var(--ink-2); }
.context { margin: 24px 0; font-size: 1rem; color: var(--ink-2); max-width: 50rem; }
.sources p { font-size: .9rem; color: var(--ink-2); line-height: 1.55; max-width: 50rem; }
table.list { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.35; }
table.list th { font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; font-size: .64rem; color: var(--ink-3); text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--ink); }
table.list td { padding: 6px 10px 6px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.list td:first-child { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
table.list.ranked td.rank { font-family: var(--cond); color: var(--ink-3); width: 2.2em; text-align: right; padding-right: 10px; }
table.list.ranked td:nth-child(2) { white-space: normal; color: var(--ink); }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 28px; }
.group h2 .muted { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: .9rem; }
.doc { max-width: 46rem; }
.doc p, .doc li { font-size: 1.05rem; line-height: 1.6; }
.doc h2 { margin-top: 30px; }
.footer { border-top: 1px solid var(--ink); margin-top: 48px; padding: 18px 0 40px; font-size: .85rem; color: var(--ink-3); line-height: 1.55; }
.footer a { color: var(--ink-2); }
@media (max-width: 760px) { html { font-size: 16px; } .grid { grid-template-columns: 1fr; } h1 { font-size: 1.9rem; } .tile.two { grid-template-columns: 1fr; } .tile.two b:last-child { text-align: left; } .tile.two .vs { display: none; } table.list td:nth-child(n+4) { display: none; } table.list th:nth-child(n+4) { display: none; } .hub-head { flex-direction: column; gap: 10px; } }

/* the ground today */
.today-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 18px; align-items: start; }
.today-grid .plate { margin: 0; }
.today-text p { margin: 0 0 10px; font-size: 1rem; line-height: 1.5; }
.today-text small { display: block; color: var(--ink-3); font-size: .78rem; font-style: italic; margin-top: 8px; line-height: 1.4; }
.coverwrap svg, .profiles svg { width: 100%; height: auto; display: block; }
.profiles { display: grid; gap: 8px; margin-top: 10px; }
.profiles svg { background: var(--paper-2); border: 1px solid var(--rule); }
@media (max-width: 900px) { .today-grid { grid-template-columns: 1fr 1fr; } .today-text { grid-column: 1 / -1; } }
@media (max-width: 560px) { .today-grid { grid-template-columns: 1fr; } }

/* colour pass: a hand-coloured atlas, not a monochrome one */
:root { --link: #2b5d8f; --era-strip: linear-gradient(90deg, #a8701c 0 12.5%, #b03a52 0 25%, #2f6fae 0 37.5%, #5f8f2a 0 50%, #6a5fa6 0 62.5%, #c4552a 0 75%, #0a9484 0 87.5%, #9a62b8 0); }
.masthead { position: relative; }
.masthead::after { content: ""; display: block; height: 4px; background: var(--era-strip); }
.kicker { color: var(--era); }
h1 { position: relative; }
.battle h1::after, .hub h1::after { content: ""; display: block; width: 72px; height: 3px; background: var(--era); margin-top: 10px; }
.tile { background: color-mix(in srgb, var(--era) 9%, var(--paper)); }
.tile .lbl { color: color-mix(in srgb, var(--era) 70%, var(--ink)); }
.plate { box-shadow: inset 0 0 0 4px var(--paper-2), inset 0 0 0 5px color-mix(in srgb, var(--era) 60%, var(--rule-strong)); }
.timeline-wrap svg, .chart-wrap svg, .profiles svg { background: color-mix(in srgb, var(--era) 5%, var(--paper-2)); }
.btn:hover { background: var(--era); }
.near h4, .group h2 { border-bottom-color: color-mix(in srgb, var(--era) 50%, var(--ink)); }
.crumbs a:hover { color: var(--era); }
.footer { border-top: none; position: relative; }
.footer::before { content: ""; display: block; height: 3px; background: var(--era-strip); margin-bottom: 18px; }
table.list.ranked td.rank { color: var(--era); font-weight: 600; }
.sky, .cdb table { background: color-mix(in srgb, var(--era) 5%, var(--paper-2)); }
