/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #13111e;
  --purple: #9333ea;
  --pink:   #ec4899;
  --orange: #f97316;
  --blue:   #7c3aed;
  --blue-l: #a855f7;
  --gold:   #f97316;
  --gray-1: #f8fafc;
  --gray-2: #e2e8f0;
  --gray-3: #94a3b8;
  --gray-4: #475569;
  --text:   #1e293b;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(19,17,30,.10);
  --gradient: linear-gradient(90deg, var(--purple), var(--pink), var(--orange));
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-l); text-decoration: underline; }

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

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; }
.container--wide { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Header / Nav ─────────────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  color: #fff;
  padding: .9rem 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.3);
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.nav__logo {
  font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em;
  color: #fff; display: flex; align-items: center; gap: .6rem;
}
.nav__logo img { height: 36px; width: 36px; object-fit: cover; border-radius: 6px; }
.nav__logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav__logo:hover { text-decoration: none; }

.nav__links { display: flex; gap: 1.5rem; list-style: none; }
.nav__links a { color: #cbd5e1; font-size: .9rem; font-weight: 500; }
.nav__links a:hover { color: #fff; text-decoration: none; }

.nav__badge {
  background: var(--gold); color: var(--navy);
  font-size: .7rem; font-weight: 800; padding: .2rem .55rem;
  border-radius: 99px; letter-spacing: .04em; text-transform: uppercase;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e0a3c 60%, #2d0a1e 100%);
  color: #fff; padding: 3.5rem 0 3rem;
}
.hero__tagline {
  font-size: .85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: .75rem;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: inline-block;
}
.hero__title { font-size: 2.1rem; font-weight: 800; line-height: 1.2; margin-bottom: .75rem; }
.hero__sub { font-size: 1.05rem; color: #94a3b8; max-width: 560px; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 2.5rem 0; }
.section__title {
  font-size: 1.1rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--gray-4); margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray-2); padding-bottom: .5rem;
}

/* ── Episode card ─────────────────────────────────────────────────────────── */
.ep-card {
  background: var(--gray-1); border: 1px solid var(--gray-2);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  margin-bottom: 1rem; box-shadow: var(--shadow);
}
.ep-card__date { font-size: .8rem; color: var(--gray-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ep-card__title { font-size: 1.1rem; font-weight: 700; margin: .35rem 0 .5rem; }
.ep-card__meta { font-size: .85rem; color: var(--gray-4); display: flex; gap: 1rem; flex-wrap: wrap; }
.ep-card__topics { margin-top: .75rem; display: flex; gap: .4rem; flex-wrap: wrap; }

/* ── Topic pill ───────────────────────────────────────────────────────────── */
.pill {
  display: inline-block; font-size: .75rem; font-weight: 600;
  padding: .2rem .6rem; border-radius: 99px;
  background: var(--gray-2); color: var(--gray-4);
}
.pill--accroche  { background: #fef3c7; color: #92400e; }
.pill--crescendo { background: #dbeafe; color: #1e40af; }
.pill--fond      { background: #ede9fe; color: #5b21b6; }
.pill--cloture   { background: #d1fae5; color: #065f46; }

/* ── Audio player ─────────────────────────────────────────────────────────── */
.audio-player {
  background: var(--navy); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin: 1.5rem 0; color: #fff;
}
.audio-player__label { font-size: .8rem; color: var(--gray-3); margin-bottom: .6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.audio-player audio { width: 100%; accent-color: var(--gold); }

/* ── Article card ─────────────────────────────────────────────────────────── */
.article-card {
  border: 1px solid var(--gray-2); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin-bottom: 1rem;
  transition: box-shadow .15s; box-shadow: var(--shadow);
}
.article-card:hover { box-shadow: 0 4px 24px rgba(15,23,42,.12); }
.article-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.article-card__lead { font-size: .9rem; color: var(--gray-4); margin-bottom: .75rem; line-height: 1.5; }
.article-card__meta { display: flex; align-items: center; gap: .75rem; font-size: .8rem; color: var(--gray-3); flex-wrap: wrap; }
.article-card__tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .5rem; }
.tag { font-size: .72rem; background: var(--gray-2); color: var(--gray-4); padding: .15rem .5rem; border-radius: 4px; }

/* ── Premium badge ────────────────────────────────────────────────────────── */
.badge-premium {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--gradient); color: #fff;
  font-size: .7rem; font-weight: 800; padding: .2rem .55rem;
  border-radius: 4px; text-transform: uppercase; letter-spacing: .05em;
}

/* ── Article full ─────────────────────────────────────────────────────────── */
.article-header { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--gray-2); margin-bottom: 2rem; }
.article-header__title { font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: .75rem; }
.article-header__meta { font-size: .85rem; color: var(--gray-4); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.article-lead { font-size: 1.15rem; line-height: 1.7; color: var(--gray-4); margin-bottom: 2rem; font-style: italic; border-left: 3px solid var(--blue); padding-left: 1rem; }

.article-body h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--navy); }
.article-body p { margin-bottom: 1rem; line-height: 1.75; }

.takeaways {
  background: var(--gray-1); border: 1px solid var(--gray-2);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 2rem 0;
}
.takeaways__title { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--gray-4); margin-bottom: .75rem; }
.takeaways ul { padding-left: 1.25rem; }
.takeaways li { margin-bottom: .4rem; font-size: .95rem; }

.sources {
  border-top: 1px solid var(--gray-2); margin-top: 2.5rem; padding-top: 1.5rem;
}
.sources__title { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--gray-4); margin-bottom: .75rem; }
.sources ul { padding-left: 1.25rem; }
.sources li { margin-bottom: .35rem; font-size: .9rem; }

/* ── Episodes list page ───────────────────────────────────────────────────── */
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

/* ── Empty state ──────────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 4rem 1rem; color: var(--gray-3); }
.empty__icon { font-size: 3rem; margin-bottom: 1rem; }
.empty__text { font-size: 1rem; }

/* ── About ────────────────────────────────────────────────────────────────── */
.about-section { max-width: 680px; margin: 3rem auto; }
.about-section h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.about-section p { margin-bottom: 1rem; line-height: 1.75; color: var(--gray-4); }
.cta-premium {
  background: linear-gradient(135deg, var(--navy) 0%, #1e0a3c 100%);
  color: #fff; border-radius: var(--radius); padding: 2rem;
  margin-top: 2.5rem; text-align: center;
}
.cta-premium h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.cta-premium p { color: #94a3b8; margin-bottom: 1.25rem; }
.cta-btn {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-weight: 700; padding: .65rem 1.5rem; border-radius: 6px;
  font-size: .95rem; cursor: not-allowed; opacity: .7;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy); color: #475569;
  padding: 2rem 0; margin-top: 4rem; text-align: center; font-size: .85rem;
}
.site-footer a { color: #64748b; }
.site-footer a:hover { color: #94a3b8; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero__title { font-size: 1.5rem; }
  .article-header__title { font-size: 1.4rem; }
  .nav__links { gap: .75rem; }
}
