@scope (.article-body) {
  :scope {
    color-scheme: light;
    --paper: transparent;
    --ink: #203337;
    --muted: #52676a;
    --line: #d9ded6;
    --teal: #08786f;
    --blue: #456f96;
    --rust: #a34b38;
  }
  * {
    box-sizing: border-box;
  }
  :scope {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font:
      18px/1.75 Georgia,
      serif;
  }
  header {
    border-bottom: 1px solid var(--line);
    padding-bottom: 30px;
    margin-bottom: 36px;
  }
  .eyebrow,
  .meta,
  figcaption,
  table,
  .chart,
  .note,
  footer {
    font-family: system-ui, sans-serif;
  }
  .eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
  }
  h1 {
    font-size: clamp(35px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin: 18px 0;
  }
  h2 {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin: 48px 0 12px;
  }
  .dek {
    font-size: 22px;
    color: var(--muted);
    line-height: 1.4;
  }
  .meta {
    font-size: 13px;
    color: var(--muted);
  }
  p {
    margin: 1.1em 0;
  }
  a {
    color: #086b68;
    text-underline-offset: 3px;
  }
  figure {
    margin: 32px 0;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  figcaption {
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
    margin-top: 14px;
  }
  .chart {
    font-size: 13px;
    line-height: 1.4;
  }
  .chart h3 {
    font-size: 17px;
    margin: 0 0 16px;
  }
  .barrow {
    display: grid;
    grid-template-columns: minmax(90px, 1.1fr) minmax(65px, 3fr) 54px;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
  }
  .bar {
    height: 17px;
    background: #e5e8e0;
    border-radius: 3px;
    overflow: hidden;
  }
  .bar span {
    height: 100%;
    display: block;
    background: var(--teal);
  }
  .cost .bar span {
    background: var(--blue);
  }
  .cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
  .tablewrap {
    overflow-x: auto;
  }
  table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
    line-height: 1.4;
  }
  th,
  td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    text-align: right;
    white-space: nowrap;
  }
  th:first-child,
  td:first-child {
    text-align: left;
  }
  svg {
    display: block;
    width: 100%;
    height: auto;
  }
  .note {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
  }
  .big {
    font-size: 34px;
    font-weight: bold;
    line-height: 1.1;
    color: var(--teal);
  }
  footer {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 42px;
    font-size: 13px;
    color: var(--muted);
  }
  @media (max-width: 600px) {
    .cols {
      grid-template-columns: 1fr;
      gap: 18px;
    }
    :scope {
      font-size: 17px;
    }
    .barrow {
      grid-template-columns: 100px 1fr 50px;
    }
  }
  @media print {
    :scope {
      max-width: none;
    }
    figure {
      break-inside: avoid;
    }
  }
}

.reading.article {
  max-width: 810px;
}
.article-body {
  --paper: transparent;
  --ink: #17291e;
  --muted: #526154;
  --line: #c5ccbd;
  --teal: #526c45;
  background: transparent;
  padding: 0;
  max-width: none;
  font:
    19px/1.72 Georgia,
    serif;
}
.reading .article-body h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.2vw, 82px);
  letter-spacing: -0.04em;
}
.article-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
}
.article-body .eyebrow,
.article-body .meta,
.article-body figcaption,
.article-body .note,
.article-body .chart,
.article-body table {
  font-family: var(--sans);
}
@media (max-width: 600px) {
  .article-body {
    font-size: 17px;
  }
  .article-body figure:has(svg) {
    overflow-x: auto;
  }
  .article-body figure svg {
    min-width: 510px;
  }
}

.archive-article figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}
.archive-article blockquote,
.archive-article .note-callout {
  margin: 1.35em 0;
  padding: 5px 20px;
  border-left: 3px solid #8eaa67;
  background: #e8ebdf;
}
.archive-article blockquote p,
.archive-article .note-callout p {
  margin: 0.65em 0;
}
.archive-article pre {
  max-width: 100%;
  overflow: auto;
  padding: 18px 20px;
  background: #16251e;
  color: #e4ecd9;
  font: 14px/1.5 var(--mono);
  tab-size: 2;
}
.archive-article h3,
.archive-article h4 {
  margin: 1.6em 0 0.45em;
  line-height: 1.2;
  font-weight: 600;
}
.archive-article h3 {
  font: 400 clamp(28px, 3vw, 39px)/1.13 var(--serif);
}
.archive-article hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.archive-article :is(p, li, a) {
  overflow-wrap: break-word;
}
.archive-article ul,
.archive-article ol {
  padding-left: 1.5em;
}
