:root {
  --site-paper:   #f5f1e8;
  --site-ink:     #1c1a17;
  --site-rust:    #b4541a;
  --site-rule:    #d8d0bf;
  --site-muted:   #5b554a;
  --site-display: Georgia, 'Times New Roman', serif;
  --site-body:    -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

body { margin: 0; background: var(--site-paper); color: var(--site-ink); font-family: var(--site-body); }

.site-wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }

.site-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--site-rule); }
.site-nav > a { font-family: var(--site-display); font-size: 20px; font-weight: 700; letter-spacing: .02em; color: var(--site-ink); text-decoration: none; }
.site-nav div a { font-size: 13px; margin-left: 28px; color: var(--site-muted); text-decoration: none; }
.site-nav div a[aria-current="page"] { color: var(--site-ink); border-bottom: 2px solid var(--site-rust); padding-bottom: 3px; }

.site-footer { padding: 56px 0; font-size: 13px; color: var(--site-muted); line-height: 1.7; }
.site-footer a { color: inherit; text-decoration: underline; }

.home-hero, .home-experiment, .home-pipeline { font-family: var(--site-display); }
.home-eyebrow, .home-btn, .home-tag { font-family: var(--site-body); }
.home-eyebrow { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--site-rust); }

.home-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; margin-top: 80px; margin-bottom: 64px; }
.home-hero > div { flex: 1 1 360px; min-width: 0; }
.home-hero svg { flex: 0 1 420px; }
.home-hero h1 { font-size: 64px; line-height: 1.05; margin: 18px 0 24px; font-weight: 400; }
.home-hero h1 i { color: var(--site-rust); }
.home-lede { font-size: 22px; line-height: 1.5; max-width: 720px; margin: 0; }
.home-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 0; }
.home-btn { padding: 13px 22px; font-size: 14px; background: var(--site-ink); color: var(--site-paper); border: 1px solid var(--site-ink); border-radius: 2px; text-decoration: none; }
.home-btn--outline { background: none; color: var(--site-ink); }

.home-strip { background: var(--site-ink); padding: 34px 0; }
.home-strip .site-wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.home-strip p { margin: 0; font-size: 12px; line-height: 1.4; color: var(--site-rule); }
.home-strip b { display: block; margin-bottom: 4px; font-size: 40px; line-height: 1.2; font-weight: 400; color: var(--site-paper); overflow-wrap: anywhere; }
.home-strip span { white-space: nowrap; }
.home-strip figure { margin: 12px 0 0; }
.home-strip svg { display: block; width: 100%; height: auto; }
.home-strip text { font-family: var(--site-body); font-size: 12px; fill: var(--site-rule); }
.home-strip .cf-title, .home-strip .cf-axis, .home-strip .cf-bar { fill: var(--site-paper); }
.home-strip .cf-grid { stroke: var(--site-muted); }

.home-experiment, .home-pipeline { margin-top: 84px; margin-bottom: 84px; }
.home-experiment h2, .home-pipeline h2 { font-size: 38px; font-weight: 400; margin: 10px 0 18px; }
.home-body { font-size: 18px; line-height: 1.65; max-width: 700px; }
.home-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.home-card { border: 1px solid var(--site-rule); padding: 26px; }
.home-card h4 { margin: 0 0 10px; font-size: 19px; font-weight: 400; }
.home-card p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.home-tag { display: inline-block; margin-bottom: 12px; padding: 3px 8px; border: 1px solid var(--site-rust); font-size: 11px; letter-spacing: .06em; color: var(--site-rust); }

.home-loop { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; margin-top: 36px; }
.home-loop p { margin: 12px 0 0; font-family: var(--site-body); font-size: 12px; color: var(--site-muted); }
.home-diagram { margin: 0; border: 1px solid var(--site-rule); padding: 24px; }
.home-diagram svg { display: block; width: 100%; }
.home-diagram rect { fill: none; stroke: var(--site-ink); stroke-width: 1.4; }
.home-diagram rect.refused { stroke: var(--site-rust); stroke-width: 2; }
.home-diagram path { fill: none; stroke: var(--site-ink); stroke-width: 1.4; }
.home-diagram marker path { fill: var(--site-ink); stroke: none; }
.home-diagram text { text-anchor: middle; font-family: var(--site-body); font-size: 11px; fill: var(--site-muted); }
.home-diagram text.stage { font-size: 12px; letter-spacing: .6px; }
.home-diagram text.count { font-family: var(--site-display); font-size: 24px; fill: var(--site-ink); }
.home-diagram text.back { text-anchor: end; fill: var(--site-rust); }
.home-diagram figcaption { margin-top: 12px; font-size: 12px; color: var(--site-muted); }

.home-chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 0; }
.home-chart svg { display: block; width: 100%; height: auto; }
.home-chart text { font-family: var(--site-body); font-size: 12px; fill: var(--site-muted); }
.home-chart .cf-title { font-weight: 700; fill: var(--site-ink); }
.home-chart .cf-axis { fill: var(--site-ink); }
.home-chart .cf-bar { fill: var(--site-ink); }
.home-chart .cf-grid { stroke: var(--site-rule); }

@media (max-width: 640px) {
  .site-wrap { padding: 0 16px; }
  .site-nav div a { margin-left: 0; }
  .home-hero > div, .home-hero svg { flex-basis: 100%; }
  .home-hero h1 { font-size: 40px; }
  .home-strip .site-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-strip .site-wrap > div { display: contents; }
  .home-strip figure { grid-column: 1 / -1; margin: 0; }
  .home-cards { grid-template-columns: 1fr; }
  .home-diagram { padding: 12px; }
  .home-diagram svg { max-width: 420px; margin: 0 auto; }
  .home-diagram text.stage { font-size: 16px; letter-spacing: 0; }
  .home-diagram text { font-size: 16px; }
}

.cf-band--navy, .cf-band--paper { background: none; color: inherit; }
.cf-band--measured .cf-measure-grid, .cf-opstrip, .cf-mark, .cf-cta-gold { display: none; }

.cf-nav, .cf-hero--article, .cf-article-shell, .cf-shell { width: min(1120px, 100% - 80px); padding-left: 0; padding-right: 0; }

.cf-nav { flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--site-rule); }
.cf-nav-brand { font-family: var(--site-display); font-size: 20px; font-weight: 700; letter-spacing: .02em; color: var(--site-ink); }
.cf-nav-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--site-body); font-size: 13px; color: var(--site-muted); }
.cf-nav-links a { border-bottom: 2px solid transparent; padding-bottom: 3px; }
.cf-nav-links a.is-current, .cf-nav-links a:hover { color: var(--site-ink); border-bottom-color: var(--site-rust); }

.cf-eyebrow.cf-eyebrow--hero, .cf-article .cf-article__eyebrow { margin: 0; font-family: var(--site-body); font-size: 12px; line-height: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--site-rust); }
.cf-hero--article h1, .cf-hero--article .cf-h1 { margin: 10px 0 18px; font-family: var(--site-display); font-size: 38px; line-height: normal; font-weight: 400; letter-spacing: normal; color: var(--site-ink); }
.cf-h1 em, .cf-h1 i { color: var(--site-rust); }
.cf-hero--article .cf-hero-lede { margin: 0; max-width: 700px; font-family: var(--site-display); font-size: 18px; line-height: 1.65; color: var(--site-ink); }
.cf-hero--article .dateline { margin: 0 0 10px; font-family: var(--site-body); font-size: 12px; color: var(--site-muted); }

.cf-article, .cf-article h2, .cf-article h3, .cf-article p, .cf-article ul, .cf-article ol, .cf-hero--article h2, .cf-hero--article p { font-family: var(--site-display); color: var(--site-ink); }
.cf-article h2, .cf-article h3, .cf-hero--article h2 { font-weight: 400; }
.cf-hero--article h2 { margin: 8px 0 20px; font-size: 30px; line-height: 1.2; letter-spacing: -.01em; }
.cf-hero--article p { margin: 0 0 18px; font-size: 17px; line-height: 1.75; }
.cf-article a, .cf-article a:hover { color: var(--site-rust); border-bottom: 1px solid currentColor; }
.cf-article code { background: none; border-color: var(--site-rule); }
.cf-article blockquote { border-left-color: var(--site-rust); }
.cf-article .cf-article__meta { color: var(--site-muted); border-top-color: var(--site-rule); }

.cf-footer { border-top-color: var(--site-rule); }
.cf-footer__brand { font-family: var(--site-display); }
.cf-footer__meta { font-family: var(--site-body); font-size: 13px; color: var(--site-muted); }
.cf-footer__meta a { text-decoration: underline; }

@media (max-width: 860px) {
  .cf-hero--article h2 { font-size: 25px; }
}

@media (max-width: 640px) {
  .cf-nav, .cf-hero--article, .cf-article-shell, .cf-shell { width: calc(100% - 32px); }
  .cf-hero--article h1, .cf-hero--article .cf-h1 { font-size: 30px; }
}

/* Long identifiers (hashes, addresses, file paths) must wrap at phone width instead of widening the page. */
p, li, td, th, h1, h2, h3, h4, blockquote { overflow-wrap: break-word; }
p code, li code, td code, h1 code, h2 code, h3 code, a { overflow-wrap: anywhere; }
