:root {
  --bg: #050505;
  --surface: #0b0b0a;
  --surface-raised: #11110f;
  --ink: #f4f0e8;
  --muted: #98958d;
  --faint: #66645e;
  --line: rgba(244, 240, 232, 0.14);
  --line-soft: rgba(244, 240, 232, 0.075);
  --accent: #d4a853;
  --temperature: #f06d4f;
  --sunshine: #d4a853;
  --ratio: #bdc5cf;
  --co2: #78a98f;
  --radius: 3px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

.site-header,
main,
.page-footer {
  width: min(1400px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}

.site-header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  gap: 13px;
  align-items: baseline;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.brand span:first-child {
  color: #d84a3a;
}

.brand span:last-child {
  color: var(--accent);
}

.hero {
  min-height: min(720px, calc(100dvh - 68px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 86px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.hero h1 {
  max-width: 1080px;
  margin: 25px 0 28px;
  font-family: var(--serif);
  font-size: clamp(64px, 10.2vw, 154px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.82;
}

.hero h1 span {
  display: block;
  color: var(--accent);
  font-style: italic;
  line-height: 0.96;
  padding-bottom: 0.04em;
}

.hero-copy {
  width: min(470px, 100%);
  margin: 0 0 0 auto;
  color: #b7b3aa;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.fact {
  min-height: 160px;
  padding: 35px 28px 28px;
  border-left: 1px solid var(--line);
}

.fact:first-child {
  border-left: 0;
  padding-left: 0;
}

.fact strong,
.fact span {
  display: block;
}

.fact strong {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.fact span {
  max-width: 185px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.visual {
  padding: 112px 0 100px;
}

.visual-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  margin-bottom: 52px;
}

.visual-heading h2,
.finding h2 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.042em;
  line-height: 0.98;
}

.finding h2 {
  margin-top: 0;
}

.series-controls {
  display: flex;
  gap: 6px;
  padding-bottom: 3px;
}

.series-controls button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.series-controls button:hover,
.series-controls button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.series-controls button[aria-pressed="false"] {
  color: var(--faint);
  background: rgba(255, 255, 255, 0.025);
}

.control-line {
  width: 22px;
  border-top: 1px solid currentColor;
}

.control-line-raw {
  opacity: 0.55;
}

.control-line-mean {
  border-top-width: 3px;
  color: var(--accent);
}

.year-reader {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  min-height: 116px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
}

.reader-year,
.reader-value {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}

.reader-year {
  border-left: 0;
}

.reader-year span,
.reader-value span,
.reader-value small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reader-year strong,
.reader-value strong {
  align-self: center;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 400;
  line-height: 1;
}

.temperature-reader strong {
  color: var(--temperature);
}

.sunshine-reader strong {
  color: var(--sunshine);
}

.reader-value small {
  letter-spacing: 0.03em;
  text-transform: none;
}

.annual-combined-panel {
  margin-top: 10px;
  padding: 26px 28px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.annual-combined-heading {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.annual-combined-heading h3,
.annual-combined-heading p {
  margin: 0;
}

.annual-combined-heading h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.annual-combined-heading p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.annual-combined-legend {
  display: flex;
  flex: 0 0 auto;
  gap: 22px;
  align-items: center;
  min-height: 30px;
  color: var(--muted);
  font-size: 11px;
}

.annual-combined-legend span {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.annual-combined-legend i {
  display: inline-block;
  width: 24px;
}

.ratio-line {
  border-top: 2px dashed var(--ratio);
}

.ratio-trend-line {
  border-top: 3px solid var(--ink);
}

.annual-combined-panel svg {
  display: block;
  width: 100%;
  min-height: 520px;
  overflow: visible;
  touch-action: pan-y;
}

.annual-combined-panel svg text {
  font-family: var(--sans);
}

.annual-combined-panel .grid line {
  stroke: var(--line-soft);
  shape-rendering: crispEdges;
}

.annual-combined-panel .grid path,
.annual-combined-panel .axis path {
  display: none;
}

.annual-combined-panel .axis line {
  stroke: transparent;
}

.annual-combined-panel .axis text {
  fill: var(--faint);
  font-size: 10px;
}

.annual-combined-panel .annual-sun-bar {
  fill: var(--sunshine);
  opacity: 0.3;
  transition: opacity 120ms ease;
}

.annual-combined-panel .annual-sun-bar.is-selected {
  opacity: 0.84;
}

.annual-combined-panel .annual-temperature-path {
  fill: none;
  stroke: var(--temperature);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.annual-combined-panel .annual-ratio-path {
  fill: none;
  stroke: var(--ratio);
  stroke-width: 1.7;
  stroke-dasharray: 5 4;
  vector-effect: non-scaling-stroke;
}

.annual-combined-panel .annual-ratio-trend-path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.annual-combined-panel .annual-temperature-point,
.annual-combined-panel .annual-ratio-point {
  fill: var(--surface);
  stroke-width: 2;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.annual-combined-panel .annual-temperature-point {
  stroke: var(--temperature);
}

.annual-combined-panel .annual-ratio-point {
  stroke: var(--ratio);
}

.annual-combined-panel .ratio-grid line {
  stroke: rgba(189, 197, 207, 0.1);
  shape-rendering: crispEdges;
}

.annual-combined-panel .annual-combined-guide {
  stroke: rgba(244, 240, 232, 0.58);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.annual-combined-panel .annual-missing-mark {
  fill: var(--surface);
  stroke: var(--faint);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.annual-combined-panel .axis-title {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.annual-combined-note {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.55;
}

.annual-combined-note strong {
  color: var(--ink);
  font-weight: 600;
}

.co2-panel {
  margin-top: 10px;
  padding: 26px 28px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.co2-panel-heading {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.co2-panel-heading h3,
.co2-panel-heading p {
  margin: 0;
}

.co2-panel-heading h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.co2-panel-heading p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.co2-panel-heading > span {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.co2-reader {
  display: grid;
  grid-template-columns: 0.65fr 1fr 1.35fr;
  margin-bottom: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.co2-reader > div {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 92px;
  padding: 15px 18px;
  border-left: 1px solid var(--line);
}

.co2-reader > div:first-child {
  border-left: 0;
}

.co2-reader span,
.co2-reader small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.co2-reader strong {
  align-self: center;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1;
}

#co2-reader-value {
  color: var(--co2);
}

#co2-reader-ratio {
  color: var(--ratio);
}

.co2-reader small {
  letter-spacing: 0.03em;
  text-transform: none;
}

.co2-correlation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.co2-correlation-legend span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.co2-correlation-legend i {
  display: inline-block;
  width: 22px;
}

.co2-dot {
  width: 7px !important;
  height: 7px;
  border-radius: 50%;
  background: var(--co2);
}

.co2-trend-key {
  border-top: 2px solid var(--temperature);
}

.co2-panel svg {
  display: block;
  width: 100%;
  overflow: visible;
  touch-action: pan-y;
}

.co2-timeline-panel svg {
  min-height: 300px;
}

.co2-correlation-panel svg {
  min-height: 380px;
}

.co2-panel svg text {
  font-family: var(--sans);
}

.co2-panel .grid line {
  stroke: var(--line-soft);
  shape-rendering: crispEdges;
}

.co2-panel .grid path,
.co2-panel .axis path {
  display: none;
}

.co2-panel .axis line {
  stroke: transparent;
}

.co2-panel .axis text {
  fill: var(--faint);
  font-size: 10px;
}

.co2-area {
  fill: var(--co2);
  opacity: 0.07;
}

.co2-path {
  fill: none;
  stroke: var(--co2);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.co2-guide {
  stroke: rgba(244, 240, 232, 0.55);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.co2-marker,
.co2-correlation-marker {
  fill: var(--surface);
  stroke: var(--co2);
  stroke-width: 2;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.co2-scatter-point {
  fill: var(--co2);
  opacity: 0.44;
  transition: opacity 120ms ease;
}

.co2-scatter-point.is-selected {
  opacity: 1;
}

.co2-regression-line {
  stroke: var(--temperature);
  stroke-width: 1.7;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.co2-panel .axis-title,
.co2-correlation-stat {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.co2-note {
  max-width: 780px;
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.55;
}

.co2-note strong {
  color: var(--ink);
  font-weight: 600;
}

.chart-panel {
  margin-top: 10px;
  padding: 26px 28px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}

.panel-title h3,
.panel-title p {
  margin: 0;
}

.panel-title h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.panel-title p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.panel-title > strong {
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
}

.series-key {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
}

.series-key-temperature {
  background: var(--temperature);
}

.series-key-sunshine {
  background: var(--sunshine);
}

.chart-panel svg {
  display: block;
  width: 100%;
  min-height: 280px;
  overflow: visible;
  touch-action: pan-y;
}

.chart-panel svg text {
  font-family: var(--sans);
}

.chart-panel .grid line {
  stroke: var(--line-soft);
  shape-rendering: crispEdges;
}

.chart-panel .grid path,
.chart-panel .axis path {
  display: none;
}

.chart-panel .axis line {
  stroke: transparent;
}

.chart-panel .axis text {
  fill: var(--faint);
  font-size: 10px;
}

.chart-panel .raw-line {
  fill: none;
  stroke-width: 1.15;
  opacity: 0.38;
  vector-effect: non-scaling-stroke;
}

.chart-panel .raw-point {
  opacity: 0.52;
}

.chart-panel .mean-line {
  fill: none;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.chart-panel .missing-mark {
  fill: var(--surface);
  stroke: var(--faint);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-panel .hover-guide {
  stroke: rgba(244, 240, 232, 0.54);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.chart-panel .hover-marker {
  fill: var(--surface);
  stroke-width: 2;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.chart-panel .peak-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.chart-panel .peak-hairline {
  stroke-width: 1;
  stroke-dasharray: 2 3;
  opacity: 0.45;
  vector-effect: non-scaling-stroke;
}

.chart-help {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 11px;
}

.viz-error {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(240, 109, 79, 0.45);
  border-radius: var(--radius);
  color: #d9aaa0;
  font-size: 13px;
}

.recent {
  padding: 118px 0 110px;
  border-top: 1px solid var(--line);
}

.recent-heading {
  max-width: 850px;
}

.recent-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 6.2vw, 88px);
  font-weight: 400;
  letter-spacing: -0.048em;
  line-height: 0.96;
}

.recent-heading p {
  max-width: 600px;
  margin: 28px 0 0;
  color: #aaa79f;
  font-size: 17px;
  line-height: 1.62;
}

.recent-summary {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  margin-top: 58px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.recent-summary > div {
  min-height: 155px;
  padding: 31px 28px 25px;
  border-left: 1px solid var(--line);
}

.recent-summary > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.recent-summary span,
.recent-summary small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recent-summary strong {
  display: block;
  margin: 15px 0 12px;
  font-family: var(--serif);
  font-size: clamp(31px, 3.6vw, 51px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.recent-summary > div:first-child strong {
  color: var(--temperature);
}

.recent-summary > div:nth-child(2) strong {
  color: var(--sunshine);
}

.recent-summary small {
  letter-spacing: 0.02em;
  text-transform: none;
}

.recent-toolbar {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
}

.recent-toolbar p {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
}

.recent-controls {
  display: flex;
  gap: 6px;
}

.recent-controls button {
  min-width: 112px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 90ms ease;
}

.recent-controls button:hover,
.recent-controls button:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
  outline: none;
}

.recent-controls button:active {
  transform: translateY(1px);
}

.recent-controls button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #15130f;
}

.recent-reader {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  min-height: 116px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
}

.recent-reader > div {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}

.recent-reader > div:first-child {
  border-left: 0;
}

.recent-reader span,
.recent-reader small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recent-reader strong {
  align-self: center;
  font-family: var(--serif);
  font-size: clamp(25px, 2.7vw, 39px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.recent-reader small {
  letter-spacing: 0.02em;
  text-transform: none;
}

.recent-temperature-value {
  color: var(--temperature);
}

.recent-sunshine-value {
  color: var(--sunshine);
}

.recent-chart {
  margin-top: 10px;
  padding: 24px 28px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.recent-legend {
  display: flex;
  gap: 24px;
  align-items: center;
  min-height: 32px;
  color: var(--muted);
  font-size: 11px;
}

.recent-legend span {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.recent-legend i {
  display: inline-block;
  width: 24px;
}

.temperature-line {
  border-top: 2px solid var(--temperature);
}

.sunshine-bar {
  height: 8px;
  background: color-mix(in srgb, var(--sunshine) 60%, transparent);
}

.recent-chart svg {
  display: block;
  width: 100%;
  min-height: 390px;
  overflow: visible;
  touch-action: pan-y;
  transition: opacity 180ms ease, transform 180ms ease;
}

.recent-chart svg text {
  font-family: var(--sans);
}

.recent-chart .grid line {
  stroke: var(--line-soft);
  shape-rendering: crispEdges;
}

.recent-chart .grid path,
.recent-chart .axis path {
  display: none;
}

.recent-chart .axis line {
  stroke: transparent;
}

.recent-chart .axis text {
  fill: var(--faint);
  font-size: 10px;
}

.recent-chart .sun-bar {
  fill: var(--sunshine);
  opacity: 0.33;
  transition: opacity 120ms ease;
}

.recent-chart .sun-bar.is-selected {
  opacity: 0.82;
}

.recent-chart .temperature-path {
  fill: none;
  stroke: var(--temperature);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.recent-chart .temperature-point {
  fill: var(--surface);
  stroke: var(--temperature);
  stroke-width: 2;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.recent-chart .recent-guide {
  stroke: rgba(244, 240, 232, 0.58);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.recent-chart .axis-title {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.recent-note {
  margin: 15px 0 0;
  color: var(--faint);
  font-size: 11px;
}

.recent-error {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(240, 109, 79, 0.45);
  border-radius: var(--radius);
  color: #d9aaa0;
  font-size: 13px;
}

.finding {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  gap: 80px;
  padding: 118px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.finding-copy > p:last-child {
  max-width: 670px;
  margin: 34px 0 0;
  color: #aaa79f;
  font-size: 17px;
  line-height: 1.65;
}

.finding-copy strong {
  color: var(--ink);
  font-weight: 500;
}

.comparison {
  align-self: center;
}

.comparison-row,
.comparison-labels {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.75fr;
  gap: 20px;
  align-items: baseline;
}

.comparison-row span {
  color: var(--muted);
  font-size: 12px;
}

.comparison-row strong {
  font-family: var(--serif);
  font-size: clamp(24px, 3.1vw, 43px);
  font-weight: 400;
  line-height: 1;
}

.comparison-row-current strong:nth-of-type(1) {
  color: var(--sunshine);
}

.comparison-row-current strong:nth-of-type(2) {
  color: var(--temperature);
}

.comparison-rule {
  position: relative;
  height: 52px;
  margin: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.comparison-rule span {
  position: absolute;
  left: 0;
  top: 50%;
  width: 68%;
  height: 1px;
  background: var(--accent);
}

.comparison-labels {
  margin-top: 20px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.method {
  padding: 95px 0 72px;
}

.method h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px;
  margin-top: 36px;
}

.method-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.method-grid p:last-child {
  grid-column: 1 / -1;
  max-width: 820px;
}

.source-line {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 55px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
}

.source-line a {
  flex: 0 0 auto;
  color: var(--accent);
  text-underline-offset: 4px;
}

.source-links {
  display: flex;
  flex: 0 0 auto;
  gap: 18px;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-footer a {
  color: var(--accent);
  text-decoration: none;
}

body:not(.is-ready) .hero > *,
body:not(.is-ready) .facts,
body:not(.is-ready) .visual {
  opacity: 0;
  transform: translateY(16px);
}

.hero > *,
.facts,
.visual {
  transition: opacity 620ms ease, transform 620ms ease;
}

.hero > :nth-child(2) {
  transition-delay: 80ms;
}

.hero > :nth-child(3),
.facts {
  transition-delay: 150ms;
}

.visual {
  transition-delay: 220ms;
}

@media (max-width: 900px) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .visual-heading {
    grid-template-columns: 1fr;
  }

  .series-controls {
    justify-content: flex-start;
  }

  .annual-combined-heading {
    gap: 14px;
    align-items: stretch;
    flex-direction: column;
  }

  .annual-combined-legend {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .co2-panel-heading {
    gap: 14px;
    align-items: stretch;
    flex-direction: column;
  }

  .finding {
    grid-template-columns: 1fr;
  }

  .recent-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .recent-summary > div:nth-child(3) {
    grid-column: 1 / -1;
    min-height: 120px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  .page-footer {
    width: min(100% - 32px, 1400px);
  }

  .site-header p {
    display: none;
  }

  .hero {
    min-height: calc(100dvh - 68px);
    padding: 54px 0 64px;
  }

  .hero h1 {
    font-size: clamp(58px, 21vw, 94px);
    line-height: 0.86;
  }

  .hero-copy {
    margin-left: 0;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact:nth-child(3) {
    min-height: 0;
    padding: 25px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .fact:first-child {
    border-top: 0;
  }

  .fact strong {
    margin-bottom: 9px;
  }

  .fact span {
    max-width: none;
  }

  .visual {
    padding: 84px 0 76px;
  }

  .visual-heading {
    gap: 32px;
    margin-bottom: 38px;
  }

  .series-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .series-controls button {
    justify-content: center;
    padding-inline: 10px;
    font-size: 11px;
  }

  .year-reader {
    grid-template-columns: repeat(2, 1fr);
  }

  .reader-year {
    grid-column: 1 / -1;
    min-height: 90px;
    border-bottom: 1px solid var(--line);
  }

  .reader-value {
    min-height: 104px;
    padding: 17px 14px;
  }

  .temperature-reader {
    border-left: 0;
  }

  .reader-value strong {
    font-size: 25px;
  }

  .reader-value small {
    font-size: 9px;
  }

  .annual-combined-panel {
    padding: 20px 8px 8px;
  }

  .annual-combined-heading {
    gap: 14px;
    align-items: stretch;
    flex-direction: column;
    padding-inline: 6px;
  }

  .annual-combined-heading p {
    max-width: 290px;
  }

  .annual-combined-legend {
    gap: 10px 14px;
    flex-wrap: wrap;
    min-height: 24px;
    font-size: 10px;
  }

  .annual-combined-panel svg {
    min-height: 460px;
  }

  .annual-combined-note {
    padding-inline: 6px;
  }

  .co2-panel {
    padding: 20px 8px 10px;
  }

  .co2-panel-heading,
  .co2-note {
    padding-inline: 6px;
  }

  .co2-reader {
    grid-template-columns: repeat(2, 1fr);
  }

  .co2-reader > div {
    min-height: 96px;
    padding: 15px 12px;
  }

  .co2-reader > div:first-child {
    grid-column: 1 / -1;
    min-height: 74px;
    border-bottom: 1px solid var(--line);
  }

  .co2-reader > div:nth-child(2) {
    border-left: 0;
  }

  .co2-reader strong {
    font-size: 23px;
  }

  .co2-timeline-panel svg {
    min-height: 260px;
  }

  .co2-correlation-panel svg {
    min-height: 330px;
  }

  .chart-panel {
    padding: 20px 10px 10px;
  }

  .panel-title {
    padding-inline: 6px;
  }

  .panel-title p {
    max-width: 230px;
  }

  .chart-panel svg {
    min-height: 265px;
  }

  .finding {
    gap: 64px;
    padding: 82px 0;
  }

  .recent {
    padding: 82px 0 76px;
  }

  .recent-heading p {
    font-size: 15px;
  }

  .recent-summary {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .recent-summary > div,
  .recent-summary > div:first-child,
  .recent-summary > div:nth-child(3) {
    grid-column: auto;
    min-height: 0;
    padding: 25px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .recent-summary > div:first-child {
    border-top: 0;
  }

  .recent-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .recent-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .recent-controls button {
    width: 100%;
  }

  .recent-reader {
    grid-template-columns: repeat(2, 1fr);
  }

  .recent-reader > div:first-child {
    grid-column: 1 / -1;
    min-height: 92px;
    border-bottom: 1px solid var(--line);
  }

  .recent-reader > div:nth-child(2) {
    border-left: 0;
  }

  .recent-reader > div {
    min-height: 104px;
    padding: 17px 14px;
  }

  .recent-reader strong {
    font-size: 24px;
  }

  .recent-reader small {
    font-size: 9px;
  }

  .recent-chart {
    padding: 18px 8px 8px;
  }

  .recent-legend {
    gap: 14px;
    padding-inline: 6px;
    font-size: 10px;
  }

  .recent-chart svg {
    min-height: 330px;
  }

  .finding-copy > p:last-child {
    font-size: 15px;
  }

  .comparison-row,
  .comparison-labels {
    grid-template-columns: 1.2fr 0.85fr 0.85fr;
    gap: 10px;
  }

  .comparison-row strong {
    font-size: 25px;
  }

  .method {
    padding: 74px 0 60px;
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .method-grid p:last-child {
    grid-column: auto;
  }

  .source-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-links {
    flex-wrap: wrap;
  }

  .page-footer span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
