/* ============================================================================
   SOLAR VOSS — minimal / underground
   ============================================================================ */

:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --line: #1f1f1f;
  --fg: #ededed;
  --fg-dim: #8a8a8a;
  --fg-faint: #555555;
  --accent: #ff7a45;            /* sunset — overridden from config.js */
  --maxw: 1080px;
  --pad: clamp(20px, 5vw, 64px);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* Film-grain / noise overlay -------------------------------------------------*/
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Mono label utility ---------------------------------------------------------*/
.section-num, .hero-index, .release-meta, .listen-label,
.nav-links a, .footer-bottom, .hero-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  mix-blend-mode: difference;       /* stays legible over any section */
}
.wordmark {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #fff;
}
.nav-links { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav-links a { color: #fff; opacity: 0.7; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--pad) 80px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* Accent glow behind the figure (the "stage light") */
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(46vw 46vw at 72% 48%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 62%);
  pointer-events: none;
}
/* The helmeted figure — dissolves into the black at the edges */
.hero-figure {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(-80px, -3vw, 0px);
  transform: translateY(-50%);
  width: min(58vw, 700px);
  aspect-ratio: 1 / 1;
  background: url("assets/solar-voss.jpg") center / contain no-repeat;
  -webkit-mask-image: radial-gradient(circle at 50% 47%, #000 45%, transparent 68%);
          mask-image: radial-gradient(circle at 50% 47%, #000 45%, transparent 68%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: min(640px, 100%);
}
.hero-index {
  color: var(--fg-dim);
  margin-bottom: clamp(24px, 6vh, 60px);
}
.hero-title {
  font-size: clamp(2.8rem, 8.5vw, 7rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  color: var(--fg-dim);
  max-width: 22ch;
  margin-top: clamp(20px, 4vh, 40px);
  font-weight: 400;
}
.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: clamp(28px, 5vh, 48px);
  color: var(--fg-faint);
}
.hero-meta li { position: relative; padding-right: 18px; }
.hero-meta li:not(:last-child)::after {
  content: "/";
  position: absolute;
  right: 0;
  color: var(--line);
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(36px, 6vh, 56px);
  padding: 14px 26px;
  width: fit-content;
  border: 1px solid var(--fg);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.cta:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.cta svg { transition: transform 0.25s; }
.cta:hover svg { transform: translate(2px, -2px); }

/* ── Marquee ───────────────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  background: var(--accent);
  color: #000;
}
.marquee-track {
  display: inline-block;
  animation: scroll 26s linear infinite;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 12vh, 140px) var(--pad);
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(32px, 6vh, 56px);
}
.section-num { color: var(--accent); }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ── Releases / players ────────────────────────────────────────────────── */
.releases { display: flex; flex-direction: column; gap: clamp(32px, 5vh, 52px); }
.release-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.release-title {
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}
.release-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.player { border-radius: 12px; overflow: hidden; min-height: 80px; }
.player iframe { display: block; border: 0; width: 100%; border-radius: 12px; }
.player-placeholder {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 40px 28px;
  text-align: center;
  color: var(--fg-faint);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  line-height: 1.7;
}
.player-placeholder strong { color: var(--fg-dim); font-weight: 500; }

/* ── Listen on ─────────────────────────────────────────────────────────── */
.listen-on {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 40px;
}
.listen-label { color: var(--fg-faint); }
.listen-links { display: flex; flex-wrap: wrap; gap: 10px; }
.listen-links a {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.listen-links a:hover { color: #000; background: var(--accent); border-color: var(--accent); }

/* ── About ─────────────────────────────────────────────────────────────── */
.about-text {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.45;
  max-width: 24ch;
  letter-spacing: -0.01em;
}

/* ── Follow / signup ───────────────────────────────────────────────────── */
.follow-copy { color: var(--fg-dim); max-width: 40ch; margin-bottom: 28px; }
.signup { display: flex; max-width: 460px; border: 1px solid var(--fg); }
.signup input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--fg);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 0.85rem;
  outline: none;
}
.signup input::placeholder { color: var(--fg-faint); }
.signup button {
  background: var(--fg);
  color: #000;
  border: 0;
  padding: 0 24px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.signup button:hover { background: var(--accent); }
.signup-arrow { transition: transform 0.2s; }
.signup button:hover .signup-arrow { transform: translateX(3px); }
.signup-status { margin-top: 14px; font-family: var(--mono); font-size: 0.76rem; color: var(--accent); min-height: 1em; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 8vh, 80px) var(--pad); }
.footer-socials { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 48px; }
.footer-socials a {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  position: relative;
  transition: color 0.2s;
}
.footer-socials a::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.25s;
}
.footer-socials a:hover { color: var(--fg); }
.footer-socials a:hover::after { width: 100%; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--fg-faint);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.footer-bottom a { color: var(--fg-dim); }
.footer-bottom a:hover { color: var(--accent); }

/* ── Reveal on scroll ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Tablet/phone: figure moves behind the text as a dimmed backdrop */
@media (max-width: 820px) {
  .hero-figure {
    width: min(118vw, 600px);
    right: 50%;
    top: 42%;
    transform: translate(50%, -50%);
    opacity: 0.55;
  }
  .hero::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, transparent 35%, var(--bg) 86%);
    pointer-events: none;
  }
  .hero-content { max-width: 100%; }
}

@media (max-width: 600px) {
  .nav-links { gap: 16px; }
  .nav-links a:first-child { display: none; } /* keep nav clean on mobile */
  .signup { flex-direction: column; }
  .signup button { padding: 14px; justify-content: center; }
}
