:root {
  --ink:#233d37;
  --muted:#62766e;
  --paper:#f7f4eb;
  --vms:#b04732;
  --selected:#1d7d88;
  --other:#9eaaa1
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:16px/1.65 system-ui,sans-serif
}
a {
  color:#246c61;
  text-underline-offset:4px
}
.atlas {
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:16px 28px;
  background:#223e35;
  font-size:14px
}
.atlas a {
  color:white;
  text-decoration:none
}
.intro,main,footer {
  max-width:1180px;
  margin:auto;
  padding:30px
}
.intro {
  padding-top:58px;
  padding-bottom:24px
}
.eyebrow {
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.15em;
  font-weight:700;
  color:#597869
}
h1 {
  font:clamp(42px,6vw,72px)/1.08 Georgia,serif;
  margin:15px 0 24px;
  letter-spacing:-.025em
}
.lede {
  font:22px/1.65 Georgia,serif;
  max-width:850px
}
.provenance,.caption {
  font-size:13px;
  color:var(--muted)
}
h2 {
  font:clamp(30px,4vw,43px)/1.2 Georgia,serif;
  margin:8px 0 18px
}
h3 {
  font:27px/1.3 Georgia,serif;
  margin:0 0 10px
}
h4 {
  font-size:16px;
  margin:12px 0
}
.section-heading {
  max-width:900px;
  padding:30px 0 18px
}
.section-heading p {
  color:#526a60
}
.headline-stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin:20px 0
}
.stat {
  padding:22px;
  background:#e9eee2;
  border:1px solid #d7dfcf;
  border-radius:8px
}
.stat strong {
  display:block;
  font:36px Georgia,serif;
  color:var(--vms)
}
.stat span {
  font-size:13px;
  color:var(--muted)
}
.shared-controls {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:18px;
  margin-bottom:20px
}
.shared-controls label,.filter {
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-size:13px
}
select,button {
  font:inherit;
  padding:8px;
  background:white;
  color:var(--ink);
  border:1px solid #adbdaf;
  border-radius:5px
}
select {
  max-width:320px
}
input {
  accent-color:var(--selected)
}
.panel {
  background:#fffdf8;
  border:1px solid #d8dfd1;
  border-radius:10px;
  padding:26px;
  margin:0 0 26px
}
.panel-heading {
  display:flex;
  gap:18px
}
.panel-heading p {
  margin:4px 0 20px;
  color:var(--muted);
  max-width:900px
}
.number {
  flex:none;
  color:#7e9788;
  font:28px Georgia,serif
}
.filter {
  margin-bottom:12px
}
.plot svg {
  width:100%;
  height:auto;
  display:block
}
.plot text,.matrix text {
  font-family:system-ui,sans-serif;
  fill:#50665b
}
.grid {
  stroke:#e0e6da;
  stroke-width:1
}
.axis-label {
  font-size:14px
}
.plot .point {
  cursor:pointer
}
.point:hover,.point:focus {
  stroke:#223d35;
  stroke-width:2;
  outline:none
}
.legend {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  color:var(--muted);
  font-size:12px
}
.dot {
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:50%;
  margin-left:10px
}
.dot.vms {
  background:var(--vms)
}
.dot.selected {
  background:var(--selected)
}
.dot.wmf {
  background:var(--other)
}
.reading {
  background:#f0f3e9;
  padding:16px 20px;
  border-radius:6px;
  color:#39594c;
  font-size:14px
}
.reading p {
  margin:3px 0
}
.heatmaps {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px
}
.matrix svg {
  display:block;
  width:100%;
  height:auto
}
.matrix rect {
  stroke:#f9faf5;
  stroke-width:.6
}
.matrix rect:hover,.matrix rect:focus {
  stroke:#b04732;
  stroke-width:2;
  outline:none
}
.pair-detail {
  padding:14px;
  background:#edf2e5;
  min-height:60px;
  font:13px/1.6 ui-monospace,monospace
}
.matrix .axis-symbol {
  font-size:12px
}
.methods {
  padding-top:35px;
  border-top:1px solid #c5d0bf
}
.methods p {
  max-width:1000px;
  color:#52695f;
  font-size:14px
}
.methods details {
  border-bottom:1px solid #d2dcc9;
  padding:16px 0
}
.methods summary {
  cursor:pointer;
  font-weight:650
}
#tooltip {
  position:fixed;
  z-index:10;
  max-width:330px;
  background:#233d36;
  color:white;
  padding:10px 13px;
  border-radius:6px;
  pointer-events:none;
  font-size:12px;
  box-shadow:0 4px 20px #0002
}
#status {
  color:var(--muted)
}
footer {
  font-size:13px
}
:focus-visible {
  outline:3px solid #cd8543;
  outline-offset:4px
}
@media(max-width:740px) {
  .intro,main,footer {
    padding:22px 14px
  }
  .intro {
    padding-top:35px
  }
  .panel {
    padding:18px 12px
  }
  .headline-stats {
    gap:10px
  }
  .stat {
    padding:14px
  }
  .stat strong {
    font-size:27px
  }
  .heatmaps {
    grid-template-columns:1fr
  }
  .shared-controls {
    align-items:stretch;
    gap:12px
  }
  .shared-controls label {
    flex-wrap:wrap
  }
  .lede {
    font-size:19px
  }
}
@media print {
  .atlas,.shared-controls,.filter,#status,footer {
    display:none
  }
  .panel {
    break-inside:avoid
  }
  .intro {
    padding-top:0
  }
  body {
    background:white
  }
}
.coupled > .shared-controls {
  position:sticky;
  top:0;
  z-index:3;
  background:var(--paper);
  padding:12px 0;
  border-bottom:1px solid #d3ddcb;
}
@media(max-width:600px) {
  .plot {
    overflow-x:auto;
  }
  .plot svg {
    min-width:650px;
  }
  .matrix {
    overflow-x:auto;
  }
  .matrix svg {
    min-width:460px;
  }
}
