/* ---------------------------------------------------------
   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: 20;
}

.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.95rem;
  font-weight: 500;
}
.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: 100%;
    left: 0;
    right: 0;
    background: var(--crimson-dark);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    z-index: 30;
    box-shadow: 0 12px 24px rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(0,0,0,0.25);
  }
  .nav.open { max-height: 320px; }
  .nav a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: var(--crimson-dark);
  }
  .nav a.current { border-bottom: 1px solid rgba(255,255,255,0.1); border-left: 3px solid var(--gold-bright); padding-left: 21px; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 64px;
  background-image:
    linear-gradient(180deg, rgba(20,16,18,0.72) 0%, rgba(20,16,18,0.62) 45%, rgba(20,16,18,0.82) 100%),
    url("hero.jpg");
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  color: var(--ice);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.hero .record {
  margin-top: 10px;
  font-size: 1.05rem;
  color: var(--gold-bright);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cta-row {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.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; }

.hero .btn-ghost {
  color: var(--ice);
  border-bottom-color: rgba(244,244,241,0.4);
}
.hero .btn-ghost:hover { border-bottom-color: var(--gold-bright); }

/* ---------- Hero action buttons (Listen / Connect / Newsletter) ---------- */

.hero-buttons {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: var(--crimson);
  color: var(--ice);
  padding: 14px 26px;
  border-radius: 999px;
  min-width: 108px;
  text-align: center;
  border: 1px solid rgba(244,244,241,0.18);
}
a.hero-btn:hover { background: var(--crimson-dark); text-decoration: none; }

.hero-btn-label {
  font-weight: 600;
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-btn-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-btn-icons a,
.hero-btn-icons span {
  display: inline-flex;
  color: var(--ice);
}
.hero-btn-icons a:hover { color: var(--gold-bright); }

.hero-btn-icons svg {
  width: 1rem;
  height: 1rem;
}

.hero-note {
  margin-top: 18px;
  display: inline-block;
  font-size: 0.9rem;
  color: #cfcdca;
}
.hero-note:hover { color: var(--gold-bright); }

/* ---------- 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;
}

.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);
}

/* ---------- 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;
}

.disclaimer {
  background: var(--charcoal);
  border-top: 1px solid rgba(244,244,241,0.1);
  padding: 24px 0;
}
.disclaimer .wrap {
  max-width: 720px;
}
.disclaimer h2 {
  color: #b9bfc4;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.disclaimer p {
  color: #8b9298;
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0;
}
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; }
}
