/* A light layer of grain and a sparse grid extend the original chrome / violet art. */
.scanlines {
  opacity: .115;
  mix-blend-mode: soft-light;
  background-image: url('/assets/grain.svg'), radial-gradient(rgba(255,255,255,.55) .55px, transparent .7px), repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
  background-size: 160px 160px, 5px 5px, 100% 4px;
}
.bloom-bg::after {
  content: '';
  position: absolute;
  inset: 10%;
  opacity: .11;
  background-image: linear-gradient(rgba(235,211,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(235,211,255,.16) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse at 78% 30%, #000 0%, transparent 65%);
  transform: rotate(-12deg);
}
.site-title { font-size: clamp(2.15rem,6.4vw,5.1rem); text-wrap: balance; overflow-wrap: anywhere; }
.newsletter-note { position: relative; max-width: 35rem; margin-top: .75rem; font-size: .75rem; line-height: 1.6; color: var(--muted-foreground); }
button,a,input,select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
article img { background: rgba(255,255,255,.04); }

/* Each detail page gives the artwork its original aspect ratio, without cropping. */
.product-stage {
  display: grid;
  grid-template-columns: minmax(0,420px) minmax(0,1fr);
  align-items: start;
  gap: 48px;
  margin-top: 28px;
  transform-origin: 50% 12%;
  animation: enter-product .72s cubic-bezier(.16,1,.3,1) both;
}
.product-artwork {
  position: sticky;
  top: 28px;
  display: grid;
  place-items: center;
  padding: 9px;
  border-radius: 30px;
  overflow: hidden;
  background-image: linear-gradient(145deg,rgba(255,255,255,.035),transparent 65%);
}
.product-cover {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(68svh,640px);
  object-fit: contain;
  object-position: center;
  border-radius: 21px;
}
.product-info { min-width: 0; padding: 2px 0; }
.product-collection { display: inline-block; margin-top: 12px; border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; transition: background .2s; }
.product-collection:hover { background: var(--secondary); }
.product-title { margin-top: 16px; font-size: clamp(1.65rem,3.1vw,2.4rem); font-weight: 900; line-height: 1.22; overflow-wrap: anywhere; }
.product-price { margin-top: 16px; font-family: var(--font-mono); font-size: 1.5rem; color: var(--blush); }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.product-buy,.product-preview { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; font-size: 14px; font-weight: 800; transition: transform .2s,filter .2s,background .2s; }
.product-buy { background: var(--blush); color: var(--midnight); box-shadow: var(--shadow-glow); }
.product-buy:hover { filter: brightness(1.08); transform: translateY(-2px); }
.product-preview { border: 1px solid var(--border); }
.product-preview:hover { background: var(--secondary); }
.product-description { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--border); }
.product-description h2,.product-includes h2 { font-size: 15px; font-weight: 700; line-height: 1.5; }
.product-description p { margin-top: 12px; max-width: 62ch; font-size: 15px; line-height: 1.85; color: var(--muted-foreground); }
.product-includes { margin-top: 26px; }
.product-contents { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 0; margin-top: 14px; list-style: none; }
.product-contents li { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(125deg,rgba(255,255,255,.045),rgba(255,255,255,.015)); }
.product-contents strong { flex-shrink: 0; color: var(--blush); font-family: var(--font-mono); font-size: 13px; }
.product-contents li>span { min-width: 0; font-size: 12px; line-height: 1.5; color: var(--muted-foreground); overflow-wrap: anywhere; }
.product-delivery { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.delivery-label { display: block; font-size: 11px; color: var(--muted-foreground); }
.delivery-file { display: block; margin-top: 5px; font-size: 12px; font-family: var(--font-mono); color: var(--blush); }
.product-delivery a { font-size: 12px; color: var(--muted-foreground); text-underline-offset: 4px; }
.product-delivery a:hover { color: var(--blush); text-decoration: underline; }

.soundcloud-panel { position: fixed; bottom: 16px; right: 16px; z-index: 50; width: min(360px,calc(100vw - 32px)); padding: 20px; border-radius: 24px; background: rgba(36,23,66,.95); }
.player-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.player-title { font-size: 14px; font-weight: 800; margin-top: 6px; }
.player-close { width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--secondary); font-size: 20px; }
.player-hint { font-size: 12px; line-height: 1.5; color: var(--muted-foreground); margin: 14px 0; }
.soundcloud-panel iframe { width: 100%; height: 166px; border: 0; border-radius: 12px; background: var(--secondary); }
.player-external { display: inline-block; margin-top: 14px; text-decoration: underline; text-underline-offset: 4px; }
[hidden] { display: none!important; }

@keyframes enter-product {
  from { opacity: 0; transform: perspective(1400px) translate3d(0,18px,-38px) scale(.985); }
  to { opacity: 1; transform: perspective(1400px) translate3d(0,0,0) scale(1); }
}
/* Supported browsers also soften the handoff between full document navigations. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: leave-store .18s ease-out both; }
::view-transition-new(root) { animation: enter-store .42s cubic-bezier(.16,1,.3,1) both; }
@keyframes leave-store { to { opacity: 0; } }
@keyframes enter-store { from { opacity: 0; } to { opacity: 1; } }

@media(max-width:767px) {
  .product-stage { grid-template-columns: minmax(0,1fr); gap: 28px; margin-top: 22px; }
  .product-artwork { position: relative; top: auto; width: min(100%,420px); justify-self: center; }
  .product-cover { max-height: 56svh; }
  .product-title { font-size: clamp(1.6rem,6.4vw,2.15rem); }
}
@media(max-width:639px) {
  .site-title { font-size: clamp(2rem,8.9vw,3.7rem); }
  header>a.hud { font-size: .58rem; letter-spacing: .08em; }
  .soundcloud-panel { bottom: 12px; right: 12px; width: calc(100vw - 24px); }
  h1.text-5xl { font-size: clamp(2rem,9vw,3rem); }
  .overflow-x-auto { overscroll-behavior-x: contain; }
  .product-contents { gap: 8px; }
  .product-contents li { padding: 11px 10px; gap: 8px; }
}
@media(prefers-reduced-motion:reduce) {
  .product-stage,::view-transition-old(root),::view-transition-new(root) { animation: none!important; transform: none!important; }
  @view-transition { navigation: none; }
}

.description-line { display:block; margin-top:.55rem; }
.description-line:first-child { margin-top:0; }
