/* Africa Citizen Voice — dark colour-blocked tile grid.
   There are deliberately NO rules, borders or dividers anywhere in this
   theme: colour blocks and gaps do all the separating. Adding a hairline
   would undo the design.
   Every tile is its own grid cell — nothing is positioned absolutely and
   nothing carries a negative margin, so no element can overlap another.
   No photography: the only <img> are the /about/ portrait and the
   citation card's source logo. */

:root {
  --bg: #12131a;
  --fg: #eef0f5;          /* 16.24:1 on --bg */
  --muted: #9aa0b3;       /* 7.10:1 on --bg */
  --tile: #1c1e28;        /* --fg on it: 14.55:1 */
  --blue: #2b4f7d;        /* #fff on it: 8.34:1 */
  --rust: #7d4a2b;        /* #fff on it: 7.28:1 */
  --green: #2d6b4a;       /* #fff on it: 6.34:1 */
  /* Label tints, each a light wash of its own tile hue. Contrast-checked
     against that tile, not against the page background. */
  --blue-label: #cfdcee;
  --rust-label: #f0d9cb;
  --green-label: #cfe8da;
  --tile-label: #9aa0b3;

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--font); margin: 0; }

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ── Accessibility ─────────────────────────────────────────────────── */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  font-size: 12px;
  padding: 10px 16px;
  text-decoration: none;
}

.skip-link:focus { left: 0; }

/* ── Nameplate — no rule beneath, spacing only ─────────────────────── */

.nameplate { padding: 28px 0 22px; }

.nameplate__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.nameplate__brand { text-decoration: none; }

.nameplate__wordmark {
  display: block;
  font-weight: 700;
  font-size: clamp(20px, 3.4vw, 25px);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.nameplate__nav {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nameplate__nav a { margin-left: 16px; text-decoration: none; color: var(--muted); }
.nameplate__nav a:hover { color: var(--fg); }
.nameplate__nav a[aria-current="page"] { color: var(--fg); }

.nameplate__tagline {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nameplate__date {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  min-height: 1em;
}

/* ── Tile grid ─────────────────────────────────────────────────────── */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tile {
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  background: var(--tile);
  min-width: 0;
}

/* The lead occupies two of the three tracks. It is a normal grid item —
   no absolute positioning, no negative margin, so it cannot overlap the
   nameplate or its neighbours. */
.tile--lead { grid-column: span 2; padding: 22px 22px 24px; }

.tile--neutral { background: var(--tile); }
.tile--blue    { background: var(--blue); }
.tile--rust    { background: var(--rust); }
.tile--green   { background: var(--green); }

.tile--blue,
.tile--rust,
.tile--green { color: #ffffff; }

.tile__date {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--tile-label);
}

.tile--blue  .tile__date { color: var(--blue-label); }
.tile--rust  .tile__date { color: var(--rust-label); }
.tile--green .tile__date { color: var(--green-label); }

.tile__headline {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.32;
  letter-spacing: -.01em;
}

.tile--lead .tile__headline {
  font-weight: 700;
  font-size: clamp(18px, 2.8vw, 22px);
  line-height: 1.22;
  letter-spacing: -.025em;
}

.tile__headline a { text-decoration: none; }
.tile__headline a:hover { text-decoration: underline; }

.tile__subtitle {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--blue-label);
}

.empty { color: var(--muted); font-size: 13px; padding: 40px 0; }

/* ── Article ───────────────────────────────────────────────────────── */

.site-main { padding-bottom: 40px; }

.post { max-width: 680px; }

.post__dateline {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.post__title {
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 32px);
  line-height: 1.16;
  letter-spacing: -.035em;
}

.post__subtitle {
  margin-top: 12px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.post__body {
  margin-top: 24px;
  font-size: 1rem;
  line-height: 1.78;
}

.post__body p { margin: 0 0 1.15em; }
.post__body h2 { font-weight: 700; font-size: 1.2rem; margin: 1.7em 0 .5em; letter-spacing: -.02em; }
.post__body h3 { font-weight: 500; font-size: 1.05rem; margin: 1.5em 0 .45em; }
.post__body a { color: #b9cdea; }

.post__body blockquote {
  margin: 1.5em 0;
  padding: 16px 18px;
  background: var(--tile);
  border-radius: var(--radius);
  color: var(--fg);
}

/* ── Citation card ─────────────────────────────────────────────────── */

.citation-card {
  max-width: 680px;
  margin-top: 32px;
  padding: 16px 18px;
  background: var(--tile);
  border-radius: var(--radius);
}

.citation-card__label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.citation-card__source-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}

.citation-card__logo { max-height: 18px; width: auto; }
.citation-card__headline { margin-top: 6px; font-size: 14px; line-height: 1.5; }
.citation-card__date { margin-top: 4px; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.citation-card__cta { margin-top: 10px; font-size: 11px; font-weight: 500; }
.citation-card__cta a { color: #b9cdea; }

/* ── About ─────────────────────────────────────────────────────────── */

.about { max-width: 680px; }

.about__label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.about__name { font-weight: 700; font-size: clamp(24px, 3.6vw, 31px); line-height: 1.12; letter-spacing: -.03em; }

.about__photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius);
  float: right;
  margin: 0 0 16px 20px;
}

.about__bio { margin-top: 20px; font-size: 1rem; line-height: 1.78; }
.about__bio p { margin: 0 0 1.1em; }

.about__contact {
  margin-top: 20px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.about__contact a { color: #b9cdea; }

/* ── Footer ────────────────────────────────────────────────────────── */

.site-footer {
  padding: 34px 0 46px;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer__name { font-weight: 700; color: var(--fg); letter-spacing: -.01em; text-transform: none; font-size: 14px; }
.site-footer__links, .site-footer__social { margin-top: 9px; }
.site-footer__links a, .site-footer__social a { margin-right: 14px; color: var(--muted); text-decoration: none; }
.site-footer__links a:hover, .site-footer__social a:hover { color: var(--fg); }
.site-footer__copyright { margin-top: 10px; }

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .container { padding: 0 18px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile--lead { grid-column: span 2; }
}

@media (max-width: 700px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile--lead { grid-column: span 2; }
  .nameplate__row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nameplate__nav a { margin-left: 0; margin-right: 16px; }
}

@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
  .tile--lead { grid-column: span 1; }
  .about__photo { float: none; display: block; margin: 0 0 16px; }
}
