/* =====================================================================
   Mix Tape — The Perks of Being a Wallflower
   ===================================================================== */

/* ----- Reset & Base -------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:         #0e0e0e;
  --surface:    #181818;
  --surface-2:  #202020;
  --gold:       #c8a84b;
  --gold-dim:   rgba(200, 168, 75, 0.18);
  --cream:      #ede3d4;
  --text:       #cec6b8;
  --muted:      #6b6460;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Inter', system-ui, sans-serif;
  --radius:     6px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

em {
  color: var(--cream);
  font-style: italic;
}

/* ----- Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: brightness(0.35) saturate(0.8);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,  rgba(14,14,14,1)   0%,  rgba(14,14,14,0)   30%),
    linear-gradient(to bottom, rgba(14,14,14,0.5) 0%, rgba(14,14,14,0)   25%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 8.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 0.95;
  margin-bottom: 1.6rem;
  letter-spacing: -0.01em;
  text-shadow: 0 6px 40px rgba(0,0,0,0.6);
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  max-width: 420px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.3; }
  50%       { transform: translateX(-50%) translateY(-7px); opacity: 0.6; }
}

/* ----- Intro --------------------------------------------------------- */
.intro {
  padding: 7rem 2rem 6rem;
  max-width: 1120px;
  margin: 0 auto;
}

.intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.intro-text h2 {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--gold);
  margin-bottom: 1.4rem;
  line-height: 1.2;
}

.intro-text p {
  font-size: 0.97rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.intro-photos {
  position: relative;
  height: 420px;
}

.photo-main {
  position: absolute;
  right: 0;
  top: 0;
  width: 82%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
}

.photo-inset {
  position: absolute;
  left: 0;
  bottom: -1.5rem;
  width: 42%;
  height: 52%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  border: 3px solid var(--bg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

/* ----- Track list ---------------------------------------------------- */
.tracklist {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 2rem 9rem;
}

.tracklist-heading {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.tracklist-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  opacity: 0.35;
}

/* ----- Card ---------------------------------------------------------- */
.card {
  display: grid;
  grid-template-columns: 360px 1fr;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  margin-bottom: 2.5rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.55), 0 0 0 1px var(--gold-dim);
}

/* Flip: even tracks → image on right */
.card.card-flip {
  grid-template-columns: 1fr 360px;
}

.card.card-flip .card-visual {
  grid-column: 2;
  grid-row: 1;
}

.card.card-flip .card-body {
  grid-column: 1;
  grid-row: 1;
}

/* Card image column */
.card-visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease, opacity 0.3s ease;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.track-label {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 4;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--gold);
  background: rgba(14,14,14,0.82);
  padding: 0.28rem 0.6rem;
  border-radius: 3px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
}

.card-type-badge {
  position: absolute;
  bottom: 1.1rem;
  left: 1.1rem;
  z-index: 4;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  background: rgba(14,14,14,0.6);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Card text column */
.card-body {
  padding: 2.8rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.card-text {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text);
}

/* Gold left-border accent on hover */
.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius) 0 0 var(--radius);
}

.card {
  position: relative;
}

.card:hover::before {
  opacity: 1;
}

/* ----- Footer -------------------------------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid rgba(200, 168, 75, 0.12);
  padding: 6rem 2rem;
}

.footer-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.footer-img {
  width: 240px;
  height: 170px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  margin-bottom: 2.8rem;
  opacity: 0.75;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.footer-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  color: var(--cream);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.footer-credit {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ----- Responsive ---------------------------------------------------- */
@media (max-width: 960px) {
  .intro-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .intro-photos {
    height: 300px;
  }

  .card,
  .card.card-flip {
    grid-template-columns: 1fr;
  }

  .card.card-flip .card-visual {
    grid-column: 1;
    grid-row: 1;
  }

  .card.card-flip .card-body {
    grid-column: 1;
    grid-row: 2;
  }

  .card-visual {
    min-height: 260px;
  }

  .card-body {
    padding: 2rem;
  }
}

@media (max-width: 580px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  .footer-quote {
    font-size: 1.15rem;
  }

  .tracklist {
    padding-bottom: 5rem;
  }
}
