@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --paper: #f6f6f6;
  --muted: rgba(246, 246, 246, 0.58);
  --line: rgba(246, 246, 246, 0.14);
  --discord: #5865f2;
  --discord-dark: #4752c4;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #4a4a4a var(--ink);
  background: var(--ink);
}

html.locked {
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  font-family: var(--sans);
  line-height: 1.6;
  color: var(--paper);
  background:
    radial-gradient(60% 420px at 50% 0, rgba(255, 255, 255, 0.07), transparent),
    var(--ink);
  background-repeat: no-repeat;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--paper);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 6px;
}

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

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: clamp(1.1rem, 3vw, 2rem) var(--pad);
}

.brand,
.about-link {
  font: 400 clamp(1.6rem, 3vw, 2.1rem) / 1 var(--serif);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand {
  justify-self: start;
}

.about-link {
  position: relative;
  justify-self: end;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.about-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.about-link:hover::after,
.about-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.logo {
  display: block;
  width: clamp(58px, 7vw, 78px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(246, 246, 246, 0.22), 0 0 0 6px rgba(246, 246, 246, 0.05);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.logo:hover {
  transform: scale(1.07) rotate(-4deg);
  box-shadow: 0 0 0 1px rgba(246, 246, 246, 0.6), 0 0 0 10px rgba(246, 246, 246, 0.08);
}

.pdp {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #1a1a1a;
}

main {
  flex: 1;
  padding: clamp(2rem, 6vw, 4.5rem) var(--pad) clamp(4rem, 10vw, 8rem);
}

.grid {
  --card: 320px;
  --gap: clamp(1rem, 2.2vw, 1.75rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.75rem, 3.5vw, 2.75rem) var(--gap);
  width: min(1180px, 100%);
  margin-inline: auto;
}

.grid li {
  flex: 0 0 var(--card);
  min-width: 0;
}

.js .grid li {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .grid li.in {
  opacity: 1;
  transform: none;
}

.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: #141414;
  transition: transform 0.7s var(--ease), border-color 0.5s;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.02);
  transition: transform 1.2s var(--ease), filter 0.7s var(--ease);
}

.media.no-image::before {
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 400 5rem / 1 var(--serif);
  color: rgba(246, 246, 246, 0.85);
  background: radial-gradient(circle at 30% 20%, #2a2a2a, #0d0d0d 70%);
}

.arrow {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  transform: scale(0) rotate(-90deg);
  transition: transform 0.6s var(--ease);
}

.arrow svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

a.card:hover .media,
a.card:focus-visible .media {
  transform: translateY(-6px);
  border-color: rgba(246, 246, 246, 0.42);
}

a.card:hover img,
a.card:focus-visible img {
  filter: none;
  transform: scale(1.08);
}

a.card:hover .arrow,
a.card:focus-visible .arrow {
  transform: none;
}

.title {
  margin-top: 0.9rem;
  font: 400 1.5rem / 1.05 var(--serif);
  letter-spacing: -0.01em;
}

.desc {
  display: -webkit-box;
  margin-top: 0.4rem;
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(92vw, 420px);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  border: 1px solid rgba(246, 246, 246, 0.16);
  border-radius: 1.75rem;
  background: #101010;
  color: var(--paper);
  text-align: center;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

dialog[open] {
  animation: pop 0.55s var(--ease);
}

dialog[open]::backdrop {
  animation: fade 0.4s ease;
}

dialog.closing {
  animation: pop-out 0.25s ease forwards;
}

dialog.closing::backdrop {
  animation: fade-out 0.25s ease forwards;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.94);
  }
}

@keyframes pop-out {
  to {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

.about-body {
  position: relative;
  padding: clamp(2rem, 6vw, 2.75rem) clamp(1.5rem, 5vw, 2.25rem) clamp(1.75rem, 5vw, 2.25rem);
}

.close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease);
}

.close svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.close:hover {
  background: var(--paper);
  color: var(--ink);
  transform: rotate(90deg);
}

dialog h2 {
  font: 400 clamp(2.8rem, 10vw, 3.6rem) / 1 var(--serif);
  letter-spacing: -0.02em;
}

.pdp-large {
  width: 112px;
  height: 112px;
  margin: 1.4rem auto;
  box-shadow: 0 0 0 1px rgba(246, 246, 246, 0.22), 0 0 0 7px rgba(246, 246, 246, 0.05);
}

dialog p {
  max-width: 32ch;
  margin: 0 auto 1.75rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.05rem 1.4rem;
  border-radius: 999px;
  background: var(--discord);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.discord svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.discord:hover,
.discord:focus-visible {
  background: var(--discord-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(88, 101, 242, 0.42);
}

.js .top > * {
  animation: drop 1s var(--ease) backwards;
}

.js .top > :nth-child(2) {
  animation-delay: 0.1s;
}

.js .top > :nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
}

.page-404 {
  display: grid;
  place-items: center;
  flex: 1;
  padding: var(--pad);
  text-align: center;
}

.page-404 h1 {
  font: 400 clamp(8rem, 34vw, 22rem) / 0.85 var(--serif);
  letter-spacing: -0.05em;
}

.page-404 a {
  display: inline-block;
  margin-top: 1.5rem;
  font: 400 1.7rem / 1 var(--serif);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

.wave {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.wave.off {
  opacity: 0;
}

.top,
main {
  position: relative;
  z-index: 1;
}

.title,
.desc {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.8);
}

.has-player main {
  padding-bottom: clamp(9rem, 14vw, 10rem);
}

.player {
  --beat: 0;
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 20;
  width: min(360px, calc(100vw - 1.5rem));
  padding: 0.7rem 0.75rem 0.55rem;
  border: 1px solid rgba(246, 246, 246, 0.12);
  border-radius: 18px;
  background: rgba(14, 14, 16, 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  animation: player-in 0.9s var(--ease) 0.2s both;
}

@keyframes player-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

.mp-main {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.7rem;
}

.mp-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 10px;
  background: #1b1b1d;
  box-shadow: 0 0 0 1px rgba(246, 246, 246, 0.1), 0 0 calc(var(--beat) * 26px) rgba(246, 246, 246, calc(var(--beat) * 0.35));
  transform: scale(calc(1 + var(--beat) * 0.05));
}

.mp-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-cover svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: rgba(246, 246, 246, 0.8);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mp-info {
  min-width: 0;
}

.mp-title,
.mp-artist {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mp-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.mp-artist {
  font-size: 0.76rem;
  line-height: 1.3;
  color: var(--muted);
}

.mp-artist:empty {
  display: none;
}

.mp-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background-color 0.25s, transform 0.3s var(--ease);
}

.mp-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mp-btn:hover {
  background: rgba(246, 246, 246, 0.1);
}

.mp-btn:active {
  transform: scale(0.92);
}

.mp-play {
  width: 44px;
  height: 44px;
  background: var(--paper);
  color: var(--ink);
}

.mp-play:hover {
  background: #fff;
  transform: scale(1.06);
}

.mp-play .i-pause,
.player.playing .mp-play .i-play {
  display: none;
}

.player.playing .mp-play .i-pause {
  display: block;
}

.mp-more[aria-expanded="true"] {
  background: rgba(246, 246, 246, 0.14);
}

.mp-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.mp-time {
  min-width: 2.4em;
  font-size: 0.68rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.mp-time:last-child {
  text-align: right;
}

.mp-range {
  --p: 0%;
  width: 100%;
  height: 18px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.mp-range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--paper) var(--p), rgba(246, 246, 246, 0.2) var(--p));
}

.mp-range::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  transform: scale(0.8);
  transition: transform 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.mp-range:hover::-webkit-slider-thumb {
  transform: scale(1.1);
}

.mp-range::-moz-range-track {
  height: 3px;
  border-radius: 3px;
  background: rgba(246, 246, 246, 0.2);
}

.mp-range::-moz-range-progress {
  height: 3px;
  border-radius: 3px;
  background: var(--paper);
}

.mp-range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.mp-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  width: 240px;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(246, 246, 246, 0.12);
  border-radius: 16px;
  background: rgba(14, 14, 16, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.85);
  animation: menu-in 0.35s var(--ease) both;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

.mp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  font-size: 0.85rem;
  cursor: pointer;
}

.mp-row + .mp-row {
  border-top: 1px solid rgba(246, 246, 246, 0.08);
}

.mp-row .mp-range {
  width: 120px;
}

.mp-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mp-check i {
  position: relative;
  flex: none;
  width: 36px;
  height: 21px;
  border-radius: 11px;
  background: rgba(246, 246, 246, 0.2);
  transition: background-color 0.3s;
}

.mp-check i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.35s var(--ease), background-color 0.3s;
}

.mp-check input:checked + i {
  background: var(--paper);
}

.mp-check input:checked + i::after {
  background: var(--ink);
  transform: translateX(15px);
}

.mp-check input:focus-visible + i {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .grid {
    --card: 100%;
  }

  .player {
    right: 0.5rem;
    bottom: 0.5rem;
    width: calc(100vw - 1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .js .grid li {
    opacity: 1;
    transform: none;
  }
}
