:root {
  color-scheme: light;
  --paper: #edf2ef;
  --paper-deep: #dfe9e5;
  --ink: #10252b;
  --ink-soft: #29434a;
  --muted: #5c6f72;
  --line: #b8c8c3;
  --white: #fffdf8;
  --red: #d4543d;
  --red-deep: #a73d2f;
  --teal: #3b7780;
  --blue: #406574;
  --ochre: #c99c4d;
  --display: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  background-image: linear-gradient(rgba(16, 37, 43, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 37, 43, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

::selection {
  background: var(--red);
  color: var(--white);
}

.page-shell {
  margin: 0 auto;
  max-width: 1440px;
  overflow: clip;
}

.skip-link {
  background: var(--ink);
  color: var(--white);
  left: 1rem;
  padding: 0.65rem 0.9rem;
  position: fixed;
  text-decoration: none;
  top: -5rem;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(1rem, 4vw, 4.5rem);
}

.wordmark {
  align-items: baseline;
  display: inline-flex;
  gap: 0.85rem;
  text-decoration: none;
}

.wordmark > span {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wordmark small,
.eyebrow,
.status-chip,
.section-kicker,
.source-number,
.pull-quote-note,
.footer-mark {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.wordmark small {
  border-left: 1px solid var(--line);
  color: var(--muted);
  padding-left: 0.85rem;
}

.language-nav {
  align-items: center;
  display: flex;
  font-family: var(--mono);
  font-size: 0.72rem;
  gap: 0.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.language-nav a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.language-current {
  color: var(--red-deep);
  font-weight: 700;
}

.language-slash {
  color: var(--line);
}

.hero {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 6.5rem);
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.78fr);
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 4vw, 4.5rem) clamp(3rem, 6vw, 6rem);
}

.hero-copy {
  max-width: 760px;
  padding-top: 0.5rem;
}

.eyebrow-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.eyebrow {
  color: var(--red-deep);
  margin: 0;
}

.status-chip {
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.35rem 0.55rem;
}

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

h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
}

h1 {
  font-size: clamp(3.25rem, 6.5vw, 7.2rem);
  letter-spacing: -0.065em;
  line-height: 0.9;
  margin-bottom: 2rem;
  max-width: 11ch;
}

.hero-lede {
  color: var(--ink-soft);
  font-size: clamp(1.16rem, 1.65vw, 1.4rem);
  line-height: 1.45;
  margin-bottom: 2rem;
  max-width: 41rem;
}

.hero-source {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-family: var(--mono);
  font-size: 0.72rem;
  gap: 0.65rem;
  letter-spacing: 0.02em;
  margin-bottom: 0;
  max-width: 36rem;
}

.signal-dot {
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 0.62rem;
  height: 0.62rem;
  width: 0.62rem;
}

.chart-card {
  align-self: start;
  background: var(--ink);
  box-shadow: 14px 14px 0 var(--red);
  color: var(--white);
  margin: 0;
  max-width: 560px;
  padding: clamp(0.8rem, 1.8vw, 1.25rem);
}

.chart-frame {
  background: var(--paper-deep);
  border: 1px solid rgba(255, 253, 248, 0.28);
}

.chart-frame img {
  display: block;
  height: auto;
  width: 100%;
}

.chart-card figcaption {
  color: #d4e0dc;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.5;
  padding: 1rem 0.2rem 0.4rem;
}

.chart-card figcaption span {
  color: var(--ochre);
  display: block;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.text-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.chart-download {
  color: var(--white);
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  margin: 0.5rem 0.2rem 0.1rem;
  text-transform: uppercase;
}

.number-band {
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 clamp(1rem, 4vw, 4.5rem);
}

.stat {
  border-right: 1px solid rgba(237, 242, 239, 0.24);
  min-height: 196px;
  padding: 1.65rem clamp(1rem, 2.4vw, 2rem) 1.5rem;
}

.stat:last-child {
  border-right: 0;
}

.stat-focus {
  background: var(--red);
}

.stat-share {
  background: var(--teal);
}

.stat-number {
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.85;
  margin-bottom: 1.5rem;
}

.stat-label {
  color: #d4e0dc;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.45;
  margin-bottom: 0;
  max-width: 15rem;
}

.stat-focus .stat-label,
.stat-share .stat-label {
  color: var(--white);
}

.story-section,
.table-section,
.sources-section,
.share-section {
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1rem, 10vw, 10rem);
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(130px, 0.48fr) minmax(0, 1.5fr);
  margin-bottom: 3.5rem;
}

.section-kicker {
  color: var(--red-deep);
  margin-bottom: 0;
}

.section-heading h2,
.limits-section h2,
.share-section h2 {
  font-size: clamp(2.35rem, 4.2vw, 5rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
  margin-bottom: 0;
  max-width: 17ch;
}

.story-grid {
  align-items: start;
  display: grid;
  gap: clamp(2.5rem, 8vw, 8rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.65fr);
}

.prose {
  font-size: clamp(1.08rem, 1.4vw, 1.22rem);
  line-height: 1.63;
  max-width: 45rem;
}

.prose p {
  margin-bottom: 1.45rem;
}

.pull-quote {
  background: var(--red);
  box-shadow: 12px 12px 0 var(--ink);
  color: var(--white);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.pull-quote-number {
  font-family: var(--display);
  font-size: clamp(4.5rem, 8vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.82;
  margin-bottom: 1.5rem;
}

.pull-quote > p:not(.pull-quote-number):not(.pull-quote-note) {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 2rem;
}

.pull-quote-rule {
  background: var(--white);
  display: block;
  height: 1px;
  margin-bottom: 0.8rem;
  opacity: 0.55;
  width: 4rem;
}

.pull-quote-note {
  color: #ffe2d9;
  margin-bottom: 0;
}

.calculation,
.share-details {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 6vw, 5rem);
}

summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0.015em;
  list-style: none;
  padding: 1.1rem 0;
  text-transform: uppercase;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  color: var(--red-deep);
  content: "+";
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 400;
}

details[open] > summary::after {
  content: "−";
}

.calculation-body,
.share-copy {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 1.7rem;
}

.calculation-body > p,
.share-copy > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 1.5rem 0 0;
  max-width: 44rem;
}

.equation {
  align-items: center;
  display: grid;
  gap: 0.45rem 0.75rem;
  grid-template-columns: minmax(3rem, auto) auto minmax(3rem, auto) auto minmax(4.5rem, auto);
  grid-template-rows: auto auto;
  max-width: 44rem;
}

.equation span,
.equation strong {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
}

.equation strong {
  color: var(--red-deep);
}

.equation b {
  align-self: center;
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 400;
  grid-row: 1 / span 2;
}

.equation small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  grid-row: 2;
  line-height: 1.3;
  max-width: 7.5rem;
  text-transform: uppercase;
}

.equation span:nth-of-type(1),
.equation small:nth-of-type(1) {
  grid-column: 1;
}

.equation b:nth-of-type(1) {
  grid-column: 2;
}

.equation span:nth-of-type(2),
.equation small:nth-of-type(2) {
  grid-column: 3;
}

.equation b:nth-of-type(2) {
  grid-column: 4;
}

.equation strong,
.equation small:nth-of-type(3) {
  grid-column: 5;
}

.equation-share {
  margin-top: 1.5rem;
}

.table-section {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.compact-heading {
  margin-bottom: 2rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  min-width: 100%;
  text-align: left;
}

caption {
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0.7rem;
  vertical-align: top;
}

thead th {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding-bottom: 0.65rem;
  text-transform: uppercase;
}

thead th:first-child,
tbody th {
  padding-left: 0;
}

tbody th {
  font-weight: 400;
  max-width: 31rem;
}

tbody td {
  font-family: var(--mono);
  white-space: nowrap;
}

.focus-row th,
.focus-row td {
  color: var(--red-deep);
  font-weight: 700;
}

.total-row th,
.total-row td {
  border-bottom: 0;
  color: var(--ink);
  font-weight: 700;
}

.limits-section {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, 1fr);
}

.limit-card,
.method-card {
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.limit-card {
  background: var(--red);
  color: var(--white);
}

.limit-card .section-kicker,
.limit-card h2 {
  color: var(--white);
}

.method-card {
  background: var(--ink);
  color: var(--white);
}

.method-card .section-kicker {
  color: var(--ochre);
}

.limit-card h2,
.method-card h2 {
  font-size: clamp(2.15rem, 3.7vw, 4.4rem);
  margin: 2.5rem 0 1.7rem;
}

.limit-card p:not(.section-kicker),
.method-card p:not(.section-kicker) {
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 38rem;
}

.method-dwellings {
  border-left: 2px solid var(--teal);
  color: #d4e0dc;
  font-family: var(--mono);
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
  margin-top: 1.5rem;
  padding-left: 1rem;
}

.sources-section {
  background: var(--white);
}

.source-list {
  border-top: 1px solid var(--line);
}

.source-list a {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  padding: 1.2rem 0;
  text-decoration: none;
}

.source-list a:hover strong,
.source-list a:focus-visible strong {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.source-number {
  color: var(--red-deep);
  padding-top: 0.2rem;
}

.source-list strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.source-list small {
  color: var(--muted);
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.45;
  margin-top: 0.45rem;
}

.source-arrow {
  color: var(--red-deep);
  font-family: var(--mono);
  font-size: 1.15rem;
  padding-top: 0.1rem;
}

.share-section {
  background: var(--ochre);
  color: var(--ink);
}

.share-section .section-kicker {
  color: var(--ink);
}

.share-section h2 {
  margin-top: 1.4rem;
}

.share-details {
  border-color: rgba(16, 37, 43, 0.35);
  margin-top: 2.5rem;
}

.share-copy {
  border-color: rgba(16, 37, 43, 0.35);
}

.share-copy > p {
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.5;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  font-family: var(--mono);
  font-size: 0.68rem;
  justify-content: space-between;
  letter-spacing: 0.02em;
  line-height: 1.4;
  padding: 1.3rem clamp(1rem, 4vw, 4.5rem);
}

.site-footer > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: var(--ochre);
  text-underline-offset: 0.2em;
}

.footer-mark {
  color: var(--red);
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 980px) {
  .hero {
    gap: 3.5rem;
    grid-template-columns: 1fr;
  }

  .chart-card {
    justify-self: center;
    max-width: 620px;
    width: 100%;
  }

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

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(237, 242, 239, 0.24);
  }

  .story-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  }

  .limits-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 1rem;
  }

  .site-header {
    align-items: start;
    gap: 1rem;
    min-height: 68px;
    padding-bottom: 1rem;
    padding-top: 1rem;
  }

  .wordmark {
    align-items: start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .wordmark small {
    border-left: 0;
    padding-left: 0;
  }

  .language-nav {
    padding-top: 0.2rem;
  }

  .hero {
    padding-bottom: 3.5rem;
    padding-top: 3.25rem;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
    max-width: 10.5ch;
  }

  .hero-lede {
    font-size: 1.12rem;
  }

  .hero-source {
    align-items: start;
  }

  .chart-card {
    box-shadow: 8px 8px 0 var(--red);
  }

  .number-band {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .stat {
    min-height: 168px;
    padding: 1.25rem 1rem;
  }

  .stat-number {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
    margin-bottom: 1.05rem;
  }

  .stat-label {
    font-size: 0.66rem;
  }

  .story-section,
  .table-section,
  .sources-section,
  .share-section {
    padding-bottom: 4rem;
    padding-top: 4rem;
  }

  .section-heading {
    display: block;
    margin-bottom: 2.4rem;
  }

  .section-heading h2,
  .limits-section h2,
  .share-section h2 {
    font-size: clamp(2.55rem, 12vw, 4rem);
    margin-top: 1.2rem;
  }

  .story-grid {
    display: flex;
    flex-direction: column;
  }

  .prose {
    font-size: 1.08rem;
  }

  .pull-quote {
    box-shadow: 8px 8px 0 var(--ink);
    width: calc(100% - 0.5rem);
  }

  .pull-quote-number {
    font-size: 5.4rem;
  }

  .equation {
    column-gap: 0.35rem;
    grid-template-columns: minmax(2.6rem, auto) auto minmax(2.6rem, auto) auto minmax(4rem, auto);
  }

  .equation span,
  .equation strong {
    font-size: 2rem;
  }

  .equation small {
    font-size: 0.52rem;
  }

  th,
  td {
    padding-bottom: 0.85rem;
    padding-top: 0.85rem;
  }

  tbody th {
    font-size: 0.92rem;
    min-width: 11rem;
  }

  .source-list strong {
    font-size: 1.12rem;
  }

  .source-list small {
    font-size: 0.64rem;
  }

  .source-list a {
    gap: 0.7rem;
    grid-template-columns: 1.55rem minmax(0, 1fr) auto;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
    gap: 0.8rem;
  }
}

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

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