/* Africa Civic Watch — text-only newspaper front page.
   No photography: this theme never sizes or positions a content image.
   The only <img> it can emit is the citation card's source-publication
   logo and, on /about/, the journalist portrait. */

:root {
  --paper: #fbf8f2;
  --ink: #16181c;
  /* Spec value #7a7268 measures 4.47:1 on --paper — just under WCAG AA,
     and --muted carries 10-11px mono labels where there is no margin for
     antialiasing. Darkened to 5.51:1. */
  --muted: #6b6459;
  --accent: #1c2f6b;
  --rule: #e0d9c8;

  --font-headline: "Roboto Slab", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --font-ui: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  margin: 0;
}

p { margin: 0; }

.container {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* No amplifier theme had a focus style before this one; keyboard users
   got whatever the browser defaulted to. */
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(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 10px 16px;
  text-decoration: none;
}

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

/* ── Nameplate ─────────────────────────────────────────────────────── */

.nameplate {
  border-bottom: 3px solid var(--ink);
  padding: 18px 0 14px;
  margin-bottom: 32px;
}

.nameplate__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nameplate__brand {
  display: block;
  margin: 10px 0 0;
  text-decoration: none;
}

.nameplate__wordmark {
  display: block;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: -.02em;
}

.nameplate__tagline {
  margin: 8px 0 0;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.nameplate__nav {
  margin-top: 14px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nameplate__nav a {
  margin-right: 18px;
  text-decoration: none;
  color: var(--muted);
}

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

.nameplate__nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* ── Homepage: lead ────────────────────────────────────────────────── */

.lead {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.lead__label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.lead__headline {
  font-size: clamp(24px, 3.4vw, 31px);
  line-height: 1.15;
}

.lead__headline a { text-decoration: none; }
.lead__headline a:hover { color: var(--accent); }

.lead__standfirst {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.lead__byline {
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
}

/* ── Homepage: secondary pair ──────────────────────────────────────── */

.secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}

/* The divider is a border on the first column rather than a separate
   element, so the single-column breakpoint removes it by resetting one
   property. */
.secondary__item:first-child {
  border-right: 1px solid var(--rule);
  padding-right: 32px;
}

.secondary__date {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.secondary__headline { font-size: 18px; line-height: 1.25; }
.secondary__headline a { text-decoration: none; }
.secondary__headline a:hover { color: var(--accent); }

.secondary__subtitle {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* ── Homepage: more reports ────────────────────────────────────────── */

.more { padding: 26px 0 8px; }

.more__heading {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.more__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.more__row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}

.more__date {
  flex: 0 0 52px;
  width: 52px;
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.more__headline {
  font-family: var(--font-headline);
  font-size: 15px;
  line-height: 1.35;
}

.more__headline a { text-decoration: none; }
.more__headline a:hover { color: var(--accent); }

.empty {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
  padding: 32px 0;
}

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

.post { max-width: 680px; }

.post__dateline {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.post__title {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -.01em;
}

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

.post__body {
  margin-top: 26px;
  max-width: 680px;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.post__body p { margin: 0 0 1.15em; }

.post__body h2 {
  font-size: 1.35rem;
  margin: 1.7em 0 .5em;
}

.post__body h3 {
  font-size: 1.1rem;
  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(--rule);
  font-style: italic;
  color: var(--muted);
}

.post__body--has-dropcap > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 3.4em;
  line-height: .84;
  padding: 4px 8px 0 0;
}

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

.citation-card {
  max-width: 680px;
  margin-top: 36px;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  background: #fff;
}

.citation-card__label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.citation-card__source-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headline);
  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-family: var(--font-ui);
  font-size: 10px;
  color: var(--muted);
}

.citation-card__cta {
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 11px;
}

.citation-card__cta a { color: var(--accent); }

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

.about { max-width: 680px; }

.about__label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.about__name { font-size: clamp(26px, 4vw, 34px); line-height: 1.1; }

.about__photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: 50% 30%;
  float: right;
  margin: 0 0 18px 22px;
  border: 1px solid var(--rule);
}

.about__bio {
  margin-top: 20px;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.about__bio p { margin: 0 0 1.1em; }

.about__contact {
  margin-top: 20px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
}

.about__contact a { color: var(--accent); }

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

.site-footer {
  margin-top: 48px;
  border-top: 3px solid var(--ink);
  padding: 14px 0 40px;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.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: 8px; }

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

@media (max-width: 900px) {
  .container { padding: 0 18px; }
  .nameplate__meta { font-size: 10px; }
}

@media (max-width: 700px) {
  .secondary {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .secondary__item:first-child {
    border-right: 0;
    padding-right: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 480px) {
  .more__row {
    display: block;
  }
  .more__date {
    display: block;
    width: auto;
    flex: none;
    margin-bottom: 3px;
  }
  .about__photo {
    float: none;
    display: block;
    margin: 0 0 18px;
  }
}
