/* MadContext — approved design system (Wide.dc.html, 2026-08) */

:root {
  --bg: #faf8f3;
  --ink: #1c1710;
  --accent: #8f6b21;
  --accent-dark: #6f5319;
  --muted: #4a4436;
  --faint: #6f6656;
  --line: #d8d2c4;
  --card: #f1ece0;
  --dark-bg: #1c1710;
  --dark-line: #4a4436;
  --dark-muted: #b8b0a0;
  --gold: #d9a851;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.page {
  max-width: 1360px;
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 72px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wordmark:hover { color: var(--ink); }
.wordmark .accent { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 36px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.site-nav a { color: var(--muted); padding: 6px 0; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.nav-cta {
  background: var(--dark-bg);
  color: var(--bg);
  padding: 10px 22px;
  font-weight: 500;
}
.site-nav a.nav-cta:hover { background: #322a1e; color: var(--bg); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  padding: 88px 72px 72px 72px;
  border-bottom: 1px solid var(--line);
}

.hero-main {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
  flex: none;
}
.kicker span {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 76px;
  line-height: 1.04;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
}

.hero .lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 620px;
}

.cta-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn {
  display: inline-block;
  background: var(--dark-bg);
  color: var(--bg);
  padding: 16px 34px;
  font-size: 16px;
  font-weight: 500;
}
.btn:hover { background: #322a1e; color: var(--bg); }

.quiet-link {
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}
.quiet-link:hover { color: var(--accent-dark); }

.hero-aside {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.pull-quote {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  margin: 0;
}

.pull-quote-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Benchmark band ---------- */

.bench-band {
  background: var(--dark-bg);
  color: var(--bg);
  padding: 64px 72px;
}

.bench-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 36px;
}

.bench-head h2 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  margin: 0;
}

.bench-meta {
  font-size: 13px;
  color: var(--dark-muted);
}

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

.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 28px 18px 28px;
  border-right: 1px solid var(--dark-line);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; border-right: none; }

.stat-figure {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 300;
  line-height: 1;
}

.stat-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--dark-muted);
}
.stat-note a { color: var(--gold); }
.stat-note a:hover { color: #e8bd6c; }

.bias-label { color: var(--gold); }

.stat-source {
  font-size: 12.5px;
  color: var(--dark-muted);
  margin-top: auto;
  padding-top: 6px;
}
.stat-source a { color: var(--gold); }
.stat-source a:hover { color: #e8bd6c; }

.bench-close {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-line);
}

.bench-close p {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--bg);
  margin: 0;
  max-width: 760px;
}

.bench-note-link {
  font-size: 14px;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  white-space: nowrap;
}
.bench-note-link:hover { color: #e8bd6c; border-bottom-color: #e8bd6c; }

/* ---------- Two things section ---------- */

.duo {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  padding: 72px;
}

.duo-intro {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.duo-intro h2 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

.duo-intro p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--faint);
  margin: 0;
}

.duo-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  padding: 34px;
}

.duo-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.duo-card-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.duo-card-num {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--line);
}

.duo-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin: 0;
}

.duo-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ---------- Pilot ---------- */

.pilot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  padding: 0 72px 80px 72px;
}

.pilot-intro {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 3px solid var(--ink);
  padding-top: 22px;
}

.pilot-intro h2 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  margin: 0;
}

.pilot-intro p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.pilot-intro .btn {
  align-self: flex-start;
  padding: 15px 30px;
  font-size: 15px;
  margin-top: 6px;
}

.pilot-weeks {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--ink);
  padding-top: 22px;
}

.pilot-week {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.pilot-week-label {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--accent);
  min-width: 64px;
  flex: none;
}

.pilot-week p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.pilot-terms {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.pilot-term {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.pilot-term h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  margin: 0;
}

.pilot-term p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ---------- Contact / footer band ---------- */

.footer-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 44px 72px;
  background: var(--dark-bg);
  color: var(--bg);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 640px;
}

.footer-left h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin: 0;
}

.footer-left p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dark-muted);
  margin: 0;
}

.footer-fineprint {
  font-size: 13px;
  color: var(--dark-muted);
}

.contact-email {
  font-size: 16px;
  font-weight: 500;
  color: var(--gold);
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
.footer-links a { color: var(--dark-muted); }
.footer-links a:hover { color: var(--bg); }

/* ---------- Articles ---------- */

.article-page-head {
  padding: 88px 72px 56px 72px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.article-page-head h1 {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}

.article-page-head .lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 620px;
}

.article-list {
  padding: 56px 72px 96px 72px;
}

.article-list-empty {
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  font-weight: 300;
  color: var(--faint);
  margin: 0;
  max-width: 560px;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .site-header, .bench-band, .duo, .article-page-head, .article-list,
  .footer-band { padding-left: 40px; padding-right: 40px; }
  .hero { padding: 64px 40px 56px 40px; }
  .pilot { padding: 0 40px 64px 40px; }
  .hero h1 { font-size: 58px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-right: none; border-bottom: 1px solid var(--dark-line); padding-left: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--dark-line); padding-right: 28px; }
  .stat:nth-child(even) { padding-left: 28px; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; }
  .hero-aside {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    margin-top: 8px;
  }
  .duo { display: flex; flex-direction: column; gap: 24px; }
  .pilot { display: flex; flex-direction: column; }
  .pilot-terms { display: flex; flex-direction: column; gap: 20px; margin-top: 4px; }
  .footer-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .site-header, .bench-band, .duo, .article-page-head, .article-list,
  .footer-band { padding-left: 22px; padding-right: 22px; }
  .hero { padding: 48px 22px 44px 22px; }
  .pilot { padding: 0 22px 56px 22px; }
  .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 17px; }
  .bench-head h2 { font-size: 28px; }
  .article-page-head h1 { font-size: 38px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(odd), .stat:nth-child(even) {
    border-right: none;
    padding-left: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--dark-line);
  }
  .stat:nth-last-child(-n+2) { border-bottom: 1px solid var(--dark-line); }
  .stat:last-child { border-bottom: none; }
  .site-nav { gap: 18px; }
  .btn { padding: 14px 26px; }
  .pilot-week { flex-direction: column; gap: 4px; }
}

/* hero sidebar chart (added 2026-08-20) */
.hero-chart { margin: 0 0 22px 0; }
.hero-chart svg { max-width: 100%; height: auto; font-family: var(--sans); }
.hero-chart figcaption { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* ---------- Article page (research notes) ---------- */

.article {
  padding: 72px 72px 0 72px;
}

.article-head {
  max-width: 760px;
  padding-bottom: 40px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.article-head h1 {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 16em;
}

.article-head .lede {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 640px;
}

.article-body {
  max-width: 680px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.68;
  color: var(--ink);
}

.article-body p { margin: 0 0 1.25em 0; }

.article-body h2 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 2.4em 0 0.9em 0;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
}

.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.article-body h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  margin: 1.9em 0 0.6em 0;
}

.article-body ul {
  margin: 0 0 1.25em 0;
  padding-left: 1.1em;
}

.article-body li { margin-bottom: 0.7em; }
.article-body li::marker { color: var(--accent); }

.article-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.article-body a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
}

.article-body strong { font-weight: 600; }

.article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3em 0 2em 0;
}

/* Closing disclosure line sits after the <hr> in every note. */
.article-body hr + p {
  font-size: 16px;
  color: var(--faint);
  line-height: 1.6;
}

.article-foot {
  max-width: 680px;
  margin: 64px 0 0 0;
  padding: 28px 0 88px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Research index listing ---------- */

.article-card {
  display: block;
  max-width: 760px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.article-card:first-child { border-top: 1px solid var(--line); }

.article-card:hover { color: var(--ink); }
.article-card:hover .article-card-title { color: var(--accent-dark); }

.article-card-meta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.article-card-title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 12px 0;
  max-width: 20em;
}

.article-card-dek {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 620px;
}

@media (max-width: 1100px) {
  .article { padding-left: 40px; padding-right: 40px; }
  .article-head h1 { font-size: 40px; }
  .article-card-title { font-size: 27px; }
}

@media (max-width: 600px) {
  .article { padding-left: 22px; padding-right: 22px; }
  .article-head h1 { font-size: 32px; }
  .article-body { font-size: 18px; }
  .article-card-title { font-size: 24px; }
}

/* ---------- Centred reading column (research pages) ----------
   The landing page is a wide 12-column grid that fills .page, but the research
   pages are a single measure and were sitting hard against the left edge. */

.article {
  max-width: 824px;            /* 680px measure + 72px gutters */
  margin: 0 auto;
}

.article-head,
.article-body,
.article-foot {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.article-page-head,
.article-list {
  max-width: 904px;            /* 760px cards + 72px gutters */
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .article,
  .article-page-head,
  .article-list { max-width: none; }
}

/* The header wrapped to three stacked rows on a phone — wordmark, links, then
   the button — costing ~200px above the fold. Two rows, button pinned right. */
@media (max-width: 600px) {
  .site-header { padding-top: 20px; padding-bottom: 20px; gap: 16px; }
  .site-nav {
    width: 100%;
    gap: 18px;
    font-size: 13px;
    row-gap: 12px;   /* wraps rather than overflowing below ~340px */
  }
  .site-nav a.nav-cta { margin-left: auto; padding: 9px 16px; white-space: nowrap; }
}

@media (max-width: 600px) {
  /* 88/56 + 56 of stacked padding left a dead band between the standfirst and
     the first card on a phone. */
  .article-page-head { padding-top: 56px; padding-bottom: 28px; }
  .article-list { padding-top: 28px; }
  .article { padding-top: 48px; }
}
