
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0e0e0e;
  --surface:   #1a1a1a;
  --border:    rgba(208,104,29,0.5);
  --dborder:    rgba(208,104,29,0.2);
  --tborder:    rgba(0,0,0,0);
  --gold:      #c8922a;
  --gold-dim:  #6b4e16;
  --text:      #e8e4dc;
  --text2:     #999;
  --text3:     #555;
  --font-disp: 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Mono', sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

body {
  background-image: url(/gfx/rlmgbg.png);
  background-repeat: no-repeat;
  background-position: top 0 right 25%;
  background-attachment: fixed;
}

/* ── hero ── */
.hero {
  position: relative;
  height: 58vh;
  min-height: 400px;
  overflow: visible;
  cursor: pointer;
  max-width: 1280px;
  margin: 0 auto;
}
/* background-image is set by renderHero() */
.hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(to bottom, black 66%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 66%, transparent 100%);
}

/* inner layout: text left, cover right, max 1280px centered */
.hero-inner {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  flex: 1;
  min-width: 0;
  top: 30px;
  position: relative;
}

.hero-logo {
  max-width: 80px;
  object-fit: scale-down;
}

/* text block — remove padding-bottom, now on the wrapper */
.hero-text {
  padding-bottom: 0;
  flex: none;
  min-width: 0;
}
.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(52px, 6.5vw, 96px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 0.9;
  color: var(--text);
  text-transform: uppercase;
  margin:-5px 0 0 -5px;
}
.hero-sub {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 12px;
}
/* cover — tilted, bleeds below hero */
.hero-cover-wrap {
  flex-shrink: 0;
  width: clamp(250px, 22vw, 500px);
  /* push it so bottom edge sits ~60px below hero bottom */
  margin-bottom: -60px;
  transform: rotate(7deg);
  transform-origin: bottom center;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.7));
  z-index: 2;
  position: relative;
}
.hero-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.hero-cover-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--border);
}
.hero-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text3);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── main content ── */
.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 56px 120px;
}

/* ── section labels ── */
.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── artist cards ── */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.artist-card {
  border: 2px solid var(--tborder);
  /* background: var(--surface); */
  cursor: pointer;
}

.artist-card-logo {
  width: 100%;
  aspect-ratio: auto;
  object-fit:scale-down;
  display: block;
  transition: transform 0.3s ease-in-out;
  transform-origin: center center; /* Zooms evenly from the center */
}
.artist-card:hover .artist-card-logo { transform: scale(1.1); }
.artist-card-logo-placeholder {
  width: 100%;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.artist-card-body {
  position:relative;
  z-index: 0;
}
.artist-card-body::before {
  background-color: var(--tborder);
  content: "";
  position: absolute;
  /* Shrinks the background 10px inward from all sides */
  inset: 22px 8px 17px 0px; 
  backdrop-filter: blur(8px); /* Optional: extra soft misting behind */
  border-radius: 8px;
  box-shadow: 0 0 15px 12px var(--tborder);
  z-index: -1;
  transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}
.artist-card:hover .artist-card-body::before {
  background-color: var(--dborder); /* Box fill color or glass effect */
  backdrop-filter: blur(8px); /* Optional: extra soft misting behind */
  box-shadow: 0 0 15px 12px var(--dborder);
}

.artist-card-name {
  font-family: var(--font-disp);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 4px;
}
.artist-card-genres, .artist-card-rel_no {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.5;
}

/* ── about ── */
.about, .footer {
  max-width: 640px;
}
.about-text, .footer {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text2);
  white-space: pre-line;
}
.footer {
  display: flex;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  align-items: flex-start;
  margin-top: 20px;
}
.footer img {
  height: 38px;
  float:left;
  margin-right:16px;
}


/* ── float pair ── */
.float-pair {
  position: fixed;
  left: max(-56px, calc((100vw - 1280px) / 2 + -56px));
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 100;
}
.float-btn {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.float-btn:hover { border-color: var(--gold-dim); color: var(--gold); }
.float-btn-back { color: var(--gold); border-color: var(--gold-dim); }
.float-btn-back:hover { color: var(--text); border-color: var(--border); }

/* ── nav overlay — dropdown from float pair ── */
.nav-overlay {
  position: fixed;
  left: max(-56px, calc((100vw - 1280px) / 2 + -56px));
  top: 102px; /* below the two buttons: 24px top + 36+6+36px buttons + gap */
  background: var(--surface);
  border: 1px solid var(--border);
  z-index: 200;
  display: none;
  flex-direction: column;
  min-width: 160px;
}
.nav-overlay.open { display: flex; }
.nav-overlay-item {
  font-family: var(--font-disp);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--text2);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  text-transform: uppercase;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
}
.nav-overlay-item:last-child { border-bottom: none; }
.nav-overlay-item:hover { color: var(--gold); background: var(--bg); }

/* ── sub-pages ── */
.page { display: none; }
.page.active { display: block; }

/* artist page */
.artist-page-hero {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 48px;
}
.artist-page-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}
.artist-page-img-placeholder {
  width: 200px;
  height: 200px;
  background: var(--border);
  flex-shrink: 0;
}
.artist-page-name {
  font-family: var(--font-disp);
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: var(--text);
  margin-bottom: 12px;
}
.artist-page-info { flex: 1; min-width: 0; }
.artist-page-genres {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* socials — text buttons, artist meta row only */
.artist-page-socials {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.social-link {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 14px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.social-link:hover { border-color: var(--gold-dim); color: var(--gold); }

.artist-page-bio {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text2);
  max-width: 560px;
  white-space: pre-line
}

.releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.release-card {
  cursor: pointer;
  border: 2px solid var(--tborder);
  transition: transform 0.3s ease-in-out;
  transform-origin: center center; /* Zooms evenly from the center */
}

.release-card:hover { transform: scale(1.1); }
.release-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--border);
}
.release-card-body { padding: 10px 12px 12px; }
.release-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}
.release-card-meta {
  font-size: 11px;
  color: var(--text3);
  font-weight: 300;
}

/* release page */
.release-page-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.release-page-img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}
.release-page-img-placeholder {
  width: 280px;
  height: 280px;
  background: var(--border);
  flex-shrink: 0;
}
.release-page-info { flex: 1; min-width: 0; }
.release-page-title {
  font-family: var(--font-disp);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.9;
  color: var(--text);
  margin-bottom: 18px;
  text-transform: uppercase;
}
/* meta rows: label content left, extras right */
.artist-page-meta-row,
.release-page-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.artist-page-meta-row  { margin-bottom: 24px; }
.release-page-meta-row { margin-bottom: 28px; }
.release-page-meta-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.release-page-artist {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition: color 0.12s;
}
.release-page-artist:hover { color: var(--text); }
.release-page-metabit {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text2);
}
/* streaming — logo tiles under the release blurb */
.streaming-label { margin-top: 28px; }
.streaming-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.streaming-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 120px;
  padding-top: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease-in-out;
  transform-origin: center center; /* Zooms evenly from the center */
}
.streaming-link:hover { transform: scale(1.1); }
/* source art is 750x250 — width drives it, height follows */
.streaming-link-logo {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.streaming-link:hover .streaming-link-logo { opacity: 1; }
.streaming-link-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  color: var(--text2);
  transition: color 0.15s;
}
.streaming-link:hover .streaming-link-label { color: var(--gold); }

.release-page-blurb {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  max-width: 560px;
  white-space: pre-line;
}

/* back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  cursor: pointer;
  margin-bottom: 36px;
  transition: color 0.12s;
}
.back-link:hover { color: var(--gold); }

/* ── mobile ── */
@media (max-width: 640px) {
  .hero { height: 44vh; min-height: 280px; }
  .hero-inner { padding: 0 20px; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 0; }
  /* pulled out of flow so the text can sit over it */
  .hero-cover-wrap {
    position: absolute;
    top: 100px;
    right: -40px;
    z-index: 0;
  }
  .hero-text { padding-bottom: 24px; z-index:1;}
  .hero-title { font-size: 38px; }

  .main { padding: 40px 16px 100px; }

  .artists-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .artist-card {
    display: flex;
    flex-direction: row;
  }
  .artist-card-logo,
  .artist-card-logo-placeholder {
    width: 140px;
    height: 80px;
    margin-top: 10px;
    aspect-ratio: auto;
    flex-shrink: 0;
  }
  .artist-card-body {
    padding: 12px 0px 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .artist-card-name { font-size: 18px; }

  .artist-page-hero { flex-direction: column; gap: 20px; }
  .artist-page-img,
  .artist-page-img-placeholder { width: 100%; height: auto; aspect-ratio: 1; }

  .release-page-layout { flex-direction: column; gap: 24px; }
  .release-page-img,
  .release-page-img-placeholder { width: 100%; height: auto; aspect-ratio: 1; }

  .float-pair { left: 4px; top: 6px; }
  .float-btn { width: 42px; height: 42px; font-size: 18px; }

  .nav-overlay {
    position: fixed;
    left: max(4px, calc((100vw - 1280px) / 2 + 4px));
  }

}