:root {
  --bg: #fff;
  --bg-2: #fff;
  --bg-elev: #f5f5f5;
  --bg-elev-2: #f5f5f5;
  --panel: #fff;
  --panel-2: #fff;
  --border: #e4e4e4;
  --line: #e4e4e4;
  --line-2: #c9c9c9;
  --border-strong: #c9c9c9;
  --text: #141414;
  --ink: #141414;
  --ink-2: #3a3a3a;
  --ink-3: #6b6b6b;
  --text-muted: #3a3a3a;
  --text-dim: #6b6b6b;
  --accent: #141414;
  --accent-2: #3a3a3a;
  --accent-soft: #f5f5f5;
  --up: #1f6b43;
  --good: #1f6b43;
  --down: #a12622;
  --bad: #a12622;
  --serif: "Newsreader", "Iowan Old Style", Georgia, ui-serif, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --header-height: 64px;
}

.container {
  width: min(100% - 2 * var(--gp-gutter, 1.25rem), var(--gp-width, 50rem));
  margin-inline: auto;
}

.article-page {
  padding: 0 0 4.5rem;
  background: var(--bg);
}

.article-page .article-hero,
.article-page .article-header {
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.article-page h1 {
  font-family: var(--serif);
  font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.25rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--text);
}

.article-page .lead,
.article-page .article-lead {
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.article-page .byline,
.article-page .article-kicker {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: inline-block;
}

.article-page .article-date-line {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--text-dim);
}

.article-page .article-meta {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.article-page .article-section + .article-section { margin-top: 1rem; }

.article-page h2,
.article-page .article-section h2 {
  font-family: var(--serif);
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 0.85rem;
  color: var(--text);
}
.article-page .article-section h2:first-child,
.article-page h2:first-child { margin-top: 0; }

.article-page h3 {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 2rem 0 0.7rem;
  color: var(--text);
}

.article-page h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 1.5rem 0 0.6rem;
  color: var(--text);
}

.article-page p {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 1.1em;
}

.article-page ul,
.article-page ol {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 1.25em;
  padding-left: 1.4rem;
}
.article-page li { margin-bottom: 0.4em; }

.article-page a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 0.2em;
}
.article-page strong { color: var(--text); font-weight: 600; }
.article-page em { font-style: normal; color: var(--text); font-weight: 500; }

.article-page code {
  font: inherit;
  background: none;
  padding: 0;
  border: 0;
  color: inherit;
}
.article-page pre {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 1.1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.5;
}
.article-page pre code { font: 400 0.9em/1.45 var(--mono); }

.article-page table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  background: transparent;
}
.article-page table th,
.article-page table td {
  text-align: left;
  padding: 0.7rem 0.75rem 0.7rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.article-page table tr:last-child td { border-bottom: 1px solid var(--border); }
.article-page table th {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  background: transparent;
}

.article-page figure { margin: 1.5rem 0; }
.article-page figure img { width: 100%; height: auto; }
.article-page figcaption {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-top: 0.7rem;
}

.article-page blockquote {
  border-left: 2px solid var(--ink);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.75rem 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text);
  font-style: normal;
}
.article-page blockquote p { font-size: inherit; margin-bottom: 0; color: inherit; }

.article-page .faq-list { margin: 1rem 0 0; }
.article-page .faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.article-page .faq-item:first-child { border-top: 1px solid var(--border); }
.article-page .faq-item summary {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}
.article-page .faq-item summary::-webkit-details-marker { display: none; }
.article-page .faq-item summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}
.article-page .faq-item[open] summary::after { content: "\2212"; }
.article-page .faq-item summary h3 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
  color: inherit;
  font-family: inherit;
  display: inline;
}
.article-page .faq-answer,
.article-page .faq-item[open] > div {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.article-page .hero-image {
  width: 100%;
  margin: 0 0 1.75rem;
  display: block;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--bg-elev);
}
.article-page .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-page .hero-image + .hero-caption {
  margin: -1rem 0 1.75rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--text-dim);
}

.article-page .fact-box {
  margin: 1.75rem 0;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1.25rem 1.35rem;
}
.article-page .fact-box .fact-label {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.85rem;
  display: block;
}
.article-page .fact-box h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 0.7rem;
}
.article-page .fact-box ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.article-page .fact-box ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0;
}
.article-page .fact-box ul li:last-child { border-bottom: none; }
.article-page .fact-box ul li::marker { content: none; }
.article-page .fact-box ul li strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.875rem;
  white-space: nowrap;
}
.article-page .fact-box p {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0;
}

.article-page .info-callout {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: var(--bg-elev);
  border-left: 2px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  display: flex;
  gap: 0.85rem;
  align-items: start;
}
.article-page .info-callout.warning { border-left-color: var(--down); }
.article-page .info-callout.tip { border-left-color: var(--up); }
.article-page .info-callout .callout-icon {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
  min-width: 3.5rem;
  padding-top: 1px;
}
.article-page .info-callout p { font-size: inherit; margin: 0 0 0.6rem; line-height: inherit; color: inherit; font-family: inherit; }
.article-page .info-callout p:last-child { margin-bottom: 0; }

.article-page .stat-highlights {
  margin: 1.75rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.article-page .stat-highlight {
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--border);
}
.article-page .stat-highlight:last-child { border-right: none; }
.article-page .stat-highlight .stat-value {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.35rem;
  display: block;
}
.article-page .stat-highlight .stat-label {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.article-page .numbered-list {
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.article-page .numbered-list li {
  counter-increment: step;
  padding: 1rem 0 1rem 3rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
}
.article-page .numbered-list li:last-child { border-bottom: none; }
.article-page .numbered-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.article-page .numbered-list li strong {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.article-page .comparison-cards {
  margin: 1.75rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}
.article-page .comparison-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1.15rem;
}
.article-page .comparison-card h4 {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 0.4rem;
}
.article-page .comparison-card .card-label {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}
.article-page .comparison-card ul {
  margin: 0;
  padding-left: 1.15rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.article-page .comparison-card ul li { margin-bottom: 0.35rem; }

.article-page .section-kicker {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 2.5rem 0 0.5rem;
  display: block;
}
.article-page .section-kicker + h2 { margin-top: 0.4rem; }

.article-page .read-also {
  margin: 3rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--ink);
}
.article-page .read-also > .section-kicker { margin: 0 0 0.4rem; }
.article-page .read-also h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 1.25rem;
}
.article-page .read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.15rem;
}
.article-page .read-also-card {
  display: block;
  border: 1px solid var(--border);
  padding: 1rem;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}
.article-page .read-also-card .cat {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}
.article-page .read-also-card h3 {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 0.4rem;
  color: var(--text);
}
.article-page .read-also-card p {
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.author-byline {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
  color: inherit;
  text-decoration: none;
}
.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.author-name {
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--text);
}
.author-role {
  font-size: 0.8125rem;
  color: var(--text-dim);
  font-family: var(--sans);
}

.article-hero-card {
  margin: 1.5rem 0 0;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--bg-elev);
}
.article-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pos { color: var(--good); }
.neg { color: var(--bad); }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.mono { font-family: var(--mono); }

@media (max-width: 720px) {
  .article-page h1 { font-size: 2rem; }
  .article-page .lead,
  .article-page .article-lead { font-size: 1.125rem; }
  .article-page h2,
  .article-page .article-section h2 { font-size: 1.5rem; }
  .article-page h3 { font-size: 1.2rem; }
  .article-page p,
  .article-page ul,
  .article-page ol { font-size: 1.05rem; }
  .article-page table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
