/* UCF VLP Presents: US Marine Corps History
   Shared stylesheet
   Light theme, universal (web-safe) fonts, WCAG AA contrast. */

:root {
  --bg: #ffffff;
  --bg-2: #faf7f0;
  --surface: #f5f1e8;
  --surface-2: #efe9dc;
  --text: #000000;        /* darkest black, all primary text */
  --muted: #000000;       /* secondary text unified to black for consistency */
  --accent: #A50034;      /* official USMC red: bars, borders, large numerals (white text ~7.9:1) */
  --accent-ink: #A50034;  /* USMC red for TEXT/links (~7.9:1 on white, AA) */
  --accent-soft: #A50034;
  --ink: #23201a;         /* dark button background */
  --line: #e2dac9;
  --max: 1080px;
  --radius: 0;
  --display: Arial, "Helvetica Neue", Helvetica, "Segoe UI", Roboto, sans-serif;
  --body: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Offset anchor targets so the sticky header doesn't cover them */
[id] { scroll-margin-top: 90px; }

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

a { color: var(--accent-ink); transition: color 0.15s; }
a:hover { color: var(--text); }

/* Series title emphasis wherever it appears in body text */
cite { font-style: italic; }

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

h1, h2, h3, .brand, .eyebrow, .ep-num, .btn, .nav-links a, .duration {
  font-family: var(--display);
}

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

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--text);
  border-top: 4px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--accent-ink); }

.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-links a:hover { color: var(--accent-ink); }
.nav-links a[aria-current="page"] { color: var(--accent-ink); }
.nav-links li.ext { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.nav-links li.ext a { color: var(--accent-ink); }
.nav-links li.ext a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0;
}
.hero .cover {
  border-radius: var(--radius);
  width: 100%;
  border: 1px solid var(--line);
}
.hero h1 {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.75rem;
}
.eyebrow {
  color: var(--accent-ink);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
}
.hero .eyebrow,
.ep-header .eyebrow {
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.lead { color: var(--muted); font-size: 1.18rem; max-width: 55ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.92rem;
  padding: 0.7rem 1.4rem;
  border-radius: 0;
  margin-top: 1.25rem;
  transition: background 0.15s, color 0.15s;
}
.btn:hover {
  background: var(--accent-ink);
  color: #ffffff;
}
.btn.ghost {
  background: transparent;
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  margin-left: 0.5rem;
}
.btn.ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* ---------- Sections ---------- */
section { padding: 1.6rem 0; }
h2 { font-size: 1.9rem; font-weight: 700; margin-top: 0; }
h3 { font-weight: 700; font-size: 1.2rem; letter-spacing: 0.01em; }
.section-title {
  border-left: 4px solid var(--accent);
  padding-left: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Episode list ---------- */
.episodes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.episode-card {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.ep-num {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.15rem;
  min-width: 3.4rem;
  transition: background 0.2s ease;
}
.episode-card:hover .ep-num { background: var(--text); }
.episode-card > span:last-child { padding: 1rem 1.25rem; }
.episode-card h3 { margin: 0 0 0.2rem; font-size: 1.25rem; color: var(--text); }
.episode-card p { margin: 0; color: var(--muted); max-width: 62ch; }
.episode-card::after {
  content: "\2192";
  align-self: center;
  margin-left: auto;
  padding: 0 1.25rem;
  color: var(--accent);
  font-size: 1.6rem;
  transition: color 0.2s ease;
}
.episode-card:hover::after { color: var(--text); }

/* ---------- Episode page ---------- */
.ep-header {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0 2rem;
}
.ep-header .cover {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.ep-header h1 { margin: 0.35rem 0; font-size: 2.4rem; font-weight: 700; line-height: 1.1; }

.duration {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: 0;
  padding: 0.2rem 0.8rem;
  margin-top: 0.9rem;
}

.player {
  background: transparent;
  border: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.player h3 { margin: 0 0 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; color: var(--muted); }
.player audio { width: 100%; }

.notes {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  padding: 1rem 0 0;
}
.notes h3 { margin-top: 0; margin-bottom: 0.5rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.notes ul { padding-left: 1.2rem; }

.ep-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 2.5rem;
  flex-wrap: wrap;
}
.ep-nav .btn { margin-top: 0; }

/* ---------- Body text (unified) ---------- */
.prose p,
.episode-card p,
.notes p {
  font-size: 1.18rem;
  line-height: 1.65;
  margin: 0 0 0.9rem;
}
.prose p:last-child,
.episode-card p:last-child,
.notes p:last-child { margin-bottom: 0; }

.prose { max-width: 70ch; }
.prose a { text-decoration: underline; }
.prose a.btn { text-decoration: none; }

/* ---------- Credits ---------- */
.credits {
  max-width: 72ch;
  font-size: 1rem;
}
.credits dl {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}
.credits dt {
  color: var(--accent-ink);
  font-weight: 700;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  margin-top: 1.1rem;
}
.credits dt:first-child { margin-top: 0; }
.credits dd { margin: 0.15rem 0 0; color: var(--text); }

.materials a.btn { margin-right: 0.75rem; }
.materials-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: grid;
  gap: 0.55rem;
}
.materials-list a { font-size: 1.05rem; }
.materials-list .pending { color: var(--muted); font-size: 1.05rem; }
.transcript-link { margin: 0.85rem 0 0; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.4rem 0;
  margin-top: 1.75rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); text-decoration: underline; }
.site-footer a:hover { color: var(--text); }
.footer-logo {
  display: block;
  height: 46px;
  width: auto;
  margin: 0 auto;
}
.copyright {
  font-size: 0.9rem;
  margin: 1.2rem 0 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 2.25rem 0;
    gap: 1.75rem;
  }
  .hero .cover { max-width: 260px; }
  .hero h1 { font-size: 2.5rem; }
  .ep-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .ep-header .cover { max-width: 220px; }
  .ep-header h1 { font-size: 2rem; }
  .btn.ghost { margin-left: 0; }
  h2 { font-size: 1.6rem; }
}
