:root {
  color-scheme: light;
  --night: #10222e;
  --night-2: #193342;
  --paper: #f4f0e8;
  --paper-bright: #fffdf8;
  --paper-dim: #d0d9d5;
  --ink: #142a33;
  --ink-soft: #35515a;
  --line: #a7b6b2;
  --line-dark: #4b6870;
  --queue: #f6ca54;
  --satisfaction: #62d4be;
  --coral: #ff7864;
  --mint: #d9e8e3;
  --sand: #e7ddca;
  --max: 1180px;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1,
h2,
h3,
dd {
  margin-bottom: 0;
}

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

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 0.55rem 0.8rem;
  transform: translateY(-160%);
  background: var(--paper-bright);
  color: var(--ink);
  font-weight: 800;
}

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

.site-header {
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 max(20px, calc((100% - var(--max)) / 2));
  background: var(--night);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 30px;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.brand-mark i {
  display: block;
  height: 18px;
  border: 1px solid var(--paper);
  background: transparent;
}

.brand-mark i:nth-child(2) {
  background: var(--queue);
}

.brand-mark i:nth-child(3) {
  background: var(--satisfaction);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.site-header nav a {
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--queue);
}

.language-switch {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--paper-dim);
  color: var(--paper);
}

.language-switch:hover {
  background: var(--paper);
  color: var(--night) !important;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  column-gap: clamp(2.5rem, 7vw, 7.5rem);
  row-gap: 3rem;
  padding: clamp(4.5rem, 9vw, 8rem) max(20px, calc((100% - var(--max)) / 2)) clamp(3.5rem, 7vw, 6rem);
  background: var(--night);
  color: var(--paper);
}

.hero-main {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--queue);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 2rem;
  font-size: clamp(3.4rem, 7vw, 6.25rem);
  font-weight: 850;
  max-width: 14ch;
}

.title-line {
  display: block;
}

.title-line-1 {
  color: var(--queue);
}

.title-line-2 {
  color: var(--satisfaction);
}

.hero-deck {
  max-width: 700px;
  margin: 0;
  color: var(--paper-dim);
  font-size: clamp(1.18rem, 2.2vw, 1.42rem);
  line-height: 1.45;
}

.hero-proof {
  align-self: end;
  padding: 1.4rem 1.35rem 1.35rem;
  border: 1px solid var(--line-dark);
  border-top: 4px solid var(--coral);
  background: var(--night-2);
}

.proof-kicker {
  display: block;
  margin-bottom: 1rem;
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-statement {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0;
}

.proof-statement strong {
  color: var(--paper);
  font-family: var(--display);
  font-size: 3.8rem;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.proof-statement span {
  color: var(--queue);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.proof-detail {
  margin: 0.4rem 0 0;
  color: var(--paper-dim);
  font-size: 0.85rem;
  line-height: 1.45;
}

.proof-rule {
  display: flex;
  gap: 0.35rem;
  margin: 1.3rem 0 1.2rem;
}

.proof-rule i {
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--satisfaction);
  border-radius: 50%;
}

.proof-rule i:first-child {
  border-radius: 1px;
  background: var(--queue);
  border-color: var(--queue);
  transform: rotate(45deg);
}

.stat-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1rem 0 0;
  border-top: 1px solid var(--line-dark);
}

.stat {
  min-height: 112px;
  padding: 1.2rem 1rem 0 0;
  border-right: 1px solid var(--line-dark);
}

.stat:not(:first-child) {
  padding-left: 1rem;
}

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

.stat dd {
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.stat dt {
  max-width: 18ch;
  margin-top: 0.55rem;
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.4;
}

.section {
  width: 100%;
  padding: clamp(4rem, 8vw, 7rem) max(20px, calc((100% - var(--max)) / 2));
}

.finding-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: end;
  gap: clamp(2.5rem, 8vw, 8rem);
  background: var(--paper-bright);
}

.section-heading {
  max-width: 100%;
}

.narrow-heading {
  max-width: 670px;
}

.section h2 {
  margin: 0 0 1.3rem;
  color: inherit;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 820;
}

.section-lede {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.18rem;
  line-height: 1.5;
}

.finding-callout {
  padding: 1.45rem 1.35rem 1.25rem;
  border-top: 4px solid var(--coral);
  background: var(--sand);
}

.callout-label {
  margin: 0 0 1.3rem;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.callout-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.callout-value {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.callout-value strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.callout-value span {
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.45;
}

.chart-section {
  background: var(--night);
  color: var(--paper);
}

.chart-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.75fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
}

.chart-intro {
  max-width: 520px;
  margin: 0 0 0.3rem;
  color: var(--paper-dim);
  font-size: 1rem;
  line-height: 1.55;
}

.chart-figure {
  max-width: 760px;
  margin: clamp(2.5rem, 5vw, 4.5rem) auto 0;
}

.chart-frame {
  padding: clamp(0.35rem, 1vw, 0.8rem);
  border: 1px solid var(--line-dark);
  background: var(--night-2);
}

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

.chart-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
  color: var(--paper-dim);
  font-size: 0.82rem;
  line-height: 1.45;
}

.chart-figure figcaption a,
.source-line a {
  flex: 0 0 auto;
  color: var(--queue);
  font-weight: 750;
}

.source-line {
  max-width: 760px;
  margin: 1.5rem auto 0;
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.5;
}

.table-section {
  background: var(--paper-bright);
}

.table-wrap {
  width: 100%;
  margin-top: 2.5rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper-bright);
  font-size: 0.92rem;
}

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

thead {
  background: var(--night);
  color: var(--paper);
}

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

thead th {
  border-color: var(--line-dark);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-transform: uppercase;
}

tbody th {
  font-weight: 780;
}

tbody td:not(:first-child) {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

tbody tr.row-low {
  background: #f8e6df;
}

tbody tr.row-high {
  background: #dff3ed;
}

.table-note {
  max-width: 760px;
  margin: 1.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.5;
}

.analysis-section {
  background: var(--mint);
}

.analysis-copy {
  max-width: 760px;
  margin-top: 2.5rem;
}

.analysis-copy p {
  margin: 0 0 1.25rem;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.72;
}

.analysis-copy p:last-child {
  margin-bottom: 0;
}

.limits-section {
  background: var(--paper);
}

.limits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.8rem;
  background: var(--line);
}

.limit-card {
  min-height: 250px;
  padding: 1.4rem 1.35rem 1.5rem;
  background: var(--paper-bright);
}

.limit-number {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
}

.limit-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.75rem;
  line-height: 1;
}

.limit-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.method-section {
  background: var(--night);
  color: var(--paper);
}

.method-section .eyebrow {
  color: var(--satisfaction);
}

.method-list {
  max-width: 900px;
  margin: 2.8rem 0 0;
  border-top: 1px solid var(--line-dark);
}

.method-list > div {
  display: grid;
  grid-template-columns: minmax(125px, 0.27fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.method-list dt {
  color: var(--queue);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.method-list dd {
  color: var(--paper-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}

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

.sources-section .eyebrow {
  color: var(--coral);
}

.source-list {
  max-width: 900px;
  padding: 0;
  margin: 2.8rem 0 0;
  list-style: none;
  border-top: 1px solid #c4b79f;
}

.source-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #c4b79f;
}

.source-number {
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.source-list a {
  font-weight: 700;
}

.external {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--coral);
  text-decoration: none;
}

.updated-note {
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem max(20px, calc((100% - var(--max)) / 2)) 2.5rem;
  background: var(--night);
  color: var(--paper-dim);
  font-size: 0.78rem;
}

.site-footer a {
  color: var(--paper);
}

.top-link {
  margin-left: 1.5rem;
}

.not-found-page {
  min-height: 100vh;
  background: var(--night);
  color: var(--paper);
}

.not-found {
  width: min(calc(100% - 40px), 700px);
  padding: 14vh 0;
  margin: 0 auto;
}

.not-found h1 {
  margin: 0 0 1.5rem;
  color: var(--queue);
  font-size: clamp(3rem, 7vw, 5rem);
}

.not-found p:not(.eyebrow) {
  max-width: 500px;
  color: var(--paper-dim);
  font-size: 1.15rem;
}

.button-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--queue);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 840px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    padding-top: 1rem;
    padding-bottom: 0.85rem;
  }

  .site-header nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem 0.95rem;
  }

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

  .hero-proof {
    max-width: 420px;
  }

  .chart-heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .limit-card {
    min-height: auto;
  }

  .limit-number {
    margin-bottom: 1rem;
  }
}

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

  .hero {
    padding-top: 3.5rem;
  }

  .hero h1 {
    margin-bottom: 1.5rem;
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    min-height: 100px;
    border-bottom: 1px solid var(--line-dark);
  }

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

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-bottom: none;
  }

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

  .stat:nth-child(4) {
    padding-left: 1rem;
  }

  .section h2 {
    font-size: clamp(2.4rem, 12vw, 3.7rem);
  }

  .callout-values {
    grid-template-columns: 1fr;
  }

  .chart-figure figcaption {
    display: block;
  }

  .chart-figure figcaption a {
    display: inline-block;
    margin-top: 0.8rem;
  }

  .table-wrap {
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

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

  tbody tr {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  tbody th {
    padding: 0.1rem 0 0.65rem;
    border: 0;
    font-size: 1rem;
  }

  tbody td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.22rem 0;
    border: 0;
    font-size: 0.85rem;
    text-align: right;
  }

  tbody td::before {
    color: var(--ink-soft);
    content: attr(data-label);
    font-family: var(--body);
    font-size: 0.78rem;
    text-align: left;
    white-space: normal;
  }

  .method-list > div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .site-footer {
    display: block;
  }

  .site-footer > div + div {
    margin-top: 0.7rem;
  }
}

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

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

  .hero,
  .chart-section,
  .method-section {
    color: #000;
    background: #fff;
  }

  .chart-frame {
    border: 1px solid #999;
  }
}
