:root {
  color-scheme: dark;
  --paper: #111625;
  --panel: #192133;
  --line: #384660;
  --ink: #eef2fa;
  --muted: #b8c6dc;
  --accent: #73e1e3;
  --violet: #d6b5fa;
  --plot-primary: #73e1e3;
  --plot-secondary: #bf94ed;
}
[data-trp-theme="light"] {
  color-scheme: light;
  --paper: #f1f5fa;
  --panel: #fff;
  --line: #aebcd0;
  --ink: #162237;
  --muted: #43536c;
  --accent: #056876;
  --violet: #6d368e;
  --plot-primary: #157d8e;
  --plot-secondary: #8252b5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.reading-header, .reading-footer {
  padding: 12px max(16px, calc((100% - 1080px)/2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.reading-header nav, .reading-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .88rem; }
.reading-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 740; }
.reading-brand img { width: 33px; height: 33px; object-fit: contain; }
.skip-link { position: absolute; top: 4px; left: 12px; padding: 4px 10px; background: var(--panel); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
main { width: min(100% - 32px, 1060px); margin: clamp(24px, 6vw, 70px) auto; }
.article { max-width: 75ch; }
.eyebrow { margin: 0 0 7px; color: var(--accent); font-size: .78rem; font-weight: 740; text-transform: uppercase; letter-spacing: .08em; }
.byline { font-size: .83rem; color: var(--muted); }
h1, h2, h3 { line-height: 1.18; text-wrap: balance; }
h1 { margin: 0 0 14px; font-size: clamp(2rem, 5.6vw, 3.3rem); letter-spacing: -.035em; }
h2 { margin: 1.9em 0 .55em; font-size: clamp(1.35rem, 3.6vw, 1.7rem); }
h3 { margin: .35em 0; font-size: 1.13rem; }
.lead { margin: 0; color: var(--muted); max-width: 68ch; font-size: 1.13rem; }
.pathway { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 24px 0; }
.pathway > div, .readings li, .reading-note, figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: clamp(12px, 2.2vw, 22px);
}
.pathway p, .readings p { margin: .42em 0 0; color: var(--muted); }
.readings { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.reading-note { margin-block: 20px; border-inline-start: 3px solid var(--violet); }
.reading-note p { margin: 0; }
figure { margin-block: 20px; }
figure svg { display: block; width: 100%; height: auto; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: 12px; }
.axis { stroke: var(--line); stroke-width: 1; }
.plot-label { fill: var(--muted); font: 16px system-ui, sans-serif; }
.plot-primary { fill: var(--plot-primary); stroke: var(--plot-primary); }
.plot-secondary { fill: var(--plot-secondary); stroke: var(--plot-secondary); }
.rain { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; line-height: 1.4; }
.rain caption { text-align: left; font-weight: 700; padding-bottom: 10px; }
.rain :is(th,td) { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.rain th:first-child { text-align: left; }
.rain .peak { color: var(--accent); font-weight: 700; }
.sources { padding-top: 6px; border-top: 1px solid var(--line); font-size: .94rem; }
.sources li { margin-bottom: .5em; }
.reading-footer { justify-content: center; border-top: 1px solid var(--line); border-bottom: 0; }
