.store-page {
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
}

.store-header {
  min-height: 6.5rem;
  padding: 1.25rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--black);
  border-bottom: 1px solid oklch(0.27 0 0);
}

.store-header .wordmark { color: var(--white); }

.store-nav {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.store-nav a {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: .7rem 1rem;
  border: 2px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .25s, color .25s, transform .25s var(--ease);
}

.store-nav a:hover,
.store-nav a:focus-visible {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

.store-nav .store-nav__order {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--black);
}

.product {
  min-height: calc(100svh - 6.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(30rem, .92fr);
}

.product__visual {
  position: relative;
  min-height: 48rem;
  padding: clamp(1.25rem, 4vw, 4rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: oklch(0.12 0 0);
}

.product__visual figure {
  position: relative;
  z-index: 1;
  width: min(100%, 58rem);
  margin: 0;
  animation: album-enter 1s var(--ease) both;
}

.product__visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 18px 18px 0 oklch(0.04 0 0 / .55);
}

.product__visual figcaption {
  margin-top: 1rem;
  color: oklch(0.84 0 0);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.phase {
  position: absolute;
  z-index: 0;
  width: clamp(.65rem, 1.1vw, 1rem);
  height: 48%;
  bottom: -5%;
  transform-origin: bottom;
  animation: phase-rise .8s var(--ease) both;
}

.phase--yellow { left: 8%; background: var(--yellow); transform: rotate(-13deg); }
.phase--red { left: 14%; background: var(--red); transform: rotate(-5deg); animation-delay: .08s; }
.phase--blue { left: 20%; background: var(--blue); transform: rotate(4deg); animation-delay: .16s; }

.product__details {
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--black);
}

.product__heading {
  padding: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.75rem);
  background: var(--yellow);
}

.product__heading p {
  margin: 0 0 1rem;
  font-size: .83rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.product__heading h1 {
  max-width: 8ch;
  margin: 0;
  font: 900 clamp(3.6rem, 6.4vw, 6rem)/.79 "Arial Black", Arial, sans-serif;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.tracklist {
  flex: 1;
  padding: clamp(2rem, 4vw, 4rem);
}

.tracklist h2 {
  margin: 0 0 1.5rem;
  font: 900 clamp(1.7rem, 3vw, 2.5rem)/1 "Arial Black", Arial, sans-serif;
  letter-spacing: -.03em;
}

.tracklist ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(1.25rem, 3vw, 3rem);
  list-style-position: inside;
}

.tracklist li {
  padding: .72rem 0;
  border-bottom: 1px solid oklch(0.78 0 0);
  font-size: clamp(.96rem, 1.35vw, 1.15rem);
  font-weight: 800;
}

.tracklist li::marker {
  color: var(--red);
  font-weight: 900;
}

.purchase {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  color: var(--white);
}

.purchase__price {
  padding: clamp(1.5rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--red);
}

.purchase__price span,
.purchase__price small {
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.purchase__price strong {
  margin: .35rem 0;
  font: 900 clamp(1.8rem, 3.2vw, 2.8rem)/1 "Arial Black", Arial, sans-serif;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.purchase__order {
  padding: clamp(1.5rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .75rem;
  background: var(--blue);
}

.purchase__order p { margin: 0; font-weight: 800; }

.purchase__order a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--white);
  font-size: clamp(.95rem, 1.5vw, 1.2rem);
  font-weight: 900;
  text-decoration-thickness: .09em;
  text-underline-offset: .2em;
}

.purchase__order a span { font-size: 1.5rem; transition: transform .25s var(--ease); }
.purchase__order a:hover span { transform: translate(.2rem, -.2rem); }

.store-footer {
  min-height: 8rem;
  padding: 1.5rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--black);
  color: var(--white);
}

.store-footer a { font-weight: 900; text-underline-offset: .2em; }
.store-footer p { margin: 0; color: var(--muted); font-size: .75rem; }

@keyframes album-enter {
  from { opacity: .25; transform: translateY(2rem) rotate(-1.5deg); }
  to { opacity: 1; transform: none; }
}

@keyframes phase-rise {
  from { opacity: 0; scale: 1 .1; }
  to { opacity: 1; scale: 1 1; }
}

@media (max-width: 980px) {
  .product { grid-template-columns: 1fr; }
  .product__visual { min-height: auto; }
  .product__visual figure { max-width: 46rem; }
  .product__heading h1 { max-width: none; }
}

@media (max-width: 620px) {
  .store-header { min-height: 5.5rem; padding-inline: 1rem; }
  .store-header .wordmark { font-size: 1.65rem; }
  .store-nav { gap: .35rem; }
  .store-nav a { min-height: 40px; padding: .55rem .7rem; font-size: .62rem; }
  .store-nav a:first-child { display: none; }
  .product__visual { padding: 1rem; padding-bottom: 2.2rem; }
  .product__visual img { box-shadow: 8px 8px 0 oklch(0.04 0 0 / .5); }
  .phase { height: 28%; }
  .product__heading { padding: 2rem 1.25rem; }
  .product__heading h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .tracklist { padding: 2rem 1.25rem; }
  .tracklist ol { grid-template-columns: 1fr; }
  .purchase { grid-template-columns: 1fr; }
  .purchase__price,
  .purchase__order { padding: 1.5rem 1.25rem; }
  .store-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .product__visual figure,
  .phase { animation: none; }
}
