/* ==========================================================================
   VANE — Artist Site
   Design system: near-black stage-light palette, warm gold accent,
   waveform as the recurring structural motif (nav underline, dividers,
   loading states) — ties every section back to "this is a musician's site".
   ========================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-raised: #141416;
  --ink: #f2efe9;
  --ink-dim: #a7a39b;
  --gold: #e8a33d;
  --rose: #c97064;
  --line: #2a2a2c;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Work Sans', system-ui, sans-serif;

  --container: 1180px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 8rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.75rem, 8vw, 6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; }

p { color: var(--ink-dim); max-width: 60ch; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 500;
}

/* ---------- Waveform signature ---------- */
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}
.waveform span {
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0.85;
  animation: wave 1.6s ease-in-out infinite;
}
.waveform span:nth-child(1) { height: 40%; animation-delay: -1.2s; }
.waveform span:nth-child(2) { height: 90%; animation-delay: -0.9s; }
.waveform span:nth-child(3) { height: 60%; animation-delay: -0.6s; }
.waveform span:nth-child(4) { height: 100%; animation-delay: -0.3s; }
.waveform span:nth-child(5) { height: 55%; animation-delay: 0s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 12, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  font-size: 0.9rem;
  color: var(--ink-dim);
  padding-bottom: 6px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    height: calc(100vh - 64px);
    background: var(--bg);
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-3);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    z-index: 40;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-6) 0 var(--space-5);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 140%;
  background: radial-gradient(ellipse at 30% 20%, rgba(232, 163, 61, 0.14), transparent 60%),
              radial-gradient(ellipse at 80% 60%, rgba(201, 112, 100, 0.10), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero h1 { margin-bottom: var(--space-2); }
.hero .waveform { margin-bottom: var(--space-3); }
.hero-sub {
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: var(--space-4);
}
.btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* Platform icons — real brand colors so each is identifiable at a glance */
.platform-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.platform-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.platform-icon:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-primary { background: var(--gold); color: #1a1305; }
.btn-primary:hover { background: #f0b158; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); }

/* ---------- Sections ---------- */
section { padding: var(--space-5) 0; }
.section-head { margin-bottom: var(--space-4); display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }

/* Divider draws in like a beam of light catching the stage —
   sits at 0 width until it scrolls into view, then opens outward
   from center with a brief gold flare trailing the edges. */
.divider {
  border: none;
  height: 1px;
  margin: 0;
  position: relative;
  background: var(--line);
  overflow: visible;
}
.divider::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 12px 1px rgba(232, 163, 61, 0.55);
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1), left 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.divider.is-visible::after {
  width: 60%;
  left: 20%;
}

/* ---------- Scroll reveal ----------
   Gated behind html.js-ready (set synchronously in <head>) so that if
   JavaScript fails to load for any reason, content is never hidden —
   animation is a bonus, not a requirement to see the page. */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

.js-ready .reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.20s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.38s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.44s; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 0.50s; }

/* Eyebrow gets a small underline that draws in alongside the reveal —
   a miniature echo of the divider beam. */
.eyebrow { position: relative; display: inline-block; padding-bottom: 10px; }
.eyebrow::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.eyebrow.is-visible::after { width: 28px; }
.eyebrow--center::after { left: 50%; transform: translateX(-50%); }

/* ---------- Music grid (asymmetric: one featured + list) ---------- */
.music-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-4);
}
.release-featured {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: var(--space-3);
}
.release-featured .art {
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a2213, var(--bg-raised) 60%);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.release-list { display: flex; flex-direction: column; gap: 0; }
.release-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
  gap: var(--space-2);
}
.release-row .meta { display: flex; align-items: center; gap: var(--space-2); }
.release-row .track-no { color: var(--ink-dim); font-variant-numeric: tabular-nums; width: 1.6em; }
.release-row .play {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.release-row:hover .play { border-color: var(--gold); background: rgba(232,163,61,0.08); }

@media (max-width: 760px) {
  .music-grid { grid-template-columns: 1fr; }
}

/* ---------- Bio ---------- */
.bio-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
  align-items: start;
}
.bio-portrait {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--bg-raised), #1c1710);
  border: 1px solid var(--line);
  overflow: hidden;
}
/* Ambient stage-light glow breathing behind the portrait */
.bio-portrait::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 40%, rgba(232, 163, 61, 0.35), transparent 65%);
  opacity: 0;
  animation: portrait-glow 6s ease-in-out infinite;
  animation-play-state: paused;
  pointer-events: none;
  z-index: 0;
}
.bio-portrait.is-visible::before { animation-play-state: running; }
@keyframes portrait-glow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}
.js-ready .bio-portrait img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.06);
  transition: clip-path 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bio-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bio-portrait.is-visible img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}
.bio-portrait:hover img { transform: scale(1.03); }
.bio-copy p { max-width: none; }
.bio-copy .lede { font-size: 1.15rem; color: var(--ink); }

/* ---------- Minister credit grid ----------
   Each name gets its own card instead of sitting in a plain bullet
   list — a small mic mark, the name in display type, and a hover
   lift, so it reads as a credit rather than a footnote. */
.minister-grid {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-2);
}
.minister-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.minister-grid li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px 1px rgba(232, 163, 61, 0.6);
}
.minister-grid li:hover {
  border-color: var(--gold);
  background: #191813;
  transform: translateY(-3px);
}
.minister-grid li.is-more {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-dim);
  font-style: italic;
  justify-content: center;
  text-align: center;
}
.minister-grid li.is-more::before { display: none; }

/* ---------- Ministry venue list ----------
   Venue name + region, laid out as a simple two-column table-like
   grid so it reads as a record of places rather than a bullet dump. */
.venue-list {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  border-top: 1px solid var(--line);
}
.venue-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.venue-list .venue-name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.venue-list .venue-place {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.venue-list li.is-note .venue-name {
  font-family: var(--font-body);
  color: var(--ink-dim);
  font-size: 0.92rem;
}

/* ---------- Vision pull-quote ---------- */
.vision-quote {
  position: relative;
  max-width: 62ch;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-2) var(--space-3) 0;
}
.vision-quote::before {
  content: '“';
  display: block;
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: -0.3rem;
  opacity: 0.85;
}
.vision-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--ink);
  max-width: none;
  line-height: 1.5;
}
.vision-quote .vision-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: var(--space-3) auto 0;
}
@media (max-width: 760px) {
  .bio-layout { grid-template-columns: 1fr; }
}

/* Alternate bio row — image on the right instead of the left */
.bio-layout--reverse .bio-portrait { order: 2; }
.bio-layout--reverse .bio-copy { order: 1; }
@media (max-width: 760px) {
  .bio-layout--reverse .bio-portrait,
  .bio-layout--reverse .bio-copy { order: initial; }
}

/* ---------- Store ---------- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 880px) {
  .store-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .store-grid { grid-template-columns: 1fr; }
}
.store-item {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.store-item .thumb {
  aspect-ratio: 1;
  background: linear-gradient(150deg, #1c1710, var(--bg-raised));
  position: relative;
  overflow: hidden;
}
.store-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.store-item .info { padding: var(--space-2) var(--space-3) var(--space-3); }
.store-item .price { color: var(--gold); font-family: var(--font-display); font-size: 1.1rem; }

.store-embed-note {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: var(--space-3);
  color: var(--ink-dim);
  font-size: 0.9rem;
}

/* ---------- Blog ---------- */
.blog-list { display: flex; flex-direction: column; gap: var(--space-4); }
.blog-post {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.blog-post .date { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.05em; }
@media (max-width: 600px) {
  .blog-post { grid-template-columns: 1fr; }
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.newsletter-form { display: flex; gap: var(--space-1); flex: 1; min-width: 260px; }
.newsletter-form input[type="email"] {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.newsletter-form input[type="email"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Contact / booking ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-2); }
.field label { font-size: 0.8rem; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.field input, .field textarea, .field select {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.contact-info h3 { color: var(--gold); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-body); }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-4) 0;
  margin-top: var(--space-5);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.social-links { display: flex; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
.social-links a { color: var(--ink-dim); font-size: 0.9rem; }
.social-links a:hover { color: var(--gold); }
.footer-fine { color: var(--ink-dim); font-size: 0.8rem; }

/* ---------- Inline player state ---------- */
.release-row.is-playing { border-color: var(--gold); }
.release-row.is-playing .play {
  border-color: var(--gold);
  background: rgba(232,163,61,0.12);
  color: var(--gold);
}

/* ---------- Top Songs — horizontal scroll, zigzag cards ---------- */
.songs-scroll {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-4) var(--space-1) var(--space-4);
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.songs-scroll::-webkit-scrollbar { height: 6px; }
.songs-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.song-card {
  flex: 0 0 190px;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
}
.song-card:nth-child(odd) { transform: translateY(-22px); }
.song-card:nth-child(even) { transform: translateY(22px); }
.song-card:hover { transform: translateY(-6px); }
.song-card .cover-wrap {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--line);
}
.song-card .cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.song-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(11,11,12,0.55);
  color: var(--ink);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.song-card .cover-wrap:hover .song-play,
.song-card.is-playing .song-play {
  opacity: 1;
}
.song-card.is-playing .song-play {
  background: var(--gold);
  color: #1a1305;
}
.song-artist {
  margin: var(--space-2) 0 0;
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.song-title {
  margin: 2px 0 6px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.song-download {
  font-size: 0.78rem;
  color: var(--ink-dim);
}
.song-download:hover { color: var(--gold); }

@media (max-width: 600px) {
  .song-card { flex-basis: 150px; }
}
