/**
 * Retro Hero — Base Styles (structure only)
 *
 * Concept: you walk up to a record-store bin. A row of records leans in a
 * wooden crate; each record is a destination. Hover (or focus) lifts a
 * record up out of the crate to face you — the crate IS the main menu.
 *
 * All color, texture, shadow and sticker treatment lives in styles/*.css.
 * Interaction is pure CSS hover/focus — no JS required.
 */

/* ========================================================================
   ROOT
   ======================================================================== */

.retro-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92vh;
  padding-top: var(--huge);
  padding-bottom: var(--xxl);
  overflow: hidden;
}

/* Backdrop stage: artist posters flank the crate, wood floor below. */
.retro-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Artist-photo posters on the store wall, left and right of the crate */
.retro-hero__poster {
  position: absolute;
  top: 32%;
  bottom: 18%;
  width: clamp(9rem, 18vw, 16rem);
  overflow: hidden;
}

.retro-hero__poster--left {
  left: 2%;
  transform: rotate(-2deg);
}

.retro-hero__poster--right {
  right: 2%;
  transform: rotate(2deg);
}

.retro-hero__poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Wood floor the crate sits on */
.retro-hero__floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
}

/* Warm spotlight on the crate */
.retro-hero__spotlight {
  position: absolute;
  inset: 0;
}

.retro-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 96rem;
  margin: 0 auto;
}

/* ========================================================================
   MARQUEE / PLACARD
   ======================================================================== */

.retro-hero__marquee {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--medium);
  max-width: 48rem;
  margin-bottom: var(--xl);
}

/* feathered paper scrim so the marquee text stays legible over the
   busy aisle shelving behind it, at any --template */
.retro-hero__marquee::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2.5rem -4rem -1.5rem -2.5rem;
  pointer-events: none;
}

.retro-hero__title {
  font-family: var(--header);
  font-size: clamp(3.25rem, 9vw, 7rem);
  line-height: 0.92;
  margin: 0;
  word-break: break-word;
}

.retro-hero__tagline {
  font-family: var(--body);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 500;
  margin: 0;
}

.retro-hero__hint {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: var(--xsmall) 0 0;
  opacity: 0.7;
}

/* CTA shaped like a hanging price tag */
.retro-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--xsmall);
  margin-top: var(--xsmall);
  padding: var(--xsmall) var(--medium) var(--xsmall) var(--small);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.retro-hero__cta-hole {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.retro-hero__cta:hover {
  transform: rotate(-2deg) translateY(-2px);
}

/* ========================================================================
   CRATE STAGE
   ======================================================================== */

.retro-hero__crate {
  position: relative;
  width: 100%;
  perspective: 1700px;
  padding-top: var(--huge); /* headroom for records lifting up */
}

.retro-hero__crate-back {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 70rem);
  height: 14rem;
  z-index: 0;
}

.retro-hero__records {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  list-style: none;
  margin: 0;
  padding: 0 var(--xxl);
  transform-style: preserve-3d;
}

/* ---- individual record ---- */

.retro-hero__record {
  position: relative;
  flex: 0 0 auto;
  width: clamp(9.5rem, 15vw, 13rem);
  margin-left: -3.5rem;
  transform-style: preserve-3d;
}

.retro-hero__record:first-child {
  margin-left: 0;
}

.retro-hero__pick {
  position: relative;
  display: block;
  text-decoration: none;
  transform: rotateY(18deg);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* divider tab poking above the sleeve — carries the section label,
   the way a record-store crate divider does. Always legible. */
.retro-hero__tab {
  position: absolute;
  top: -1.55rem;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  z-index: 3;
  min-width: 3.5rem;
  padding: 0.32rem 0.7rem;
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* the record sleeve face */
.retro-hero__sleeve {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 1 / 1;
  width: 100%;
  padding: var(--small);
  overflow: hidden;
}

/* vinyl disc peeking from behind the sleeve */
.retro-hero__disc {
  position: absolute;
  top: 8%;
  right: -16%;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 999px;
  z-index: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.retro-hero__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.retro-hero__sleeve-title {
  position: relative;
  z-index: 2;
  font-family: var(--header);
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  line-height: 0.95;
}

/* ---- the lift: hover / keyboard focus ---- */

.retro-hero__record:hover,
.retro-hero__record:focus-within {
  z-index: 50;
}

.retro-hero__record:hover .retro-hero__pick,
.retro-hero__record:focus-within .retro-hero__pick {
  transform: rotateY(0deg) translateY(-3.5rem) translateZ(5rem) scale(1.04);
}

.retro-hero__record:hover .retro-hero__disc,
.retro-hero__record:focus-within .retro-hero__disc {
  transform: translateX(38%) rotate(22deg);
}

.retro-hero__record:hover .retro-hero__tab,
.retro-hero__record:focus-within .retro-hero__tab {
  transform: translateX(-50%) translateY(-0.35rem) rotate(0deg);
}

/* nudge the records that come after the lifted one, to make room */
.retro-hero__record:hover ~ .retro-hero__record .retro-hero__pick,
.retro-hero__record:focus-within ~ .retro-hero__record .retro-hero__pick {
  transform: rotateY(18deg) translateX(2.25rem);
}

/* ========================================================================
   CRATE FRONT BOARD
   ======================================================================== */

.retro-hero__crate-front {
  position: absolute;
  left: 50%;
  bottom: -0.75rem;
  transform: translateX(-50%);
  z-index: 30;
  width: min(100%, 70rem);
  height: 5.5rem;
  pointer-events: none;
}

/* ========================================================================
   RESPONSIVE — TABLET
   ======================================================================== */

@media screen and (max-width: 991px) {
  .retro-hero {
    min-height: auto;
    padding-top: var(--xxl);
  }

  .retro-hero__record {
    width: clamp(8rem, 22vw, 11rem);
    margin-left: -3.5rem;
  }

  .retro-hero__poster {
    width: 15vw;
  }
}

/* ========================================================================
   RESPONSIVE — MOBILE: crate flattens into a stack of record spines
   ======================================================================== */

@media screen and (max-width: 767px) {
  .retro-hero__crate {
    perspective: none;
    padding-top: var(--xl);
  }

  .retro-hero__crate-back,
  .retro-hero__crate-front {
    display: none;
  }

  /* drop the side posters on small screens — keep it clean and tappable */
  .retro-hero__poster {
    display: none;
  }

  .retro-hero__records {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0;
    transform-style: flat;
  }

  .retro-hero__record,
  .retro-hero__record:first-child {
    width: 100%;
    margin-left: 0;
  }

  .retro-hero__pick {
    transform: none;
  }

  /* spine = a flat horizontal bar you tap */
  .retro-hero__sleeve {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    aspect-ratio: auto;
    min-height: 3.5rem;
    padding: var(--small) var(--medium);
  }

  .retro-hero__disc {
    position: relative;
    top: auto;
    right: auto;
    width: 2.25rem;
    order: 2;
  }

  .retro-hero__cover {
    position: relative;
    width: 3rem;
    height: 3rem;
    inset: auto;
    order: 2;
  }

  .retro-hero__tab {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    order: 0;
    margin-right: var(--small);
  }

  .retro-hero__record:hover .retro-hero__pick,
  .retro-hero__record:focus-within .retro-hero__pick,
  .retro-hero__record:hover ~ .retro-hero__record .retro-hero__pick {
    transform: none;
  }

  .retro-hero__record:hover .retro-hero__disc,
  .retro-hero__record:focus-within .retro-hero__disc {
    transform: none;
  }

  .retro-hero__record:hover .retro-hero__tab,
  .retro-hero__record:focus-within .retro-hero__tab {
    transform: none;
  }
}

/* ========================================================================
   REDUCED MOTION — keep the lean, drop the motion
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
  .retro-hero__pick,
  .retro-hero__disc,
  .retro-hero__tab,
  .retro-hero__cta {
    transition: none;
  }
}

/* ========================================================================
   FOCUS
   ======================================================================== */

.retro-hero__pick:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.retro-hero__cta:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
