/* The Engineering Commute — site styles
   Colors are pulled from the cover art: night-sky navy and sunset gold. */

:root {
  --navy-900: #0b1422;
  --navy-800: #0e1828;
  --navy-700: #15233a;
  --navy-600: #1d2f4d;
  --line: rgba(255, 255, 255, 0.10);
  --text: #eef2f8;
  --muted: #a9b5c8;
  --gold: #f4b544;
  --gold-deep: #e8962e;
  --radius: 14px;
  --wrap: 1080px;
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); }
a:hover { color: #ffd27f; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  background: linear-gradient(180deg, #0a1220 0%, #12203a 55%, #1c2b47 100%);
  border-bottom: 1px solid var(--line);
}

.hero__glow {
  position: absolute;
  left: 50%;
  bottom: -340px;
  width: 1100px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(244, 181, 68, 0.38), rgba(232, 150, 46, 0.12) 55%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero__art {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero h1 span { color: var(--gold); }

.lede {
  margin: 20px 0 28px;
  max-width: 34em;
  font-size: 19px;
  color: #d6deea;
}

.listen { display: flex; flex-wrap: wrap; gap: 12px; }

.listen-note { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); transform: translateY(-1px); }

.btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1206;
}
.btn--primary:hover { background: #ffc965; border-color: #ffc965; color: #1a1206; }

.btn--ghost { background: transparent; }

.btn--small { min-height: 38px; padding: 0 18px; font-size: 14px; }

/* ---------- Promise strip ---------- */
.promise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 64px;
  padding-bottom: 24px;
}

.promise__item {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--navy-800);
  border: 1px solid var(--line);
}

.promise__item h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.promise__item p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Episodes ---------- */
.episodes { padding-top: 56px; padding-bottom: 24px; }

.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; }
.section-head p { margin: 8px 0 0; color: var(--muted); }

.episode-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.episode {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--navy-800);
  border: 1px solid var(--line);
}

.episode.is-out { border-color: rgba(244, 181, 68, 0.45); background: linear-gradient(135deg, #172640 0%, var(--navy-800) 60%); }

.episode__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.22);
}
.episode.is-out .episode__num { color: var(--gold); }

.episode__meta {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.episode h3 { font-size: 21px; font-weight: 700; }

.episode__desc { margin: 8px 0 14px; color: #c9d3e1; max-width: 46em; }

.episode__action { display: flex; flex-wrap: wrap; gap: 10px; }

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
}
.badge--out { color: #1a1206; background: var(--gold); border-color: var(--gold); }

/* ---------- About ---------- */
.about { padding-top: 56px; padding-bottom: 80px; }

.about__card {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--navy-700);
  border: 1px solid var(--line);
  max-width: 760px;
}
.about__card h2 { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.about__card p { margin: 0 0 14px; color: #d0d9e6; }
.about__card p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer p { margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .hero { padding: 40px 0 56px; }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__art { max-width: 300px; }
  .lede { font-size: 17px; }
  .promise { grid-template-columns: 1fr; padding-top: 40px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .listen .btn { flex: 1 1 100%; }
  .episode { grid-template-columns: 1fr; gap: 6px; padding: 20px; }
  .episode__num { font-size: 28px; }
  .about__card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
