:root {
  --offwhite: #dddada;
  --reddish: #d99;
}

body {
  background-color: #222;
  font-family: "Latin Modern Roman";
  font-weight: 300;
  color: #999;
  font-size: 1.1rem;
}

a {
  text-decoration: none;
  color: var(--reddish);

  &:hover {
    text-decoration: underline;
  }
}

h2,
.album-title {
  letter-spacing: 0.1rem;
  margin: 0;
  font-size: 1.5rem;
  color: #bbb;
}

h3 {
  font-size: 1.1rem;
  margin: 0;
}

#content {
  width: min(100%, 42rem);
  position: relative;
  margin: auto;
}

header {
  width: min-content;
  padding: 0.5rem 0.75rem;
  border: 3px solid #655;
  margin: 0 auto 3rem;

  @media (min-width: 45rem) {
    margin: 6rem auto 4rem;
  }

  >h1 {
    font-weight: normal;
    font-size: min(8vw, 2.25rem);
    letter-spacing: 0.35rem;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
    width: max-content;

    >a {
      color: var(--offwhite);
      text-decoration: none !important;
    }
  }

  img {
    width: 1px;
    height: auto;
    opacity: 0;
    display: none;
  }
}

nav {
  display: flex;
  list-style: none;
  justify-content: space-between;
  padding: 0;
  margin: 0;

  >a {
    text-transform: lowercase;
    letter-spacing: 0.05rem;
    font-size: min(1.6rem, 6vw);
    cursor: pointer;
    color: #b77;
    font-style: italic
  }
}

.nav-link:hover {
  text-decoration: underline;
}

.active {
  font-weight: bold;
  text-decoration: underline;
}

#photo {
  width: 200px;
  height: 200px;
  float: left;
  margin: 0 1rem 2rem 0;
  border-radius: 50%;
  background-image: url("images/lean-web.jpg");
  background-position: -20px 200px;
  background-size: 250px 250px;
  transition: 0.5s;

  &:hover {
    transition: 1s;
    transform: rotate(20deg);
  }
}

.player {
  cursor: pointer;
}

.thumbnail img {
  display: block;
}

/* play button */
.thumbnail {
  position: relative;

  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 2rem solid transparent;
    border-bottom: 2rem solid transparent;
    border-left: 3rem solid var(--offwhite);
    transform: translate(-35%, -50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
  }

  &:hover::after {
    opacity: 1;
    /* Add this */
  }

  & img {
    max-width: 100%;
    height: auto;

    &:hover {
      mix-blend-mode: screen;
    }


  }
}

.pieceofwork {
  margin: 1rem 0 2.5rem;
}

.workinfo {
  background-color: #333;
  padding: 20px;
  color: #aaa;
  display: grid;
  grid-template-columns: min-content auto;
  grid-gap: .25rem 1rem;

  @media (width >=45rem) {
    grid-template-columns: 3rem auto;
  }

  & h2 {
    grid-column: 1/-1;

    & .year {
      font-weight: normal;
      display: none;
    }
  }

  & ul {
    margin: 0;
    padding: 0;
  }

  & li {
    list-style: none;
    text-indent: -2rem;
    /* indent second line */
    margin-left: 2rem;
  }
}

.fullrow {
  grid-column: 1/-1;
}

@media (min-width: 45rem) {
  .festivals {
    display: grid;
    grid-template-columns: max-content auto;
  }
}

.festlabel {
  margin-right: 1rem;
}

/* MUSIC */
.subsection {
  margin-bottom: 4rem;

  >h2 {
    text-transform: none;
    letter-spacing: normal;
    text-align: center;
    margin-bottom: 1rem;
  }
}

.album {
  display: flex;
  width: 100%;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.album-artwork {
  max-width: 40%;
  object-fit: cover;
}

.album-info {
  background-color: #333;
  padding: 20px;
  color: #aaa;
  width: 100%;
}

.song {
  margin: 1.6rem 0;
  display: flex;
  align-items: center;
  min-height: 2rem;
}

.playsong {
  color: transparent;
  border-style: solid;
  background: transparent;
  box-sizing: border-box;
  height: 1.8rem;
  width: 1.8rem;
  border-color: transparent transparent transparent var(--offwhite);
  transition: 100ms all ease;
  will-change: border-width;
  cursor: pointer;
  border-style: solid;
  border-width: 0.9rem 0 0.9rem 1.8rem;
  overflow: hidden;
  margin-right: 0.5rem;

  &.paused {
    border-style: double;
    border-width: 0 0 0 1.8rem;
  }
}

.song-title {
  color: #bbb;
  font-size: larger;
}

.album-track {
  margin: 0.9rem 0;

  & .song-title {
    font-size: 1.1rem;
  }

  & .playsong {
    width: 1.4rem;
    height: 1.4rem;
    border-width: 0.7rem 0 0.7rem 1.4rem;

    &.paused {
      border-width: 0 0 0 1.4rem;
    }
  }
}

.song-credits {
  font-size: smaller;
  font-style: italic;
}

.press {
  margin-top: 0.9rem;
}
