/* ==========================================================================
   Music page — layered on top of style.css
   Reuses the global tokens, nav, brand, .btn, .reveal and footer.
   ========================================================================== */

/* .slab and the serif body face are redeclared here rather than pulled out of
   about.css, so the About page's stylesheet stays untouched. */
:root {
  --f-slab:       'Alfa Slab One', Georgia, serif;
  --f-serif-body: 'Lora', Georgia, 'Times New Roman', serif;
}

.slab {
  display: block;
  font-family: var(--f-slab);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: 1;
  filter: url(#distress-heavy);
}
.slab--accent { color: var(--red); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   Music hero
   ========================================================================== */
.mhero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
  padding: calc(var(--nav-h) + 46px) 0 140px;
}

.mhero__photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 55%;
}
.mhero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* tight facial close-up — hold the crop on her eyes and mouth */
  object-position: 50% 42%;
}

/* Left edge ramps to black for the type, clears fully by 58% so she stays sharp */
.mhero__grade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      var(--black)          0%,
      var(--black)          5%,
      rgba(10,10,10,.9)    14%,
      rgba(10,10,10,.66)   24%,
      rgba(10,10,10,.38)   34%,
      rgba(10,10,10,.16)   44%,
      rgba(10,10,10,.05)   52%,
      rgba(10,10,10,0)     58%),
    linear-gradient(0deg,  rgba(10,10,10,.46) 0%, rgba(10,10,10,0) 24%),
    linear-gradient(180deg, rgba(10,10,10,.34) 0%, rgba(10,10,10,0) 16%);
}

.mhero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1420px;
  margin-inline: auto;
  padding-inline: 44px;
}

.mhero__title {
  margin: 20px 0 0;
  font-size: clamp(3.3rem, 7.4vw, 6.4rem);
  line-height: .84;
}
.mhero__title .script {
  margin: .05em 0 .01em;
  margin-left: .05em;
  font-size: clamp(2.7rem, 5.8vw, 4.9rem);
  line-height: .9;
}

.mhero__lede {
  max-width: 30ch;
  margin: 28px 0 36px;
  font-family: var(--f-serif-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
}

.mhero__tear {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 3;
  width: 100%;
  height: 104px;
  fill: var(--black);
}


/* ==========================================================================
   Intro
   ========================================================================== */
.mintro {
  padding: 88px 0 12px;
  background: var(--black);
}
.mintro__inner { text-align: center; }

.mintro__title {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4.3vw, 3.4rem);
  line-height: .96;
}
.mintro__title .slab { margin-top: .04em; }

.mintro__lede {
  max-width: 46ch;
  margin: 0 auto;
  font-family: var(--f-serif-body);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}


/* ==========================================================================
   Tracks — editorial grid, not cards
   ========================================================================== */
.tracks-section { padding: 62px 0 96px; background: var(--black); }

.tracks {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 74px 46px;
  margin: 0; padding: 0;
  list-style: none;
}

/* asymmetric editorial rhythm */
.track--a { grid-column: span 6; }
.track--b { grid-column: span 6; margin-top: 58px; }
.track--c { grid-column: span 5; }
.track--d { grid-column: span 7; }

/* 05 closes the page as a full-width spread */
.track--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 52px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(230, 48, 48, .28);
}

/* --- media --- */
.track__media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color .45s var(--ease);
}
.track__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.005);
  transition: transform 1.15s var(--ease);
}

/* per-image framing — each ratio matches its source so nothing is squashed,
   and each object-position is set to keep her face in frame */
.track--a .track__media { aspect-ratio: 3 / 4; }
.track--a .track__media img { object-position: 50% 20%; }

.track--b .track__media { aspect-ratio: 3 / 4; }
.track--b .track__media img { object-position: 53% 30%; }

.track--c .track__media { aspect-ratio: 1 / 1; }
.track--c .track__media img { object-position: 53% 24%; }

.track--d .track__media { aspect-ratio: 3 / 2; }
.track--d .track__media img { object-position: 47% 32%; }

.track--feature .track__media { aspect-ratio: 4 / 5; }
.track--feature .track__media img { object-position: 48% 28%; }

/* slight cinematic treatment, lifts on hover */
.track__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(10,10,10,.5) 0%, rgba(10,10,10,.06) 46%, rgba(10,10,10,0) 72%),
    linear-gradient(180deg, rgba(10,10,10,.22) 0%, rgba(10,10,10,0) 26%);
  transition: opacity .45s var(--ease);
}

.track:hover .track__media img { transform: scale(1.055); }
.track:hover .track__media { border-color: rgba(230, 48, 48, .6); }
.track:hover .track__veil { opacity: .62; }

/* --- body --- */
.track__body { padding-top: 20px; }
.track--feature .track__body { padding-top: 0; }

.track__index {
  display: block;
  margin-bottom: 9px;
  font-family: var(--f-ui);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .28em;
  color: var(--red);
}
.track__index::after {
  content: "";
  display: inline-block;
  width: 34px; height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: rgba(230, 48, 48, .55);
}

.track__title {
  margin: 0 0 10px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.06;
  letter-spacing: .012em;
  text-transform: uppercase;
  color: var(--white);
  transition: color .35s var(--ease);
}
.track--feature .track__title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.track:hover .track__title { color: #FFF; }

.track__meta {
  margin: 0 0 12px;
  font-family: var(--f-serif-body);
  font-style: italic;
  font-size: 14.5px;
  color: var(--muted);
}

.track__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 3px;
  font-family: var(--f-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .32s var(--ease), border-color .32s var(--ease);
}
.track__link:hover,
.track__link:focus-visible {
  color: var(--red);
  border-bottom-color: rgba(230, 48, 48, .7);
}
.track__arrow { transition: transform .32s var(--ease); }
.track__link:hover .track__arrow { transform: translateX(5px); }

/* the whole tile responds when the caption link is hovered */
.track__body:hover ~ .track__media img,
.track:focus-within .track__media img { transform: scale(1.055); }


/* ==========================================================================
   Closing CTA
   ========================================================================== */
.mcta {
  padding: 0 0 92px;
  background: var(--black);
}
.mcta__inner {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.mcta__title {
  margin: 0 0 15px;
  font-size: clamp(2rem, 3.9vw, 3rem);
  line-height: .96;
}
.mcta__title .slab { margin-top: .04em; }

.mcta__lede {
  margin: 0 0 30px;
  font-family: var(--f-serif-body);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}


/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .mhero__content { padding-inline: 28px; }
  .tracks { gap: 60px 34px; }
  .track--feature { gap: 38px; }
}

@media (max-width: 900px) {
  .mhero {
    align-items: flex-end;
    padding: calc(var(--nav-h) + 200px) 0 126px;
  }
  .mhero__photo { width: 100%; }
  .mhero__photo img { object-position: 50% 34%; }
  .mhero__grade {
    background:
      linear-gradient(0deg, var(--black) 20%, rgba(10,10,10,.68) 42%, rgba(10,10,10,.08) 68%),
      linear-gradient(180deg, rgba(10,10,10,.34) 0%, rgba(10,10,10,0) 22%);
  }
  .mhero__title { font-size: clamp(2.9rem, 12vw, 4.7rem); }
  .mhero__title .script { font-size: clamp(2.3rem, 9.4vw, 3.8rem); }
  .mhero__tear { height: 64px; }

  .mintro { padding-top: 68px; }
  .tracks-section { padding: 52px 0 76px; }

  /* two up, equal weight */
  .track--a, .track--b, .track--c, .track--d { grid-column: span 6; }
  .track--b { margin-top: 0; }
  .track--c .track__media,
  .track--d .track__media { aspect-ratio: 3 / 4; }
  .track--d .track__media img { object-position: 47% 30%; }

  .track--feature {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 34px;
  }
  .track--feature .track__media { aspect-ratio: 3 / 4; }
  .track--feature .track__body { padding-top: 0; }
}

@media (max-width: 600px) {
  .mhero__content { padding-inline: 22px; }
  .mhero { padding-top: calc(var(--nav-h) + 160px); }
  .mhero__lede { max-width: 28ch; font-size: 15.5px; }

  /* stack vertically, full-bleed photography */
  .tracks { gap: 54px 0; }
  .track--a, .track--b, .track--c, .track--d { grid-column: 1 / -1; }
  .track--a .track__media,
  .track--b .track__media,
  .track--c .track__media,
  .track--d .track__media,
  .track--feature .track__media { aspect-ratio: 4 / 5; }

  .track__title { font-size: 1.4rem; }
  .track--feature .track__title { font-size: 1.75rem; }

  .mcta__inner { padding-top: 44px; }
}


/* ==========================================================================
   More Music — text-first list for tracks with no artwork supplied.
   Appended only; nothing above this point is modified. Link and arrow reuse
   the existing .track__link / .track__arrow rules, so hover and focus match
   the featured tracks exactly.
   ========================================================================== */
.more-music { padding: 0 0 48px; background: var(--black); }

.more-music__title {
  margin: 0 0 30px;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: .98;
}
.more-music__title .slab { margin-top: .05em; }

.mlist { margin: 0; padding: 0; list-style: none; }

.mrow {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 30px;
  padding: 22px 4px;
  border-top: 1px solid var(--line);
  transition: background-color .4s var(--ease), padding-left .4s var(--ease);
}
.mrow:last-child { border-bottom: 1px solid var(--line); }
.mrow:hover { background: rgba(255, 255, 255, .018); padding-left: 12px; }

.mrow__index {
  font-family: var(--f-ui);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .28em;
  color: var(--red);
}

.mrow__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.14;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--white);
  overflow-wrap: anywhere;
}

.mrow .track__link { white-space: nowrap; }

@media (max-width: 900px) {
  .more-music { padding-bottom: 38px; }
  .mrow {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px 22px;
  }
  .mrow .track__link { grid-column: 2; }
}

@media (max-width: 600px) {
  .mrow {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 20px 2px;
  }
  .mrow:hover { padding-left: 6px; }
  .mrow .track__link { grid-column: 1; }
  .mrow__title { font-size: 1.05rem; }
}

/* Mobile: enlarge the tap target for the new rows without shifting a single
   visible pixel. Scoped to .mrow so the featured tracks 01–05 are unaffected. */
@media (max-width: 600px) {
  .mrow .track__link { position: relative; }
  .mrow .track__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: -11px; bottom: -11px;
  }
}

