body {
  background: white;
  display: block;
  --episode-font: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --border-color: rgba(0, 0, 0, 0.1);
  margin: 0;
}

main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-area: initial;
}

* {
  font-family: var(--episode-font) !important;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2em, 6vw, 2.5em);
}

p {
  font-size: clamp(0.9em, 1.5vw, 1.1em);
  line-height: 1.7em;
  margin-top: 0;
  max-width: 35em;
}

.episode-footer {
  grid-area: initial;
}

/* //////////////////////////////////////////////////////////////////////////////////////

Episode title (left hand sticky area)

////////////////////////////////////////////////////////////////////////////////////// */

.episode-title {
  grid-column: 1 / span 1;
  display: grid;
  grid-template-columns: 10vw 1fr 10vw;
  grid-template-rows: 10vh 1fr 10vh;
  grid-template-areas:
    ". top ."
    "left content right"
    ". bottom .";
  min-height: 100vh;
  position: sticky;
  align-self: start;
  top: 0;
  padding: 0 !important;
  margin: 0;

  background-image: linear-gradient(
    to right bottom,
    aqua,
    50%,
    aqua,
    50%,
    white,
    white
  );
  background-size: cover;

  /* Doesnt work in safari */
  /* background-size: 100% 100vh;  */

  background-repeat: no-repeat;
}

.episode-title::before,
.episode-title::after,
.episode-player::after,
.episode-shownotes::before,
.episode-transcript::before,
[data-time="0:52"]::after,
[data-time="10:30"]::after,
[data-time="24:17"]::after,
#nav::after,
.episode-footer::after,
.logo::after {
  position: absolute;
  background-color: yellow;
  width: 12em;
  height: 12em;
  font-size: 0.9em;
  padding: 2em;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  font-family: Noteworthy, "Marker Felt", "Bradley Hand", Chalkboard,
    "Comic Sans", "Comic Sans MS", "serif";
  box-shadow: 0.2em 0.2em 0.2em silver;
  line-height: 1.337;
}

.episode-title::before {
  content: "Is this the right colour? Maybe test 50 shades of aqua?";
  transform: translate(10vw, 20vh) rotate(-0.02turn);
}
@media (max-width: 80em) {
  .episode-title::after {
    content: "Do people understand that they can scroll down? Maybe add an arrow? Or decrease the height to 90%?";
    transform: rotate(0.02turn);
    right: 5vw;
    bottom: -2vh;
    background-color: pink;
  }
}
.episode-player audio {
  position: relative;
  z-index: 2;
}
.episode-player::after {
  content: "Has anybody ever tested an audioplayer?";
  transform: rotate(0.03turn);
  left: 30vw;
  bottom: 6vh;
  z-index: 0;
}
@media (max-width: 80em) {
  .episode-player::after {
    left: 10vw;
  }
}
.episode-shownotes::before {
  content: "Does anyone ever click on these?";
  transform: rotate(-0.03turn);
  left: 50%;
  z-index: 0;
  background-color: pink;
}
.episode-shownotes * {
  position: relative;
  z-index: 1;
}
.episode-transcript::before {
  content: "Do (deaf) people actualy read this?";
  transform: rotate(0.01turn);
  right: 30vw;
  z-index: 0;
}
@media (max-width: 80em) {
  .episode-transcript::before {
    right: 15vw;
  }
}
[data-time="0:52"]::after {
  content: "Do (deaf) people actualy understand transcripts?";
  transform: rotate(0.01turn);
  right: -5vw;
  z-index: 0;
}
[data-time="10:30"]::after {
  content: "Are details like emotion, intonation, accent, and rhythm understood?";
  transform: rotate(-0.01turn);
  right: -5vw;
  z-index: 0;
  background-color: pink;
}
[data-time="24:17"]::after {
  content: "Did anyone notice? The underline colour changed from 'aqua' to 'palegreen'.";
  transform: rotate(-0.01turn);
  right: -5vw;
  z-index: 0;
  margin-top: 0em;
}
[data-time="24:26"],
[data-time="24:25"] {
  padding-right: 10em;
  box-sizing: border-box;
}
#nav::after {
  content: "Is the footer really the best place for navigation? Has anyone ever tested this?";
  transform: rotate(-0.01turn);
  left: 10em;
  z-index: 0;
  margin-top: -12em;
  background-color: pink;
}
.logo::after {
  content: "We should probably make the logo bigger.";
  transform: rotate(0.015turn);
  right: 5vw;
  z-index: 0;
  margin-top: -10em;
  color: black;
}
.episode-footer::after {
  content: "We should add a rich media footer right here. For engagement.";
  transform: rotate(0.01turn);
  right: -5vw;
}

.episode-title .content {
  align-self: stretch;
  grid-area: content;
  padding: 0;
  margin: 0;
  text-align: left;
  border: 1px solid;
  border-color: var(--border-color);
}

.episode-title .top,
.episode-title .bottom {
  align-self: stretch;
  display: block;
  grid-area: top;
  border-left: 1px solid;
  border-right: 1px solid;
  border-color: var(--border-color);
}

.episode-title .bottom {
  grid-area: bottom;
}

.episode-title .left,
.episode-title .right {
  align-self: stretch;
  display: block;
  grid-area: left;
  border-top: 1px solid;
  border-bottom: 1px solid;
  border-color: var(--border-color);
}

.episode-title .right {
  grid-area: right;
}

.episode-title h1 {
  display: block;
  min-height: 35vh;
  background-color: initial;
  font-weight: bold;
  white-space: initial;
  max-width: 13.37ch !important;
  margin: 0 0 0.5em;

  font-size: clamp(2em, 4vw, 6em);
  line-height: 1em;
  padding-bottom: 5vh;
  filter: brightness(1);

  border-bottom: 1vh solid black;
}
@media (max-width: 80em) {
  .episode-title h1 {
    font-size: 10vw;
  }
}

.episode-title h3 {
  margin: 0.2em 0 0.2em;
  text-decoration: none;
}

.episode-title .meta {
  writing-mode: initial;
  /* text-transform: uppercase; */
  color: black;
}

.episode-title .meta a {
  text-decoration: none;
  color: black;
}

.episode-title time:before {
  content: "/ ";
}

.episode-title .meta a:hover {
  text-decoration: underline;
}

.episode-title .episode-player {
  margin: 2vh 0 0;
  padding: 0;
  top: 0;
}

.episode-title .episode-player audio {
  width: 280px;
  /* transform: rotate(1deg); */
  /* background-color: black; */
  /* height: 100px; */
}

/* //////////////////////////////////////////////////////////////////////////////////////

Episode content

////////////////////////////////////////////////////////////////////////////////////// */

.episode-content {
  display: grid;
  grid-column: 2 / span 1;
  grid-template-columns: 10vw 1fr 10vw;
  grid-template-rows: 10vh 1fr 10vh;
  grid-template-areas:
    ". top ."
    "left content right"
    ". bottom .";
  text-align: left;
  border-left: 1px solid var(--border-color);
}

.episode-content .content {
  position: relative;
  align-self: stretch;
  grid-area: content;
  padding: 0;
  margin: 0;
  text-align: left;
  border: 1px solid;
  border-color: var(--border-color);
}

.episode-content .top,
.episode-content .bottom {
  align-self: stretch;
  display: block;
  grid-area: top;
  border-left: 1px solid;
  border-right: 1px solid;
  border-color: var(--border-color);
}

.episode-content .bottom {
  grid-area: bottom;
}

.episode-content .left,
.episode-content .right {
  height: calc(80vh - 2px);
  position: sticky;
  top: 10vh;
  align-self: stretch;
  display: block;
  grid-area: left;
  border-top: 1px solid;
  border-bottom: 1px solid;
  border-color: var(--border-color);
}

.episode-content .right {
  grid-area: right;
}

/* //////////////////////////////////////////////////////////////////////////////////////

Episode intro (player and shownotes)

////////////////////////////////////////////////////////////////////////////////////// */

.episode-intro {
  margin: 0;
  padding: 0;
}

.episode-intro p {
  font-weight: 600;
  font-size: clamp(1.1em, 2vw, 1.8em);
  line-height: 1.4em;
  margin-bottom: 2em;
  max-width: 30em;
  margin-top: 40vh;
  padding-top: 5vh;
  padding-bottom: 1em;
  border-top: 1vh solid black;
}

.episode-intro h3,
.episode-shownotes h3 {
  color: black;
  -webkit-font-smoothing: antialiased;
}

.episode-shownotes h3 {
  margin-bottom: 1em;
}

.episode-shownotes ul {
  list-style: none;
  margin: 0 0 5vh;
  padding: 0;
}

.episode-shownotes ul li {
  margin-bottom: 1em;
}

.episode-shownotes a {
  color: black;
}

.episode-shownotes a:hover {
  color: aqua;
  filter: brightness(0.5);
}

/* //////////////////////////////////////////////////////////////////////////////////////

Transcript

////////////////////////////////////////////////////////////////////////////////////// */

.episode-transcript .closed-caption {
  font-weight: bold;
  margin-bottom: 1.5em;
  max-width: none;
}

.direct-link {
  color: black;
}

.direct-link:hover {
  color: aqua;
}

p strong {
  background: none;
}

#script p {
  letter-spacing: 0;
  line-height: 1.7em;
  max-width: 35em;
  margin-bottom: 2em;
  position: relative;
}

#script p b {
  position: relative;
}

#script p b {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

#script p:nth-of-type(odd) b {
  text-decoration-color: aqua;
}
#script [data-time="10:30"] ~ p:nth-of-type(odd) b {
  text-decoration-color: palegreen;
}

/* //////////////////////////////////////////////////////////////////////////////////////

Other

////////////////////////////////////////////////////////////////////////////////////// */

.episode-art {
  margin-top: 10vh;
  padding-top: 1vh;
  border-top: 1vh solid black;
}

.prevnext {
  margin: 0;
  padding-inline-start: 0;
  margin-top: 10vh;
  padding-top: 1vh;
  border-top: 1vh solid black;
}

.prevnext li {
  list-style: none;
}

.prevnext li a {
  color: black;
  background-color: transparent;
}

.prevnext li a:hover {
  color: aqua;
  background-color: transparent;
}

p code {
  font-style: normal;
}

.episode-footer ul {
  padding: 0;
}

.episode-footer ul li {
  list-style: none;
  margin: 0 0 0.5em;
  padding: 0;
}

.episode-footer ul li a {
  color: black;
  /* background-color: khaki; */
}

.episode-footer ul li a:hover {
  color: aqua;
}

.logo {
  display: inline-block;
}
.logo svg {
  width: 100%;
}

abbr {
  font-variant-caps: initial;
}

/* MEDIA  */

@media (max-width: 80em) {
  .episode-title,
  .episode-content {
    grid-column: 1 / span 2;
    grid-template-columns: 10vw 1fr 10vw;
    grid-template-rows: 10vh 1fr 10vh;
    position: relative;
    background-size: 85%;
  }

  .episode-content {
    border-top: 1px solid var(--border-color);
  }

  .episode-title {
    display: grid;
    background-size: 100vw 100vh;
  }

  .episode-title h1 {
    font-size: clamp(2.5em, 8vw, 12em);
  }

  .episode-intro {
    padding-top: 0;
    margin-top: 0;
  }

  .episode-intro p {
    margin-top: 0;
  }

  .episode-title .content *,
  .episode-content .content * {
    max-width: 640px;
  }
}
