:root {
  --text: #1a1a1a;
  --muted: #6b6560;
  --bg: #faf9f6;
  --accent: #9b1c1c;
  --accent-light: #f5eded;
  --border: #e0dbd5;
  --chart-main: #9b1c1c;
  --chart-other: #c5bdb5;
  --mono: 'Courier New', Courier, monospace;
  --width: 700px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.82;
  color: var(--text);
  background: var(--bg);
  padding: 2.5rem 1.25rem;
}

main { max-width: var(--width); margin: 0 auto; }

/* ── Header ── */
header {
  max-width: var(--width);
  margin: 0 auto 3rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--text);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.site-name {
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

.tagline {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Article header ── */
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--mono);
  margin-bottom: 0.75rem;
}

article h1 {
  font-size: 2.5rem;
  line-height: 1.12;
  margin-bottom: 1.1rem;
  font-weight: bold;
}

.meta {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  margin-bottom: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
}

.meta time {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.meta .description {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}

/* ── Stats box ── */
.statsbox {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 1.1rem 1.4rem;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 2rem;
  align-items: baseline;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.stat-value {
  font-size: 0.88rem;
  font-weight: bold;
  font-family: var(--mono);
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}

/* ── Dateline ── */
.dateline {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* ── Section headings ── */
article h2 {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--mono);
  margin: 3rem 0 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

article h2 .num {
  color: var(--accent);
  margin-right: 0.5rem;
}

article h3 {
  font-size: 1.2rem;
  margin: 2.25rem 0 0.6rem;
  font-style: italic;
  font-weight: bold;
}

article p { margin-bottom: 1.2rem; }

article a { color: var(--accent); text-decoration: underline; text-decoration-color: #d9a0a0; }
article a:hover { text-decoration-color: var(--accent); }

/* ── Pull quotes ── */
.pull {
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  padding: 1.1rem 1.4rem;
  margin: 2rem 0;
}

.pull p {
  margin-bottom: 0.5rem;
  line-height: 1.65;
  font-style: italic;
}

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

/* ── Big stat callout ── */
.callout {
  text-align: center;
  margin: 2.25rem 0;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.callout .number {
  font-size: 4rem;
  font-weight: bold;
  color: var(--accent);
  display: block;
  line-height: 1;
  font-family: Georgia, serif;
}

.callout .label {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-top: 0.6rem;
  font-style: italic;
}

/* ── Charts ── */
.chart { margin: 2rem 0; }

.chart-title {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--mono);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.chart-row {
  display: grid;
  grid-template-columns: 148px 1fr 56px;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

.chart-label {
  font-size: 0.8rem;
  text-align: right;
  color: var(--muted);
  line-height: 1.3;
}

.chart-label.hi { color: var(--text); font-weight: bold; }

.chart-bar-wrap {
  background: #e5e0d8;
  height: 20px;
}

.chart-bar {
  height: 100%;
  background: var(--chart-other);
}

.chart-bar.hi { background: var(--chart-main); }

.chart-value {
  font-size: 0.78rem;
  font-family: var(--mono);
  font-weight: bold;
  color: var(--muted);
}

.chart-value.hi { color: var(--accent); }

.chart-source {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.8rem;
  font-family: var(--mono);
}

/* ── Comparison table ── */
.ctable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.ctable th {
  border-bottom: 2px solid var(--text);
  padding: 0.45rem 0.75rem;
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--mono);
  font-weight: normal;
  color: var(--muted);
}

.ctable td {
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0.75rem;
}

.ctable tr.hi td {
  font-weight: bold;
  color: var(--accent);
}

/* ── Coda / section break ── */
.coda-divider {
  text-align: center;
  color: var(--muted);
  margin: 3rem 0 2rem;
  letter-spacing: 0.5em;
  font-size: 0.9rem;
}

/* ── Sources ── */
.sources {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}

.sources-title {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--mono);
  color: var(--muted);
  margin-bottom: 1rem;
}

.sources ol {
  padding-left: 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.75;
}

.sources ol li { margin-bottom: 0.3rem; }
.sources a { color: var(--muted); }
.sources a:hover { color: var(--accent); }

/* ── Footer ── */
footer {
  max-width: var(--width);
  margin: 3rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

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

/* ── Index ── */
.article-list { list-style: none; margin-top: 2rem; }

.article-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.article-list a {
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
}

.article-list a:hover { color: var(--accent); }

.article-list .date {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
  font-family: var(--mono);
}

.article-list .desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-style: italic;
}

/* ── Search ── */
#search { margin-bottom: 2.5rem; }

.pagefind-ui__search-input {
  border-radius: 0 !important;
  border: 1px solid var(--border) !important;
  font-family: Georgia, serif !important;
  font-size: 1rem !important;
  background: white !important;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  body { font-size: 1rem; padding: 1.5rem 1rem; }
  article h1 { font-size: 1.9rem; }
  .statsbox { grid-template-columns: 1fr; }
  .stat-value { text-align: left; }
  .meta { flex-direction: column; gap: 0.4rem; }
  .chart-row { grid-template-columns: 100px 1fr 46px; }
  .chart-label { font-size: 0.72rem; }
  .callout .number { font-size: 3rem; }
}
