/* The Transgenda — simple one-page site */

:root {
  --purple: #721177;
  --indigo: #2b127c;
  --blue: #5bcdf9;
  --pink: #e2a9f1;
  --ink: #26222a;
  --gray: #545454;
  --line: #ece5ee;
  --display: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--purple); }

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Masthead */

.site-header {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
}

.brand img { width: clamp(240px, 30vw, 330px); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.site-nav a {
  text-decoration: none;
  color: var(--indigo);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--purple);
  border-bottom-color: var(--blue);
}

/* Hero — photo sits flush on top of the purple band */

.hero {
  display: flex;
  justify-content: center;
  line-height: 0;
  margin: 0;
}

.hosts {
  width: min(100%, 570px);
  margin: 0 auto;
}

/* Podcast band */

.band {
  background: var(--purple);
  color: #fff;
  padding: 2.5rem 0 2.25rem;
  margin: 0;
}

.band-title {
  margin: 0 0 1.5rem;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 4.6vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
}

.band-title .hl { color: var(--pink); }

/* Episode player */

.player {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  text-align: left;
}

.player-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.player-heading {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
}

.player-count {
  font-size: 0.82rem;
  color: var(--gray);
}

.audio-bar {
  padding: 0.8rem 1.1rem;
  background: #faf6fb;
  border-bottom: 1px solid var(--line);
}

.audio-bar audio {
  display: block;
  width: 100%;
  height: 2.4rem;
}

.episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 21rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.episode + .episode { border-top: 1px solid var(--line); }

.episode-button {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  padding: 0.8rem 1.25rem;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.episode-button:hover { background: #faf5fb; }
.episode-button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

.episode-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
}

.episode-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.episode-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--indigo);
}

.episode-meta {
  font-size: 0.8rem;
  color: var(--gray);
}

.episode.is-playing .episode-button { background: #fdf1fe; }
.episode.is-playing .episode-title { color: var(--purple); }

.episode-note {
  margin: 0;
  padding: 1.25rem;
  color: var(--gray);
  font-size: 0.95rem;
}

.episode-note a { color: var(--purple); }

/* Streaming row */

.streaming {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.streaming-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  margin-right: 0.35rem;
}

.streaming a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.15s ease, transform 0.15s ease;
}

.streaming a:hover,
.streaming a:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.streaming img {
  width: 1.4rem;
  height: 1.4rem;
}

/* Sections */

.section { padding: 3.25rem 0 0; }

.section:last-of-type { padding-bottom: 4.5rem; }

.section h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--purple);
}

.section h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 5px;
  margin-top: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

.section p {
  margin: 1.35rem 0 0;
  max-width: 42rem;
  font-size: 1.08rem;
}

.pills {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  max-width: 46rem;
}

.pills li {
  background: var(--blue);
  color: #170a4d;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  line-height: 1.3;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
}

.contact-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.email {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.02rem, 3.4vw, 1.35rem);
  color: var(--indigo);
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.38em;
}
.email:hover {
  color: var(--purple);
  text-decoration-color: var(--purple);
}

@media (max-width: 34rem) {
  .site-header {
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1.25rem 1rem;
  }
  .brand img { width: 235px; }
  .site-nav { justify-content: center; gap: 1.25rem; }
  .hosts { width: 100%; }
  .section { padding-top: 2.75rem; }
  .streaming-label { width: 100%; text-align: center; margin: 0 0 0.25rem; }
  .episode-list { max-height: 17rem; }
  .episode-button { padding: 0.8rem 1rem; }
  .player-top { padding: 0.9rem 1rem 0.75rem; }
}
