/* Am I Too Late? — shared stylesheet
   Purple sampled from the animated logo waveform (#AA53E5 → #6F36E3).
   Interactive elements use the darker end for contrast (6.3:1 on white). */

:root {
  --bg: #FBFAF7;
  --ink: #201A2B;
  --ink-soft: #575065;
  --accent: #6F36E3;
  --accent-dark: #5828BE;
  --accent-bright: #AA53E5;
  --accent-wash: #F3ECFD;
  --line: #E4E1DA;
  --white: #FFFFFF;
  --max: 1080px;
  --radius: 12px;
  --font: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

/* ---------- Hero logo ---------- */

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-split > div > :first-child { margin-top: 0; }

.hero-logo {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 0 0 auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}

@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .hero-split .logo-col { order: -1; }
  .hero-logo { max-width: 220px; margin: 0 auto; }
}

.hero-logo-static { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-logo { display: none; }
  .hero-logo-static { display: block; }
}

/* ---------- Type ---------- */

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

/* The line where the page turns from reassurance to invitation —
   sits between the lead paragraph and the buttons. */
/* Two short lines that bracket the lead paragraph — matched in size and
   colour so they read as one thought, not two. */
.kicker {
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--accent);
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}

.hero h1 + .kicker { margin-top: 6px; }

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
  line-height: 1.35;
}

p { margin: 0 0 18px; }

.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}

a { color: var(--accent); }

/* ---------- Sections ---------- */

section { padding: 72px 0; }

section.tight { padding: 48px 0; }

section.wash { background: var(--accent-wash); }

.hero { padding: 88px 0 72px; }

/* When a hero flows straight into continuous prose rather than a new
   kind of section, collapse the doubled padding between them. */
.hero.flows { padding-bottom: 24px; }
section.flows-on { padding-top: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn.ghost {
  background: transparent;
  color: var(--accent);
}

.btn.ghost:hover { background: var(--accent-wash); }

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- Screenshots & images ---------- */

figure { margin: 0 0 18px; }

.shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

figure.shot-wide {
  max-width: 860px;
  margin: 8px auto 0;
}

figcaption {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 10px;
  text-align: center;
}

.card .shot {
  margin-bottom: 18px;
  border-radius: 8px;
}

.split {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.split .shot { border-radius: var(--radius); }

.slide {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.slides {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  margin: 32px 0 0;
}

@media (max-width: 760px) {
  .slides { grid-template-columns: 1fr; }
}

.portrait {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: block;
  margin: 0 0 24px;
}

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .portrait { width: 140px; height: 140px; }
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 { margin-top: 0; }

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

.card .meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

/* ---------- Episode list ---------- */

.episode {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: start;
}

.episode:last-child { border-bottom: none; }

.episode > .body > :first-child { margin-top: 0; }

.thumb {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}

@media (max-width: 560px) {
  .episode { grid-template-columns: 92px 1fr; gap: 16px; }
}

.episode .num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.episode h3 { margin: 6px 0 8px; }

.episode p { margin-bottom: 12px; color: var(--ink-soft); }

.episode .links a {
  font-size: 0.9rem;
  margin-right: 18px;
  text-decoration: none;
}

.episode .links a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 48px 0 64px;
  margin-top: 32px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

footer.site .cols {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 32px;
}

footer.site h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 0 0 12px;
}

footer.site ul { list-style: none; margin: 0; padding: 0; }

footer.site li { margin-bottom: 8px; }

footer.site a { color: var(--ink-soft); text-decoration: none; }

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

.disclaimer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 0.85rem;
  max-width: 70ch;
}

/* ---------- Utilities ---------- */

.centre { text-align: center; }
.centre .lead { margin-left: auto; margin-right: auto; }
.centre .btn-row { justify-content: center; }

.tag {
  display: inline-block;
  background: var(--accent-wash);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 28px; }
  .nav { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 22px; padding-bottom: 22px; }
  .nav-links { gap: 20px 22px; }
  section { padding: 52px 0; }
  .hero { padding: 56px 0 44px; }
  .hero-logo { width: 170px; margin: 0 auto 20px; }
  .btn { padding: 13px 22px; }
}
