:root {
  --pad: 20px;
  --text: #ffffff;
  --link: #cacaca;
  --logo-h: 100px;
  --logo-ratio: 3.25;
  --fs: 12px;
  --lh: 17px;
  --tracking: -0.02em;

  --nav-slot: 200px;

  --tile: 250px;
  --tile-big: 350px;
  --tile-gap: 25px;

  --bg-opacity: 0.25;
  --fade-in: 450ms;
  --fade-out: 300ms;
}

body.page-home {
  --bg-opacity: 1;
}

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

html {
  background: #000;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: #000;
  color: var(--text);
  font-family: "Stack Sans Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: var(--fs);
  line-height: var(--lh);
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overflow-wrap: break-word;
  font-variant-emoji: text;
}

ul,
ol {
  list-style: none;
}

img {
  display: block;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 1px dashed var(--text);
  outline-offset: 4px;
}

@media (hover: hover) {
  a:hover {
    color: var(--text);
  }
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("../assets/bg.jpg") center / cover no-repeat;
  opacity: var(--bg-opacity);
  pointer-events: none;
}

.fade {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  opacity: 0;
  pointer-events: none;
  animation: reveal var(--fade-in) ease-out both;
}

@keyframes reveal {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.intro {
  display: none;
}

html.has-intro .intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  animation: intro-out 800ms ease-in-out 1500ms both;
}

html.has-intro .intro img {
  height: var(--logo-h);
  width: auto;
  max-width: calc(100% - 2 * var(--pad));
  animation: intro-logo 800ms ease-out 300ms both;
}

@keyframes intro-logo {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes intro-out {
  from {
    opacity: 1;
    visibility: visible;
  }

  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade {
    animation-duration: 1ms;
  }
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--pad);
  padding: var(--pad);
  pointer-events: none;
}

.top>* {
  pointer-events: auto;
}

.nav {
  flex: 1 1 0;
  min-width: 0;
  margin-top: -2px;
  pointer-events: none;
}

.nav a {
  pointer-events: auto;
}

.nav ul {
  display: flex;
}

.nav li {
  flex: 0 1 var(--nav-slot);
  min-width: max-content;
  white-space: nowrap;
}

.logo {
  flex: 0 0 auto;
  display: block;
}

.logo img {
  height: var(--logo-h);
  width: auto;
}

main {
  position: fixed;
  top: calc(var(--pad) + var(--logo-h));
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 0 var(--pad) calc(var(--pad) + var(--logo-h));
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a transparent;
}

body:not(.page-home) main {
  scrollbar-gutter: stable both-edges;
}

body:not(.page-home) main {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 110px), transparent calc(100% - 70px));
  mask-image: linear-gradient(to bottom, #000 calc(100% - 110px), transparent calc(100% - 70px));
}

.copyright {
  position: fixed;
  right: var(--pad);
  bottom: var(--pad);
  z-index: 5;
  text-align: right;
}

.page-home main {
  padding-bottom: calc(var(--pad) * 2 + var(--lh) * 2);
}

.social {
  margin: auto 0 0 auto;
  text-align: right;
}

.grid {
  --t: var(--tile);
  width: min(100%, 1100px);
  margin: 0 auto auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, min(var(--t), 100%));
  justify-content: center;
  gap: var(--tile-gap);
}

.grid:not(:has(.tile:nth-child(4))) {
  --t: var(--tile-big);
  margin: auto;
}

.tile {
  display: block;
}

.tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: #000000;
}

.extras {
  width: min(100%, 643px);
  margin: auto;
}

.extras li {
  position: relative;
  padding: 0 110px 0 66px;
}

.extras li::before {
  position: absolute;
  left: 0;
  top: 0;
}

.extras .date {
  position: absolute;
  right: 0;
  top: 0;
}

.extras li:nth-last-child(1)::before {
  content: "01";
}

.extras li:nth-last-child(2)::before {
  content: "02";
}

.extras li:nth-last-child(3)::before {
  content: "03";
}

.extras li:nth-last-child(4)::before {
  content: "04";
}

.extras li:nth-last-child(5)::before {
  content: "05";
}

.extras li:nth-last-child(6)::before {
  content: "06";
}

.extras li:nth-last-child(7)::before {
  content: "07";
}

.extras li:nth-last-child(8)::before {
  content: "08";
}

.extras li:nth-last-child(9)::before {
  content: "09";
}

.extras li:nth-last-child(10)::before {
  content: "10";
}

.extras li:nth-last-child(11)::before {
  content: "11";
}

.extras li:nth-last-child(12)::before {
  content: "12";
}

.extras li:nth-last-child(13)::before {
  content: "13";
}

.extras li:nth-last-child(14)::before {
  content: "14";
}

.extras li:nth-last-child(15)::before {
  content: "15";
}

.extras li:nth-last-child(16)::before {
  content: "16";
}

.extras li:nth-last-child(17)::before {
  content: "17";
}

.extras li:nth-last-child(18)::before {
  content: "18";
}

.extras li:nth-last-child(19)::before {
  content: "19";
}

.extras li:nth-last-child(20)::before {
  content: "20";
}

.extras li:nth-last-child(21)::before {
  content: "21";
}

.extras li:nth-last-child(22)::before {
  content: "22";
}

.extras li:nth-last-child(23)::before {
  content: "23";
}

.extras li:nth-last-child(24)::before {
  content: "24";
}

.extras li:nth-last-child(25)::before {
  content: "25";
}

.extras li:nth-last-child(26)::before {
  content: "26";
}

.extras li:nth-last-child(27)::before {
  content: "27";
}

.extras li:nth-last-child(28)::before {
  content: "28";
}

.extras li:nth-last-child(29)::before {
  content: "29";
}

.extras li:nth-last-child(30)::before {
  content: "30";
}

.extras li:nth-last-child(31)::before {
  content: "31";
}

.extras li:nth-last-child(32)::before {
  content: "32";
}

.extras li:nth-last-child(33)::before {
  content: "33";
}

.extras li:nth-last-child(34)::before {
  content: "34";
}

.extras li:nth-last-child(35)::before {
  content: "35";
}

.extras li:nth-last-child(36)::before {
  content: "36";
}

.extras li:nth-last-child(37)::before {
  content: "37";
}

.extras li:nth-last-child(38)::before {
  content: "38";
}

.extras li:nth-last-child(39)::before {
  content: "39";
}

.extras li:nth-last-child(40)::before {
  content: "40";
}

.extras li:nth-last-child(41)::before {
  content: "41";
}

.extras li:nth-last-child(42)::before {
  content: "42";
}

.extras li:nth-last-child(43)::before {
  content: "43";
}

.extras li:nth-last-child(44)::before {
  content: "44";
}

.extras li:nth-last-child(45)::before {
  content: "45";
}

.extras li:nth-last-child(46)::before {
  content: "46";
}

.extras li:nth-last-child(47)::before {
  content: "47";
}

.extras li:nth-last-child(48)::before {
  content: "48";
}

.extras li:nth-last-child(49)::before {
  content: "49";
}

.extras li:nth-last-child(50)::before {
  content: "50";
}

.extras li:nth-last-child(51)::before {
  content: "51";
}

.extras li:nth-last-child(52)::before {
  content: "52";
}

.extras li:nth-last-child(53)::before {
  content: "53";
}

.extras li:nth-last-child(54)::before {
  content: "54";
}

.extras li:nth-last-child(55)::before {
  content: "55";
}

.extras li:nth-last-child(56)::before {
  content: "56";
}

.extras li:nth-last-child(57)::before {
  content: "57";
}

.extras li:nth-last-child(58)::before {
  content: "58";
}

.extras li:nth-last-child(59)::before {
  content: "59";
}

.extras li:nth-last-child(60)::before {
  content: "60";
}

.extras li:nth-last-child(61)::before {
  content: "61";
}

.extras li:nth-last-child(62)::before {
  content: "62";
}

.extras li:nth-last-child(63)::before {
  content: "63";
}

.extras li:nth-last-child(64)::before {
  content: "64";
}

.extras li:nth-last-child(65)::before {
  content: "65";
}

.extras li:nth-last-child(66)::before {
  content: "66";
}

.extras li:nth-last-child(67)::before {
  content: "67";
}

.extras li:nth-last-child(68)::before {
  content: "68";
}

.extras li:nth-last-child(69)::before {
  content: "69";
}

.extras li:nth-last-child(70)::before {
  content: "70";
}

.extras li:nth-last-child(71)::before {
  content: "71";
}

.extras li:nth-last-child(72)::before {
  content: "72";
}

.extras li:nth-last-child(73)::before {
  content: "73";
}

.extras li:nth-last-child(74)::before {
  content: "74";
}

.extras li:nth-last-child(75)::before {
  content: "75";
}

.extras li:nth-last-child(76)::before {
  content: "76";
}

.extras li:nth-last-child(77)::before {
  content: "77";
}

.extras li:nth-last-child(78)::before {
  content: "78";
}

.extras li:nth-last-child(79)::before {
  content: "79";
}

.extras li:nth-last-child(80)::before {
  content: "80";
}

.extras li:nth-last-child(81)::before {
  content: "81";
}

.extras li:nth-last-child(82)::before {
  content: "82";
}

.extras li:nth-last-child(83)::before {
  content: "83";
}

.extras li:nth-last-child(84)::before {
  content: "84";
}

.extras li:nth-last-child(85)::before {
  content: "85";
}

.extras li:nth-last-child(86)::before {
  content: "86";
}

.extras li:nth-last-child(87)::before {
  content: "87";
}

.extras li:nth-last-child(88)::before {
  content: "88";
}

.extras li:nth-last-child(89)::before {
  content: "89";
}

.extras li:nth-last-child(90)::before {
  content: "90";
}

.extras li:nth-last-child(91)::before {
  content: "91";
}

.extras li:nth-last-child(92)::before {
  content: "92";
}

.extras li:nth-last-child(93)::before {
  content: "93";
}

.extras li:nth-last-child(94)::before {
  content: "94";
}

.extras li:nth-last-child(95)::before {
  content: "95";
}

.extras li:nth-last-child(96)::before {
  content: "96";
}

.extras li:nth-last-child(97)::before {
  content: "97";
}

.extras li:nth-last-child(98)::before {
  content: "98";
}

.extras li:nth-last-child(99)::before {
  content: "99";
}

.release {
  display: grid;
  grid-template-columns: minmax(0, max-content) auto;
  column-gap: 60px;
  align-items: start;
  max-width: 100%;
  margin: auto;
  position: relative;
  top: 1px;
}

.col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.cover {
  position: relative;
  top: 1px;
}

.cover img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  background: #1a1a1a;
}

.meta {
  margin-bottom: var(--lh);
}

.tracks {
  counter-reset: track;
}

.tracks li {
  counter-increment: track;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
}

.tracks li::before {
  content: counter(track) ".";
}

.credits {
  margin-top: var(--lh);
}

.links {
  margin-top: var(--lh);
}

.links ul+ul {
  margin-top: var(--lh);
}

.rights {
  margin-top: 16px;
}

@media (max-width: 800px),
(max-height: 520px) {
  body {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  .top {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: var(--pad) var(--pad) 0;
    pointer-events: auto;
  }

  .logo {
    order: -1;
    align-self: center;
    width: min(100%, calc(var(--logo-h) * var(--logo-ratio)));
  }

  .logo img {
    width: 100%;
    height: auto;
  }

  .nav {
    flex: none;
    min-width: auto;
    margin-top: 0;
    pointer-events: auto;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav li {
    flex: 0 0 auto;
    min-width: 0;
  }

  .nav li.back {
    order: 2;
    flex-basis: 100%;
    text-align: center;
  }

  main {
    position: static;
    flex: 1;
    padding: var(--pad) var(--pad) 0;
    overflow: visible;
  }

  body:not(.page-home) main {
    scrollbar-gutter: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .copyright {
    position: static;
    padding: var(--pad);
  }

  .page-home main {
    padding-bottom: 0;
    justify-content: flex-end;
  }

  .social {
    margin: 0 0 0 auto;
  }

  .grid,
  .extras,
  .release {
    margin: 0 auto;
  }

  .grid:not(:has(.tile:nth-child(4))) {
    margin: 0 auto;
  }

  .release {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .col-left,
  .col-right {
    display: contents;
  }

  .cover {
    order: 1;
  }

  .cover img {
    width: min(100%, var(--tile-big));
    height: auto;
    aspect-ratio: 1;
  }

  .meta {
    order: 2;
    margin: var(--lh) 0 var(--lh);
  }

  .tracks {
    order: 3;
  }

  .links {
    order: 4;
    text-align: left;
  }

  .credits {
    order: 5;
  }

  .rights {
    order: 6;
    margin-top: var(--lh);
    text-align: left;
  }
}

@media (max-width: 800px) {
  body.page-home {
    --bg-opacity: 0.3;
  }
}

@media (max-width: 520px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid:not(:has(.tile:nth-child(4))) {
    grid-template-columns: minmax(0, var(--tile-big));
    justify-content: center;
  }

  .extras li {
    padding: 0 0 0 34px;
  }

  .extras .date {
    position: static;
    display: block;
  }
}