* {
  box-sizing: border-box;
}

:root {
  --ink: #181818;
  --paper: rgba(249, 246, 240, 0.82);
  --paper-solid: #f8f4ed;
  --line: rgba(24, 24, 24, 0.08);
  --shadow: 0 12px 40px rgba(26, 20, 14, 0.10);
}

html {
  min-height: 100%;
  background: #e7d6bd;
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.background,
.veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.background {
  background: url("assets/cover.jpg") center / cover no-repeat;
  transform: scale(1.11);
  filter: blur(28px) saturate(.84);
}

.veil {
  background:
    radial-gradient(circle at center, rgba(251,248,242,.96) 0 28%, rgba(248,243,234,.89) 48%, rgba(240,229,212,.58) 100%),
    rgba(248,243,234,.32);
  backdrop-filter: blur(4px);
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100svh;
  padding:
    max(36px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(42px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  display: grid;
  place-items: start center;
}

.release {
  width: min(100%, 470px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover {
  display: block;
  width: min(72vw, 350px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow:
    0 18px 50px rgba(26, 20, 14, .16),
    0 2px 8px rgba(26, 20, 14, .08);
}

.wordmarks {
  width: min(82vw, 330px);
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wordmark {
  display: block;
  height: auto;
  object-fit: contain;
}

.wordmark.spoiled {
  width: 100%;
  margin-top: 10px;
}

.wordmark.premier {
  width: 55%;
  margin-top: 5px;
  opacity: .78;
}

.physical {
  width: 100%;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.physical-card {
  min-width: 0;
  height: 92px;
  padding: 11px 12px 11px 10px;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255,255,255,.73);
  border: 1px solid rgba(22,22,22,.08);
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(30, 22, 15, .055);
  backdrop-filter: blur(12px);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.physical-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.90);
  box-shadow: 0 11px 28px rgba(30, 22, 15, .085);
}

.product-visual {
  position: relative;
  width: 74px;
  height: 64px;
  display: block;
}

.product-visual img {
  position: absolute;
  z-index: 2;
  left: 2px;
  top: 4px;
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 5px 10px rgba(0,0,0,.13);
}

.disc {
  position: absolute;
  z-index: 1;
  width: 57px;
  height: 57px;
  border-radius: 50%;
  right: 0;
  top: 4px;
}

.vinyl-disc {
  background:
    radial-gradient(circle at center, #e9dfcc 0 12%, #282828 13% 17%, #080808 18% 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.vinyl-disc::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 0 0 4px rgba(255,255,255,.025),
    0 0 0 8px rgba(255,255,255,.018);
}

.cd-disc {
  background:
    radial-gradient(circle at center, #f6f2e8 0 10%, #b8c2c6 11% 15%, transparent 16%),
    conic-gradient(from 45deg, #f8c8e1, #b8e8f0, #f5f0a4, #dfc6ff, #d4f0df, #f8c8e1);
  opacity: .92;
  box-shadow: inset 0 0 0 1px rgba(90,90,90,.18);
}

.physical-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.physical-copy strong {
  font-size: 15px;
  line-height: 1;
  font-weight: 720;
}

.physical-copy span {
  font-size: 11px;
  line-height: 1.1;
  color: rgba(24,24,24,.55);
  white-space: nowrap;
}

.chevron {
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
  opacity: .72;
}

.platforms {
  width: min(100%, 400px);
  margin-top: 17px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform {
  --accent: #777;
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 8px 16px 8px 14px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255,255,255,.72);
  border: 1.6px solid color-mix(in srgb, var(--accent) 74%, white);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(26,20,14,.035);
  backdrop-filter: blur(10px);
  transition:
    transform .15s ease,
    background .15s ease,
    box-shadow .15s ease;
}

.platform:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 20px rgba(26,20,14,.06);
}

.platform:focus-visible,
.physical-card:focus-visible {
  outline: 3px solid rgba(20,20,20,.20);
  outline-offset: 3px;
}

.platform-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: var(--accent);
  overflow: hidden;
}

.platform-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.platform-name {
  font-size: 16px;
  font-weight: 660;
  letter-spacing: -.01em;
}

.spotify { --accent: #1ed760; }
.apple { --accent: #fa355d; }
.deezer { --accent: #9a52ff; }
.youtube { --accent: #ff3030; }
.tidal { --accent: #111111; }
.qobuz { --accent: #1876d2; }
.bandcamp { --accent: #629aa9; }
.soundcloud { --accent: #ff6a00; }

@media (max-width: 520px) {
  .page {
    padding-top: max(24px, env(safe-area-inset-top));
  }

  .release {
    width: min(100%, 410px);
  }

  .cover {
    width: min(78vw, 315px);
    border-radius: 12px;
  }

  .wordmarks {
    width: min(80vw, 292px);
    margin-top: 17px;
  }

  .wordmark.premier {
    margin-top: 10px;
  }

  .physical {
    margin-top: 21px;
    gap: 9px;
  }

  .physical-card {
    height: 82px;
    grid-template-columns: 64px 1fr auto;
    gap: 7px;
    padding: 9px 9px 9px 8px;
    border-radius: 13px;
  }

  .product-visual {
    width: 62px;
    height: 56px;
  }

  .product-visual img {
    width: 51px;
    height: 51px;
    top: 3px;
  }

  .disc {
    width: 49px;
    height: 49px;
    top: 4px;
  }

  .physical-copy strong {
    font-size: 14px;
  }

  .physical-copy span {
    font-size: 10px;
  }

  .physical-card .chevron {
    font-size: 20px;
  }

  .platforms {
    margin-top: 16px;
    width: 100%;
    gap: 11px;
  }

  .platform {
    min-height: 53px;
  }
}

@media (max-width: 360px) {
  .physical {
    grid-template-columns: 1fr;
  }

  .physical-card {
    grid-template-columns: 68px 1fr auto;
  }
}

@media (min-width: 900px) and (min-height: 860px) {
  .page {
    padding-top: 46px;
  }
}

