:root {
  --cream: #f6ead7;
  --black: #111111;
  --orange: #f4a31b;
  --green: #2f7634;
  --blue: #168bc4;
  --purple: #7652a8;
  --white: #fffdf7;

  --page-width: 1280px;

  /* flower strip down the left edge: drawn large, mostly off the page */
  --flowers: clamp(240px, 32vw, 600px);
  --flowers-visible: calc(var(--flowers) * 0.45);
}


/* RESET */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #ffffff;

  color: var(--black);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  line-height: 1.4;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}


/* HEADER */

.site-header {
  width: min(100% - 40px, var(--page-width));
  margin: 0 auto;
  min-height: 90px;

  /* stays pinned to the top while scrolling */
  position: sticky;
  top: 0;
  z-index: 10;

  /* white backing that stretches to both screen edges */
  background: #ffffff;
  box-shadow: 0 0 0 100vmax #ffffff;
  clip-path: inset(0 -100vmax);

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 2px solid var(--black);
}

.brand {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.brand img {
  height: 46px;
  width: auto;
}

.header-shop-link {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.header-shop-link:hover {
  text-decoration: underline;
}


/* GLOBAL */

.section {
  width: min(100% - 40px, var(--page-width));
  margin: 0 auto;
  padding: 120px 0;
}

.section-label,
.eyebrow,
.side-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}


/* BUTTONS */

.button {
  display: inline-block;
  padding: 18px 30px;
  border-radius: 999px;

  text-decoration: none;
  text-transform: uppercase;

  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;

  border: 2px solid var(--black);

  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.button:hover {
  transform: translateY(-3px);
}

/* pill ends make a flush button look indented, so left-aligned
   buttons sit a touch left of the text edge */
.hero .button,
.product-copy .button {
  margin-left: -8px;
}

.button-primary {
  background: var(--black);
  color: var(--cream);
}

.button-primary:hover {
  background: var(--orange);
  color: var(--black);
}

.hero .button-primary:hover {
  background: #fbb816;
}

.button-light {
  background: var(--cream);
  color: var(--black);
}

.button-light:hover {
  background: var(--orange);
}


/* FLOWER EDGE: flowers flowing off the left edge, below the hero */

.flower-edge {
  /* make room for the flowers, plus a little balance on the right */
  padding-left: var(--flowers-visible);
  padding-right: calc(var(--flowers-visible) * 0.4);

  background-image: url("assets/flowers-left.png");
  background-repeat: repeat-y;
  background-size: var(--flowers) auto;
  background-position: calc(var(--flowers-visible) - var(--flowers)) top;
}


/* HERO */

.hero {
  width: min(100% - 40px, var(--page-width));
  margin: 0 auto;


  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;

  align-items: center;

  padding: 70px 0 50px;
}

.hero-copy {
  max-width: 580px;
}

.eyebrow {
  margin-bottom: 24px;
}

.hero-art {
  min-width: 0;
}

.album-art {
  position: relative;
  width: 89%;
  margin: 0 auto;
}

.album-flip {
  display: block;
  width: 100%;

  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  perspective: 1800px;
}

.album-flip:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}

/* front and back are framed identically; the card turns over around its
   vertical axis like a record being flipped in someone's hands */
.album-card {
  display: block;
  position: relative;

  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.45, 0.05, 0.25, 1);
}

.album-card img {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.album-back {
  position: absolute;
  inset: 0;
  height: 100%;
  transform: rotateY(180deg);
}

.album-flip[aria-pressed="true"] .album-card {
  transform: rotateY(180deg);
}

/* hover is read from the wrapper, which doesn't move, so the turning
   card can't slip out from under the cursor and flicker */
@media (hover: hover) {
  .album-art:hover .album-card {
    transform: rotateY(180deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .album-card {
    transition: none;
  }
}

.hero h1 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.hero h1 span {
  color: var(--purple);
}

.hero-tagline {
  max-width: 520px;

  font-size: clamp(1.1rem, 1.45vw, 1.45rem);
  line-height: 1.2;
  text-wrap: balance;

  margin-bottom: 20px;
}

.hero-badges {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 8px 16px;
  border-radius: 999px;

  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* soft tints of the album greens and oranges */
.badge-green {
  background: #e2f0df;
  color: #24602a;
}

.badge-orange {
  background: #fdecc8;
  color: #7a4a00;
}

.shipping-note {
  margin: 12px 0 0;
  font-style: italic;
  font-size: 0.85rem;
  color: #555555;
}

.hero-details {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
}


/* IMAGE PLACEHOLDERS */

.image-placeholder {
  width: 100%;
  border: 2px dashed rgba(17, 17, 17, 0.5);

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 40px;

  background:
    linear-gradient(
      135deg,
      rgba(244, 163, 27, 0.18),
      rgba(22, 139, 196, 0.18)
    );
}

.image-placeholder span {
  font-weight: 900;
  letter-spacing: 0.08em;
}

.image-placeholder small {
  margin-top: 10px;
  opacity: 0.6;
}

.album-placeholder {
  aspect-ratio: 1 / 1;
}

.product-placeholder {
  aspect-ratio: 1 / 1;
}


/* INTRO */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.intro h2 {
  font-size: clamp(3rem, 5.5vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  max-width: 700px;
}

.intro-copy {
  max-width: 580px;
  font-size: 1.25rem;
}

.intro-copy p {
  margin-bottom: 26px;
}


/* MEET THE BANDS CAROUSEL */

.bands-carousel {
  width: min(100% - 40px, var(--page-width));
  margin: 0 auto;
  padding: 20px 0 100px;

  /* full-width divider, centered like the header line */
  border-bottom: 2px solid var(--black);
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 28px;
}

.carousel-title {
  margin: 0;

  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.carousel-buttons {
  display: flex;
  gap: 10px;
}

.carousel-button {
  width: 48px;
  height: 48px;
  border: 2px solid var(--black);
  border-radius: 999px;

  background: #ffffff;
  color: var(--black);
  font-size: 1.2rem;
  cursor: pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.carousel-button:hover:not(:disabled) {
  background: var(--black);
  color: #ffffff;
}

.carousel-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-track {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  gap: 16px;

  /* room for cards to grow on hover without being clipped */
  padding: 14px 0;
  margin: -14px 0;

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track li {
  flex: 0 0 clamp(220px, 23%, 300px);
  scroll-snap-align: start;
}

.band-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 16px;

  background: none;
  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.band-card:hover,
.band-card:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.18);
}

.band-card:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.band-card img {
  width: 100%;
  border-radius: 16px;
}


/* BAND POP-UP */

.band-dialog {
  width: min(100% - 32px, 860px);
  max-height: min(100% - 32px, 640px);
  padding: 0;
  border: 0;
  border-radius: 20px;

  background: #ffffff;
  color: var(--black);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.3);
}

.band-dialog::backdrop {
  background: rgba(17, 17, 17, 0.55);
}

.band-dialog[open] {
  animation: band-dialog-in 0.2s ease;
}

@keyframes band-dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.band-dialog-body {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
}

.band-dialog-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band-dialog-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.band-dialog-text {
  flex: 1;
  padding: 48px 40px 24px;
  overflow-y: auto;
}

.band-dialog-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 40px 28px;
}

.band-dialog-count {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.band-dialog-text h3 {
  margin-bottom: 6px;

  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.band-dialog-text .band-song {
  margin-bottom: 22px;

  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.band-dialog-text p {
  font-size: 1.05rem;
  line-height: 1.55;
}

.band-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;

  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;

  background: #ffffff;
  color: var(--black);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.15);
}

.band-dialog-close:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

.band-dialog-close:hover {
  background: var(--black);
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    scroll-behavior: auto;
  }

  .band-card,
  .band-dialog[open] {
    transition: none;
    animation: none;
  }
}


/* TRACKLIST (kept compact so it doesn't compete with the carousel or story) */

.tracklist-section {
  padding: 72px 0;
  border-bottom: 2px solid var(--black);
}

.tracklist-heading {
  margin-bottom: 28px;
}

.tracklist-heading .section-label {
  margin-bottom: 8px;
}

.tracklist-heading h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0;
}

.tracklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.side {
  border-top: 2px solid var(--black);
  padding-top: 14px;
}

.side-label {
  margin-bottom: 8px;
}

.track {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;

  padding: 10px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.15);
}

.track h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.track p {
  margin: 0;
  font-size: 0.9rem;
  text-align: right;
  opacity: 0.65;
}

.tracklist-credit {
  margin: 22px 0 0;
  font-size: 0.85rem;
  color: #555555;
}


/* PRODUCT */

.product-section {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: center;

  padding: 80px 0;
}

.product-image img {
  width: 100%;
}

.product-copy {
  max-width: 500px;
}

.product-copy h2 {
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}

.product-copy > p:not(.section-label) {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.product-copy .button {
  margin-top: 14px;
}


/* FINAL CTA */

.final-cta {
  padding: 130px 40px;
  background: #f0e7d9;
  color: #222222;

  text-align: center;
}

.final-cta h2 {
  max-width: 11ch;
  margin-left: auto;
  margin-right: auto;

  font-size: clamp(3.4rem, 8vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
  margin-bottom: 30px;
}

.final-cta > p:not(.section-label) {
  font-size: 1.35rem;
  margin-bottom: 40px;
}


.final-cta > p.back-to-top {
  margin: 28px 0 0;
  font-size: 0.9rem;
}

.back-to-top a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* FOOTER */

footer {
  min-height: 140px;

  width: min(100% - 40px, var(--page-width));
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 0.85rem;
}

.footer-logo {
  width: 120px;
}

footer p {
  margin: 0;
}

footer a {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 24px;
}


/* MOBILE */

@media (max-width: 850px) {

  :root {
    --flowers-visible: 0px;
  }

  .flower-edge {
    background-image: none;
  }

  .site-header {
    min-height: 72px;
  }

  .brand img {
    height: 37px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;

    min-height: auto;

    padding: 30px 0 28px;
  }

  .hero-art {
    order: 1;
  }

  /* ~22% smaller than before so the hero isn't all artwork on phones */
  .album-art {
    width: 72%;
  }

  /* phones keep it simple: title, description, button and shipping */
  .hero-badges,
  .hero-details {
    display: none;
  }

  .hero-copy {
    order: 2;
  }

  .hero h1 {
    font-size: 1.25rem;
    margin-bottom: 4px;
  }

  .hero-tagline {
    font-size: 1.05rem;
    margin-bottom: 14px;
  }

  .hero-badges {
    gap: 6px;
    margin-bottom: 14px;
  }

  .badge {
    padding: 7px 12px;
    font-size: 0.7rem;
  }

  .hero-details {
    margin-bottom: 14px;
  }

  .shipping-note {
    margin-top: 10px;
  }


  .intro-grid,
  .tracklist,
  .product-section {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  /* phones: label and headline, then the photo, then copy and button */
  .product-section {
    gap: 0;
    padding: 64px 0;
  }

  .product-copy {
    display: contents;
  }

  .product-copy .section-label { order: 1; }
  .product-copy h2 { order: 2; }
  .product-image { order: 3; margin-bottom: 24px; }
  .product-copy > p:not(.section-label) { order: 4; }
  .product-copy .button { order: 5; justify-self: start; }

  .intro-grid {
    gap: 24px;
  }

  .intro h2 {
    margin-bottom: 0;
  }

  /* keep the story and the tracklist close together on phones */
  .intro.section {
    padding-bottom: 24px;
  }

  .intro-copy p:last-child {
    margin-bottom: 0;
  }

  .tracklist-section.section {
    padding-top: 48px;
  }

  .product-copy > p.section-label {
    font-size: 0.95rem;
  }

  .section {
    padding: 80px 0;
  }

  .carousel-track li {
    flex-basis: 72%;
  }

  .band-dialog-body {
    grid-template-columns: 1fr;
  }

  .band-dialog-photo {
    height: auto;
    max-height: 42vh;
    object-position: top;
  }

  .band-dialog-text {
    padding: 24px 22px 12px;
  }

  /* keep the arrows reachable at the bottom while the bio scrolls */
  .band-dialog-nav {
    position: sticky;
    bottom: 0;

    padding: 12px 22px 16px;
    background: #ffffff;
    box-shadow: 0 -8px 16px rgba(255, 255, 255, 0.9);
  }

  .band-dialog-text h3 {
    font-size: 1.5rem;
  }

  .tracklist {
    gap: 32px;
  }

  .tracklist-section {
    padding: 56px 0;
  }

  .final-cta {
    padding: 90px 25px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;

    padding: 36px 0 40px;
  }

}


/* SHORT PHONES: keep the buy button above the fold */

@media (max-width: 850px) and (max-height: 600px) {

  .album-art {
    width: 56%;
  }

}
