html, body {
  overflow-x: hidden;
}


body {
  font-family: Broadsheet;
  line-height: 1.6;
  background: #fdfdfd;
  color: #000;
  text-align: center;
  font-size: 20px;
  margin: 0; /* Ensure no browser default margins */
  padding: 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}


header {
  text-align: center;
  margin: 2rem 0;
}

nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #0077cc;
}

nav a:hover {
  text-decoration: underline;
}

.button {
  display: inline-block;
  padding: 0.6em 1.2em;
  background-color: #222;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin: 0.4em;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #555;
}

h1 {
  font-family: "carta-marina", sans-serif;
  font-weight: 800;
  font-style: normal;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  color: #900000;
}

h2 {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: #800000;
}

.social-icons {
  text-align: center;
  margin-top: 2em;
}

.social-icons a {
  display: inline-block;
  margin: 0 10px;
}

.social-icons img {
  width: 36px;
  height: 36px;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icons img:hover {
  filter: none;
  transform: scale(1.1);
}

.site-footer {
  width: 100%;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 2em 1em;
  margin-top: 3em;
  width: 100%;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}


/* Episode cards */
.episode-card {
  margin-bottom: 3em;
  padding: 1.5em;
  background-color: #000;       /* black background */
  color: #fff;                  /* white text */
  border-left: 4px solid #900000; /* keep red accent */
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border-radius: 8px;
  text-align: center;
}

/* Titles inside episode cards */
.episode-card h2 {
  margin-top: 0;
  color: #900000; /* red stays */
}

/* Buttons inside episode cards */
.episode-card .button {
  background-color: #fff;
  color: #000;
  border: 1px solid #fff;
  font-weight: bold;
}

.episode-card .button:hover {
  background-color: #ccc;
  color: #000;
  border-color: #ccc;
}

/* Embedded audio player */
.episode-card iframe,
.episode-card audio {
  display: block;
  margin-top: 1em;
  margin-bottom: 0.5em;
  width: 100%;
  max-width: 700px;   
  height: 80px;       /* more compact */
  border: none;
}

.home-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #333;
  background: #f1f1f1;
  padding: 0.3em 0.7em;
  border-radius: 5px;
  transition: background 0.2s ease;
  z-index: 10;
}

.home-link:hover {
  background: #ddd;
}


/* Fix buttons overflowing off-screen on desktop */
.splash-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* allow wrapping if needed */
  gap: 3%; /* use percentage-based gap instead of fixed rem */
  margin: 2rem auto;
  max-width: 100%; /* keeps content from stretching to edges */
}

.splash-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.1em 3.5vw; /* slightly less horizontal padding */
  background-color: #000;
  color: #fff;
  text-decoration: none;
  border: 0.2px solid transparent;
  margin: 0 2.5%;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  letter-spacing: 0em; /* tone down spacing a touch for optical centering */
  white-space: nowrap;
  box-sizing: border-box;
  text-align: center;
}

.splash-link:hover {
  background-color: #fff;
  color: #800000;
  border: 1px solid #800000;
  text-decoration: none;
}

/* 📱 Mobile breakpoint: stack buttons vertically */
@media (max-width: 600px) {
  .splash-nav {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .splash-link {
    width: 85%;
    max-width: 280px;
    padding: 1em;
    font-size: 1rem;
  }
}


 .splash-page .logo {
    max-width: 300px;  /* shrink from the desktop size */
    height: auto;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 400px) {
  .splash-link {
    font-size: 0.9rem;
    padding: 0.7em;
    max-width: 240px;
  }

  .splash-page .logo {
    max-width: 150px;
  }
}


.splash-page main {
  padding-top: 3em;
  padding-bottom: 8em;
}

.splash-page .logo {
  margin-top: 2em;
}

/* === Top Navigation === */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  padding: 1rem 2rem;
  color: #fff;
  position: relative;
}

.nav-left img {
  max-height: 50px;
  width: auto;
}


.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ccc;
  text-decoration: none;
}

.nav-link.active {
  color: #900;         /* dark red for active link */
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}

/* Hamburger menu system */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

/* 📱 Mobile styles */
@media (max-width: 700px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #000;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 1rem;
    text-align: center;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-toggle:checked + .nav-toggle-label + .nav-links {
    display: flex;
  }
}



.button .icon {
  height: 2em;
  width: auto;
  vertical-align: middle;
  margin-right: 0em;
}


