/* ==========================================================
   Music & Entertainment Hub - Template #1
   Colors are tokens. The theme ("dark"/"light") and the two
   accent colors come from content/site.js, so a cloned site
   changes its look without touching this file.
   ========================================================== */

:root {
  --bg: #0d0b0e;
  --bg-alt: #141116;
  --surface: #1b171d;
  --surface-2: #241f26;
  --line: rgba(255, 240, 228, 0.1);
  --text: #f5efe8;
  --muted: #b3a9a1;

  --accent: #d8391f;
  --accent-2: #f2b541;
  --on-accent: #ffffff;   /* set by app.js for contrast */
  --ink-accent: #f2b541;  /* accent that is safe for small text, set by app.js */

  --glow: rgba(216, 57, 31, 0.28);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;

  --font-display: "Anton", Impact, "Arial Narrow Bold", "Helvetica Neue", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f3ee;
  --bg-alt: #eee9e1;
  --surface: #ffffff;
  --surface-2: #f2ede6;
  --line: rgba(35, 22, 12, 0.13);
  --text: #1b1714;
  --muted: #5d554e;
  --glow: rgba(216, 57, 31, 0.14);
  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
}

:focus-visible {
  outline: 2px solid var(--ink-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-accent);
}

/* ---------- Buttons & chips ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--text);
  font: 700 0.95rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
}
.btn:hover { border-color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-accent:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.88rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.8rem; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color 0.2s, border-color 0.2s;
}
a.chip:hover { color: var(--text); border-color: var(--text); }
.tag { color: var(--text); background: var(--surface-2); border-color: transparent; }

/* ---------- Preview banner ---------- */

.preview-banner {
  background: var(--accent-2); color: #1b1410;
  font-size: 0.85rem; font-weight: 500; text-align: center;
  padding: 8px var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex; flex-direction: column; line-height: 1;
  text-decoration: none;
}
.wordmark-main {
  font-family: var(--font-display);
  font-size: 1.55rem; letter-spacing: 0.02em; text-transform: uppercase;
}
.wordmark-main::after { content: "."; color: var(--accent); }
.wordmark-sub {
  margin-top: 3px;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--muted);
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 22px; }
.site-nav ul a {
  position: relative; text-decoration: none;
  font-size: 0.92rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s;
}
.site-nav ul a:hover, .site-nav ul a.is-active { color: var(--text); }
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a {
    display: block; padding: 14px 0; font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav ul a::after { display: none; }
  .nav-cta { margin-top: 16px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(40px, 8vw, 96px) clamp(56px, 9vw, 112px);
  background:
    radial-gradient(60% 70% at 12% 10%, var(--glow), transparent 70%),
    radial-gradient(40% 40% at 88% 55%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.hero-artist {
  margin: 14px 0 22px;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--muted);
}
.hero-artist strong { color: var(--text); font-weight: 700; }
.hero-intro { max-width: 46ch; color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.hero-art {
  position: relative;
  width: min(100%, 460px);
  justify-self: center;
  margin-right: 12%;
}
.hero-art .cover {
  position: relative; z-index: 2;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

/* Vinyl record peeking out from behind the cover */
.vinyl {
  position: absolute; z-index: 1;
  top: 5%; left: 22%;
  width: 90%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, var(--accent-2) 0 15%, #0a0a0a 15.5% 17%, transparent 17.5%),
    repeating-radial-gradient(circle, #151515 0 1.5px, #0b0b0b 1.5px 3px);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: spin 9s linear infinite;
  transition: left 0.6s cubic-bezier(.2, .8, .2, 1);
}
.vinyl::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 20%, rgba(255, 255, 255, 0.07) 25%, transparent 30% 70%, rgba(255, 255, 255, 0.05) 75%, transparent 80%);
}
.hero-art:hover .vinyl { left: 34%; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; width: min(78%, 380px); margin-right: 14%; }
}

/* ---------- Generated covers ---------- */

.cover {
  position: relative; overflow: hidden;
  aspect-ratio: 1; border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }

.cover-gen {
  --h: 10;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 9%;
  color: #fff;
  background:
    radial-gradient(120% 80% at 100% 0%, hsl(calc(var(--h) + 40) 90% 60% / 0.55), transparent 60%),
    radial-gradient(90% 90% at 0% 100%, hsl(calc(var(--h) - 20) 85% 12%), transparent 70%),
    linear-gradient(150deg, hsl(var(--h) 72% 42%), hsl(calc(var(--h) + 25) 70% 16%));
}
.cover-gen::before {
  /* concentric rings, like a record groove */
  content: ""; position: absolute; right: -30%; bottom: -30%;
  width: 90%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 9px);
}
.cover-gen .cover-artist {
  position: relative;
  font-size: clamp(0.62rem, 1.6cqi, 0.9rem);
  font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.85;
}
.cover-gen .cover-title {
  position: relative;
  font-family: var(--font-display);
  font-size: 13cqi; line-height: 0.95; text-transform: uppercase;
  overflow-wrap: anywhere;
}
.cover { container-type: inline-size; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 10vw, 120px); }
.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2, .about-heading, .radio-card h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

/* ---------- Releases ---------- */

.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}
.release-card .cover { transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s; }
.release-card:hover .cover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55); }
.release-meta { padding-top: 14px; }
.release-title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.release-artist { margin: 2px 0 6px; color: var(--muted); font-size: 0.95rem; }
.release-type {
  margin: 0 0 12px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Artists ---------- */

.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}
.artist-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.artist-photo {
  width: 88px; height: 88px; border-radius: 50%; overflow: hidden; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2rem; color: #fff;
  background:
    radial-gradient(80% 80% at 80% 15%, color-mix(in srgb, var(--accent-2) 55%, transparent), transparent 70%),
    linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #000));
}
.artist-photo img { width: 100%; height: 100%; object-fit: cover; }
.artist-name {
  font-family: var(--font-display);
  font-size: 1.9rem; line-height: 1; text-transform: uppercase;
}
.artist-bio { margin: 0; color: var(--muted); }
.artist-card .chip-row:last-child { margin-top: auto; }

/* ---------- Videos ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}
.video-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--surface-2);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: #000 center / cover no-repeat;
  display: grid; place-items: center;
}
.video-play::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05));
}
.play-icon {
  position: relative;
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center;
  transition: transform 0.25s;
}
.play-icon svg { width: 26px; height: 26px; margin-left: 4px; }
.video-play:hover .play-icon { transform: scale(1.08); }
.video-empty {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center; padding: 16px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--text) 3%, transparent) 14px 28px),
    var(--surface);
  color: var(--muted); font-size: 0.9rem;
}
.video-empty .play-icon { margin: 0 auto 10px; background: var(--surface-2); color: var(--muted); width: 54px; height: 54px; }
.video-empty .play-icon svg { width: 20px; height: 20px; }
.video-title { margin: 12px 0 2px; font-weight: 700; }
.video-artist { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Shows ---------- */

.show-list { border-top: 1px solid var(--line); }
.show {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center; gap: clamp(16px, 3vw, 32px);
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.show-date { text-align: center; line-height: 1; }
.show-month {
  display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-accent);
}
.show-day { display: block; margin: 4px 0; font-family: var(--font-display); font-size: 2.8rem; }
.show-weekday { display: block; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.show-venue { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.show-city { margin: 2px 0 0; color: var(--muted); }
.show-note { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }
.shows-empty { padding: 28px 0; color: var(--muted); border-bottom: 1px solid var(--line); }

@media (max-width: 600px) {
  .show { grid-template-columns: 64px minmax(0, 1fr); }
  .show-day { font-size: 2.2rem; }
  .show .btn { grid-column: 2; justify-self: start; }
}

/* ---------- Radio ---------- */

.radio-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px; align-items: center;
  padding: clamp(24px, 5vw, 48px); border-radius: var(--radius);
  background:
    radial-gradient(70% 120% at 100% 0%, var(--glow), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
.live-dot {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-accent);
}
.live-dot::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }
.radio-card p { color: var(--muted); margin-top: 12px; }
.radio-card audio { width: 100%; }
@media (max-width: 760px) { .radio-card { grid-template-columns: minmax(0, 1fr); } }

/* ---------- About ---------- */

.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px); align-items: start;
}
.about-body p { color: var(--muted); font-size: 1.08rem; }
.about-body p:first-child { color: var(--text); font-size: 1.2rem; }
@media (max-width: 800px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; transition: border-color 0.2s, transform 0.2s;
}
a.contact-card:hover { border-color: var(--text); transform: translateY(-2px); }
.contact-label {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-accent);
}
.contact-value { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-hint { color: var(--muted); font-size: 0.9rem; }
.contact-card.is-cta { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.contact-card.is-cta .contact-label, .contact-card.is-cta .contact-hint { color: inherit; opacity: 0.85; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 48px; border-top: 1px solid var(--line); }
.footer-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 32px; align-items: center;
}
.footer-brand { margin: 0; font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; }
.footer-tagline { margin: 4px 0 0; color: var(--muted); }
.footer-meta { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.86rem; }
.footer-meta .dot { margin-inline: 6px; }
.social-list { display: flex; flex-wrap: wrap; gap: 8px; }
.social-list a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.social-list a:hover { color: var(--text); border-color: var(--text); }
.social-list svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .footer-inner { grid-template-columns: minmax(0, 1fr); } }

.noscript { padding: 24px var(--gutter); text-align: center; color: var(--muted); }

/* ---------- Scroll reveal (added by app.js only when motion is OK) ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
