/* Jammer Dankie: near-black, burnished gold, big confident type.
   Headings: Bricolage Grotesque. Text: DM Sans. Both variable-weight, latin, served from /fonts.
   Type scale ~1.25, fluid between phone and desktop; text set at ~65 characters a line. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url(fonts/bricolage-grotesque.woff2) format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url(fonts/dm-sans.woff2) format("woff2");
  font-weight: 100 1000; font-style: normal; font-display: swap;
}

:root {
  --bg: #0a0908;
  --bg-2: #13110e;
  --bg-3: #1b1813;
  --line: rgba(240, 225, 195, .10);
  --line-2: rgba(240, 225, 195, .18);
  --text: #f2ede4;
  --muted: #a89f90;
  --faint: #7a7266;
  --gold: #e3ad45;
  --gold-2: #f5cf74;
  --spotify: #1ed760;
  --radius: 14px;
  --wrap: 1160px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* type scale */
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-md: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --t-lg: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  --t-xl: clamp(2rem, 1.5rem + 2vw, 3rem);
  --t-2xl: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--t-md);
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: #120d04; }
abbr { text-decoration: none; }
p { text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 12px; z-index: 10; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* Headings */
h1, h2, h3, .section-h {
  font-family: var(--display); font-weight: 700;
  letter-spacing: -.025em; line-height: 1.04; margin: 0 0 .45em;
  text-wrap: balance; color: var(--text);
}
.section-h { font-size: var(--t-xl); }
.kicker {
  margin: 0 0 12px; color: var(--gold);
  font: 600 var(--t-xs)/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
section.wrap { padding-block: clamp(48px, 8vw, 104px); }
section.wrap + section.wrap { border-top: 1px solid var(--line); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 20px;
  padding: 10px max(20px, (100% - var(--wrap)) / 2);
  background: rgba(10, 9, 8, .78);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.mark img { width: 46px; height: auto; }
.top nav { display: flex; gap: clamp(14px, 3vw, 32px); margin-left: auto; }
.top nav a {
  position: relative; color: var(--muted); text-decoration: none;
  font: 500 var(--t-sm)/1 var(--sans); padding: 8px 0;
  transition: color .15s;
}
.top nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.top nav a:hover { color: var(--text); }
.top nav a:hover::after { transform: scaleX(1); }
.top-spotify { color: var(--spotify); display: grid; place-items: center; width: 36px; height: 36px; }
.top-spotify svg { width: 24px; height: 24px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03);
  font: 600 var(--t-sm)/1.2 var(--sans); text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: #120d04; transform: translateY(-1px); }
.btn-spotify { background: var(--spotify); border-color: var(--spotify); color: #04120a; }
.btn-spotify:hover { background: #3be477; border-color: #3be477; color: #04120a; }

/* Hero: the banner already carries the wordmark */
.hero { position: relative; isolation: isolate; }
.hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; max-height: 84vh; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to top, var(--bg) 6%, rgba(10, 9, 8, .6) 45%, transparent);
  pointer-events: none;
}
.hero-text {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(20px, 5vw, 64px);
  width: min(var(--wrap), 100% - 40px); margin-inline: auto;
}
.tagline {
  margin: 0; max-width: 22ch;
  font-family: var(--display); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.04; color: var(--text);
  text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .7);
}
@media (max-width: 700px) {
  .hero img { aspect-ratio: 4 / 3; object-position: 60% 30%; }
  .hero-text { position: relative; bottom: 0; margin-top: -32px; }
}

/* Latest */
.latest { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.latest h2 { font-size: var(--t-xl); }
.latest h2 a { color: var(--text); text-decoration: none; }
.latest h2 a:hover { color: var(--gold-2); }
.latest p:not(.kicker):not(.actions) { color: var(--muted); max-width: 62ch; }
.latest-cover img, .track-cover, .release img {
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2);
}

/* Releases */
.release {
  display: grid; grid-template-columns: 240px 1fr; gap: clamp(20px, 4vw, 40px);
  padding: clamp(20px, 3vw, 32px); margin-top: 28px; border-radius: 20px;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line);
}
.release h3 { font-size: var(--t-lg); }
.release p { margin: 0 0 12px; color: var(--muted); max-width: 60ch; }
.tracklist { margin: 8px 0 0; padding-left: 1.4em; columns: 2 220px; column-gap: 32px; }
.tracklist li { break-inside: avoid; padding: 3px 0; color: var(--faint); }
.tracklist a { color: var(--text); text-decoration: none; }
.tracklist a:hover { color: var(--gold-2); }

/* Discography grid */
.music-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; }
.music-head .section-h { margin: 0; }
.count {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font: 600 var(--t-xs)/1 var(--sans); letter-spacing: .04em; color: var(--muted);
  padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px;
}
.search input {
  width: min(320px, 100%); padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  font: 400 16px/1.2 var(--sans);
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227, 173, 69, .18); }
.grid { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 32px 20px; }
.grid li[hidden] { display: none; }
.card { display: grid; text-decoration: none; color: var(--text); position: relative; }
.card img {
  border-radius: 12px; aspect-ratio: 1; object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s;
}
.card:hover img { transform: translateY(-4px); box-shadow: 0 22px 40px -14px rgba(0, 0, 0, .9), 0 0 0 1px var(--gold); }
.card-n {
  position: absolute; top: 10px; left: 10px;
  background: rgba(10, 9, 8, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--gold-2); font: 600 12px/1 var(--sans); padding: 5px 8px; border-radius: 999px;
}
.card-t { margin-top: 12px; font: 600 1.0625rem/1.25 var(--display); letter-spacing: -.01em; }
.card:hover .card-t { color: var(--gold-2); }
.card-m { color: var(--faint); font-size: var(--t-xs); margin-top: 2px; }

/* Streaming services: the logos are SVG symbols in one hidden sprite per page */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo { flex: none; display: block; }
.listen-h { margin: 28px 0 0; }
.services, .follow { margin-top: 12px; }
.follow-h { margin: 24px 0 0; }
.follow + .actions { margin-top: 12px; }
.hero .follow-h { text-shadow: 0 1px 12px #000; }
.hero .btn-service { background: rgba(10, 9, 8, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
/* Amazon Music's mark is a stacked wordmark: it needs more room than the round logos to be legible. */
.btn-service[href*="amazon"] .logo { width: 30px; height: 30px; margin: -6px -2px; }
.btn-service:hover { background: rgba(255, 255, 255, .1); border-color: var(--line-2); color: var(--text); }

/* About / contact */
.about { display: grid; grid-template-columns: 200px 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.about p, .contact p { color: var(--muted); max-width: 65ch; }

/* Track page */
.crumbs { color: var(--faint); font-size: var(--t-xs); letter-spacing: .04em; margin: 36px 0 24px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); }
.track-head { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.track h1 { font-size: var(--t-2xl); letter-spacing: -.035em; line-height: .98; }
.desc { color: #d9d1c3; max-width: 62ch; }
.note { border-left: 3px solid var(--gold); padding: 10px 16px; background: var(--bg-2); color: var(--muted); border-radius: 0 10px 10px 0; }
.siblings { margin-top: 48px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); }
.siblings h2 { font-size: var(--t-lg); }
.siblings strong { color: var(--gold-2); font-weight: 600; }
.lyrics { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); max-width: 640px; }
.lyrics h2 { font-size: var(--t-xl); }
.lyrics p { margin: 0 0 1.5em; line-height: 1.8; color: #e4ddd1; }
.sec { display: block; color: var(--gold); font: 600 11px/1.6 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 64px 0 32px; }
.pager a {
  display: grid; gap: 4px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px;
  text-decoration: none; color: var(--text); background: var(--bg-2);
  font: 600 1.0625rem/1.3 var(--display); transition: border-color .15s, background .15s;
}
.pager a:hover { border-color: var(--gold); background: var(--bg-3); }
.pager span { color: var(--faint); font: 500 var(--t-xs)/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.pager .next { text-align: right; }

/* Spotify player facade */
.player { margin-top: 24px; }
.player-load {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 13px 22px; border-radius: 14px; border: 1px solid rgba(30, 215, 96, .45);
  background: rgba(30, 215, 96, .07); color: var(--text); font: 600 var(--t-sm)/1.2 var(--sans);
}
.player-load svg { color: var(--spotify); }
.player-load:hover { background: rgba(30, 215, 96, .16); }
.player.on iframe { width: 100%; border: 0; border-radius: 14px; display: block; }
.fine { color: var(--faint); font-size: var(--t-xs); margin: 10px 0 0; }

.notfound { min-height: 55vh; display: grid; align-content: center; }
.notfound h1 { font-size: var(--t-2xl); }
.notfound p:not(.actions) { color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 56px 20px 64px; text-align: center; background: #070605; }
.foot img { width: 220px; margin: 0 auto 20px; opacity: .95; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 0; font-size: var(--t-sm); }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--gold-2); }

@media (max-width: 760px) {
  .top { gap: 12px; }
  .top nav { gap: 16px; }
  .latest, .track-head, .release, .about { grid-template-columns: 1fr; }
  .latest-cover { max-width: 420px; }
  .release img { max-width: 260px; }
  .about img { max-width: 140px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
}
.mark { flex: none; }
/* Phones: five menu items, the QR button and the logo must share ~375px. Releases and the header's
   Spotify icon step aside (the Follow buttons in the hero cover Spotify). */
@media (max-width: 480px) {
  .top { gap: 10px; padding-inline: 16px; }
  .mark img { width: 38px; }
  .top nav { gap: 12px; }
  .top nav a { font-size: 14px; }
  .top nav a:nth-child(2), .top-spotify { display: none; }
}
@media (max-width: 360px) {
  .top { gap: 8px; padding-inline: 12px; }
  .mark img { width: 32px; }
  .top nav { gap: 9px; }
  .top nav a { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card img, .btn, .top nav a::after { transition: none; }
}

/* QR code: a button in the top bar opens it in a pop-up (<dialog>, opened by app.js) */
.top-qr {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03); color: var(--text); font: 600 13px/1 var(--sans);
  transition: background .15s, border-color .15s, color .15s;
}
.top-qr svg { color: var(--gold); }
.top-qr:hover { background: var(--gold); border-color: var(--gold); color: #120d04; }
.top-qr:hover svg { color: #120d04; }
.qr {
  width: min(400px, 100% - 32px); padding: 24px; border: 1px solid var(--line-2); border-radius: 22px;
  background: var(--bg-2); color: var(--text); text-align: center;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9);
}
.qr::backdrop { background: rgba(5, 4, 3, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.qr img { width: 100%; border-radius: 14px; }
.qr p { margin: 16px 0 0; color: var(--muted); font-size: var(--t-sm); }
.qr .actions, .qr .qr-close { margin: 16px auto 0; }
@media (max-width: 420px) { .top-qr span { display: none; } .top-qr { padding: 8px; } }

/* Requests */
.requests .lead { font: 500 var(--t-lg)/1.4 var(--display); letter-spacing: -.01em; color: var(--text); max-width: 34ch; text-wrap: balance; }
.requests p { color: var(--muted); max-width: 65ch; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #120d04; }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.terms {
  margin-top: 32px; padding: 20px 24px; max-width: 65ch;
  border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; background: var(--bg-2);
}
.terms h3 { font-size: 1.0625rem; margin-bottom: .5em; }
.terms p { margin: 0 0 .6em; font-size: var(--t-sm); }
.terms p:last-child { margin-bottom: 0; color: var(--text); font-style: italic; }
.requests { display: grid; grid-template-columns: 1fr minmax(0, 300px); gap: clamp(24px, 5vw, 64px); align-items: center; }
.requests-art { width: 100%; height: auto; }
@media (max-width: 760px) {
  .requests { grid-template-columns: 1fr; }
  .requests-art { order: -1; max-width: 200px; }
}
