/* page.css */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

/* Hero size control via CSS variable */
:root {
  --hero-max-width: 800px; /* adjust this value to control hero image max-width */
}

/* Constrain the site to a max width and center it */
body {
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
  background-color: #774022; /* page background (dark) */
  color: #f5e7db;            /* default text color (light) */
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #774022; /* match body background */
}
.site-title img {
  max-width: 100px;
  height: auto;
  display: block;
}

/* Navigation Links */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;            /* ↑ bumped from 1rem to 3rem for extra spacing */
}
.site-nav a {
  color: #f5e7db;       /* lightened text for contrast */
  text-decoration: none;
  font-weight: 600;
  font-size: 1.25rem;    /* larger font for About & Archives */
  transition: color 0.3s ease;
}
.site-nav a:hover {
  text-decoration: underline;
}

/* Responsive Header */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0.5rem;        /* maintain a bit of vertical space on mobile */
    margin-top: 0.5rem;
  }
}

/* Hero Image */
.hero-image-container {
  text-align: center;
  margin: 3rem 0 1.5rem;
}
.hero-image {
  width: 100%;
  max-width: var(--hero-max-width, 800px);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Styled horizontal rule with drop‑shadow */
hr {
  border: none;                 /* remove default border */
  height: 2px;                  /* desired thickness */
  background-color: #f5e7db;    /* match your cream tone */
  box-shadow: 0 2px 4px rgba(103, 41, 28, 1);  /* vertical offset, blur, opacity */
  margin: 1rem auto;            /* adjust spacing as needed */
  max-width: 650px;             /* or 100%, or whatever fits your layout */
}


/* Intro Text Box */
.intro-text {
  max-width: 650px;
  margin: 3rem auto 0.5rem;              /* space above & below */
  padding: 1rem 1.5rem;                 /* inset padding */
/*  border: 1px solid #f5e7db;            /* cream border */
  border-radius: 8px;                   /* rounded corners */
  background-color: rgba(245, 231, 219, 0.1); /* subtle light overlay */
  color: #f5e7db;                       /* ensure text stays light */
  text-align: center;                   /* optional centering */
  line-height: 1.6;
}

/* Embedded Player */
.player-iframe {
  text-align: center;
  margin: -5rem 0;
}
.player-iframe iframe {
  width: 100%;
  max-width: 600px;
  /* fluid height: never less than 650px, scale up to 80vh, cap at 1000px */
  height: clamp(650px, 80vh, 700px);
  border: none;
  overflow: hidden;
}

/* Social Buttons */
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
}
.social-button img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.social-button img:hover {
  transform: scale(1.1);
}

/* Episode Listing */
.episode-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 2rem;
}
.episode {
  margin-bottom: 2rem;
}
.episode h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #f5e7db;       /* lighten episode titles for readability */
}
.episode p {
  margin: 0.5rem 0;
}
.episode a.listen {
  color: #f5e7db;       /* lighten listen links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}
.episode a.listen:hover {
  color: #ffffff;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.875rem;
  background-color: #774022; /* match body background */
  color: #f5e7db;            /* lighten footer text */
}

/* Responsive Episode List */
@media (max-width: 600px) {
  .episode-list {
    padding: 1rem;
  }
}
