/* Africa Fresh Press — white, oversized ordinals, almost nothing else.
   The numeral column is a flex child with an explicit min-width, so a
   three-digit ordinal on a 176-report site cannot push into the
   headline. Nothing is absolutely positioned and nothing carries a
   negative margin.
   No photography: the only <img> are the /about/ portrait and the
   citation card's source logo. */

:root {
  --bg: #ffffff;
  --ink: #0c0c0d;         /* 19.55:1 on white */
  --muted: #6f6f76;       /* 4.99:1 on white */
  /* The receding numeral. Drafted #d9d9dd measured 1.41:1 on white — far
     below AA and unreadable as text. Darkened within the same neutral
     grey to 4.89:1. The contrast against the first numeral (19.55:1) is
     still emphatic, which is what the design needs. */
  --numeral: #70707b;
  --rule: #e8e8ea;

  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -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: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 12px;
  padding: 10px 16px;
  text-decoration: none;
}

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

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

.nameplate { padding: 46px 0 0; }

.nameplate__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--ink);
}

.nameplate__brand { text-decoration: none; min-width: 0; }

.nameplate__wordmark {
  display: block;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 31px);
  line-height: 1.08;
  letter-spacing: -.045em;
  /* Two lines is expected on a longer masthead, not an accident. */
}

.nameplate__aside {
  flex: 0 0 auto;
  text-align: right;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nameplate__date { min-height: 1em; }

.nameplate__nav { margin-top: 7px; font-weight: 500; }
.nameplate__nav a { margin-left: 14px; text-decoration: none; color: var(--muted); }
.nameplate__nav a:hover { color: var(--ink); }
.nameplate__nav a[aria-current="page"] { color: var(--ink); }

.nameplate__tagline {
  margin-top: 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Ordinal rows ──────────────────────────────────────────────────── */

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

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

/* Explicit min-width so three digits never collide with the headline. */
.ordinal__num {
  flex: 0 0 auto;
  min-width: 60px;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--numeral);
  font-variant-numeric: tabular-nums;
}

.ordinal--first .ordinal__num { color: var(--ink); }

.ordinal__main { min-width: 0; }

.ordinal__headline {
  font-weight: 500;
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.3;
  letter-spacing: -.02em;
}

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

.ordinal__date {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

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

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

.site-main { padding-bottom: 30px; }

.post { max-width: 660px; padding-top: 34px; }

.post__dateline {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.post__title {
  font-weight: 700;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.post__subtitle {
  margin-top: 13px;
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--muted);
}

.post__body {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.75;
}

.post__body p { margin: 0 0 1.15em; }
.post__body h2 { font-weight: 700; font-size: 1.22rem; margin: 1.7em 0 .5em; letter-spacing: -.03em; }
.post__body h3 { font-weight: 500; font-size: 1.05rem; margin: 1.5em 0 .45em; }
.post__body a { color: var(--ink); text-decoration: underline; }

.post__body blockquote {
  margin: 1.5em 0;
  padding-left: 20px;
  border-left: 2px solid var(--ink);
  color: var(--muted);
}

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

.citation-card {
  max-width: 660px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

.citation-card__label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.citation-card__source-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: -.02em; }
.citation-card__logo { max-height: 18px; width: auto; }
.citation-card__headline { margin-top: 6px; font-size: 14px; line-height: 1.45; }
.citation-card__date { margin-top: 4px; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.citation-card__cta { margin-top: 10px; font-size: 11px; font-weight: 500; }
.citation-card__cta a { color: var(--ink); text-decoration: underline; }

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

.about { max-width: 660px; padding-top: 34px; }

.about__label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.about__name { font-weight: 700; font-size: clamp(25px, 3.8vw, 33px); line-height: 1.1; letter-spacing: -.045em; }

.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.75; }
.about__bio p { margin: 0 0 1.1em; }

.about__contact { margin-top: 20px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.about__contact a { color: var(--ink); text-decoration: underline; }

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

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--ink);
  padding: 18px 0 48px;
  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; font-size: 14px; letter-spacing: -.03em; text-transform: none; color: var(--ink); }
.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(--ink); }
.site-footer__social { margin-top: 8px; text-align: right; }
.site-footer__copyright { margin-top: 9px; }

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

@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .ordinal { gap: 16px; }
  .ordinal__num { min-width: 54px; }
}

@media (max-width: 700px) {
  .nameplate { padding-top: 34px; }
  .ordinal__num { min-width: 48px; }
}

/* The numeral moves above the headline rather than shrinking into an
   unreadable column. */
@media (max-width: 480px) {
  .ordinal {
    display: block;
    padding: 16px 0;
  }
  .ordinal__num {
    display: block;
    min-width: 0;
    font-size: 26px;
    margin-bottom: 6px;
  }
  .nameplate__row { flex-direction: column; gap: 14px; }
  .nameplate__aside { text-align: left; }
  .nameplate__nav a { margin-left: 0; margin-right: 14px; }
  .about__photo { float: none; display: block; margin: 0 0 16px; }
}
