:root {
  color-scheme: dark;
  --background: #151311;
  --background-rgb: 21, 19, 17;
  --gradient-a-rgb: 240, 111, 79;
  --gradient-b-rgb: 48, 146, 132;
  --gradient-c-rgb: 21, 19, 17;
  --accent: #f06f4f;
  --surface: #fffaf1;
  --surface-ink: #111111;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --shadow: rgba(0, 0, 0, 0.36);
  --radius-card: 15px;
  --radius-art: 20px;
  --art-max: 400px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(115% 115% at 14% 12%, rgba(var(--gradient-a-rgb), 0.34), transparent 46%),
    radial-gradient(120% 120% at 88% 86%, rgba(var(--gradient-b-rgb), 0.26), transparent 50%),
    linear-gradient(155deg, rgba(var(--background-rgb), 1), rgba(var(--gradient-c-rgb), 0.92));
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: clamp(28px, 4vw, 44px);
  padding: 0 clamp(18px, 4vw, 28px);
}

.release-layout {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, var(--art-max)) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 56px);
}

.artwork-col {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100svh;
  display: grid;
  place-items: center;
}

.artwork-wrap {
  position: relative;
  width: 100%;
}

.artwork-wrap::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: var(--radius-art);
  background: var(--accent);
  filter: blur(44px);
  opacity: 0.26;
  transform: translateY(22px);
  z-index: -1;
}

.artwork {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-art);
  box-shadow: 0 32px 80px -30px var(--shadow);
}

.release-copy {
  min-width: 0;
  align-self: start;
  /* Start the text at the top edge of the vertically-centered artwork, then
     let it scroll up from there. The art is centered in a 100svh column, so
     the empty space above it is (100svh - art height) / 2. */
  padding-top: max(0px, calc(50svh - var(--art-max) / 2));
  padding-bottom: clamp(40px, 8vh, 96px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.links {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.listen-link {
  --brand: var(--accent);
  position: relative;
  min-height: 62px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  padding: 11px 18px 11px 11px;
  color: var(--surface-ink);
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.05),
    0 14px 28px -18px var(--shadow);
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.listen-link:hover,
.listen-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.05),
    0 20px 38px -20px var(--shadow),
    0 0 0 1px color-mix(in srgb, var(--brand) 26%, transparent);
  outline: none;
}

.listen-link:focus-visible {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--brand) 45%, transparent),
    0 20px 38px -20px var(--shadow);
}

.platform-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--brand-ink);
  background: var(--brand);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.platform-logo {
  width: 21px;
  height: 21px;
  display: block;
}

.platform-youtube .platform-logo,
.platform-youtube-music .platform-logo,
.platform-bandcamp .platform-logo,
.platform-soundcloud .platform-logo,
.platform-tidal .platform-logo {
  width: 23px;
  height: 23px;
}

.link-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.link-arrow {
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
  opacity: 0.45;
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease;
}

.listen-link:hover .link-arrow,
.listen-link:focus-visible .link-arrow {
  opacity: 0.9;
  transform: translateX(3px) rotate(45deg);
}

.footer {
  width: min(980px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-releases {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-releases a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.footer-releases a:hover,
.footer-releases a:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ink) 42%, transparent);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  outline: none;
}

@media (prefers-reduced-motion: no-preference) {
  .artwork-wrap,
  .eyebrow,
  h1,
  .listen-link,
  .footer {
    animation: rise 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .artwork-wrap {
    animation-delay: 40ms;
  }

  .eyebrow {
    animation-delay: 90ms;
  }

  h1 {
    animation-delay: 130ms;
  }

  .listen-link {
    animation-delay: calc(190ms + var(--index, 0) * 55ms);
  }

  .footer {
    animation-delay: 280ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .page-shell {
    align-content: start;
    padding: 30px 18px 28px;
  }

  .release-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .artwork-col {
    position: static;
    height: auto;
    display: block;
  }

  .artwork-wrap {
    width: min(100%, 380px);
    margin: 0 auto;
  }

  .release-copy {
    align-self: auto;
    padding-block: 0;
  }

  h1 {
    max-width: 16ch;
  }

  .links {
    margin-top: 22px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .listen-link {
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    min-height: 58px;
    gap: 12px;
    padding: 10px 14px 10px 10px;
  }

  .platform-mark {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
