:root {
  color-scheme: light;
  --paper: #f2ede6;
  --surface: #fbf8f3;
  --ink: #2c3540;
  --muted: #4e6370;
  --line: #dedbd4;
  --forest: #3d7a78;
  --forest-dark: #2c3540;
  --sage: #8aaa8a;
  --mint: #e1ece8;
  --gold: #aa8888;
  --coral: #7a5050;
  --bluegreen: #7aacaa;
  --shadow: 0 18px 50px rgb(44 53 64 / 7%);
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("./vendor/fonts/dm-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./vendor/fonts/dm-mono-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./vendor/fonts/playfair-display-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./vendor/fonts/playfair-display-italic-latin.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.topbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1140px) / 2));
  background: var(--ink);
  color: #f2ede6;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 31px;
  height: 31px;
  color: #f1e7b6;
}
.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.brand-name {
  font:
    400 18px/1 "DM Mono",
    monospace;
  letter-spacing: 0;
}
.brand-period {
  color: var(--sage);
}
.brand-divider {
  width: 1px;
  height: 22px;
  margin: 0 3px 0 5px;
  background: rgb(255 255 255 / 27%);
}
.brand-caption {
  color: #c5d2cd;
  font:
    400 9px/1 "DM Mono",
    monospace;
  letter-spacing: 0.5px;
}
.top-link {
  color: #e3ebe1;
  font-size: 13px;
  text-decoration: none;
}
.top-link span {
  padding-left: 5px;
  color: #d7c66e;
}
.top-link:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-shell {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
}

.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 64px 8px 36px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 13px;
  color: var(--forest);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.45px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #83a76e;
  box-shadow: 0 0 0 4px #e3eddb;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  color: var(--forest-dark);
  font:
    400 48px/1.05 "Playfair Display",
    Georgia,
    serif;
  letter-spacing: 0;
}

h1 em {
  color: var(--sage);
  font-weight: 400;
}
.intro-text {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.demo-stamp {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 7px;
  padding: 12px 15px;
  border: 1px solid #dce7d7;
  border-radius: 5px;
  background: #edf4e9;
  color: var(--forest-dark);
}

.stamp-leaf {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: #d9e8ca;
  color: #608052;
  font-size: 18px;
}
.demo-stamp strong,
.demo-stamp small {
  display: block;
}
.demo-stamp strong {
  font-size: 12px;
}
.demo-stamp small {
  color: #72836e;
  font-size: 11px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 128px;
  padding: 20px 25px 17px;
}
.metric + .metric {
  border-left: 1px solid var(--line);
}
.metric-label,
.metric-detail {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.metric-label {
  margin-bottom: 8px;
}
.metric-value {
  display: block;
  color: var(--forest-dark);
  font:
    400 29px/1.15 Georgia,
    "Iowan Old Style",
    serif;
  font-variant-numeric: tabular-nums;
}
.metric-primary .metric-value {
  color: var(--forest);
}
.metric-detail {
  margin-top: 6px;
}
.metric-change.is-down {
  color: var(--forest);
}
.metric-change.is-up {
  color: #b35e46;
}
.metric-change.is-flat {
  color: var(--forest);
}

.chart-panel {
  padding: 28px 30px 21px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chart-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.section-kicker {
  margin-bottom: 6px;
  color: #84937f;
  font-size: 9px;
}
.chart-heading-row h2,
.notes-heading h2 {
  margin: 0;
  color: var(--forest-dark);
  font:
    400 24px/1.2 "Playfair Display",
    Georgia,
    serif;
  letter-spacing: 0;
}
.chart-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
a:focus-visible {
  outline: 3px solid #d8b653;
  outline-offset: 3px;
}

.chart-wrap {
  position: relative;
  min-height: 260px;
  margin: 16px -8px 0;
}
.emissions-chart {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
.chart-svg {
  display: block;
  max-width: none;
}
.chart-grid {
  stroke: #e1e9de;
  stroke-width: 1;
}
.chart-axis-label {
  fill: #87948b;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
}
.chart-total-label {
  fill: #415448;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 4px 8px 0;
  padding: 0;
  list-style: none;
}
.chart-legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #58675d;
  font-size: 11px;
}
.chart-legend-swatch {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 2px;
}
.chart-error {
  padding: 56px 10px;
  color: #9c4e3b;
  text-align: center;
}

.data-notes {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(280px, 1.2fr);
  column-gap: 28px;
  row-gap: 16px;
  align-items: center;
  margin: 22px 0 48px;
  padding: 22px 26px 19px;
  border: 1px solid #dce6d6;
  border-radius: 6px;
  background: #eaf1e4;
}

.notes-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.notes-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #d8e6cc;
  color: var(--forest);
}
.notes-icon svg {
  width: 28px;
  height: 28px;
}
.notes-heading .section-kicker {
  margin-bottom: 4px;
}
.notes-heading h2 {
  font-size: 21px;
}
.notes-copy {
  margin: 0;
  color: #58675d;
  font-size: 12px;
  line-height: 1.65;
}
.data-flow {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid #d5e0d0;
}
.flow-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--forest-dark);
  font-size: 11px;
  font-weight: 600;
}
.flow-number {
  color: #82977a;
  font-size: 9px;
  font-weight: 800;
}
.flow-arrow {
  color: #9baa94;
  font-size: 15px;
}
.data-caveat {
  grid-column: 1 / -1;
  margin: -5px 0 0;
  color: #718071;
  font-size: 10px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px max(28px, calc((100vw - 1120px) / 2));
  border-top: 1px solid #e1e7dc;
  color: #768178;
  font-size: 11px;
}
.footer-copy {
  display: grid;
  gap: 3px;
}
.footer-carbon {
  color: #718071;
  font-size: 10px;
}
.footer a {
  color: var(--forest);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 680px) {
  .topbar {
    height: 64px;
    padding: 0 20px;
  }
  .brand {
    gap: 8px;
  }
  .brand-mark {
    width: 27px;
    height: 27px;
  }
  .brand-name {
    font-size: 20px;
  }
  .brand-caption {
    font-size: 9px;
    letter-spacing: 0.8px;
  }
  .brand-divider {
    height: 18px;
    margin-right: 1px;
  }
  .top-link {
    font-size: 12px;
  }
  .page-shell {
    width: calc(100% - 32px);
  }
  .intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 42px 2px 25px;
  }
  h1 {
    font-size: 39px;
  }
  .intro-text {
    max-width: 420px;
    font-size: 14px;
  }
  .demo-stamp {
    margin: 0;
    padding: 9px 12px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    min-height: 107px;
    padding: 15px 16px;
  }
  .metric:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .metric-value {
    font-size: 25px;
  }
  .chart-panel {
    padding: 21px 14px 17px;
  }
  .chart-heading-row {
    gap: 10px;
  }
  .chart-heading-row h2 {
    font-size: 22px;
  }
  .chart-wrap {
    min-height: 220px;
    margin: 14px -5px 0;
  }
  .chart-svg {
    height: 250px;
  }
  .chart-axis-label {
    font-size: 12px;
  }
  .data-notes {
    grid-template-columns: 1fr;
    gap: 13px;
    margin: 16px 0 34px;
    padding: 18px;
  }
  .data-flow {
    grid-column: 1;
    gap: 8px;
  }
  .flow-step {
    gap: 5px;
    font-size: 10px;
  }
  .flow-arrow {
    font-size: 12px;
  }
  .data-caveat {
    grid-column: 1;
  }
  .footer {
    align-items: flex-start;
    padding: 16px;
  }
}

@media (max-width: 390px) {
  .brand-caption {
    display: none;
  }
  .brand-divider {
    display: none;
  }
  .top-link {
    font-size: 11px;
  }
  .intro {
    padding-top: 35px;
  }
  h1 {
    font-size: 35px;
  }
  .metric {
    padding-right: 11px;
    padding-left: 12px;
  }
  .metric-label {
    font-size: 11px;
  }
  .metric-value {
    font-size: 23px;
  }
  .data-flow {
    gap: 6px;
  }
  .flow-step {
    font-size: 9px;
  }
}

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