:root {
  color-scheme: light;
  --paper: #e6eef1;
  --paper-light: #f8fbfc;
  --ink: #102a3a;
  --muted: #53666f;
  --rule: #9db3bc;
  --rule-light: #cbd9de;
  --week: #b9382d;
  --year: #376d82;
  --focus: #7d3cff;
  --content: 70rem;
  --reading: 52rem;
  --font-display: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Helvetica Neue", Arial, sans-serif;
  --font-record: Menlo, Monaco, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  overflow-x: clip;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--paper-light);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: var(--year);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--week);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

abbr[title] {
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.skip-link {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 10;
  min-height: 44px;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--paper-light);
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.site-header__inner {
  width: min(calc(100% - 2rem), var(--content));
  min-height: 64px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-mark {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-record);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-mark::before {
  width: 1.85rem;
  height: 1.1rem;
  content: "";
  border-left: 0.52rem solid var(--week);
  border-right: 1.12rem solid var(--year);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-record);
  font-size: 0.78rem;
}

.site-nav a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}

main {
  display: block;
}

.hero {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4.75rem) 0 clamp(2.75rem, 6vw, 5.5rem);
}

.source-stamp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-family: var(--font-record);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.source-stamp a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.source-stamp__flag {
  padding: 0.26rem 0.45rem;
  border: 1px solid currentColor;
  color: var(--ink);
}

h1,
h2,
h3,
p,
figure,
dl,
ol,
ul {
  margin-top: 0;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.4vw, 6.75rem);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.91;
  text-wrap: balance;
}

.deck {
  max-width: 54rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.48;
}

.window-comparison {
  margin: 0;
  padding: 1rem 0 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.window-grid {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(0.75rem, 2vw, 1.75rem);
  align-items: stretch;
}

.window {
  min-width: 0;
  padding-bottom: 1rem;
}

.window__code {
  min-height: 2.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--font-record);
  font-size: clamp(0.59rem, 1.2vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.window--week {
  color: var(--week);
}

.window--year {
  color: var(--year);
}

.window__rail {
  height: clamp(3.4rem, 8vw, 5.2rem);
  margin: 0.75rem 0 0.8rem;
  display: grid;
  gap: clamp(2px, 0.4vw, 5px);
  align-items: stretch;
}

.window--week .window__rail {
  grid-template-columns: repeat(7, 1fr);
}

.window--year .window__rail {
  grid-template-columns: repeat(12, 1fr);
}

.window__rail span {
  display: block;
  border: 1px solid currentColor;
  background: currentColor;
}

.window--year .window__rail span:nth-child(3n) {
  border-right: 4px solid var(--paper-light);
}

.window__value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 0.65rem;
}

.window__value strong {
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 6.3vw, 5.2rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.window__value span {
  max-width: 16rem;
  color: var(--ink);
  font-family: var(--font-record);
  font-size: clamp(0.58rem, 1.15vw, 0.75rem);
  line-height: 1.35;
}

.not-nested {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
  font-weight: 700;
  line-height: 1.35;
}

.not-nested__sign {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  font-family: var(--font-record);
  font-size: 1.35rem;
}

.not-nested__copy {
  min-height: 44px;
  display: grid;
  align-content: center;
  gap: 0.16rem;
  color: inherit;
}

.not-nested__copy strong {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.not-nested__copy span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.window-comparison figcaption {
  padding: 0.75rem 0 0.9rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.question-link {
  max-width: 44rem;
  margin: 1.2rem 0 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.question-link a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.article-section {
  width: min(calc(100% - 2rem), var(--reading));
  margin-inline: auto;
  padding: clamp(3.25rem, 7vw, 6.5rem) 0;
  border-top: 1px solid var(--rule);
}

.article-section--wide {
  width: min(calc(100% - 2rem), var(--content));
}

.section-kicker {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-family: var(--font-record);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h2 {
  max-width: 19ch;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.8vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lead {
  max-width: 47rem;
  margin-bottom: 2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}

.record-compare {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.record {
  min-width: 0;
  margin: 0;
}

.record + .record {
  border-left: 1px solid var(--ink);
}

.record__title {
  min-height: 5rem;
  padding: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--ink);
}

.record__title strong {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 0.9;
}

.record__title span {
  font-family: var(--font-record);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
}

.record--week .record__title {
  color: var(--week);
}

.record--year .record__title {
  color: var(--year);
}

.record__row {
  min-height: 6.2rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.32fr) minmax(0, 0.68fr);
  gap: 1rem;
  align-content: start;
  border-bottom: 1px solid var(--rule-light);
}

.record__row:last-child {
  border-bottom: 0;
}

.record dt {
  color: var(--muted);
  font-family: var(--font-record);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.record dd {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
}

.handoff {
  max-width: 42rem;
  margin: 2rem 0 0;
  padding-left: 1rem;
  border-left: 4px solid var(--year);
  font-weight: 700;
}

.data-table {
  width: 100%;
  margin: 2rem 0 1rem;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}

.data-table caption {
  max-width: 46rem;
  padding-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 0.82rem 0.7rem;
  border-bottom: 1px solid var(--rule-light);
  text-align: right;
  vertical-align: top;
}

.data-table thead th {
  border-bottom-color: var(--ink);
  background: var(--paper);
  font-family: var(--font-record);
  font-size: 0.69rem;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-transform: uppercase;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
}

.data-table tbody th {
  font-weight: 700;
}

.data-table .year-2020 {
  background: #edf2f4;
}

.data-table .week-value {
  color: var(--week);
  font-weight: 800;
}

.data-table .year-value {
  color: var(--year);
  font-weight: 800;
}

.table-note {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.counterexample {
  margin: 2.5rem 0 0;
  padding: 1.25rem 0 1.25rem 1.25rem;
  border-left: 7px solid var(--week);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.counterexample__values {
  margin: 0.35rem 0 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.counterexample__values span:first-child {
  color: var(--week);
}

.counterexample__values span:last-child {
  color: var(--year);
}

.counterexample p:last-child {
  max-width: 45rem;
  margin-bottom: 0;
}

.study-line {
  margin: 2.25rem 0;
  display: grid;
  grid-template-columns: auto minmax(3rem, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--font-record);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.study-line__year {
  min-width: 4.5rem;
  padding: 0.7rem;
  border: 2px solid var(--ink);
  text-align: center;
}

.study-line__rail {
  height: 2px;
  position: relative;
  background: var(--ink);
}

.study-line__rail::before,
.study-line__rail::after {
  width: 0.7rem;
  height: 0.7rem;
  position: absolute;
  top: 50%;
  content: "";
  border: 2px solid var(--ink);
  background: var(--paper-light);
  transform: translateY(-50%);
}

.study-line__rail::before {
  left: 0;
}

.study-line__rail::after {
  right: 0;
  background: var(--year);
}

.outcome-table th:first-child {
  width: 39%;
}

.outcome-table th:nth-child(2),
.outcome-table th:nth-child(3) {
  width: 18%;
}

.outcome-table th:nth-child(4) {
  width: 25%;
}

.unit-note {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.3;
}

.evidence-boundary {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.evidence-boundary strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-record);
  font-size: 0.76rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.evidence-boundary p:last-child {
  margin-bottom: 0;
}

.limits {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: limits;
}

.limits li {
  min-height: 4.5rem;
  padding: 1rem 0 1rem 3.6rem;
  position: relative;
  border-top: 1px solid var(--rule);
}

.limits li:last-child {
  border-bottom: 1px solid var(--rule);
}

.limits li::before {
  width: 2.4rem;
  height: 2.4rem;
  position: absolute;
  top: 1rem;
  left: 0;
  display: grid;
  place-items: center;
  content: counter(limits, decimal-leading-zero);
  counter-increment: limits;
  border: 1px solid var(--ink);
  font-family: var(--font-record);
  font-size: 0.7rem;
  font-weight: 700;
}

.source-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: sources;
}

.source-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  border-top: 1px solid var(--rule);
}

.source-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.source-list li::before {
  padding-top: 0.82rem;
  content: counter(sources, decimal-leading-zero);
  counter-increment: sources;
  color: var(--muted);
  font-family: var(--font-record);
  font-size: 0.72rem;
}

.source-list a {
  min-height: 56px;
  padding: 0.75rem 0;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
}

.byline {
  margin-top: 2rem;
  color: var(--muted);
  font-family: var(--font-record);
  font-size: 0.78rem;
}

.site-footer {
  border-top: 1px solid var(--ink);
  background: var(--paper);
}

.site-footer__inner {
  width: min(calc(100% - 2rem), var(--content));
  min-height: 92px;
  margin-inline: auto;
  padding: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-link,
.back-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.error-page {
  width: min(calc(100% - 2rem), 46rem);
  min-height: calc(100vh - 157px);
  margin-inline: auto;
  padding: clamp(3rem, 10vw, 8rem) 0;
}

.error-code {
  margin-bottom: 1rem;
  color: var(--week);
  font-family: var(--font-record);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.error-page h1 {
  max-width: 12ch;
}

.error-page p {
  max-width: 38rem;
}

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

@media (min-width: 64rem) {
  .hero {
    padding-top: 2.75rem;
  }

  h1 {
    font-size: min(6.4vw, 5.85rem);
  }

  .deck {
    margin-bottom: 2rem;
  }
}

@media (max-width: 46rem) {
  .site-header__inner,
  .hero,
  .article-section,
  .article-section--wide,
  .site-footer__inner {
    width: min(calc(100% - 1.5rem), var(--content));
  }

  .site-mark__text {
    max-width: 9rem;
    font-size: 0.66rem;
    line-height: 1.2;
  }

  h1 {
    font-size: clamp(2.8rem, 14.5vw, 4.4rem);
  }

  .deck {
    font-size: 1.02rem;
  }

  .window-grid {
    grid-template-columns: minmax(5.8rem, 0.31fr) minmax(0, 0.69fr);
    gap: 0.6rem;
  }

  .window__code {
    min-height: 3.35rem;
    align-items: flex-start;
    padding-top: 0.45rem;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.1rem;
  }

  .window__rail {
    height: 3.3rem;
    gap: 2px;
  }

  .window__value {
    display: block;
  }

  .window__value strong {
    display: block;
    font-size: clamp(2.35rem, 13vw, 3.4rem);
  }

  .window__value span {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.58rem;
  }

  .record-compare {
    grid-template-columns: 1fr;
  }

  .record + .record {
    border-top: 2px solid var(--ink);
    border-left: 0;
  }

  .record__row {
    grid-template-columns: minmax(4.75rem, 0.3fr) minmax(0, 0.7fr);
    gap: 0.75rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.7rem 0.35rem;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .data-table thead th {
    font-size: 0.58rem;
  }

  .outcome-table th:first-child {
    width: 38%;
  }

  .outcome-table th:nth-child(2),
  .outcome-table th:nth-child(3) {
    width: 18%;
  }

  .outcome-table th:nth-child(4) {
    width: 26%;
  }

  .unit-note {
    font-size: 0.57rem;
  }

  .counterexample {
    padding-left: 0.85rem;
  }

  .study-line {
    gap: 0.4rem;
    font-size: 0.6rem;
  }

  .study-line__year {
    min-width: 3.7rem;
    padding-inline: 0.35rem;
  }
}

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

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

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .question-link {
    display: none;
  }

  body,
  html {
    background: white;
    color: black;
  }

  .hero,
  .article-section,
  .article-section--wide {
    width: 100%;
  }

  a {
    text-decoration: underline;
  }
}
