:root {
  --bg: #f6f5f2;
  --fg: #17161a;
  --fg2: #57535c;
  --mute: #8b8790;
  --line: #e4e1db;
  --track: #ece9e3;
  --fact: #a50f15;
  --fact-soft: #e8b4ad;
  --est: #2b6cb0;
  --est-soft: #9dbde6;
  --none: #d7d3cc;
  --serif:
    "Literata",
    Georgia,
    serif;
  --sans:
    "Manrope",
    system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font: 15px/1.5 var(--sans);
  color: var(--fg);
  background: var(--bg);
}
a {
  color: var(--fact);
}
h2,
h3 {
  font-weight: 400;
}
.topbar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 120px 0 260px;
  font-size: 13px;
  color: var(--mute);
}
.topbar b {
  font-weight: 500;
  color: var(--fg2);
}
.topbar h1 {
  margin: 0;
  font: inherit;
}
.topmeta {
  display: flex;
  gap: 18px;
}
.langsw {
  display: flex;
  gap: 6px;
}
.langsw a {
  color: var(--mute);
  text-decoration: none;
}
.langsw a.on,
.langsw a:hover {
  color: var(--fg);
}
#rail {
  position: fixed;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
#rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mute);
  text-decoration: none;
}
#rail .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--none);
  flex: none;
  transition: background .3s;
}
#rail a.on {
  color: var(--fg);
}
#rail a.on .dot {
  background: var(--fact);
}
.chapter {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 72px;
  padding: 130px 120px 130px 260px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.thesis {
  position: sticky;
  top: 120px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.figure {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.kicker {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}
.claim {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: pretty;
}
.claim b {
  font-weight: 600;
  color: var(--fact);
}
.lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg2);
  margin: 0;
  text-wrap: pretty;
}
.cap {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 10px;
}
p.cap {
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.55;
  margin: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 60px 120px 80px 260px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--mute);
}
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  padding: 120px 200px 60px 260px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: 5%;
  top: 50%;
  width: 520px;
  height: 722px;
  transform: translateY(-50%);
  opacity: .12;
  pointer-events: none;
  background: url(/static/skull.png) center / contain no-repeat;
}
.hero > * {
  position: relative;
}
@media (max-width: 1100px) {
  .hero::before {
    width: 300px;
    height: 416px;
    right: -30px;
  }
}
.hero .num {
  font-family: var(--serif);
  font-size: 200px;
  line-height: .95;
  font-weight: 300;
  letter-spacing: -.04em;
  color: var(--fact);
}
.hero .claim {
  font-size: 34px;
  line-height: 1.3;
  max-width: 900px;
}
.hero .claim b {
  color: inherit;
}
.layers {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  font-size: 15px;
  color: var(--fg2);
}
.layers b {
  font-weight: 700;
  color: var(--fg);
}
.warn {
  max-width: 720px;
  margin: 8px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--fact);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg2);
}
.down {
  color: var(--mute);
  margin-top: 40px;
}
.bars .row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 15px;
}
.bars .track {
  position: relative;
  height: 30px;
  background: var(--track);
  border-radius: 3px;
  overflow: hidden;
}
.bars .fill,
.bars .bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--fact-soft);
}
.bars .lbl {
  position: relative;
  z-index: 1;
  padding: 0 10px;
  line-height: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bars .val {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.bars .row.clickable {
  cursor: pointer;
}
.bars .row.clickable:hover .fill,
.bars .row.clickable:hover .bar {
  background: #ef3b2c;
}
.bars .row.est .fill,
.bars .row.est .bar {
  background: var(--est-soft);
}
.bars .row.est.clickable:hover .fill,
.bars .row.est.clickable:hover .bar {
  background: var(--est);
}
.row.rest .lbl,
.row.rest .val {
  color: var(--mute);
}
.row.rest .fill,
.row.rest .bar {
  background: var(--none);
}
.bars .row.war .fill,
.bars .row.war.clickable:hover .fill {
  background: var(--fact);
}
.est-num {
  color: var(--est);
}
.bars .row.sub {
  margin-left: 24px;
}
.bars .row.on .lbl {
  font-weight: 700;
  color: var(--fg);
}
.cols {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: auto;
}
.cols .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.cols .col .bar {
  position: static;
  width: 100%;
  border-radius: 3px 3px 0 0;
  background: var(--fact-soft);
  transform-origin: bottom;
  transform: scaleY(0);
}
.in .cols .col .bar {
  transform: scaleY(1);
}
.cols .col.peak .bar {
  background: var(--fact);
}
.cols .col.est .bar {
  background: var(--est-soft);
}
.cols .col .val {
  font-size: 13px;
  font-weight: 700;
}
.cols .col.est .val {
  color: var(--est);
}
.cols .col .lbl {
  font-size: 12px;
  color: var(--mute);
  text-align: center;
}
body.region #where-died p.cap,
body.region #who p.cap {
  display: none;
}
#cert-form {
  display: flex;
  gap: 10px;
}
#cert-q {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--fg);
}
#cert-q:focus {
  outline: none;
  border-color: var(--fg2);
}
#cert-form button {
  padding: 12px 22px;
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 3px;
  background: var(--fact);
  color: #fff;
}
#cert-results {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cert {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 16px 18px;
  background: #fff;
}
.cert-h {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 10px;
}
.cert .r {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  font-size: 14px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
}
.cert .r .k {
  color: var(--mute);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.7;
}
.cert-map {
  margin-top: 12px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  color: var(--fg);
}
.cert-map:hover {
  border-color: var(--fact);
  color: var(--fact);
}
@media (max-width: 900px) {
  .cert .r {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
.ladder .row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.ladder .num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--fact);
}
.ladder .row.total {
  padding: 22px 0;
  border-bottom: 2px solid var(--fg);
}
.ladder .row.total .num {
  font-size: 44px;
  font-weight: 600;
}
.ladder .row.total .txt {
  font-weight: 700;
}
.ladder .row:last-child {
  border-bottom: none;
}
.ladder .txt {
  font-size: 16px;
  line-height: 1.5;
}
.caveats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg2);
}
.caveats b {
  color: var(--fg);
}
.scen {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--fg2);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.scen .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.scen b {
  color: var(--est);
}
#map-section {
  grid-column: 1 / -1;
  position: relative;
  height: 760px;
  margin: 48px 0 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}
#map {
  height: 100%;
}
#map-section:fullscreen {
  margin: 0;
  border-radius: 0;
  height: 100vh;
}
.leaflet-container {
  background: #cfe0ec;
  font: inherit;
}
.leaflet-tile-pane {
  filter: grayscale(.6) saturate(1.3) contrast(.9) brightness(1.06);
}
.leaflet-interactive:focus:not(:focus-visible) {
  outline: none;
}
#map-full,
#reset {
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: var(--fg2);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(246, 245, 242, .92);
  padding: 8px 12px;
}
#map-full {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 500;
}
#reset {
  padding: 4px 8px;
  margin-left: 8px;
}
#map-legend {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg2);
  background: rgba(246, 245, 242, .92);
  padding: 8px 12px;
  border-radius: 4px;
}
#map-legend i {
  width: 14px;
  height: 9px;
}
#map-legend i:nth-of-type(1) {
  background: #fcae91;
}
#map-legend i:nth-of-type(2) {
  background: #fb6a4a;
}
#map-legend i:nth-of-type(3) {
  background: #ef3b2c;
}
#map-legend i:nth-of-type(4) {
  background: #cb181d;
}
#map-legend i:nth-of-type(5) {
  background: #a50f15;
}
#map-legend i:nth-of-type(6) {
  background: #67000d;
}
#d-map-section {
  height: 600px;
}
#dmap {
  height: 100%;
}
.cards {
  max-height: 240px;
  overflow: auto;
  margin-top: 6px;
  font-size: 12px;
  border-top: 1px solid var(--line);
}
.cards div {
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.dim {
  color: var(--fg2);
}
.links {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}
.note {
  font-size: 14px;
  color: var(--mute);
  margin: 0;
  text-wrap: pretty;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
details summary {
  font-size: 14px;
  color: var(--mute);
  cursor: pointer;
}
details > *:not(summary) {
  margin: 14px 0 0;
}
details h3 {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}
table {
  border-collapse: collapse;
  font-size: 13px;
}
table td {
  padding: 4px 14px 4px 0;
  border-top: 1px solid var(--line);
  text-align: right;
}
table td:first-child {
  text-align: left;
}
table tr.head td {
  color: var(--mute);
  font-size: 12px;
  border-top: none;
}
table tr.weak {
  color: var(--none);
}
.charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.bar,
.bars .fill {
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(.2, .7, .2, 1) .2s;
}
.in .bar,
.in .fill {
  transform: scaleX(1);
}
#c-forecast .draw {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2.4s ease-out .4s;
}
.in #c-forecast .draw {
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .bar,
  .bars .fill,
  .cols .col .bar,
  #c-forecast .draw,
  #rail .dot {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}
@media (max-width: 1100px) {
  #rail {
    display: none;
  }
  .topbar,
  .hero,
  footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .chapter {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 80px 24px;
  }
  .thesis {
    position: static;
  }
  .hero .num {
    font-size: 96px;
  }
  .hero .claim {
    font-size: 26px;
  }
  .claim {
    font-size: 32px;
  }
  #map-section {
    height: 70vh;
  }
  .caveats {
    grid-template-columns: minmax(0, 1fr);
  }
}
#c-forecast {
  height: auto;
}
@media (max-width: 640px) {
  .topbar {
    position: static;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 14px 20px 0;
    font-size: 12px;
  }
  .hero {
    min-height: 0;
    padding: 48px 20px 40px;
    gap: 20px;
  }
  .hero::before {
    display: none;
  }
  .hero .num {
    font-size: clamp(52px, 17vw, 96px);
    letter-spacing: -.03em;
  }
  .hero .claim {
    font-size: 21px;
    line-height: 1.35;
  }
  .layers {
    gap: 10px 18px;
    font-size: 14px;
  }
  .warn {
    padding: 10px 14px;
    font-size: 14px;
  }
  .down {
    margin-top: 20px;
  }
  .chapter {
    padding: 48px 20px;
    gap: 28px;
  }
  .claim {
    font-size: 26px;
  }
  .lead {
    font-size: 15px;
  }
  .figure {
    gap: 20px;
  }
  .bars .row {
    grid-template-columns: minmax(0, 1fr) 62px;
    gap: 8px;
    min-height: 36px;
  }
  .bars .row.sub {
    margin-left: 12px;
  }
  .cols {
    gap: 3px;
  }
  .cols .col .lbl {
    font-size: 10px;
  }
  .cols .col .val {
    font-size: 11px;
  }
  .ladder .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 12px 0;
  }
  .ladder .num {
    font-size: 26px;
  }
  .ladder .row.total .num {
    font-size: 34px;
  }
  .ladder .txt {
    font-size: 14px;
  }
  details {
    overflow-x: auto;
  }
  details table {
    font-size: 12px;
    min-width: 480px;
  }
  #map-section {
    height: 60vh;
    margin: 0;
    border-radius: 0;
  }
  #map-legend {
    font-size: 11px;
  }
  #cert-form {
    flex-wrap: wrap;
  }
  #cert-form button {
    flex: 1;
    min-height: 44px;
  }
  #cert-q {
    min-height: 44px;
  }
  .cert {
    padding: 12px 14px;
  }
  .cert-h {
    font-size: 17px;
  }
  footer {
    flex-direction: column;
    gap: 8px;
    padding: 32px 20px 40px;
  }
  html,
  body {
    overflow-x: hidden;
  }
}
