/* ============================================================
   Africa Built — shared design system
   ------------------------------------------------------------
   This one file styles every page (home, episodes, about).
   You normally do NOT need to touch this file to add content
   or change wording — see README.md.
   ============================================================ */

:root {
  --navy: #12162c;       /* primary brand / headings */
  --magenta: #d6177a;    /* accent (eyebrows, links, timestamps) */
  --gray: #6b6f7a;       /* secondary text */
  --body-text: #33363f;  /* body copy */
  --divider: #ececef;    /* hairline rules */
  --bg: #ffffff;         /* background */
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ---- Header / brand -------------------------------------- */
/* The logo image already contains the "AFRICA BUILT" wordmark,
   so we show the image alone (no duplicate text wordmark). */

.site-header {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

/* Large brand on the homepage */
.brand-logo {
  height: 88px;
  width: auto;
}

/* Compact, clickable brand on inner pages (episode / about) */
.brand-logo--compact {
  height: 52px;
  width: auto;
}

.tagline {
  font-size: 15px;
  color: var(--gray);
  margin: 0 0 22px;
  line-height: 1.6;
}

/* ---- Episode list (homepage) ----------------------------- */

.episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--divider);
}

.episode-row {
  border-bottom: 1px solid var(--divider);
}

.row-link {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  padding: 22px 0;
}

.ep-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--navy);
  opacity: 0.14;
  line-height: 1;
  min-width: 64px;
}

.player-caption {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #999;
  margin: 8px 0 0;
}

.ep-num--logo {
  opacity: 1;
}

.ep-num--logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.ep-content {
  flex: 1;
  min-width: 0;
  display: block;
}

.ep-meta {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 6px;
}

.ep-title {
  display: block;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 5px;
  line-height: 1.4;
  color: var(--navy);
}

.ep-teaser {
  display: block;
  font-size: 14px;
  color: var(--gray);
  margin: 0;
  line-height: 1.5;
}

.ep-arrow {
  font-size: 15px;
  color: var(--navy);
  align-self: center;
  flex-shrink: 0;
}

/* ---- Episode page ---------------------------------------- */

.back-link {
  font-size: 13px;
  color: var(--gray);
  display: inline-block;
  margin-bottom: 24px;
}

.back-link:hover {
  color: var(--navy);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 10px;
}

.ep-page-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 14px;
}

.ep-page-teaser {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.6;
  margin: 0 0 22px;
}

.tags-line {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 26px;
}

/* ---- Audio player (placeholder until real embed) --------- */

.player {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  margin-bottom: 34px;
}

.player-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.player-btn svg {
  width: 14px;
  height: 14px;
}

.player-track {
  flex: 1;
  height: 3px;
  background: var(--divider);
  border-radius: 2px;
  position: relative;
}

.player-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 18%;
  background: var(--magenta);
  border-radius: 2px;
}

.player-time {
  font-size: 12px;
  color: var(--gray);
  white-space: nowrap;
}

/* Real Spotify/Apple embeds get wrapped in this when present */
.player-embed {
  margin-bottom: 34px;
}

.player-embed iframe {
  width: 100%;
  border: none;
}

/* ---- Show-note sections ---------------------------------- */

.ep-subtitle {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 18px;
}

.section-heading {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 12px;
}

.section-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--body-text);
  margin: 0 0 30px;
}

.section-body p {
  margin: 0 0 16px;
}

.section-body a {
  color: var(--magenta);
  text-decoration: underline;
}

.section-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin: 32px 0 10px;
}

.section-body h3:first-child {
  margin-top: 0;
}

.section-body p:last-child {
  margin-bottom: 0;
}

/* Key moments */

.moments-list {
  margin: 0 0 30px;
}

.moment-row {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--divider);
}

.moment-row:last-child {
  border-bottom: none;
}

.timestamp {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  color: var(--magenta);
  min-width: 46px;
}

.moment-text {
  font-size: 15px;
  color: var(--body-text);
}

/* Resources */

.resources-list {
  font-size: 15px;
  line-height: 1.85;
  color: var(--body-text);
  margin: 0 0 30px;
  padding-left: 18px;
}

.resources-list a {
  color: var(--magenta);
  text-decoration: underline;
}

.resources-list a:hover {
  color: var(--navy);
}

/* ---- Episode prev/next nav ------------------------------- */

.nav-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--divider);
  padding-top: 18px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--gray);
}

.nav-footer a:hover {
  color: var(--navy);
}

.nav-footer .disabled {
  opacity: 0.4;
}

/* ---- About page ------------------------------------------ */

.page-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 22px;
}

.about-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--body-text);
}

.about-body p {
  margin: 0 0 18px;
}

.about-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 32px 0 8px;
  display: block;
}

.signature {
  font-family: 'Marck Script', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  display: inline-block;
}

.about-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 40px 0 12px;
}

.about-body h2:first-child {
  margin-top: 0;
}

.about-body a {
  color: var(--magenta);
  text-decoration: underline;
}

.about-body .disclaimer,
.section-body .disclaimer {
  font-size: 13px;
  color: #888;
  border-top: 1px solid #e5e5e5;
  padding-top: 20px;
  margin-top: 32px;
  line-height: 1.6;
}

.credit-line {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--navy);
  margin: 30px 0;
  padding: 16px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

/* Listen / follow links — text links with circular brand icon badges */
.listen-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 4px 0 0;
}

.listen-links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--magenta);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.listen-links a:hover {
  border-bottom-color: var(--magenta);
}

.listen-links--episode {
  margin-bottom: 30px;
}

/* Hero variant — compact row under the episode title/tags */
.listen-links--hero {
  gap: 14px 18px;
  margin: 14px 0 6px;
}

.listen-links--hero a {
  font-size: 12px;
}

/* Circular brand icon badges after each listen/follow link */
.listen-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.listen-icon img {
  width: 11px;
  height: 11px;
  display: block;
}

.listen-icon--spotify   { background: #1db954; }
.listen-icon--apple     { background: #9933cc; }
.listen-icon--youtube   { background: #ff0000; }
.listen-icon--amazon    { background: #25d1da; }
.listen-icon--iheart    { background: #c6002b; }
.listen-icon--deezer    { background: #a238ff; }
.listen-icon--instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.listen-icon--threads   { background: #000000; }
.listen-icon--x         { background: #0f1419; }
.listen-icon--tiktok    { background: #010101; }

/* ---- Site footer ----------------------------------------- */

.site-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  font-size: 13px;
  color: var(--gray);
}

.site-footer p {
  margin: 0;
}

.footer-listen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 6px;
  row-gap: 10px;
  text-align: center;
}

.footer-production {
  text-align: center;
  margin-top: 16px !important;
  color: var(--navy);
}

.footer-production a.brand-nadd {
  color: #160e79;
}

.footer-production a.brand-fie {
  color: #e01998;
}

.footer-about {
  text-align: center;
  margin-top: 16px !important;
}

.footer-about a {
  color: var(--navy);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--navy);
}

/* ---- Responsive ------------------------------------------ */

@media (max-width: 480px) {
  .container {
    padding: 32px 16px 64px;
  }
  .ep-page-title,
  .page-title {
    font-size: 24px;
  }
  .ep-num {
    font-size: 30px;
    min-width: 44px;
  }
  .brand-logo {
    height: 72px;
  }

  /* Listen/follow links: keep each label + badge together and
     wrap naturally with even spacing on phones */
  .listen-links {
    gap: 12px 20px;
  }
  .listen-links a {
    white-space: nowrap;
  }
  .listen-links--hero {
    gap: 10px 16px;
  }

  /* Footer platform list: centered natural wrap, no dot separators */
  .footer-listen {
    column-gap: 14px;
    row-gap: 12px;
  }
  .footer-listen a {
    white-space: nowrap;
  }
  .footer-listen .sep {
    display: none;
  }
  .footer-listen-label {
    flex-basis: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
