/* Africa Public Eye — a plain civic daily, the quietest design here.
   Inter carries every label, date and nav item; there is no monospace
   face in this theme and no numbering. The rules above and below the page
   are accent-coloured rather than ink.
   No photography: the only <img> are the /about/ portrait and the
   citation card's source logo. */

:root {
  --paper: #fafaf7;
  --ink: #1a1a1a;
  --muted: #5a5a5a;   /* 6.60:1 on --paper */
  --accent: #8c2818;  /* 8.26:1 on --paper */
  --rule: #e6e2d8;

  --font-headline: "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-ui: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::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.62;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
p { margin: 0; }

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

.container {
  max-width: 920px;
  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(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  padding: 10px 16px;
  text-decoration: none;
}

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

/* ── Nameplate — accent rule below ─────────────────────────────────── */

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

.nameplate__meta {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--muted);
}

.nameplate__sep { margin: 0 .5em; }

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

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

.nameplate__tagline {
  margin-top: 9px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--accent);
}

.nameplate__nav {
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
}

.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);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* ── Lead ──────────────────────────────────────────────────────────── */

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

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

.lead__headline {
  font-size: clamp(24px, 3.5vw, 32px);
  line-height: 1.18;
  letter-spacing: -.01em;
}

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

.lead__standfirst {
  margin-top: 11px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

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

/* ── Secondary pair ────────────────────────────────────────────────── */

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

.secondary__item:first-child {
  border-right: 1px solid var(--rule);
  padding-right: 32px;
}

.secondary__date {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 7px;
}

.secondary__headline {
  font-weight: 600;
  font-size: 19px;
  line-height: 1.28;
}

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

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

/* ── More from this week ───────────────────────────────────────────── */

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

.more__heading {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  margin-bottom: 2px;
}

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

/* Date above the headline — no date column, no numbering. */
.more__row {
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}

.more__date {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
}

.more__headline {
  font-family: var(--font-headline);
  font-size: 16px;
  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: 13px;
  color: var(--muted);
  padding: 32px 0;
}

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

.post { max-width: 680px; }

.post__dateline {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.post__title {
  font-size: clamp(26px, 4vw, 35px);
  line-height: 1.17;
  letter-spacing: -.012em;
}

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

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

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

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

.post__body h3 {
  font-weight: 600;
  font-size: 1.12rem;
  margin: 1.5em 0 .45em;
}

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

.post__body blockquote {
  margin: 1.5em 0;
  padding-left: 18px;
  border-left: 2px 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.3em;
  line-height: .86;
  padding: 4px 8px 0 0;
}

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

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

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

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

.citation-card__logo { max-height: 18px; width: auto; }

.citation-card__headline {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
}

.citation-card__date {
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
}

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

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

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

.about { max-width: 680px; }

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

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

.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: 12px;
  color: var(--muted);
}

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

/* ── Footer — accent rule above ────────────────────────────────────── */

.site-footer {
  margin-top: 48px;
  border-top: 3px solid var(--accent);
  padding: 16px 0 42px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
}

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

.site-footer__name { font-weight: 600; }

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

/* ── 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) {
  .lead__headline { font-size: 23px; }
  .more__row { padding: 10px 0; }
  .about__photo {
    float: none;
    display: block;
    margin: 0 0 18px;
  }
}
