/* Africa Public Record — a ledger. Numbered entry, date, headline, under
   column headers. Every row is a three-track grid; the entry track carries
   min-width:0 and overflow-wrap so a long headline wraps inside its column
   instead of widening the track.
   No photography: the only <img> are the /about/ portrait and the citation
   card's source logo. */

:root {
  --bg: #d5e4ca;
  --fg: #12180f;      /* 13.56:1 on --bg */
  --muted: #4a5c3f;   /* 5.45:1 on --bg */
  --accent: #3d6b2f;  /* 4.72:1 on --bg */
  --rule: #c4d0bb;
  --font: "IBM Plex Serif", Georgia, "Times New Roman", serif;
}

*, *::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: 960px; margin: 0 auto; padding: 0 24px; }

/* ── Accessibility ─────────────────────────────────────────────────── */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--fg); color: var(--bg); font-weight: 600; font-size: 12px;
  padding: 10px 16px; text-decoration: none; }
.skip-link:focus { left: 0; }

/* ── Nameplate ─────────────────────────────────────────────────────── */
.nameplate { border-bottom: 2px solid var(--fg); padding: 26px 0 12px; margin-bottom: 22px; }
.nameplate__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; }
.nameplate__mast { min-width: 0; }
.nameplate__brand { display: block; text-decoration: none; }
.nameplate__wordmark { display: block; font-weight: 700; font-size: clamp(21px, 3.4vw, 28px);
  line-height: 1.08; letter-spacing: -.02em; overflow-wrap: break-word; }
.nameplate__tagline { margin-top: 7px; font-style: italic; font-size: 11px; color: var(--muted); }
.nameplate__meta { flex: 0 0 auto; text-align: right; font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); line-height: 1.9; }
.nameplate__count { font-weight: 700; color: var(--accent); }
.nameplate__date { min-height: 1em; }
.nameplate__nav { margin-top: 3px; font-weight: 600; }
.nameplate__nav a { margin-left: 14px; text-decoration: none; color: var(--muted); }
.nameplate__nav a:hover { color: var(--accent); }
.nameplate__nav a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); }

/* ── The ledger ────────────────────────────────────────────────────── */
.ledger__head, .ledger__row {
  display: grid;
  grid-template-columns: 44px 82px 1fr;
  gap: 14px;
  align-items: baseline;
}
.ledger__head { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 7px; border-bottom: 1px solid var(--fg); }
.ledger__list { list-style: none; margin: 0; padding: 0; }
.ledger__row { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.ledger__no { font-weight: 700; font-size: 11px; color: var(--accent); font-variant-numeric: tabular-nums; }
.ledger__date { font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger__entry { min-width: 0; overflow-wrap: break-word; }
.ledger__headline { font-weight: 400; font-size: 15px; line-height: 1.4; }
.ledger__row--first .ledger__headline { font-weight: 600; font-size: 16px; }
.ledger__headline a { text-decoration: none; }
.ledger__headline a:hover { color: var(--accent); }
.empty { font-size: 13px; color: var(--muted); padding: 34px 0; }

/* ── Article ───────────────────────────────────────────────────────── */
.site-main { padding-bottom: 32px; }
.post { max-width: 660px; }
.post__dateline { font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px; }
.post__title { font-weight: 700; font-size: clamp(24px, 3.6vw, 31px); line-height: 1.18; letter-spacing: -.02em; }
.post__subtitle { margin-top: 12px; font-style: italic; font-size: 1.05rem; line-height: 1.55; color: var(--muted); }
.post__body { margin-top: 24px; padding-top: 20px; border-top: 2px solid var(--fg);
  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; }
.post__body h3 { font-weight: 600; font-size: 1.04rem; margin: 1.5em 0 .45em; }
.post__body a { color: var(--accent); }
.post__body blockquote { margin: 1.5em 0; padding-left: 18px; border-left: 3px solid var(--accent);
  font-style: italic; color: var(--muted); }

/* ── Citation card ─────────────────────────────────────────────────── */
.citation-card { max-width: 660px; margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--fg); }
.citation-card__label { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 7px; }
.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-style: italic; font-size: 14px; line-height: 1.5; }
.citation-card__date { margin-top: 4px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.citation-card__cta { margin-top: 9px; font-weight: 600; font-size: 11px; }
.citation-card__cta a { color: var(--accent); }

/* ── About ─────────────────────────────────────────────────────────── */
.about { max-width: 660px; }
.about__label { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 9px; }
.about__name { font-weight: 700; font-size: clamp(24px, 3.6vw, 30px); line-height: 1.16; }
.about__photo { width: 150px; height: 150px; object-fit: cover; object-position: 50% 30%;
  float: right; margin: 0 0 16px 20px; border: 1px solid var(--rule); }
.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: .13em; text-transform: uppercase; color: var(--muted); }
.about__contact a { color: var(--accent); }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer { margin-top: 32px; border-top: 2px solid var(--fg); padding: 14px 0 44px;
  font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.site-footer__row { display: flex; justify-content: space-between; gap: 20px; }
.site-footer__name { font-weight: 700; color: var(--fg); }
.site-footer__links a, .site-footer__social a { margin-left: 14px; color: var(--muted); text-decoration: none; }
.site-footer__links a:hover, .site-footer__social a:hover { color: var(--accent); }
.site-footer__social { margin-top: 8px; text-align: right; }
.site-footer__copyright { margin-top: 9px; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .ledger__head, .ledger__row { grid-template-columns: 38px 76px 1fr; gap: 12px; }
}
/* One column: number and date share a line above the headline. */
@media (max-width: 700px) {
  .ledger__head { display: none; }
  .ledger__row { grid-template-columns: 38px 1fr; gap: 4px 12px; }
  .ledger__no { grid-column: 1; grid-row: 1; }
  .ledger__date { grid-column: 2; grid-row: 1; }
  .ledger__entry { grid-column: 1 / -1; grid-row: 2; }
  .nameplate__row { flex-direction: column; gap: 12px; }
  .nameplate__meta { text-align: left; }
  .nameplate__nav a { margin-left: 0; margin-right: 14px; }
}
@media (max-width: 480px) {
  .about__photo { float: none; display: block; margin: 0 0 16px; }
}
