:root {
  --paper: #f6f3ec;
  --card: #fbf9f4;
  --ink: #17140f;
  --muted: #625a4d;
  --line: #ddd5c6;
  --accent: #8f5420;
  --accent-ink: #fffaf2;
  --live: #2f6b3a;
  --contour: rgba(143, 84, 32, 0.07);
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12110e;
    --card: #1a1814;
    --ink: #efe9de;
    --muted: #a69d8d;
    --line: #2e2a24;
    --accent: #d39a5c;
    --accent-ink: #1a120a;
    --live: #7fbf88;
    --contour: rgba(211, 154, 92, 0.06);
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
  }
}
:root[data-theme="dark"] {
  --paper: #12110e;
  --card: #1a1814;
  --ink: #efe9de;
  --muted: #a69d8d;
  --line: #2e2a24;
  --accent: #d39a5c;
  --accent-ink: #1a120a;
  --live: #7fbf88;
  --contour: rgba(211, 154, 92, 0.06);
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

nav { border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: 0.14em; font-size: 15px; text-decoration: none; }
nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
nav ul a { text-decoration: none; color: var(--muted); }
nav ul a:hover { color: var(--ink); }
@media (max-width: 720px) { nav ul li:not(:last-child) { display: none; } }

.btn {
  display: inline-block; padding: 12px 20px; border-radius: 2px; font: 500 15px/1 Inter, sans-serif;
  text-decoration: none; border: 1px solid var(--ink); cursor: pointer; background: transparent; color: var(--ink);
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:hover { opacity: 0.85; }

.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: repeating-radial-gradient(ellipse at 78% 40%, transparent 0 38px, var(--contour) 38px 39px);
}
.hero .wrap { padding-top: 112px; padding-bottom: 104px; }
.eyebrow { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 20px; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); max-width: 12ch; }
.hero .sub { font-size: clamp(19px, 2.2vw, 23px); color: var(--muted); max-width: 36em; margin: 28px 0 40px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

section { padding: 96px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { section { padding: 64px 0; } .hero .wrap { padding-top: 72px; padding-bottom: 72px; } }
section h2 { font-size: clamp(30px, 4vw, 44px); max-width: 20ch; }
.lead { font-size: 19px; color: var(--muted); max-width: 40em; margin: 18px 0 0; }

.thesis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.thesis div { border-top: 2px solid var(--ink); padding-top: 18px; }
.thesis b { display: block; font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 22px; margin-bottom: 8px; }
.thesis p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .thesis { grid-template-columns: 1fr; gap: 28px; } }

.classes { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 48px; }
.classes > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px; background: var(--card); }
.classes h3 { font-size: 21px; }
.classes p { margin: 6px 0 14px; color: var(--muted); font-size: 15px; }
.pill { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.pill.live { color: var(--live); }
.pill.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-right: 7px; vertical-align: 1px; }
@media (max-width: 860px) { .classes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .classes { grid-template-columns: 1fr; } }

.table-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--line); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.credit { font-size: 13px; color: var(--muted); margin-top: 12px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; border: 1px solid var(--line); }
.split > div { padding: 32px; }
.split > div + div { border-left: 1px solid var(--line); background: var(--card); }
.split h3 { font-size: 24px; margin-bottom: 14px; }
.split ul { margin: 0; padding-left: 20px; color: var(--muted); }
.split li { margin: 6px 0; }
.split p { color: var(--muted); margin: 16px 0 0; font-size: 15px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split > div + div { border-left: 0; border-top: 1px solid var(--line); } }

.audience { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.audience ul { margin: 0; padding: 0; list-style: none; }
.audience li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.audience li:first-child { border-top: 1px solid var(--line); }
.audience li b { display: block; font-weight: 600; margin-bottom: 2px; }
.audience li span { color: var(--muted); }
.audience .btn { margin-top: 32px; }
@media (max-width: 760px) { .audience { grid-template-columns: 1fr; gap: 28px; } }

.others { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 40px; }
.others b { display: block; font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 19px; margin-bottom: 6px; }
.others p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .others { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .others { grid-template-columns: 1fr; } }

form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 40px; max-width: 760px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
label.full { grid-column: 1 / -1; }
input, select, textarea {
  font: 400 16px/1.4 Inter, sans-serif; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-foot small { color: var(--muted); }
#form-status { font-weight: 500; }
@media (max-width: 600px) { form { grid-template-columns: 1fr; } }

footer { padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }

/* Generated pages (scripts/build-pages.mjs): entities, owners, hubs, rankings, sources. */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 28px; border-bottom: 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs li:last-child { color: var(--ink); }

.page-head { padding: 28px 0 40px; border-bottom: 1px solid var(--line); }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); max-width: 22ch; overflow-wrap: anywhere; }
.answer { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 42em; margin: 20px 0 0; }
.answer a { color: var(--ink); }

.block { padding: 48px 0; border-bottom: 1px solid var(--line); }
.block h2 { font-size: clamp(24px, 3vw, 32px); max-width: none; }
.block h2 + p { color: var(--muted); margin: 10px 0 0; max-width: 42em; }
.block .table-wrap { margin-top: 24px; }
.block h3 { font-size: 21px; margin-top: 40px; }
.block h3 + p { color: var(--muted); margin: 8px 0 0; max-width: 42em; }
.block h3 .q { font-family: Inter, system-ui, sans-serif; font-size: 14px; font-weight: 400; margin-left: 6px; }
@media (max-width: 600px) { .block { padding: 36px 0; } }

table.facts { min-width: 0; }
table.facts td:first-child { width: 28%; color: var(--muted); }
table.facts code { overflow-wrap: anywhere; }
.src { font-size: 13px; color: var(--muted); }
.src a { color: var(--muted); }
.q { font-size: 13px; color: var(--muted); }
pre.cite { margin: 16px 0 0; padding: 16px; background: var(--card); border: 1px solid var(--line); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  table.facts, table.facts tbody, table.facts tr, table.facts td { display: block; width: auto; }
  table.facts thead { display: none; }
  table.facts tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  table.facts tr:last-child { border-bottom: 0; }
  table.facts td { padding: 0; border: 0; }
  table.facts td:first-child { width: auto; font-size: 13px; }
  table.facts td.src { margin-top: 4px; }
}

.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 32px; margin: 24px 0 0; padding: 0; list-style: none; }
.links li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.links li span { color: var(--muted); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }

/* Owner pages: the parent chain, from the company up to its ultimate parent. */
.chain { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.chain li + li::before { content: "›"; margin: 0 10px; color: var(--muted); }

.on-request { margin-top: 28px; padding: 20px 24px; border: 1px solid var(--accent); background: var(--card); display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; max-width: 760px; }
.on-request p { margin: 0; }
.on-request b { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 19px; display: block; }
.on-request span { color: var(--muted); font-size: 15px; }
.withheld { color: var(--accent); font-weight: 500; }

.browse { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; margin-top: 48px; }
.browse h3 { font-size: 21px; margin-bottom: 8px; }
.browse ul { margin: 0; padding: 0; list-style: none; }
.browse li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.browse li span { color: var(--muted); font-variant-numeric: tabular-nums; }
.browse a { text-decoration: none; }
.browse a:hover { text-decoration: underline; }

.attribution { padding: 32px 0 0; font-size: 14px; color: var(--muted); }
.attribution h2 { font: 600 12px/1 Inter, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.attribution ul { margin: 0; padding-left: 18px; }
.attribution li { margin: 4px 0; }
.attribution b { color: var(--ink); font-weight: 500; }

/* Place pages: time series as an inline SVG line chart (scripts/build-pages.mjs lineChart) and a table. */
.chart { margin: 24px 0 0; max-width: 640px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .tick { fill: var(--muted); font: 400 11px/1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.chart polyline { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart circle { stroke: var(--paper); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart circle:hover { r: 6; }
@media (max-width: 600px) { .chart .tick { font-size: 14px; } }
.chart figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0 0 12px; padding: 0; font-size: 14px; }
.legend i { display: inline-block; width: 16px; height: 2px; vertical-align: middle; margin-right: 8px; border-radius: 1px; }
.s1 { stroke: var(--series-1); fill: var(--series-1); } i.s1 { background: var(--series-1); }
.s2 { stroke: var(--series-2); fill: var(--series-2); } i.s2 { background: var(--series-2); }
.s3 { stroke: var(--series-3); fill: var(--series-3); } i.s3 { background: var(--series-3); }
.s4 { stroke: var(--series-4); fill: var(--series-4); } i.s4 { background: var(--series-4); }
table.series { min-width: 0; }

/* Asset and right pages: how it compares, timeline, nearby (scripts/pages/context.mjs). */
table.compact { min-width: 0; }
table.nearby td:first-child { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  table.compact { font-size: 14px; }
  table.compact th, table.compact td { padding: 10px 10px; }
  table.compact td.num { white-space: normal; }
  table.compact th:first-child, table.compact td:first-child { padding-left: 14px; }
  table.nearby th:nth-child(4), table.nearby td:nth-child(4) { display: none; }
}
.timeline { list-style: none; margin: 24px 0 0 6px; padding: 0; max-width: 760px; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 8px 0 8px 22px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline li.future::before { background: var(--paper); box-shadow: inset 0 0 0 2px var(--accent); }
.timeline li.gap { display: block; font-size: 14px; color: var(--muted); }
.timeline li.gap::before { background: var(--line); }
.timeline time { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline a { text-decoration: none; border-bottom: 1px solid var(--line); }
.timeline a:hover { border-color: var(--ink); }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 0; } }

/* Stories (scripts/pages/stories.mjs): the article, and the list on /stories and the landing page. */
.story { max-width: 42em; padding: 40px 0 48px; border-bottom: 1px solid var(--line); }
.story p, .story ul { margin: 0 0 18px; }
.story ul { padding-left: 20px; }
.story li { margin: 6px 0; }
.story h2 { font-size: clamp(24px, 3vw, 30px); margin: 40px 0 14px; max-width: none; }
.story h3 { font-size: 21px; margin: 32px 0 10px; }
.story a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.story .table-wrap { margin: 8px 0 24px; }
.story table { min-width: 0; }
.story th.num { white-space: nowrap; }
@media (max-width: 600px) { .story table { font-size: 14px; } .story th, .story td { padding: 10px 8px; } }
.story-list { list-style: none; margin: 24px 0 0; padding: 0; max-width: 46em; }
.story-list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.story-list li:first-child { border-top: 1px solid var(--line); }
.block > .story-list { margin-top: 0; }
.block > .story-list li:first-child { border-top: 0; padding-top: 0; }
.story-list a { text-decoration: none; }
.story-list b { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 22px; line-height: 1.25; }
.story-list a:hover b { text-decoration: underline; }
.story-list span { color: var(--muted); }
.story-list time { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
