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

:root {
  --bg: #F9F8F6;
  --fg: #111111;
  --muted: #6B7280;
  --rule: #E2E0DC;
  --rule-strong: #C8C4BE;
  --red: #B91C1C;
  --red-bg: #FEF2F2;
  --blue: #1E3A5F;
  --blue-bg: #EFF6FF;
  --green: #166534;
  --green-bg: #F0FDF4;
  --accent: #1E3A5F;
  --max: 740px;
  --max-wide: 1040px;
}

html { font-size: 17px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.75;
}

/* ── NAV ─────────────────────────────────────────────────────────────────── */
nav {
  background: #fff;
  border-bottom: 1px solid var(--rule);
  padding: 0 2rem;
}

nav .nav-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: 56px;
  flex-wrap: wrap;
}

nav .site-name {
  font-family: system-ui, Arial, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav .site-name span {
  color: var(--red);
}

nav a {
  font-family: system-ui, Arial, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

nav a:hover { color: var(--fg); }
nav a.active { color: var(--fg); border-bottom: 2px solid var(--red); padding-bottom: 2px; }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  background: #fff;
  border-bottom: 1px solid var(--rule);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.hero .eyebrow {
  font-family: system-ui, Arial, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: normal;
  line-height: 1.2;
  color: var(--fg);
  max-width: 760px;
  margin: 0 auto 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--red);
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: system-ui, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
}

.btn-primary:hover { background: #991B1B; border-color: #991B1B; }

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--rule-strong);
}

.btn-secondary:hover { border-color: var(--fg); }

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── SECTIONS ─────────────────────────────────────────────────────────────── */
section {
  padding: 4rem 2rem;
}

section.alt { background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.section-label {
  font-family: system-ui, Arial, sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h2 {
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--fg);
}

h3 {
  font-family: system-ui, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

/* ── PROJECT CARDS ────────────────────────────────────────────────────────── */
.cards {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
}

.card:hover {
  border-color: var(--rule-strong);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.card-tag {
  font-family: system-ui, Arial, sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.tag-red   { color: var(--red);   background: var(--red-bg); }
.tag-blue  { color: var(--blue);  background: var(--blue-bg); }
.tag-green { color: var(--green); background: var(--green-bg); }
.tag-dark  { color: #fff; background: var(--fg); }

.card h3 {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── ARTICLE / CONTENT ────────────────────────────────────────────────────── */
article.article-body {
  max-width: var(--max);
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.article-meta {
  font-family: system-ui, Arial, sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
}

.article-meta .tag {
  font-weight: 700;
  text-transform: uppercase;
}

article h1 {
  font-family: Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

article .subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

article h2 {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

article h3 {
  font-family: system-ui, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

article p { margin-bottom: 1.25rem; line-height: 1.8; }

article ul, article ol {
  margin: 0 0 1.25rem 1.5rem;
  line-height: 1.8;
}

article li { margin-bottom: 0.4rem; }

article blockquote {
  border-left: 3px solid var(--red);
  padding: 0.75rem 1.25rem;
  margin: 2rem 0;
  background: var(--red-bg);
  font-style: italic;
  color: var(--fg);
}

/* ── CALLOUT BOXES ─────────────────────────────────────────────────────────── */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: 2px;
  margin: 2rem 0;
  border-left: 4px solid;
}

.callout-red   { background: var(--red-bg);   border-color: var(--red);   }
.callout-blue  { background: var(--blue-bg);  border-color: var(--blue);  }
.callout-green { background: var(--green-bg); border-color: var(--green); }

.callout-label {
  font-family: system-ui, Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.callout-red .callout-label   { color: var(--red);   }
.callout-blue .callout-label  { color: var(--blue);  }
.callout-green .callout-label { color: var(--green); }

.callout p { margin: 0; font-size: 0.95rem; line-height: 1.7; }

/* ── STAT BLOCKS ──────────────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 2rem 0;
}

.stat {
  background: #fff;
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-family: system-ui, Arial, sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── EVIDENCE TABLE ──────────────────────────────────────────────────────── */
.evidence-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.evidence-table th {
  font-family: system-ui, Arial, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--fg);
  color: #fff;
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.evidence-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--rule);
  line-height: 1.6;
  vertical-align: top;
}

.evidence-table tr:nth-child(even) td { background: #FAFAF9; }

.evidence-table .wrong  { color: var(--red);   font-weight: 600; }
.evidence-table .right  { color: var(--green); font-weight: 600; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--fg);
  color: #9CA3AF;
  padding: 3rem 2rem;
  margin-top: 0;
}

footer .footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

footer h4 {
  font-family: system-ui, Arial, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 0.75rem;
}

footer a {
  display: block;
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  font-family: system-ui, Arial, sans-serif;
  transition: color 0.15s;
}

footer a:hover { color: #fff; }

footer .footer-bottom {
  max-width: var(--max-wide);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
  font-family: system-ui, Arial, sans-serif;
  font-size: 0.75rem;
  color: #6B7280;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  footer .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero { padding: 3rem 1.5rem; }
  nav .nav-inner { gap: 1.25rem; height: auto; padding: 0.75rem 0; }
}
