/* ---------------------------------------------------------
   The Standard — A DU Hockey Podcast
   Palette: rink white, crimson, gold, ice-charcoal
--------------------------------------------------------- */

:root {
  --crimson: #862633;
  --crimson-dark: #5e1a24;
  --gold: #c9a66b;
  --gold-bright: #dab97e;
  --ice: #f4f4f1;
  --ice-line: #dcdcd6;
  --charcoal: #1c2024;
  --steel: #4c5760;
  --focus: #2a6fb0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ice);
  color: var(--charcoal);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, h3, .headline {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--charcoal);
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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

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

/* ---------- Top bar ---------- */

.topbar {
  background: var(--crimson);
  border-bottom: 4px solid var(--gold);
  position: relative;
  z-index: 40;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ice);
  letter-spacing: 0.02em;
}
.wordmark span {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  margin-top: 1px;
}
.wordmark:hover { text-decoration: none; }

.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  color: var(--ice);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav a:hover { color: var(--gold-bright); text-decoration: none; }
.nav a.current { color: var(--gold-bright); border-bottom: 2px solid var(--gold-bright); padding-bottom: 4px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ice);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--crimson-dark);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  }
  .nav.open { max-height: 320px; }
  .nav a {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
}

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

.hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(15,12,13,0.72), rgba(15,12,13,0.62) 55%, rgba(15,12,13,0.8)),
    url("assets/hero-arena.jpg");
  background-size: cover;
  background-position: center 58%;
  color: var(--ice);
}

.hero .wrap { position: relative; z-index: 1; }

.hero h1 {
  color: var(--ice);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.04;
  max-width: 13ch;
}

.hero .lede {
  margin-top: 20px;
  max-width: 46ch;
  font-size: 1.15rem;
  color: #dfe2e5;
}

.hero .record {
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--gold-bright);
  font-weight: 600;
}

/* ---------- Hero pills ---------- */

.hero-pills {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 2px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--ice);
  text-transform: uppercase;
}

.pill.listen { background: var(--crimson); }
.pill.connect { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35); }
.pill.newsletter { background: var(--gold); color: var(--charcoal); }
.pill.newsletter:hover { background: var(--gold-bright); text-decoration: none; }

.pill .icon-links {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pill .icon-links a,
.pill .icon-links span {
  display: inline-flex;
  color: inherit;
  opacity: 0.9;
}
.pill .icon-links a:hover { opacity: 1; }

.pill svg {
  width: 17px;
  height: 17px;
}

.btn {
  display: inline-block;
  background: var(--crimson);
  color: var(--ice);
  padding: 13px 26px;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 2px;
}
.btn:hover { background: var(--crimson-dark); text-decoration: none; }

.btn-ghost {
  color: var(--charcoal);
  font-weight: 600;
  padding: 13px 6px;
  border-bottom: 2px solid var(--ice-line);
}
.btn-ghost:hover { border-color: var(--crimson); text-decoration: none; }

/* ---------- Banner rail (championship motif) ---------- */

.banner-rail {
  border-top: 1px solid var(--ice-line);
  border-bottom: 1px solid var(--ice-line);
  padding: 28px 0;
  background: #ececE7;
}

.banner-rail .wrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.banner-rail .label {
  font-family: "Oswald", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--steel);
  margin-right: 12px;
  padding-bottom: 10px;
}

.pennant {
  width: 34px;
  height: 46px;
  background: var(--crimson);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
  position: relative;
}
.pennant::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px; top: 8px;
  height: 2px;
  background: var(--gold);
}
.pennant.latest { background: var(--gold); }
.pennant.latest::after { background: var(--crimson-dark); }

/* ---------- Section rhythm ---------- */

section.block {
  padding: 56px 0;
}
section.block + section.block {
  border-top: 1px solid var(--ice-line);
}

.block h2 {
  font-size: 1.6rem;
  margin-bottom: 22px;
}

.block .intro {
  color: var(--steel);
  max-width: 60ch;
  margin-bottom: 28px;
}

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

.episode {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--ice-line);
}
.episode:last-child { border-bottom: 1px solid var(--ice-line); }

.episode .num {
  font-family: "Oswald", sans-serif;
  color: var(--gold);
  font-size: 1.4rem;
  min-width: 2.4ch;
}

.episode h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.episode p {
  margin: 6px 0 0;
  color: var(--steel);
  font-size: 0.96rem;
}

/* ---------- Pillars (what the show covers) ---------- */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

@media (max-width: 640px) {
  .pillars-grid { grid-template-columns: 1fr; gap: 28px; }
}

.pillar svg {
  width: 30px;
  height: 30px;
  color: var(--crimson);
  margin-bottom: 16px;
}

.pillar h3 { font-size: 1.05rem; }

.pillar p {
  color: var(--steel);
  margin-top: 8px;
  font-size: 0.95rem;
}

/* ---------- Feature cards (Stats / Trivia) ---------- */

.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ice-line);
  border: 1px solid var(--ice-line);
}

@media (max-width: 640px) {
  .feature-cards { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--ice);
  padding: 36px 30px;
}

.feature-card .icon-badge {
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card .icon-badge svg {
  width: 20px;
  height: 20px;
  color: var(--crimson);
}

.feature-card .tag {
  font-size: 0.78rem;
  color: var(--crimson);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-top: 8px;
}

.feature-card p {
  color: var(--steel);
  margin-top: 10px;
  font-size: 0.97rem;
}

.feature-card .btn-ghost {
  display: inline-block;
  margin-top: 18px;
}

/* ---------- Newsletter ---------- */

.newsletter {
  background: #ececE7;
  border-top: 1px solid var(--ice-line);
  border-bottom: 1px solid var(--ice-line);
  padding: 56px 0;
}

.newsletter .wrap { max-width: 620px; }

.newsletter h2 { font-size: 1.5rem; }

.newsletter .intro { margin-top: 10px; margin-bottom: 0; }

.newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border: 1px solid var(--ice-line);
  background: var(--ice);
  font-size: 1rem;
  font-family: inherit;
}

.newsletter-form button {
  background: var(--crimson);
  color: var(--ice);
  border: none;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border-radius: 2px;
  font-family: inherit;
}
.newsletter-form button:hover { background: var(--crimson-dark); }

.newsletter small {
  display: block;
  margin-top: 12px;
  color: var(--steel);
  font-size: 0.82rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Placeholder page (stats/trivia) ---------- */

.placeholder {
  padding: 88px 0 96px;
  text-align: left;
}
.placeholder h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  max-width: 16ch;
}
.placeholder p {
  margin-top: 18px;
  max-width: 52ch;
  color: var(--steel);
  font-size: 1.08rem;
}
.ice-rule {
  width: 64px;
  height: 4px;
  background: var(--gold);
  margin-top: 26px;
}

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

footer {
  background: var(--charcoal);
  color: #b9bfc4;
  padding: 32px 0;
  font-size: 0.9rem;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
footer a { color: var(--gold-bright); }

footer .socials {
  display: flex;
  gap: 18px;
  align-items: center;
}
footer .socials a {
  display: inline-flex;
  color: #b9bfc4;
}
footer .socials a:hover { color: var(--gold-bright); }
footer .socials svg {
  width: 20px;
  height: 20px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav { transition: none; }
}
