/* Africa Voice Media — brutalist monospace on bone.
   border-radius is 0 everywhere by construction; no rule in this file
   sets one. Every band carries a 3px border with border-top removed so
   the boxes collapse into a single continuous frame down the page.
   No photography: the only <img> are the /about/ portrait and the
   citation card's source logo. */

:root {
  /* Bone, not cream: noticeably darker and tanner than the off-whites
     already in service across the estate. */
  --bg: #e8e4d8;
  --fg: #101010;        /* 14.97:1 on --bg */
  --muted: #55554e;     /* 5.91:1 on --bg */
  /* Amber is a FILL ONLY — as text on bone it measures 2.51:1 and must
     never be used for type. Text sitting on the amber fill is --fg
     (5.97:1); white on amber would be 3.19:1 and is not used. */
  --amber: #d97706;
  /* Small labels on bone. Drafted #a8560a measured 4.13:1, under AA;
     darkened within the same burnt amber to 5.24:1. */
  --accent-ink: #8f4a08;

  --font: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --border: 3px solid var(--fg);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.9375rem;
  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: 920px;
  margin: 0 auto;
  padding: 26px 24px 46px;
}

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-ink);
  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; }

/* ── Masthead box ──────────────────────────────────────────────────── */

.mast {
  border: var(--border);
  background: var(--amber);
  color: var(--fg);
  padding: 16px 18px 14px;
}

.mast__brand { display: block; text-decoration: none; }

/* Spaces render as underscores visually only. The stored display_name is
   untouched, so <title>, the RSS channel title and the JSON-LD publisher
   all carry the real name. */
.mast__wordmark {
  display: block;
  font-weight: 800;
  font-size: clamp(19px, 3.6vw, 25px);
  line-height: 1.12;
  letter-spacing: -.04em;
  text-transform: uppercase;
  word-spacing: -.24em;
}

.mast__wordmark::first-line { /* no-op hook, keeps specificity explicit */ }

.mast__tagline {
  margin-top: 9px;
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--fg);
}

.mast__tagline::before { content: "> "; font-weight: 700; }

/* ── Meta strip — top border removed so it collapses into the mast ─── */

.strip {
  border: var(--border);
  border-top: 0;
  padding: 8px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted);
  min-height: 2.2em;
}

.strip__count { font-weight: 700; color: var(--fg); }
.strip__nav { margin-left: auto; }
.strip__nav a { margin-left: 12px; text-decoration: none; color: var(--muted); }
.strip__nav a:hover { color: var(--accent-ink); }
.strip__nav a[aria-current="page"] { color: var(--fg); font-weight: 700; }

/* ── Stacked boxes ─────────────────────────────────────────────────── */

.box {
  border: var(--border);
  border-top: 0;
  padding: 16px 18px;
  min-width: 0;
}

.box__label {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--accent-ink);
  margin-bottom: 8px;
}

.box__headline { font-weight: 500; font-size: 14px; line-height: 1.4; }

.box__headline--lead { font-weight: 700; font-size: 19px; line-height: 1.32; }

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

.box__standfirst { margin-top: 9px; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* Two columns of boxes, each still border-top:0 so the frame continues.
   The middle gap is closed by a negative-free technique: the grid has no
   gap and the right column simply loses its left border. */
.entries {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.entries .box--entry:nth-child(even) { border-left: 0; }

.empty {
  border: var(--border);
  border-top: 0;
  padding: 26px 18px;
  font-size: 12px;
  color: var(--muted);
}

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

.post { border: var(--border); border-top: 0; padding: 20px 18px; }

.post__dateline { font-size: 10px; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 12px; }
.post__title { font-weight: 800; font-size: clamp(21px, 3.4vw, 28px); line-height: 1.18; letter-spacing: -.04em; }
.post__subtitle { margin-top: 11px; font-size: 0.95rem; line-height: 1.6; color: var(--muted); }

.post__body {
  margin-top: 20px;
  padding-top: 18px;
  border-top: var(--border);
  font-size: 0.9375rem;
  line-height: 1.78;
}

.post__body p { margin: 0 0 1.2em; }
.post__body h2 { font-weight: 700; font-size: 1.1rem; margin: 1.7em 0 .5em; }
.post__body h3 { font-weight: 500; font-size: 1rem; margin: 1.5em 0 .45em; }
.post__body a { color: var(--accent-ink); }
.post__body blockquote { margin: 1.4em 0; padding-left: 16px; border-left: var(--border); color: var(--muted); }

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

.citation-card { margin-top: 22px; padding-top: 16px; border-top: var(--border); }
.citation-card__label { font-size: 10px; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 7px; }
.citation-card__source-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.citation-card__logo { max-height: 18px; width: auto; }
.citation-card__headline { margin-top: 6px; font-size: 13px; line-height: 1.5; }
.citation-card__date { margin-top: 4px; font-size: 10px; color: var(--muted); }
.citation-card__cta { margin-top: 9px; font-weight: 500; font-size: 11px; }
.citation-card__cta a { color: var(--accent-ink); }

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

.about { border: var(--border); border-top: 0; padding: 20px 18px; }
.about__label { font-size: 10px; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 9px; }
.about__name { font-weight: 800; font-size: clamp(21px, 3.4vw, 27px); line-height: 1.16; letter-spacing: -.04em; }
.about__photo { width: 150px; height: 150px; object-fit: cover; object-position: 50% 30%; float: right; margin: 0 0 16px 18px; border: var(--border); }
.about__bio { margin-top: 18px; font-size: 0.9375rem; line-height: 1.78; }
.about__bio p { margin: 0 0 1.15em; }
.about__contact { margin-top: 18px; font-size: 10px; color: var(--muted); }
.about__contact a { color: var(--accent-ink); }

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

.site-footer {
  border: var(--border);
  border-top: 0;
  padding: 14px 18px;
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted);
}

.site-footer__name { font-weight: 700; color: var(--fg); }
.site-footer__links, .site-footer__social { margin-top: 7px; }
.site-footer__links a, .site-footer__social a { margin-right: 12px; color: var(--muted); text-decoration: none; }
.site-footer__links a:hover, .site-footer__social a:hover { color: var(--accent-ink); }
.site-footer__copyright { margin-top: 9px; }

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

@media (max-width: 900px) {
  .container { padding: 20px 18px 40px; }
}

@media (max-width: 700px) {
  .entries { grid-template-columns: 1fr; }
  .entries .box--entry:nth-child(even) { border-left: var(--border); }
  .strip__nav { margin-left: 0; }
}

@media (max-width: 480px) {
  .mast__wordmark { font-size: 18px; }
  .about__photo { float: none; display: block; margin: 0 0 16px; }
}
