/* ============================================================
   LUSAKA BRIEF — Editorial design system
   Paper / ink / Zambia green / copper
   ============================================================ */

:root {
  --paper: #f6f3ec;
  --paper-deep: #efeade;
  --ink: #191914;
  --ink-soft: #3c3a33;
  --muted: #6f6a5c;
  --line: #dcd5c3;
  --green: #173f2f;
  --green-deep: #0f2d21;
  --copper: #b4551f;
  --red: #a31621;
  --white: #ffffff;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green-deep);
  color: #e9e4d6;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar .dateline { text-transform: uppercase; }
.topbar .edition { color: #b7ad93; }
.topbar .edition strong { color: #f0c660; font-weight: 600; }

/* ---------- Masthead ---------- */
.masthead {
  border-bottom: 3px double var(--line);
  background: var(--paper);
}
.masthead-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 24px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand-mark { width: 62px; height: 62px; flex: none; }
.brand-word {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(34px, 5.4vw, 54px);
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.brand-word span { color: var(--green); }
.brand-tag {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Nav ---------- */
.navbar {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 13px 14px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.nav-inner a:hover { color: var(--green); border-bottom-color: var(--copper); }
.nav-inner a.active { color: var(--green); border-bottom-color: var(--green); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 44px 0 20px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Lead story ---------- */
.lead {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  padding: 36px 0 8px;
  align-items: start;
}
.lead-media { position: relative; }
.lead-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}
.lead-media figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
}
.kicker .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.lead h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 12px 0 14px;
}
.lead h1 a { text-decoration: none; }
.lead h1 a:hover { color: var(--green); }
.lede {
  font-size: 17.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 58ch;
}
.byline {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.byline strong { color: var(--ink); font-weight: 600; }
.byline .sep { color: var(--line); }
.read-story {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  border-bottom: 2px solid var(--copper);
  padding-bottom: 3px;
}
.read-story svg { transition: transform .15s; }
.read-story:hover svg { transform: translateX(4px); }

/* ---------- Card grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s, transform .18s;
}
.card:hover { box-shadow: 0 10px 30px rgba(25,25,20,.08); transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card .tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.card h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.22;
  margin: 8px 0 10px;
}
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--green); }
.card p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.card .byline { margin-top: 14px; }

/* ---------- Opinion ---------- */
.opinion-band {
  margin-top: 52px;
  background: var(--green-deep);
  color: #ede8da;
  padding: 52px 0 56px;
}
.opinion-band .section-label { color: #f0c660; margin-top: 0; }
.opinion-band .section-label::after { background: rgba(237,232,218,.25); }
.op-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.op-piece { border-top: 2px solid var(--copper); padding-top: 18px; }
.op-piece .tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9bd97;
}
.op-piece h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 10px 0 10px;
}
.op-piece p { font-size: 14.5px; color: #cfc8b2; line-height: 1.65; }
.op-author {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.op-author .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #f0c660;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  flex: none;
}
.op-author .name { font-size: 13.5px; font-weight: 600; color: #f2eee1; }
.op-author .role { font-size: 12px; color: #a99f82; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 56px;
  border-top: 3px double var(--line);
  background: var(--paper-deep);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer .brand-mark { width: 44px; height: 44px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand .fname { font-family: var(--serif); font-weight: 800; font-size: 20px; }
.footer-brand .fname span { color: var(--green); }
.footer-brand p { font-size: 12.5px; color: var(--muted); max-width: 38ch; }
.footer-note { font-size: 12.5px; color: var(--muted); max-width: 46ch; line-height: 1.7; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--paper);
  transition: background .15s, color .15s;
}
.socials a:hover { background: var(--green); color: #fff; }
.copyright {
  border-top: 1px solid var(--line);
  padding: 16px 24px 22px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  background: var(--paper-deep);
}

/* ---------- Article page ---------- */
.article-hero { padding: 40px 0 0; }
.article-head { max-width: 760px; margin: 0 auto; }
.article-head h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 14px 0 16px;
}
.article-head .standfirst {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
}
.article-figure { max-width: 940px; margin: 34px auto 0; }
.article-figure img { width: 100%; border-radius: 4px; }
.article-figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  border-left: 3px solid var(--copper);
  padding-left: 12px;
}
.article-body {
  max-width: 700px;
  margin: 38px auto 0;
  font-size: 17px;
  line-height: 1.78;
  color: #26251f;
}
.article-body p { margin-bottom: 22px; }
.article-body > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 56px;
  line-height: .9;
  float: left;
  margin: 6px 10px 0 0;
  color: var(--green);
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin: 34px 0 14px;
  color: var(--ink);
}
.article-body blockquote {
  margin: 30px 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--copper);
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  line-height: 1.5;
  color: var(--green-deep);
}
.factbox {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 6px;
  padding: 22px 24px;
  margin: 32px 0;
  font-size: 14.5px;
}
.factbox h3 {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.factbox ul { padding-left: 20px; }
.factbox li { margin-bottom: 8px; line-height: 1.6; }
.timeline { margin: 28px 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.timeline-item .t-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper);
}
.timeline-item p { font-size: 15px; margin: 0; }
.editor-note {
  background: #fbf3e4;
  border: 1px solid #eadfc2;
  border-radius: 6px;
  padding: 18px 20px;
  font-size: 13.5px;
  color: #6b5d33;
  margin: 34px 0;
  line-height: 1.65;
}
.editor-note strong { color: #4d4223; }

/* ---------- Utility ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-top: 24px;
}
.back-link:hover { color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lead { grid-template-columns: 1fr; gap: 24px; }
  .grid-3, .op-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-3, .op-grid { grid-template-columns: 1fr; }
  .masthead-inner { padding: 22px 20px 18px; }
  .brand-mark { width: 50px; height: 50px; }
  .wrap, .topbar-inner, .nav-inner { padding-left: 20px; padding-right: 20px; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { flex-direction: column; }
}
