/*
 * site.css — Jam City Sound visual system ("Tungsten Marquee" direction).
 *
 * Warm tungsten-amber on burnt near-black, monumental uppercase marquee
 * type for the label name, Georgia italic as the serif accent voice, and
 * full-width studio-photo bands between sections. The logo's red ring is
 * kept as a small secondary "recording lamp" accent only.
 *
 * Photo slots: every .photo-slot has a canvas atmosphere placeholder
 * painted by site.js; when a real image exists at the slot's data-photo
 * path, it is mounted on top with the same dark scrim.
 */

:root {
  --bg: #100D09;
  --panel: #1B1510;
  --line: #33291D;
  --ink: #EDE3D2;
  --dim: #9C8D77;
  --amber: #E39A3B;
  --amber-hi: #F5C878;
  --brand-red: #C4342A; /* pulled from the logo's ring */
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.serif { font-family: Georgia, "Times New Roman", serif; }

/* ---------------------------------------------------------------- nav */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
}

.site-nav .brand img { width: 44px; height: 44px; display: block; }

.site-nav .brand span {
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 700;
}

.site-nav .links {
  display: flex;
  gap: clamp(14px, 3vw, 26px);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.site-nav .links a { color: var(--dim); text-decoration: none; }
.site-nav .links a:hover, .site-nav .links a:focus-visible { color: var(--amber); }

@media (max-width: 560px) {
  .site-nav { flex-direction: column; }
  .site-nav .brand span { letter-spacing: .2em; }
}

/* --------------------------------------------------------- photo slots */

.photo-slot { position: relative; overflow: hidden; }

.photo-slot canvas,
.photo-slot img.slot-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* scrim keeps overlaid text readable on both canvas and real photos */
.photo-slot .scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16,13,9,.25) 0%, rgba(16,13,9,.1) 45%, rgba(16,13,9,.94) 100%);
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: min(78vh, 620px);
  display: flex;
  align-items: flex-end;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 80px clamp(20px, 4vw, 44px) 60px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(52px, 11vw, 148px);
  line-height: .9;
  margin: 0 0 24px;
  font-weight: 800;
  letter-spacing: -.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero h1 span { display: block; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1.5px var(--amber); }

.hero p {
  margin: 0 0 30px;
  color: var(--dim);
  max-width: 48ch;
  font-size: 17px;
}

.hero p em { color: var(--amber-hi); font-style: normal; }

.cta {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--amber);
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 2px;
  font-weight: 700;
}

.cta:hover, .cta:focus-visible { background: var(--amber-hi); }

/* ------------------------------------------------------------- sections */

.section { padding: 60px clamp(20px, 4vw, 44px); }

.kicker {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--amber);
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: 0 0 28px;
}

.section-title i {
  font-style: italic;
  font-family: Georgia, serif;
  font-weight: 400;
  text-transform: none;
  color: var(--amber-hi);
  letter-spacing: 0;
}

/* ---------------------------------------------------------- photo bands */

.band {
  position: relative;
  height: clamp(150px, 22vw, 220px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* caption sits below the image, like a photo credit */
.band-fig { margin: 0; }

.band-fig .band-cap {
  display: block;
  text-align: right;
  padding: 10px clamp(20px, 4vw, 44px) 0;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim);
}

/* --------------------------------------------------------- artist cards */

.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.artist-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: var(--ink);
}

/* artist portraits are square masters: a square slot shows the whole
   image edge to edge at any grid width, never cropped or stretched */
.artist-card .ph { aspect-ratio: 1 / 1; }

.artist-card:hover .name, .artist-card:focus-visible .name { color: var(--amber); }

.artist-card .meta { padding: 14px 16px 16px; }

.artist-card .name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 3px;
}

.artist-card .genre {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0;
}

/* --------------------------------------------------------------- tracks */

.track {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
}

.track:hover { background: rgba(227, 154, 59, .05); }

.track .t-num {
  width: 2ch;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
  font-size: 13px;
}

/* track artwork thumbnail; vinyl-style placeholder until the image loads */
.track .t-art {
  width: 44px;
  height: 44px;
  flex: none;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(160deg, #241B11, #14100A);
}

.track .t-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%,
      var(--amber) 0 2px,
      transparent 2px 7px,
      rgba(227, 154, 59, .4) 7px 8px,
      transparent 8px 12px,
      rgba(227, 154, 59, .18) 12px 13px,
      transparent 13px);
}

.track .t-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.track .t-art img.loaded { display: block; }

/* Dwell-to-preview: keep the pointer on real artwork for 2s and it grows
   to roughly artist-photo size (44px × 4.5 ≈ 200px), popping over the
   rows; it collapses immediately on mouse-out. Hover devices only, and
   only for thumbnails whose artwork actually loaded. */
@media (hover: hover) {
  .track .t-art {
    transform-origin: left center;
    transition: transform .3s ease, box-shadow .3s ease;
  }

  .track .t-art:has(img.loaded):hover {
    transform: scale(4.5);
    z-index: 30;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .75);
    transition-delay: 2s; /* the dwell — collapse has no delay */
  }
}

@media (prefers-reduced-motion: reduce) {
  .track .t-art:has(img.loaded):hover { transform: none; box-shadow: none; }
}

.track .t-main { flex: 1; min-width: 0; }

.track .t-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  letter-spacing: .02em;
}

/* metadata line under the title: kind, writer credit, album/single */
.track .t-meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track .t-kind {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-right: 9px;
}

.track .t-artist { color: var(--dim); font-size: 13px; white-space: nowrap; }
.track .t-len { font-variant-numeric: tabular-nums; color: var(--dim); font-size: 13px; }

.track .t-svc { display: flex; gap: 8px; }

.track .t-svc a {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  text-decoration: none;
  white-space: nowrap;
}

.track .t-svc a:hover { color: var(--amber); border-color: var(--amber); }

@media (max-width: 640px) {
  .track .t-artist, .track .t-svc { display: none; }
}

.playbtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  border: 1px solid var(--amber);
  background: transparent;
  color: var(--amber);
  padding: 0;
}

.playbtn svg { display: block; }

.playbtn:hover, .playbtn:focus-visible, .playbtn.playing {
  background: var(--amber);
  color: var(--bg);
}

/* ------------------------------------------------------- service chips */

.svc-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

.svc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  white-space: nowrap;
  text-decoration: none;
}

.svc:hover, .svc:focus-visible { color: var(--amber); border-color: var(--amber); }

/* -------------------------------------------------------- artist page */

/* Header: square portrait on the left, name / genre / bio / service links
   on the right. The portrait column is a 1:1 slot, so the artwork is shown
   whole at any width; below 760px the columns stack and the portrait goes
   full-width (capped) above the copy. */
.artist-head {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-top: 40px;
  padding-bottom: 20px;
}

.artist-portrait {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
}

/* no overlay text on the portrait, so no readability scrim over the art */
.artist-portrait .scrim { display: none; }

.artist-copy { min-width: 0; padding-top: 6px; }

.artist-copy h1 {
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: .92;
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -.03em;
  text-transform: uppercase;
  overflow-wrap: anywhere; /* long single-word names must not push the column */
}

.artist-copy .genre-line {
  color: var(--amber);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  margin: 0 0 26px;
}

/* the bio fills whatever width the copy column has (the grid, not a
   character cap, sets its measure), so wider windows get wider text */
.artist-bio { color: var(--dim); margin: 0 0 8px; }

@media (max-width: 760px) {
  .artist-head { grid-template-columns: 1fr; padding-top: 24px; }
  .artist-portrait { width: 100%; max-width: 520px; }
}

.release { margin: 0 0 40px; }

.release-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 6px;
}

.release-head .release-art {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 3px;
  flex: none;
  position: relative;
}

/* album covers dwell-to-preview like track thumbnails: 56px × 3.6 ≈ 200px */
@media (hover: hover) {
  .release-head .release-art {
    transform-origin: left center;
    transition: transform .3s ease, box-shadow .3s ease;
  }

  .release-head .release-art:hover {
    transform: scale(3.6);
    z-index: 30;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .75);
    transition-delay: 2s; /* the dwell — collapse has no delay */
  }
}

@media (prefers-reduced-motion: reduce) {
  .release-head .release-art:hover { transform: none; box-shadow: none; }
}

.release-head h3 {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin: 0;
}

.release-head .year { color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- about split */

.about-split {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.about-split .copy { flex: 1 1 320px; min-width: 280px; }
.about-split .copy p { color: var(--dim); max-width: 52ch; margin: 0; }

.about-split .panel {
  flex: 1 1 260px;
  min-width: 240px;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

/* --------------------------------------------------------------- footer */

.site-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px clamp(20px, 4vw, 44px);
  padding-bottom: 96px; /* clearance for the fixed player bar */
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

.site-foot .f-brand { display: flex; align-items: center; gap: 11px; }
.site-foot img { width: 34px; height: 34px; }
.site-foot a { color: var(--dim); }
.site-foot a:hover { color: var(--amber); }

/* copyright notice — full-width line under the footer row */
.site-foot .legal {
  flex-basis: 100%;
  margin: 6px 0 0;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: none;
  color: var(--dim);
}

.rec { display: inline-flex; align-items: center; gap: 8px; }

.rec::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 9px rgba(196, 52, 42, .8);
}

/* ------------------------------------------------------- now-playing bar */

.player-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: none;
  align-items: center;
  gap: 16px;
  padding: 12px clamp(20px, 4vw, 44px);
  background: rgba(20, 16, 11, .96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.player-bar.active { display: flex; }

.player-bar .np-art {
  width: 34px;
  height: 34px;
  flex: none;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--line);
  display: none;
}

.player-bar .np-art.loaded { display: block; }

.player-bar .np-title {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
}

.player-bar .np-artist { color: var(--dim); font-size: 12px; white-space: nowrap; }

.player-bar .np-progress {
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  min-width: 80px;
}

.player-bar .np-progress .rail {
  width: 100%;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.player-bar .np-progress .fill {
  height: 100%;
  width: 0%;
  background: var(--amber);
}

.player-bar .np-time {
  font-variant-numeric: tabular-nums;
  color: var(--dim);
  font-size: 12px;
  white-space: nowrap;
}

.player-bar .np-vol { display: flex; align-items: center; gap: 8px; }

.player-bar .vol-btn {
  background: none;
  border: none;
  padding: 4px;
  color: var(--dim);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.player-bar .vol-btn:hover, .player-bar .vol-btn:focus-visible { color: var(--amber); }

.player-bar .vol-rail {
  width: 80px;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none; /* pointer-drag sets the level; don't scroll the page */
}

.player-bar .vol-rail .rail {
  width: 100%;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.player-bar .vol-rail .fill { height: 100%; background: var(--amber); }

@media (max-width: 700px) {
  /* mobile OSes own the volume (iOS ignores programmatic changes) */
  .player-bar .np-vol { display: none; }
}

@media (max-width: 560px) {
  .player-bar .np-artist { display: none; }
}

/* --------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
