/* Article page styles — Yinka Adegbusi
   Loaded by all individual article pages in /articles/.
   Mirrors the main design system tokens used across the site. */

:root {
  --navy:        #00203F;
  --navy-deep:   #001528;
  --navy-mid:    #0A3560;
  --navy-pale:   #E8F0F8;
  --mint:        #36ECDE;
  --mint-dark:   #0D9E93;
  --mint-mid:    #20C9BC;
  --mint-pale:   #E8FAF9;
  --graphite:    #2F2F2F;
  --soft-gray:   #F2F4F6;
  --off-white:   #F8FAFB;
  --white:       #FFFFFF;
  --muted:       #6B7280;
  --rule:        #DDE2E7;
  --rule-soft:   #EEF1F4;

  --serif: "Libre Baskerville", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 96px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--graphite);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ───────── Eyebrow ───────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mint-dark);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: ""; width: 32px; height: 1px;
  background: var(--mint-dark); display: inline-block;
}
.eyebrow.on-navy { color: var(--mint); }
.eyebrow.on-navy::before { background: var(--mint); }

/* ───────── Nav ───────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--navy); color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__inner {
  max-width: 1320px; margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--white);
  display: inline-flex; align-items: center; gap: 10px;
}
.brand__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(54,236,222,0.18); }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.78);
  transition: color 160ms ease;
  position: relative; padding: 6px 0;
}
.nav__links a:hover { color: var(--mint); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--mint);
}
.nav__links a[aria-current="page"] { color: var(--white); }
.nav__menu-btn { display: none; }
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__menu-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; border: 1px solid rgba(255,255,255,0.2);
    color: var(--white); font-family: var(--sans);
    font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; padding: 8px 14px;
    border-radius: 999px; cursor: pointer;
  }
}

/* ───────── Article hero ───────── */
.article-hero {
  background: var(--navy);
  color: var(--white);
  padding: calc(96px + 64px) var(--gutter) clamp(72px, 8vw, 112px);
  position: relative;
  overflow: hidden;
}
.article-hero__inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.article-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 36px;
  transition: color 160ms ease, gap 180ms ease;
}
.article-hero__back:hover { color: var(--mint); gap: 14px; }
.article-hero__topic-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.article-hero__topic {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
  background: var(--mint);
  padding: 7px 12px;
  border-radius: 2px;
  white-space: nowrap;
}
.article-hero__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(255,255,255,0.45);
}
.article-hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--white);
  margin: 0;
  text-wrap: balance;
}
.article-hero__title em { font-style: italic; font-weight: 400; color: rgba(255,255,255,0.7); }
.article-hero__meta {
  margin-top: 36px;
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.article-hero__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy-mid);
  overflow: hidden;
  flex-shrink: 0;
}
.article-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-hero__byline {
  display: flex; flex-direction: column; gap: 2px;
}
.article-hero__author {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}
.article-hero__details {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.article-hero__details .sep { padding: 0 8px; color: rgba(255,255,255,0.3); }

/* Decorative mint rings — match other navy heroes */
.article-hero__deco {
  position: absolute;
  right: -220px;
  bottom: -260px;
  width: 640px;
  height: 640px;
  pointer-events: none;
  z-index: 1;
}
.article-hero__deco svg { width: 100%; height: 100%; }
.article-hero__deco circle { fill: none; stroke: var(--mint); stroke-width: 1; }
@media (max-width: 820px) {
  .article-hero__deco { right: -300px; bottom: -340px; width: 520px; height: 520px; }
}

/* ───────── Article body ───────── */
.article-body {
  padding: clamp(72px, 8vw, 120px) var(--gutter) clamp(72px, 8vw, 120px);
  background: var(--white);
}
.article-body__inner {
  max-width: 720px;
  margin: 0 auto;
}
.article-body p,
.article-body h2,
.article-body hr,
.article-body blockquote,
.article-body ul,
.article-body ol {
  max-width: 64ch;
  margin-left: 0;
}
.article-body p {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.72;
  color: var(--graphite);
  margin: 0 0 28px;
  text-wrap: pretty;
}
.article-body p.lede {
  font-size: 22px;
  line-height: 1.5;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 36px;
  letter-spacing: -0.005em;
}
.article-body strong { color: var(--navy); font-weight: 600; }
.article-body em { font-style: italic; }

.article-body h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.22;
  color: var(--navy);
  margin: 56px 0 22px;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.article-body h2:first-child { margin-top: 0; }
.article-body hr {
  border: none;
  margin: 56px 0;
  height: 1px;
  background: var(--rule);
  width: 64px;
}
.article-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  color: var(--navy);
  margin: 36px 0;
  padding-left: 28px;
  position: relative;
  letter-spacing: -0.005em;
  max-width: 38ch;
  text-wrap: pretty;
}
.article-body blockquote::before {
  content: "";
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 2px;
  background: var(--mint-dark);
}

/* ───────── Author bio ───────── */
.article-bio {
  background: var(--soft-gray);
  padding: clamp(64px, 7vw, 96px) var(--gutter);
}
.article-bio__inner {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: start;
}
.article-bio__avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--navy-mid);
  overflow: hidden;
  position: relative;
}
.article-bio__avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-bio__avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--mint);
  pointer-events: none;
}
.article-bio__text { display: flex; flex-direction: column; gap: 12px; }
.article-bio__label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mint-dark);
}
.article-bio__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.012em;
}
.article-bio__desc {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--graphite);
  margin: 0;
  max-width: 60ch;
  text-wrap: pretty;
}
.article-bio__cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--mint-mid);
  align-self: flex-start;
  transition: gap 180ms ease, color 180ms ease;
}
.article-bio__cta:hover { gap: 14px; color: var(--mint-dark); }
@media (max-width: 600px) {
  .article-bio__inner { grid-template-columns: 1fr; gap: 20px; }
  .article-bio__avatar { width: 80px; height: 80px; }
}

/* ───────── Related articles ───────── */
.related {
  background: var(--white);
  padding: clamp(72px, 8vw, 112px) var(--gutter);
  border-top: 1px solid var(--rule);
}
.related__inner { max-width: 1320px; margin: 0 auto; }
.related__head {
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: 48px;
}
.related__head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.related-card {
  background: var(--white);
  padding: 32px 28px 28px;
  border: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 220ms ease, transform 220ms ease;
  min-height: 220px;
}
.related-card:hover { border-color: var(--mint-mid); transform: translateY(-3px); }
.related-card__topic {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint-dark);
  font-weight: 600;
}
.related-card__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.related-card__readtime {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 12px;
  letter-spacing: 0.04em;
}
@media (max-width: 1024px) {
  .related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .related__grid { grid-template-columns: 1fr; }
}

/* ───────── Footer ───────── */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 96px var(--gutter) 40px;
}
.footer__inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 64px;
}
.footer__brand-name {
  font-family: var(--serif); font-weight: 700;
  color: var(--white); font-size: 28px;
  margin: 0 0 14px; letter-spacing: -0.01em;
}
.footer__brand-name .dot { color: var(--mint); }
.footer__pos {
  font-family: var(--sans); font-size: 15px; line-height: 1.6;
  color: rgba(255,255,255,0.6); max-width: 42ch; margin: 0;
}
.footer__col h4 {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600; color: var(--mint);
  margin: 0 0 22px;
}
.footer__col ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.footer__col a {
  font-size: 14px; color: rgba(255,255,255,0.7);
  transition: color 160ms ease;
}
.footer__col a:hover { color: var(--mint); }
.footer__bottom {
  max-width: 1320px; margin: 72px auto 0;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 12px;
  color: rgba(255,255,255,0.4); letter-spacing: 0.02em;
}
.footer__foundry {
  color: rgba(255,255,255,0.55);
  border-bottom: 1px dashed rgba(54,236,222,0.4);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}
.footer__foundry:hover { color: var(--mint); border-bottom-color: var(--mint); }
@media (max-width: 820px) {
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer { padding-top: 64px; }
}

::selection { background: var(--mint); color: var(--navy); }
