:root {
  color-scheme: dark;
  --void: #030508;
  --panel: rgba(5, 10, 15, 0.82);
  --text: #f6f8f8;
  --muted: #aebcc2;
  --line: rgba(255, 255, 255, 0.16);
  --cyan: #65f0ff;
  --red: #ff2435;
  --spotify: #1ed760;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--void); }
body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--void);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.signal-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: screen;
}
.page-backdrop {
  position: fixed;
  inset: -3rem;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 8, .98) 0%, rgba(3, 5, 8, .82) 39%, rgba(3, 5, 8, .5) 70%, rgba(3, 5, 8, .82) 100%),
    linear-gradient(0deg, rgba(3, 5, 8, .96), transparent 60%),
    url("../assets/recursive-descent.jpg") 50% 43% / cover no-repeat;
  filter: saturate(1.08) contrast(1.08);
}
.page-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 5px);
  opacity: .35;
}

.release-header,
.release-main,
.release-footer {
  position: relative;
  z-index: 2;
}
.release-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.brand img {
  width: clamp(4.4rem, 8vw, 6.2rem);
  height: auto;
  filter: drop-shadow(0 0 16px rgba(101, 240, 255, .25));
}
.back-link {
  padding: .55rem 0;
  border-bottom: 1px solid rgba(101, 240, 255, .4);
  color: rgba(246, 248, 248, .78);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}
.back-link:hover,
.back-link:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
}

.release-main {
  display: grid;
  min-height: calc(100svh - 8.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.release-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(18rem, .82fr) minmax(22rem, 1.18fr);
  border: 1px solid rgba(255, 255, 255, .14);
  background: var(--panel);
  box-shadow: 0 32px 100px rgba(0, 0, 0, .64), 0 0 70px rgba(101, 240, 255, .08);
  backdrop-filter: blur(22px);
}
.cover {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #07141a;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(101, 240, 255, .2);
  box-shadow: inset 0 0 70px rgba(3, 5, 8, .22);
  pointer-events: none;
}
.cover img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}
.release-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
}
.eyebrow {
  margin: 0 0 .9rem;
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(3.25rem, 5.6vw, 5.9rem);
  line-height: .78;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-shadow: 0 0 32px rgba(101, 240, 255, .17);
}
h1 span {
  display: block;
  white-space: nowrap;
}
.artist {
  margin: 1.35rem 0 0;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.release-date {
  align-self: flex-start;
  margin: .9rem 0 0;
  padding: .38rem .58rem;
  border: 1px solid rgba(255, 36, 53, .46);
  color: #ff7782;
  background: rgba(3, 5, 8, .4);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.description {
  max-width: 37rem;
  margin: 1.35rem 0 0;
  color: rgba(246, 248, 248, .75);
  font-size: clamp(.98rem, 1.7vw, 1.12rem);
  line-height: 1.6;
}
.streaming {
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, .13);
}
.streaming-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.streaming-heading h2 {
  margin: 0;
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.streaming-heading > span {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: .9rem;
}
.platform {
  display: flex;
  min-width: 0;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  background: rgba(3, 5, 8, .52);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.platform span,
.platform strong {
  overflow-wrap: anywhere;
}
.platform span {
  font-size: .82rem;
  font-weight: 900;
}
.platform strong {
  color: var(--muted);
  font-size: .6rem;
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
}
.platform.active:hover,
.platform.active:focus-visible {
  transform: translateY(-2px);
}
.platform.spotify {
  border-color: rgba(30, 215, 96, .72);
  background: rgba(30, 215, 96, .1);
}
.platform.spotify strong { color: var(--spotify); }
.platform.pending {
  cursor: not-allowed;
  opacity: .56;
}
.album-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.album-note a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(101, 240, 255, .35);
}
.release-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  color: rgba(246, 248, 248, .55);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.release-footer a:hover,
.release-footer a:focus-visible { color: var(--cyan); }

@media (max-width: 820px) {
  .release-main { align-items: start; }
  .release-card { grid-template-columns: 1fr; }
  .cover { aspect-ratio: 1; }
  .release-copy { padding: clamp(1.5rem, 7vw, 3rem); }
  h1 { font-size: clamp(2.7rem, 14vw, 5.9rem); }
}

@media (max-width: 520px) {
  .release-header { align-items: flex-start; }
  .brand span { display: none; }
  .release-main { padding: .75rem; }
  .release-card { backdrop-filter: blur(14px); }
  .platform-grid { grid-template-columns: 1fr; }
  .streaming-heading { align-items: flex-start; flex-direction: column; }
  .release-footer { flex-direction: column; }
}

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