/* PressBase Africa — a deep green masthead panel beside a light column.
   Both are explicit grid tracks. The panel is not sticky and has no
   max-height, so it stacks with the page instead of overlapping it, and
   at the narrow breakpoint it simply becomes a band above the column.
   No photography: the only <img> are the /about/ portrait and the
   citation card's source logo. */

:root {
  /* A cool grey-green stock. The drafted #faf9f6 sat inside the warm
     off-white family already used across the estate, so it was replaced
     with a paper that reads clearly cool against the green panel. */
  --bg: #e7ecea;
  --fg: #1a1d1c;          /* 14.22:1 on --bg */
  --muted: #5b615e;       /* 5.30:1 on --bg */
  /* Drafted #a06a1c measured 3.92:1 on this paper — under AA. Darkened
     within the same ochre to 4.90:1. */
  --accent: #8a5b18;
  --rule: #d3dad7;

  --panel: #1e3a34;
  --panel-fg: #eef5f1;    /* 11.09:1 on --panel */
  --panel-muted: #a9bdb6; /* 6.22:1 on --panel */
  --panel-accent: #e0a458;/* 5.63:1 on --panel */

  --font-head: Fraunces, Georgia, "Times New Roman", serif;
  --font: Manrope, system-ui, -apple-system, "Segoe UI", sans-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-head); margin: 0; }

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

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

.panel a:focus-visible { outline-color: var(--panel-accent); }

.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; }

/* ── The split ─────────────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
  align-items: stretch;
}

.panel {
  background: var(--panel);
  color: var(--panel-fg);
  padding: 40px 26px;
  min-width: 0;
}

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

.panel__wordmark {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 3.6vw, 29px);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.panel__bar { display: block; width: 32px; height: 3px; background: var(--panel-accent); margin: 16px 0 14px; }

.panel__tagline { font-size: 11px; line-height: 1.55; color: var(--panel-muted); }

.panel__date, .panel__count {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--panel-muted);
  min-height: 1em;
}

.panel__count { margin-top: 4px; font-weight: 600; color: var(--panel-accent); }

.panel__nav { margin-top: 22px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 2; }
.panel__nav a { display: block; text-decoration: none; color: var(--panel-muted); }
.panel__nav a:hover { color: var(--panel-fg); }
.panel__nav a[aria-current="page"] { color: var(--panel-fg); box-shadow: inset 0 -2px 0 var(--panel-accent); }

/* ── Content column ────────────────────────────────────────────────── */

.column { padding: 40px 34px 0; min-width: 0; max-width: 720px; }

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

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

.lead__headline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(20px, 3vw, 25px);
  line-height: 1.22;
}

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

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

.row { padding: 14px 0; border-bottom: 1px solid var(--rule); }

.row__headline { font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1.32; }
.row__headline a { text-decoration: none; }
.row__headline a:hover { color: var(--accent); }

.row__date { margin-top: 5px; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }

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

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

.post { max-width: 640px; }

.post__dateline { font-weight: 600; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.post__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(24px, 3.6vw, 32px); line-height: 1.16; }
.post__subtitle { margin-top: 12px; font-size: 1.05rem; line-height: 1.55; color: var(--muted); }

.post__body { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.78; }
.post__body p { margin: 0 0 1.15em; }
.post__body h2 { font-family: var(--font-head); font-weight: 600; font-size: 1.24rem; margin: 1.7em 0 .5em; }
.post__body h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; 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: 640px; margin-top: 30px; padding: 15px 17px; background: #fff; border-left: 3px solid var(--accent); }
.citation-card__label { font-weight: 600; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 7px; }
.citation-card__source-name { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); 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: 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: 640px; }
.about__label { font-weight: 600; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 9px; }
.about__name { font-family: var(--font-head); font-weight: 700; font-size: clamp(24px, 3.6vw, 31px); line-height: 1.16; }
.about__photo { width: 150px; height: 150px; object-fit: cover; object-position: 50% 30%; 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: .13em; text-transform: uppercase; color: var(--muted); }
.about__contact a { color: var(--accent); }

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

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--rule);
  padding: 16px 0 44px;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer__name { font-weight: 600; color: var(--fg); }
.site-footer__links, .site-footer__social { margin-top: 8px; }
.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(--accent); }
.site-footer__copyright { margin-top: 9px; }

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

@media (max-width: 900px) {
  .split { grid-template-columns: 200px 1fr; }
  .panel { padding: 32px 20px; }
  .column { padding: 32px 24px 0; }
}

/* The panel becomes a band above the column, nav laid out inline. */
@media (max-width: 700px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .panel { padding: 26px 22px 22px; }
  .panel__nav { line-height: 1.6; margin-top: 16px; }
  .panel__nav a { display: inline-block; margin-right: 18px; }
  .column { padding: 26px 22px 0; max-width: 100%; }
}

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