/* AfriDev — static site for GitHub Pages */
:root {
  --bg: #f6f3ec;
  --bg-deep: #ebe6dc;
  --ink: #1c1917;
  --muted: #57534e;
  --brand: #1a3c34;
  --brand-light: #245a4e;
  --accent: #c45c26;
  --accent-soft: rgba(196, 92, 38, 0.12);
  --card: #fffcf7;
  --border: rgba(28, 25, 23, 0.1);
  --shadow: 0 24px 48px rgba(28, 25, 23, 0.08);
  --radius: 12px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --step--1: clamp(0.9rem, 0.85rem + 0.2vw, 0.95rem);
  --step-0: clamp(1rem, 0.95rem + 0.35vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1rem + 0.55vw, 1.25rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem);
  --step-5: clamp(2.35rem, 1.75rem + 2.4vw, 3.25rem);
  --space: clamp(3rem, 6vw, 5rem);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.inner {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.narrow {
  max-width: 640px;
}

.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand) 0%, #0f261f 100%);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.logo-tag {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.25;
  max-width: min(200px, 48vw);
}

@media (min-width: 480px) {
  .logo-tag {
    font-size: var(--step--1);
    max-width: min(280px, 52vw);
  }
}

@media (min-width: 720px) {
  .logo-tag {
    max-width: none;
    white-space: nowrap;
  }
}

.site-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Desktop: expanded labels. Mobile menu: original short labels only. */
.site-nav .nav-list--desktop {
  display: flex;
}

.site-nav .nav-list--mobile {
  display: none;
}

@media (max-width: 768px) {
  .site-nav .nav-list--desktop {
    display: none;
  }

  .site-nav .nav-list--mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--step--1);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(246, 243, 236, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem min(1120px, 92vw);
    padding-top: 0.5rem;
    padding-bottom: 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav a {
    display: block;
    padding: 0.65rem 0;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: var(--space) 0 calc(var(--space) + 1rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(36, 90, 78, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(196, 92, 38, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.lead {
  font-size: var(--step-1);
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 38em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--brand);
  color: #faf8f5;
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: rgba(26, 60, 52, 0.35);
}

.btn-ghost:hover {
  background: rgba(26, 60, 52, 0.06);
}

/* Sections */
.section {
  padding: var(--space) 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.section .narrow h2 {
  color: var(--ink);
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: var(--step-1);
}

.prose {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.prose:last-child {
  margin-bottom: 0;
}

.drop-cap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 0.85;
  padding-right: 0.45rem;
  padding-top: 0.1rem;
  color: var(--brand);
}

/* Cards */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
  color: var(--brand);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--step--1);
}

.card-span {
  grid-column: 1 / -1;
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, #fffcf7 0%, var(--accent-soft) 100%);
}

@media (min-width: 900px) {
  .card-span {
    grid-column: span 2;
  }
}

/* Governance split */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1fr minmax(260px, 340px);
    gap: 3rem;
  }
}

.split-text h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  margin: 0 0 1rem;
  color: var(--ink);
}

.facts {
  margin: 1.75rem 0 0;
}

.facts div {
  margin-bottom: 1.25rem;
}

.facts dt {
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.facts dd {
  margin: 0;
  color: var(--muted);
}

.callout {
  background: var(--brand);
  color: #e8f0ec;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  font-size: var(--step--1);
  line-height: 1.6;
  box-shadow: var(--shadow);
}

.callout p {
  margin: 0;
}

/* Contact */
.section-contact {
  padding-bottom: calc(var(--space) + 1rem);
}

.contact-panel {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

@media (min-width: 720px) {
  .contact-panel {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    padding: 3rem;
  }
}

.contact-copy h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  margin: 0 0 1rem;
  color: var(--ink);
}

.contact-details {
  font-style: normal;
  font-size: var(--step-1);
  line-height: 1.7;
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-deep);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-details p {
  margin: 0 0 0.85rem;
}

.contact-details p:last-child {
  margin-bottom: 0;
}

.contact-details a {
  color: var(--brand);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  background: #ebe6dc;
}

.footer-inner {
  text-align: center;
}

.footer-nav {
  margin-bottom: 1.25rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  align-items: center;
}

.footer-nav a {
  color: var(--brand);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(196, 92, 38, 0.5);
}

.footer-copy,
.footer-note {
  margin: 0;
  font-size: var(--step--1);
  color: var(--muted);
}

.footer-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}
