:root {
  --font-size-16: clamp(36.66px, calc(85 / 1280 * 100vw), 85px);
  --font-size-8: clamp(36.66px, calc(47.12 / 1280 * 100vw), 47.12px);
  --font-size-7: clamp(28.81px, calc(37.05 / 1280 * 100vw), 37.05px);
  --font-size-6: clamp(22.65px, calc(29.15 / 1280 * 100vw), 29.15px);
  --font-size-5: clamp(17.8px, calc(22.9 / 1280 * 100vw), 22.9px);
  --font-size-4: clamp(15.8px, calc(20.29 / 1280 * 100vw), 20.29px);
  --font-size-3: clamp(14px, calc(18 / 1280 * 100vw), 18px);
  --font-size-2: clamp(12.4, calc(22.9 / 1280 * 100vw), 15.95px);
  --font-size-1: clamp(11px, calc(18 / 1280 * 100vw), 14.15px);
  --p-size: var(--font-size-5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

p {
  font-size: var(--p-size);
}

body {
  background: black;
  background-image: url('/aesthetic/assets/night-sky-melanie-weidmann.jpg');
  padding: 0;
  margin: 0;
}

a {
  color: yellow;
}
header,
main {
  max-width: 60rem;
  margin: auto;
}

header {
  background: black;
  color: chartreuse;
  margin-top: 3rem;
  display: flex;
  flex-flow: column;
  border: 1px solid chartreuse;

  .masthead {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid chartreuse;

    a {
      color: chartreuse;

      :visited {
        color: chartreuse
      }

      ;
      text-decoration: none;
    }
  }

  nav {
    padding: 0.5rem;
    display: flex;
    justify-content: flex-start;
    gap: var(--font-size-3);

    a {
      color: yellow;
      font-size: var(--font-size-4);
    }
  }

  a.logo {
    display: flex;
    justify-content: center;
    max-width: 5rem;

    img {
      width: 100%
    }
  }

  h1 {
    font-size: var(--font-size-7);
    text-align: center;
  }

  .title {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

main {
  margin-top: 0;
  margin-bottom: 2rem;
  background: darkslategray;
  color: honeydew;
  min-height: 100vh;
  border: 1px solid honeydew;
  border-top: none;
}

article {
  h2 {
    text-align: center;
    border-bottom: 1px solid honeydew;
    margin-top: 0;
    font-size: var(--font-size-8);
    font-variant-caps: small-caps;
  }
  p {
    font-size: var(--p-size);
    margin-bottom: 1rem;
    line-height: 1.33;
  }
}

section.content.all-text {
    margin: auto;
    margin-top: 1rem;
    padding: 0.5rem;
    max-width: 42rem;
}

article#home {
  padding: 3rem;
  p, h2 {
    text-align: center;
  }
  h2 {
    font-size: var(--font-size-6);
    margin-top: 3rem;
  }
}

.dazzle.quote {
  margin: 1rem;
  margin-bottom: 2rem;
  text-align: center;
  font-size: var(--p-size);
  color: greenyellow;

  figcaption {
    text-align: center;
  }
}

.episode-list {
  margin: auto;
  margin-top: 2rem;
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  /* align-items: start; */
  container-type: inline-size;
  li {
    justify-self: start;

    max-width: 250px;
    background: black;

    a {
      color: ghostwhite;
    }

    p {
      padding-bottom: 0.25rem;
    }

    figure {
      img {
        width: 100%;
      }
    }
  }
}

/* Mobile override */
@media (max-width: 667px) {
  .episode-list {
    display: flex;           /* Override grid */
    flex-wrap: wrap;         /* Allow wrapping to the next line */
    justify-content: center; /* THIS centers all items horizontally */
    gap: 1rem;
  }

  .episode-list li {
    flex: 0 0 250px;        
  }
}

article#episodes {
  h2 {
    text-align: center;
    border-bottom: 1px solid honeydew;
    margin-top: 0;
    font-size: var(--font-size-8);
    font-variant-caps: small-caps;
  }
  .content {
    padding: 1rem 3rem 1rem 3rem;
  }

  .introduction {
    margin-top: 1rem;
    p {text-align: left;}
  }
  .episode-card {
    display: flex;
    flex-flow: column;
    height: 100%;
  }
  
  .show-details {
    display: flex;
    flex-grow: 1;
    flex-basis: max-content;
    flex-flow: column;
    justify-content: space-around;
    padding-left: 0.25rem;
  }
}

article#episode {
  h2 {
    text-align: center;
    border-bottom: 1px solid honeydew;
    margin-top: 0;
    font-size: var(--font-size-8);
    font-variant-caps: small-caps;
  }

  .content {
    margin-top: 1rem; ;
    padding: 0.5rem;
    @media(min-width: 800px) {
      padding: 1rem 6rem 1rem 6rem;
    }
  }

  .show-details {
    background: honeydew;
    color: black;
    max-width: 250px;
    margin: auto;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
    @media(min-width: 800px) {
        float: left;
        margin: 0.33rem 1rem 1rem 0;
    }
    a {
      color: blue;
    }
    .air-date, .patreon-link {
        margin: 0;
        padding: 0.25rem;
    }
  }

  figure img {
    width: 100%;
  }

  figcaption {
    padding-left: 0.25rem;

    p {
      font-size: var(--font-size-1);
    }
  }

  .air-date {
    padding: 0.25rem;
    margin-top: 0.5rem;
    font-style: italic;
    font-size: var(--font-size-2);
  }

  nav {
    margin-top: 2rem;

    a {
      color: yellow;
    }
  }
}


div.waveform-player {
    margin-bottom: 1rem;
    --wfp-btn-size: 60px;
    --wfp-button-color: yellow;
    --wfp-text-color: yellow;
    --wfp-text-secondary-color: yellow;
}
