@font-face {
  font-family: "Space Grotesk";
  src: url("/media/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/media/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #142b36;
  --secondary: #385059;
  --quiet: #4b6269;
  --page: #f5f4ed;
  --paper: #fffef8;
  --line: #cbd5ce;
  --dark: #101f30;
  --accent: #ff8b62;
  --deep-coral: #a94029;
  --head: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.52;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, p, h1, h2, h3, h4, figure, dl, dd, ul { margin: 0; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.04; letter-spacing: -.035em; font-weight: 670; }
h1 { font-size: clamp(3.15rem, 7.25vw, 7.1rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.85rem); }
h3 { font-size: clamp(1.25rem, 2.7vw, 1.95rem); }
h4 { font-size: 1rem; letter-spacing: -.015em; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--deep-coral); outline-offset: 4px; }
.bound { width: min(100% - clamp(2rem, 8.8vw, 9.5rem), 1260px); margin-inline: auto; }
.skip { position: fixed; z-index: 6; top: .5rem; left: .5rem; transform: translateY(-180%); padding: .75rem 1rem; background: var(--paper); }
.skip:focus { transform: none; }
.top { background: #111f2c; color: #f9f7ee; border-bottom: 1px solid #344b54; }
.top-row, .foot-row { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--head); font-weight: 700; font-size: clamp(1.06rem, 2.2vw, 1.32rem); letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.top nav, .foot nav { display: flex; align-items: center; gap: clamp(.75rem, 2.2vw, 1.65rem); font-weight: 620; }
.top nav a { text-decoration: none; font-size: .91rem; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; }
.top :focus-visible, .cover :focus-visible { outline-color: #ffd8b2; }
.solid, .outline, .text-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .62rem .91rem;
  border: 1px solid var(--ink);
  border-radius: .35rem;
  font-weight: 680;
  line-height: 1.18;
  text-align: center;
  text-decoration: none;
}
.solid { color: #fffdf3; background: #204c5d; border-color: #204c5d; }
.solid:hover { background: #103a4b; border-color: #103a4b; }
.outline { background: transparent; }
.outline:hover { background: #ecf0e9; }
.text-button { background: transparent; border-color: transparent; text-decoration: underline; }
.text-button:hover { color: var(--deep-coral); }
.small { font-size: .89rem; min-height: 40px; padding: .5rem .7rem; }
button:disabled, select:disabled { opacity: .52; cursor: default; }
.cover { position: relative; isolation: isolate; overflow: hidden; color: #fff8ea; background: var(--dark); }
.cover::after { content: ""; pointer-events: none; z-index: -1; position: absolute; inset: 0; background: linear-gradient(90deg, #101f30 8%, #101f30f0 26%, #101f305b 62%, #101f3030), linear-gradient(0deg, #0c1727aa, transparent 40%); }
.cover-image { position: absolute; z-index: -2; width: 78%; height: 100%; right: 0; top: 0; object-fit: cover; object-position: 60% 50%; }
.cover-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(16rem, .66fr); align-items: end; gap: 2rem 4.5rem; padding-block: clamp(3.7rem, 8vw, 7.3rem) clamp(3.2rem, 7vw, 6.8rem); }
.eyebrow { color: var(--deep-coral); font-size: .79rem; letter-spacing: .13em; line-height: 1.3; font-weight: 740; text-transform: uppercase; }
.cover .eyebrow { color: #ffc7a4; margin-bottom: 1.1rem; }
.cover h1 { max-width: 8.5ch; line-height: .93; }
.cover-text > p:not(.eyebrow) { max-width: 33rem; margin: 1.25rem 0 1.5rem; color: #e7e7dc; font-size: clamp(1.04rem, 1.8vw, 1.24rem); }
.cover .solid { border-color: var(--accent); background: var(--accent); color: #222a34; }
.cover .solid:hover { border-color: #ffae88; background: #ffae88; }
.cover-fact {
  align-self: end;
  width: min(100%, 23rem);
  justify-self: end;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-top: 3px solid var(--accent);
  background: #112333ee;
  box-shadow: 0 10px 35px #09132170;
}
.cover-fact > p:first-child { font-size: .94rem; font-weight: 750; }
.cover-fact > p:last-child { color: #e4e5d8; font-size: .89rem; }
.cover-fact dl { display: grid; grid-template-columns: 1fr 1fr; margin-block: .4rem .65rem; }
.cover-fact dl > div + div { padding-left: .95rem; border-left: 1px solid #58737d; }
.cover-fact dt { color: #c7d4d6; font-size: .86rem; }
.cover-fact dd { font: 650 clamp(1.9rem, 5vw, 3.05rem)/1.02 var(--head); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.cover-fact dl > div:last-child dd { color: #ffa27a; }
.atlas-section { padding-block: clamp(2.3rem, 6.2vw, 5.5rem) clamp(1.5rem, 4vw, 3.2rem); }
.atlas-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; }
.atlas-head .eyebrow { margin-bottom: .37rem; }
.atlas-head > p { max-width: 24.5rem; color: var(--secondary); }
.topics { margin-block: 1.25rem .85rem; display: flex; flex-wrap: wrap; column-gap: .45rem; row-gap: .42rem; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.topic { padding: .52rem .72rem; border-radius: .26rem; color: #314e58; font-weight: 665; text-decoration: none; background: #e7ece4; font-size: .92rem; }
.topic:hover { background: #dce7e2; }
.topic[aria-current] { background: #254c5c; color: #fffdf3; }
.callout { padding: .9rem; background: #edf0e8; border-left: 3px solid #718a83; }
.comparison-shell { border: 1px solid var(--line); background: var(--paper); border-radius: .4rem; box-shadow: 0 8px 30px #12312a0b; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: .65rem 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); background: #edf0e9; padding: .72rem clamp(.8rem, 2.4vw, 1.6rem); border-radius: .4rem .4rem 0 0; }
.view-modes, .toolbar-right { display: flex; flex-wrap: wrap; gap: .3rem .4rem; align-items: center; }
.view-modes button { min-height: 40px; padding: .5rem .72rem; border: 1px solid transparent; border-radius: .27rem; background: transparent; color: #254550; font-size: .92rem; font-weight: 700; }
.view-modes button[aria-pressed="true"] { border-color: #254c5c; background: #254c5c; color: #fffdf5; }
.view-modes button:hover:not([aria-pressed="true"]) { background: #e0e9df; }
.controls { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.1rem; padding: .85rem clamp(.8rem, 2.4vw, 1.6rem) 0; }
.controls label, .share-panel label, .scrubber label { display: block; font-size: .88rem; font-weight: 720; }
.place-control { flex: 1 1 18rem; max-width: 26rem; }
.place-row, .year-controls { display: flex; gap: .44rem; align-items: end; }
.year-controls { gap: .7rem; }
select, #shared-url { width: 100%; min-width: 0; min-height: 41px; padding: .42rem .6rem; margin-top: .2rem; border: 1px solid #8faaa9; border-radius: .27rem; background: #fffefa; font-size: 1rem; }
select { color: #193940; }
.place-row select { text-overflow: ellipsis; }
.year-controls select { display: block; min-width: 5rem; }
.help { color: var(--quiet); font-size: .88rem; line-height: 1.4; }
#selection-message { margin: .4rem clamp(.8rem, 2.4vw, 1.6rem) 0; }
#selection-message:empty { display: none; }
.selected-list { display: flex; flex-wrap: wrap; gap: .44rem; padding: .75rem clamp(.8rem, 2.4vw, 1.6rem); list-style: none; }
.series-0 { --series: #0e5274; --series-muted: #e4edf1; }
.series-1 { --series: #b43d26; --series-muted: #f8e9e2; }
.series-2 { --series: #60711c; --series-muted: #edf0df; }
.series-3 { --series: #654b98; --series-muted: #ede8f4; }
.series { min-width: 0; display: inline-flex; align-items: center; gap: .48rem; padding: .14rem .25rem .14rem .48rem; border-radius: .29rem; background: var(--series-muted); font-size: .88rem; font-weight: 665; }
.line-label { display: flex; align-items: center; gap: .43rem; }
.line-label::before { content: ""; flex: 0 0 .72rem; width: .72rem; height: .72rem; border-radius: 50%; background: var(--series); }
.series-1 .line-label::before { border-radius: .1rem; }
.series-2 .line-label::before { border-radius: .1rem; transform: rotate(45deg) scale(.78); }
.series-3 .line-label::before { background: transparent; border: .2rem solid var(--series); }
.remove { width: 28px; min-height: 30px; border: 0; border-radius: .2rem; background: none; color: var(--ink); font-size: 1.35rem; line-height: 1; }
.remove:hover:not(:disabled) { background: #142b3615; }
.share-panel { padding: .55rem clamp(.8rem, 2.4vw, 1.6rem); }
.plot { padding: .85rem clamp(.8rem, 2.4vw, 1.6rem) 0; border-top: 1px solid var(--line); }
.plot-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .55rem 1rem; flex-wrap: wrap; }
.plot-heading a { font-size: .92rem; font-weight: 650; }
.plot-heading h3 { margin-bottom: .19rem; }
.plot-canvas { margin-block: .37rem .15rem; }
canvas { display: block; width: 100%; height: clamp(270px, 31vw, 430px); cursor: crosshair; }
.plot-empty { padding: 1.7rem .75rem; background: #f2f2e8; border-radius: .22rem; }
.readout { display: grid; grid-template-columns: minmax(10.5rem,.72fr) minmax(0,1.25fr); gap: .65rem 1.4rem; padding: .65rem 0 .78rem; border-top: 1px solid var(--line); }
.scrubber { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .24rem .45rem; }
.scrubber output { color: var(--quiet); font-size: .84rem; }
.scrubber input { grid-column: 1/-1; width: 100%; margin: 0; accent-color: #204c5d; }
#point-readout { display: flex; flex-wrap: wrap; align-items: center; gap: .34rem 1rem; padding: 0; list-style: none; }
#point-readout li { display: flex; align-items: baseline; gap: .35rem; font-size: .91rem; }
#point-readout li strong { font-weight: 675; }
.point-reading { color: var(--quiet); }
.insights { padding: .85rem clamp(.8rem, 2.4vw, 1.6rem) 0; border-top: 1px solid var(--line); background: #f0f1e8; }
.insights h3 { font-size: 1.24rem; margin-bottom: .65rem; }
.insight-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: .55rem .7rem; }
.insight { min-width: 0; padding: .62rem .75rem .75rem; background: var(--paper); border-top: 3px solid var(--series); border-radius: .19rem; }
.insight strong { display: block; font: 660 clamp(1.06rem, 2.2vw, 1.45rem)/1.13 var(--head); color: var(--series); margin: .21rem 0; }
.insight p { color: var(--secondary); font-size: .87rem; }
details { padding: .72rem clamp(.8rem, 2.4vw, 1.6rem) 1rem; background: #f0f1e8; }
summary { font-weight: 680; }
.table-wrap { overflow: auto; max-height: 31rem; margin-top: .58rem; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--paper); color: var(--ink); font-size: .91rem; }
table caption { padding: .54rem .64rem; text-align: left; font-weight: 700; }
td, th { border-top: 1px solid var(--line); padding: .43rem .64rem; text-align: left; }
thead th { background: #dbe6e4; }
.table-wrap thead th { position: sticky; top: 0; white-space: nowrap; }
tbody tr:nth-child(even) { background: #f3f3eb; }
.chapters { padding-block: clamp(1rem, 3vw, 2rem) clamp(2.7rem, 7vw, 5.6rem); }
.chapter-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; margin-top: 1.05rem; }
.care { --theme-color: #a94029; --theme-pale: #f4e2d5; }
.power { --theme-color: #86600e; --theme-pale: #f4ead1; }
.network { --theme-color: #235a70; --theme-pale: #e0ecea; }
.water { --theme-color: #43621c; --theme-pale: #e9edd6; }
.chapter { display: flex; flex-direction: column; padding: .9rem clamp(.75rem, 2vw, 1.25rem); border-top: 3px solid var(--theme-color); border-bottom: 1px solid var(--line); background: var(--theme-pale); color: var(--ink); text-decoration: none; }
.chapter:hover h3 { text-decoration: underline; text-underline-offset: .16em; }
.chapter p { margin: .4rem 0 .65rem; color: var(--secondary); }
.chapter-number { margin-top: auto; }
.chapter-number strong { display: block; font: 650 2.05rem/1 var(--head); color: var(--theme-color); }
.chapter-number span { font-size: .87rem; }
.topic-lead { background: var(--theme-pale); border-bottom: 1px solid var(--line); }
.topic-lead .eyebrow { color: var(--theme-color); margin-bottom: .6rem; }
.lead-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(13rem,.65fr); align-items: end; gap: clamp(1.3rem, 5vw, 5rem); padding-block: clamp(2.7rem, 7vw, 6rem); }
.lead-grid h1, .methods h1 { font-size: clamp(2.75rem, 5.9vw, 6.2rem); letter-spacing: -.06em; }
.intro { max-width: 38rem; margin-top: .9rem; color: var(--secondary); font-size: clamp(1.06rem, 2vw, 1.29rem); }
.lead-fact { border-top: 3px solid var(--theme-color); padding-top: .55rem; }
.lead-fact strong { display: block; color: var(--theme-color); font: 670 clamp(2.8rem, 7vw, 4.95rem)/1 var(--head); letter-spacing: -.065em; }
.field-notes { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.97fr); align-items: start; gap: 1rem 2rem; padding-block: 1rem clamp(2.6rem, 6.5vw, 5.7rem); }
.field-notes p { color: var(--secondary); margin-top: .7rem; line-height: 1.6; }
.notes-table { min-width: 0; overflow: auto; border: 1px solid var(--line); }
.methods { padding-block: clamp(2.6rem, 7vw, 5.5rem); }
.method-grid { margin-block: 1.9rem; display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); gap: 1.5rem clamp(1.3rem, 4vw, 4rem); }
.method-grid h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); margin-bottom: .48rem; }
.method-grid > article h2:not(:first-child) { margin-top: 1.35rem; }
.method-grid p { color: var(--secondary); margin-bottom: .65rem; }
.sources { border-top: 3px solid #6e8b84; background: #ebeee6; padding: .9rem clamp(.85rem,2.4vw,1.4rem); }
.sources article { border-top: 1px solid var(--line); padding-block: .7rem .2rem; }
.sources article h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.foot { border-top: 1px solid var(--line); background: #e4eae1; }
.foot-row { min-height: 88px; padding-block: .65rem; }
.foot p, .foot a:not(.brand) { color: var(--secondary); font-size: .9rem; }
@media (max-width: 960px) {
  .cover-grid { gap: 1.85rem; }
  .cover-image { width: 100%; }
  .chapter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .cover-grid, .lead-grid, .field-notes, .method-grid { grid-template-columns: 1fr; }
  .cover-grid { padding-block: 3.05rem 2rem; gap: 1.45rem; }
  .cover::after { background: linear-gradient(180deg,#101f30eb 0%,#101f30aa 42%,#101f3044 72%,#101f3088); }
  .cover-image { object-position: 65% center; }
  .cover-fact { justify-self: start; }
  .atlas-head { display: block; }
  .atlas-head > p { margin-top: .35rem; }
  .foot-row { flex-wrap: wrap; justify-content: start; gap: .45rem 1.1rem; }
  .foot-row p { order: 3; flex-basis: 100%; }
  .readout { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .top-row { min-height: 67px; }
  .brand img { width: 27px; height: 27px; }
  .top nav a { font-size: .83rem; }
  .top nav { gap: .62rem; }
  .chapter-grid { grid-template-columns: 1fr; }
  .view-modes button, .toolbar .small { font-size: .86rem; }
  .toolbar { align-items: start; gap: .35rem; }
  .scrubber { grid-template-columns: auto 1fr; }
  .scrubber output { text-align: end; }
}
@media (max-width: 340px) {
  .top-row { gap: .43rem; }
  .top nav { gap: .37rem; }
  .top nav a { font-size: .78rem; }
}
