:root {
  color-scheme: light dark;
  --background: #f7f7f5;
  --surface: #ebebe8;
  --text: #20201e;
  --muted: #696965;
  --line: #d1d1cc;
  --focus: #7c3aed;
  font-family: Arial, Helvetica, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #171716;
    --surface: #272725;
    --text: #f3f3ef;
    --muted: #aaa9a3;
    --line: #41413d;
    --focus: #b692ff;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
}

.index-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.article-index {
  display: grid;
  width: min(100%, 760px);
  gap: 12px;
}

.article-link {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.article-link:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

.article-link:active {
  transform: translateY(1px);
}

.article-link:focus-visible,
.article a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.article-page {
  min-height: 100dvh;
  padding: clamp(40px, 7vw, 96px) 24px;
}

.article {
  width: min(100%, 720px);
  margin: 0 auto;
}

.article-header {
  margin-bottom: clamp(48px, 8vw, 88px);
}

.article-meta,
.facts dt,
.results dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.article h1 {
  max-width: 18ch;
  margin: 16px 0 24px;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.article .subhead {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.45;
}

.facts,
.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 64px;
  padding: 24px 0;
  border-block: 1px solid var(--line);
}

.facts div,
.results div {
  display: grid;
  align-content: start;
  gap: 6px;
}

.facts dd,
.results dd {
  margin: 0;
  line-height: 1.4;
}

.results strong {
  display: block;
  margin-bottom: 3px;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.article section + section {
  margin-top: 56px;
}

.article h2 {
  margin: 0 0 22px;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.article p {
  margin: 0 0 22px;
  font-size: 1.08rem;
  line-height: 1.68;
}

.article blockquote {
  margin: 48px 0;
  padding: 0;
  border: 0;
  font-size: clamp(1.45rem, 3.6vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.22;
}

.article blockquote p {
  font: inherit;
}

.article blockquote footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
}

@media (max-width: 600px) {
  .facts,
  .results {
    grid-template-columns: 1fr;
  }

  .article h1 {
    letter-spacing: -0.045em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-link {
    transition: none;
  }
}
