:root {
  --text-color: #111;
  --body-bg: white;
  --item-padding: 20px;
  --item-border-radius: 0.45em;
  --player-z-index: 100;
  --logo-size: 25px;
  --transition-fast: 0.15s;

  --control-spacing: 10px;
}

html * {
  box-sizing: border-box;
  position: relative;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "IBM Plex Sans", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--body-bg);
  color: var(--text-color);
  overscroll-behavior: none;
  font-size: 18px;
  font-size: clamp(18px, 2vw, 22px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  margin: 0;
}

p {
  line-height: 1.6;
  margin: 1.5em 0;
  text-wrap-style: pretty;

  &:first-of-type {
    margin-top: 0;
  }

  &:last-of-type {
    margin-bottom: 0;
  }
}

@keyframes focusOutline {
  0% {
    outline: 0 solid;
  }
  50% {
    outline: 7px solid;
  }
  100% {
    outline: 1px solid;
  }
}

a {
  color: inherit;
  transition: opacity var(--transition-fast) ease;
  text-underline-offset: 0.2em;

  &:hover {
    opacity: 0.75;
  }

  &:visited {
    opacity: 0.6;
  }

  &:focus-visible {
    animation: focusOutline 0.5s ease-in-out forwards;
  }
}

p a {
  border-radius: 0.25em;
  padding-inline: 0.25em;
  text-underline-offset: 0.25em;
}

strong {
  font-weight: 600;
}

img {
  display: block;
}

address {
  font-style: normal;
  font-size: 12px;
  opacity: 0.8;
  padding: 0.5em 1em;
  backdrop-filter: blur(10px);
  background-color: #00000045;
  border-radius: 5em;
}

blockquote {
  font-style: italic;
  font-weight: 500;
  font-size: 1.3em;
  margin: 2em 0;
  border-left: 4px solid #00000015;
  padding-left: 1em;
  @media (width > 1000px) {
    font-size: 1.5em;
    float: right;
    clear: both;
    width: 40%;
    margin-top: 0;
    margin-left: 1em;
    margin-right: -15%;
  }
}

/* HELPER CLASSES */

.d-flex {
  display: flex;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.m-auto {
  margin-inline: auto;
}

.m-top-2 {
  margin-top: 2em;
}

.m-bot-0 {
  margin-bottom: 0;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.font-display {
  font-family: "DM Sans", sans-serif;
  letter-spacing: -0.02em;
}

.button {
  display: inline-flex;
  align-items: center;
  background-color: white;
  color: var(--text-color);
  border-radius: 10em;
  padding: 0.6em 1.3em;
  text-decoration: none;
  margin: 0 auto 2em;
  font-size: 0.8em;
  line-height: 1;

  .bg-dark & {
    background-color: white;
    color: var(--body-bg);
  }
}

.button-icon {
  height: 1em;
  width: auto;
  margin-right: 0.5em;
  margin-left: -0.25em;
}

.btn--shadow {
  box-shadow:
    inset 0 0 15px white,
    0 2px 3px #00000030,
    0 10px 20px #00000030;

  &:hover,
  &:focus {
    opacity: 1;
  }
}

.list-check {
  --icon-space: 1.3em;
  list-style: none;
  li {
    padding-left: var(--icon-space);
    &:before {
      content: "\2713";
      display: inline-block;
      margin-left: calc(var(--icon-space) * -1);
      width: var(--icon-space);
      color: var(--accent-color);
    }
  }
}

.font-cooper {
  font-family: "Cooper", display;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* ELEMENTS */

.icn-logo {
  margin-bottom: 15px;
  display: block;
  left: -3px;
  width: var(--logo-size);
  height: var(--logo-size);
  aspect-ratio: 1;
  border: 8px solid var(--text-color);
  border-radius: 50%;
  z-index: 12;
  &::after {
    left: 15px;
    opacity: 10%;
  }
}

.section--bgImage-container-fixed {
  background-color: black;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.section--bgImage-fixed {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  width: 110%;
  height: 110%;
  opacity: 0.5;
}

.section--inner {
  max-width: 70ch;
  width: 100%;
  margin: 0;
  margin-inline: auto;
}

.section--intro {
  font-size: 1.2em;
  line-height: 1.5;
  @media (width > 900px) {
    font-size: 1.4em;
  }
}

.section--text {
  justify-content: center;
  padding: 5em 20px;
  + .section--text {
    padding-top: 0;
  }
}

.has-noise::after {
  content: "";
  background: url("./noise.webp") center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

.image-grid {
  width: 100%;
  overflow: hidden;
  margin: 0;
  figcaption {
    padding: 1em 20px;
    font-size: 0.8em;
  }
}

.image-grid--inner {
  flex-wrap: wrap;
  img {
    width: 50%;
    height: auto;
    @media (width >900px) {
      width: 25%;
    }
  }
}

.inline-image {
  margin: 2em auto 2em;
  width: 100%;
  max-width: 500px;
  opacity: 0.8;
  border-radius: 1em;
}

.inline-image--feature {
  max-width: 100%;
}

.highlight {
  padding: 15px;
  padding-bottom: 1.5em;
  border-radius: 1em;
  border: 2px solid var(--text-color);

  @media (width > 1000px) {
    padding: 1.5em;
  }

  h2 {
    margin-top: 0;
    font-size: 1.2em;
    margin-bottom: 0.25em;
  }

  p {
    line-height: 1.4;
    font-size: 0.9em;
    margin: 0;
  }
}

.highlight--bonus {
  border-style: dotted;
}

.mix-container {
  background-color: #25292c;
  color: white;
  border-radius: 10px;
  margin-bottom: 0.75em;
  margin-top: 0.75em;

  .bg-dark & {
    background-color: #ffffff10;
    color: var(--text-color);
  }
}

@keyframes playerTransition {
  0% {
    bottom: -150px;
  }
  100% {
    bottom: 0;
  }
}

.mix-player--floating {
  --player-spacer: 10px;
  background-color: #25292cbb;
  backdrop-filter: blur(15px);
  border-radius: 10em;
  position: fixed;
  z-index: var(--player-z-index);
  bottom: -150px;
  margin: var(--player-spacer);
  margin-bottom: calc(var(--player-spacer) * 2);
  left: 50%;
  transform: translateX(calc(-50% - var(--player-spacer)));
  max-width: 900px;
  min-width: max-content;
  width: auto;
  outline: 1px solid #ffffff30;
  box-shadow: 0 10px 50px #00000050;
  transition: background-color var(--transition-fast) ease;
  animation: playerTransition 0.5s forwards ease-out;

  &:hover {
    background-color: #25292cdd;
  }
}

.mix-player {
  flex-direction: row;
  align-items: center;
  &:not(.mix-player--floating) {
    box-shadow: 0 1px 0 black;
  }
}

.mix-wrapper {
  flex-direction: column;
  width: 100%;
  audio {
    display: none;
  }
  h3 {
    margin: 0;
    font-size: 13px;
    padding-inline: calc(var(--control-spacing) * 0.7);
    font-weight: 600;
    color: white;
    user-select: none;
    display: none;
  }

  h3 em {
    font-style: normal;
    opacity: 0.6;
  }

  .btn--container {
    gap: var(--control-spacing);
  }

  .button {
    margin: 0;
    padding: 1em 2em;
    font-size: 12px;
    background-color: #ffffff00;
    color: white;
    box-shadow: none;
    transition: background-color var(--transition-fast) ease;

    &:hover,
    &:focus {
      background-color: #ffffff10;
    }
  }
}

.mix-wrapper--title {
  justify-content: space-between;
  align-items: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.video-embed {
  aspect-ratio: 16 / 9;
  margin-bottom: 1em;

  iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 6px;
  }
}

.tracklist {
  padding: 15px;
  @media (width >900px) {
    padding: 1em;
  }

  h3 {
    margin-top: 0;
    font-weight: 500;
    margin-bottom: 0;
    font-size: 13px;
    text-transform: uppercase;
  }

  ol {
    font-size: 13px;
    list-style-position: inside;
    padding: 0;
    margin-top: 5px;
    margin-bottom: 0;
    font-weight: 600;
  }

  li {
    border-top: 1px solid #ffffff20;
    padding: 0.5em;
    margin: 0;
    &:first-of-type {
      border: none;
    }

    &::marker {
      color: #ffffff80;
      min-width: 4em;
      display: inline-block;
      font-weight: normal;
    }

    em {
      opacity: 0.8;
      font-weight: normal;
      @media (width < 500px) {
        display: block;
      }
    }
  }
}

/* NAV */

.skip-link {
  position: absolute;
  top: -5em;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  font-size: 14px;
  background-color: #00000050;
  backdrop-filter: blur(10px);
  color: white;
  padding: 2em;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  transition: top var(--transition-fast) ease-out;
  &:focus {
    width: 100%;
    height: auto;
    top: 0;
    left: auto;
  }
}

nav {
  position: fixed;
  z-index: calc(var(--player-z-index) + 2);
  top: 1em;
  left: 1em;
  right: 1em;
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    font-size: 12px;
    line-height: 1;
    align-items: center;
    border-radius: 10em;
  }
  .icon-back a {
    display: flex;
    aspect-ratio: 1;
    align-items: center;
    background-color: #ffffff90;
    color: #000000;
    padding: 0.5em;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5em;
    backdrop-filter: blur(5px);
    transition:
      transform var(--transition-fast) ease-in-out,
      background-color var(--transition-fast) ease-in-out;

    &:hover,
    &:focus {
      background-color: white;
      transform: scale(1.1);
    }
  }

  svg {
    padding: 0.25em;
  }
}

/* HOMEPAGE */

.homepage {
  overflow-x: hidden;
  font-size: 16px;
  @media (width >1200px) {
    font-size: 17px;
  }

  .has-noise::after {
    opacity: 0.5;
  }

  .section--inner {
    min-height: 100vh;
    max-width: none;
    text-align: left;
    justify-content: center;
    margin: 0;
  }

  ul {
    padding: 0;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
  }

  h1,
  h2,
  h3 {
    margin: 0;
    font-weight: 500;
  }

  h1 {
    padding: 5px var(--item-padding);
    border-radius: 10em;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 900;
    font-family: "DM Sans", sans-serif;
    margin-bottom: 2em;
  }

  h1 em {
    font-style: normal;
    opacity: 0.4;
    display: block;
  }

  a {
    text-decoration: none;
    cursor: pointer;
  }

  .text-container {
    padding: 20px;
    padding-top: 10vh;
    padding-bottom: 10vh;
    text-align: left;

    @media (orientation: landscape) {
      max-width: 1280px;
    }
  }
}

/* SO OLDER BROWSERS ARE CLICKABLE */
.homepage .section--inner {
  z-index: 20;
}

/* HOMEPAGE GRID */

.index-item--list {
  transform: rotate(-0.2deg);
  @media (width > 650px) {
    transform: rotate(-0.6deg);
  }
  li {
    @media (width < 650px) {
      width: 100%;
    }
  }
}

.index-item {
  aspect-ratio: 3/4;
  background-color: white;
  box-shadow: 0 0 100px #00000010;
  border-radius: var(--item-border-radius);
  overflow: hidden;
  align-items: center;
  flex-direction: column;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease,
    opacity 0.25s ease;
  width: 100%;
  height: 100%;
  filter: saturate(0);
  @media (width > 650px) {
    max-width: 300px;
  }

  &:hover,
  &:focus-visible {
    opacity: 1;
    box-shadow:
      0 0 150px #00000030,
      0 30px 50px #00000030,
      0 15px 20px #00000010,
      0 10px 10px #00000010;
    filter: saturate(1);
    cursor: pointer;
    z-index: 2;
    border-width: 0;

    @media (prefers-reduced-motion: no-preference) {
      transform: scale(1.05) rotate(0.1deg);

      @media (width > 650px) {
        transform: scale(1.05) rotate(0.5deg);
      }
    }
  }

  &:not(.index-item--random) {
    &:hover,
    &:focus-visible {
      img {
        transform: scale(1.03);
      }
    }
  }

  &:focus-visible {
    outline-color: var(--text-color);
  }

  h2 {
    font-size: 22px;
    line-height: 1.1;
    margin-bottom: 0.35em;
    font-weight: 800;
    text-wrap-style: balance;
  }

  p {
    line-height: 1.3;
    font-size: 15px;
    opacity: 0.6;
    text-wrap-style: balance;
  }

  small {
    font-size: 11px;
    margin-top: 2em;
    font-weight: 300;
    opacity: 0.6;
  }

  .label {
    position: absolute;
    z-index: 1;
    left: 1em;
    top: 1em;
    background-color: #ea5939;
    color: white;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: bold;
    border-radius: 5em;
    padding: 0.5em 1em;
  }
}

.index-item--image {
  height: 100%;
  width: 100%;
  border-bottom-right-radius: var(--item-border-radius);
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2s ease;
  }
}

.index-item--inner {
  width: 100%;
  flex-direction: column;
  padding: var(--item-padding);
  padding-bottom: calc(var(--item-padding) * 1.5);
  padding-right: 20%;
  justify-content: end;
  z-index: 1;
}

.index-item--coming img {
  filter: blur(20px);
}

.index-item--bordered {
  border: 1px solid #00000015;
  &:not(.index-item--random) .index-item--inner {
    padding-bottom: 0;
  }
}

.index-item--random {
  background-color: #eee;
  .index-item--image {
    margin: 10px;
    width: calc(100% - 20px);
    border-radius: 5px;
    overflow: hidden;
  }
}

.index-item--dark p {
  opacity: 1;
}

.index-item--list:has(.index-item:is(:hover, :focus-visible))
  .index-item:not(:hover, :focus-visible) {
  filter: blur(5px) saturate(0);
  opacity: 0.4;
}

.index-item--overlay {
  background-color: #111;
  &::after {
    content: "";
    display: block;
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: 0;
    background: linear-gradient(
      to bottom,
      rgba(50, 50, 50, 0.8) 30%,
      rgba(50, 50, 50, 0) 50%
    );
    transform: rotate(-10deg);
  }

  .index-item--inner {
    position: absolute;
    color: white;
    aspect-ratio: initial;
    z-index: 10;
  }

  p {
    opacity: 1;
  }
}

.index-item--meta {
  position: absolute;
  z-index: 1;
  bottom: var(--item-padding);
  left: var(--item-padding);
  color: white;

  ul {
    flex-direction: column;
    gap: 1px;
  }

  li {
    min-width: 100%;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background-color: #00000060;
    font-size: 11px;
    padding: 0.5em 0.75em;
    border-radius: 5em;
    backdrop-filter: blur(10px);
    color: white;
  }

  svg {
    opacity: 0.6;
    width: 1em;
    height: 1em;
    margin-right: 0.35em;
    &:not(:first-of-type) {
      margin-left: 0.65em;
    }
  }
}

/* ABOUT */

.about {
  margin-top: 8vh;
  padding: 5px var(--item-padding);
  z-index: 11;
  @media (width > 650px) {
    max-width: 300px;
  }

  h3 {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    font-weight: 900;
    font-family: "DM Sans", sans-serif;
    margin-bottom: 1em;
  }

  ul {
    list-style: disc;
    list-style-position: inside;
    line-height: 1.3;
    font-size: 13px;
    opacity: 0.6;
    font-style: italic;
  }

  p {
    line-height: 1.3;
    font-size: 13px;
    margin-bottom: 0.65em;
    margin-top: 0;
    color: #11111199;
  }

  a {
    text-decoration: underline;
    padding-inline: 0;
    color: var(--text-color);
  }

  .icn-logo {
    border-width: 2px;
    background-color: transparent;
    opacity: 0.2;
  }
}

/* FOOTER */

footer {
  &:not(.footer--simple) {
    height: 100vh;
    overflow: visible;

    &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 10px;
      background-image: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.6) 100%
      );
      z-index: 1;
    }

    .section--inner {
      height: 100%;
      align-items: center;
      justify-content: center;
      z-index: 1;
      color: white;
      padding: 2em;
    }
  }
}

.footer--simple address {
  margin: 20px auto 150px;
  background-color: transparent;
  color: inherit;
}

/* BROWSER WARNING */

.browser-warning {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 70ch;
  text-align: center;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1em 2em 1.5em;
  color: white;
  font-size: 14px;
  backdrop-filter: blur(10px);
  border-radius: 2em;
}

.browser-warning .icon {
  display: inline-block;
  height: 2.5em;
  width: 2.5em;
}

.browser-warning p {
  margin: 0;
  line-height: 1.3;
}

.browser-warning a {
  font-weight: 600;
  font-size: 0.9em;
  margin: 0.75em 0 0.5em;
  color: black;
  background-color: white;
}

/* CHECK IF SUPPORTS NESTING BY USING NESTING! */
main {
  .browser-warning {
    display: none;
  }
}

.homepage-alt {
  @media (width > 900px) {
    --item-padding: 30px;
  }
  h1 {
    padding: 0;
    padding-left: calc(var(--logo-size) * 1.3);
    margin: 0;
  }
  .icn-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
  .text-container {
    padding: 20px;
    max-width: 1800px;
  }
  .index-item--list {
    transform: none;
    gap: 0;
    li {
      @media (width > 900px) {
        width: 33%;
      }
    }
  }
  .index-item {
    border-radius: 0;
    max-width: none;
    filter: none;
    &:hover,
    &:focus-visible {
      transform: none;
      box-shadow: none;
    }

    &:not(.index-item--random) {
      &:hover,
      &:focus-visible {
        img {
          transform: none;
        }
      }
    }
  }
  .index-item--list:has(.index-item:is(:hover, :focus-visible))
    .index-item:not(:hover, :focus-visible) {
    filter: saturate(0);
    opacity: 0.2;
  }
  .index-item--bordered {
    border: none;
  }
}
