/* ===========================================
   BRAVE ULYSSES — Main Stylesheet
   Design: Psychedelic-era warmth + modern clarity
   =========================================== */

/* -------------------------------------------
   1. CUSTOM PROPERTIES
   ------------------------------------------- */
:root {
  /* Palette */
  --color-bg:           #0d0b0f;       /* near-black, very slight warm purple */
  --color-bg-mid:       #13101a;       /* section bg variation */
  --color-bg-alt:       #0f0d14;       /* alt section */
  --color-gold:         #c9a84c;       /* warm gold — primary accent */
  --color-gold-light:   #e8c86a;       /* lighter gold for hover/highlight */
  --color-cream:        #f0e8d0;       /* cream — body text */
  --color-cream-dim:    #c8b99a;       /* muted cream for secondary text */
  --color-purple:       #6b3fa0;       /* psychedelic purple accent */
  --color-purple-dim:   #3a2460;       /* deep purple for subtle glows */
  --color-red-accent:   #9b2335;       /* deep red, Disraeli Gears nod */
  --color-teal:         #1b6f8a;       /* from logo — used sparingly */
  --color-rule:         rgba(201,168,76,0.25); /* gold rule lines */
  --color-track-hover:  rgba(201,168,76,0.08);
  --color-track-active: rgba(201,168,76,0.15);

  /* Typography */
  --font-display:   'Josefin Sans', sans-serif;    /* section headings */
  --font-body:      'Cormorant Garamond', serif;   /* taglines, subtitles */
  --font-ui:        'Inter', sans-serif;            /* player UI, small labels */

  /* Sizing */
  --max-width:      1100px;
  --max-width-narrow: 700px;
  --section-pad:    clamp(4rem, 8vw, 8rem);
  --border-radius:  4px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-mid:  300ms ease;
}

/* -------------------------------------------
   2. RESET & BASE
   ------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ol, ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}

/* -------------------------------------------
   3. LAYOUT UTILITIES
   ------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

/* -------------------------------------------
   4. HEADER (reserved for future nav)
   ------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 0; /* collapses until nav is added */
}

.site-nav {
  /* Future navigation styles go here */
}

/* -------------------------------------------
   5. HERO SECTION
   ------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: clamp(3rem, 10vw, 6rem) clamp(1.25rem, 5vw, 3rem);
}

/* Layered background: radial psychedelic glow, subtle grain */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%,
      rgba(107, 63, 160, 0.22) 0%,
      rgba(155, 35, 53, 0.10) 40%,
      transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 80%,
      rgba(201, 146, 58, 0.08) 0%,
      transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 20%,
      rgba(107, 63, 160, 0.10) 0%,
      transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle noise texture overlay */
.hero__bg-texture {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2rem);
}

.hero__logo-wrap {
  width: 100%;
  max-width: clamp(280px, 92vw, 860px);
  margin: 0 auto;
  /* Subtle drop shadow to lift logo off dark bg */
  filter: drop-shadow(0 0 40px rgba(201, 146, 58, 0.20))
          drop-shadow(0 0 80px rgba(107, 63, 160, 0.15));
  transition: filter var(--transition-mid);
}

.hero__logo-wrap:hover {
  filter: drop-shadow(0 0 50px rgba(201, 146, 58, 0.30))
          drop-shadow(0 0 90px rgba(107, 63, 160, 0.20));
}

.hero__logo {
  width: 100%;
  height: auto;
}

/* Thin gold rule below logo */
.hero__logo-wrap::after {
  content: '';
  display: block;
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
  margin: clamp(1rem, 2.5vw, 1.75rem) auto 0;
  opacity: 0.6;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: 1;
}

.hero__tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--color-cream);
  letter-spacing: 0.02em;
  max-width: 700px;
  line-height: 1.65;
}

/* Band members grid */
.hero__members {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  width: 100%;
  max-width: 640px;
  margin-top: clamp(0.5rem, 2vw, 1rem);
  padding-top: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--color-rule);
}

.hero__member {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

.hero__member-name {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 600;
  color: var(--color-cream);
  letter-spacing: 0.02em;
}

.hero__member-instruments {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cream-dim);
}

@media (max-width: 580px) {
  .hero__members {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    border-top: 1px solid var(--color-rule);
  }
}

/* Animated scroll cue */
.hero__scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-chevron {
  width: 28px;
  height: auto;
  stroke: var(--color-gold);
  display: block;
  will-change: transform, opacity;
  animation: chevronPulse 2.2s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes chevronPulse {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50%       { opacity: 0.2; transform: translateY(5px); }
}

/* -------------------------------------------
   6. SECTION SHARED STYLES
   ------------------------------------------- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.15rem);
  color: var(--color-cream);
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Decorative rule above section titles */
.audio-section .section-title::before,
.contact-section .section-title::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  margin: 0 auto 1rem;
  opacity: 0.5;
}

/* -------------------------------------------
   7. AUDIO PLAYER SECTION
   ------------------------------------------- */
.audio-section {
  background-color: var(--color-bg-mid);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--color-rule);
}

/* -------------------------------------------
   7b. GH-AUDIO-PLAYER COMPONENT
   Theme + skin for the external component in assets/vendor/gh-audio-player.
   The custom properties below map this site's palette onto it; the rules
   after them restore the original track-list look over the component's
   compact default.
   ------------------------------------------- */
.gh-audio-player {
  --gh-accent:        #c9a84c;
  --gh-accent-dark:   #a07828;
  --gh-text:          #f0e8d0;
  --gh-tan:           #c9a84c;
  --gh-bg:            rgba(255,255,255,0.025);
  --gh-radius:        4px;
  --gh-font:          'Cormorant Garamond', serif;
  --gh-font-ui:       'Inter', sans-serif;
  --gh-neutral:       240, 232, 208;
  --gh-play-bg:       linear-gradient(135deg, #c9a84c, #a07828);
  --gh-play-bg-hover: linear-gradient(135deg, #e8c86a, #c9a84c);
}

.gh-audio-player__tracklist {
  gap: 0;
  border: 1px solid var(--color-rule);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.gh-audio-player__track {
  padding: 0.85rem 1.1rem;
  border-radius: 0;
  border-bottom: 1px solid var(--color-rule);
  transition: background var(--transition-fast), color var(--transition-fast);
  user-select: none;
}
.gh-audio-player__track:last-child { border-bottom: none; }
.gh-audio-player__track:hover { background: var(--color-track-hover); }
.gh-audio-player__track.is-active { background: var(--color-track-active); }
.gh-audio-player__track:focus-visible { outline: 1px solid var(--color-gold); outline-offset: -1px; }

.gh-audio-player__track-title {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.8vw, 1.1rem);
  font-weight: 400;
  color: var(--color-cream);
  transition: color var(--transition-fast);
}
.gh-audio-player__track.is-active .gh-audio-player__track-title {
  font-weight: 400;
  color: var(--color-gold-light);
}

.gh-audio-player__track-num {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--color-cream-dim);
  opacity: 0.6;
}
.gh-audio-player__track.is-active .gh-audio-player__track-num { color: var(--color-gold); }

.gh-audio-player__track-duration {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--color-cream-dim);
  opacity: 0.55;
  letter-spacing: 0.05em;
}

/* -------------------------------------------
   8. CONTACT SECTION
   ------------------------------------------- */
.contact-section {
  background-color: var(--color-bg-alt);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--color-rule);
  text-align: center;
}

.contact__text {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--color-cream-dim);
  line-height: 1.8;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.contact__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  flex-wrap: wrap;
}

/* Shared link style */
.contact__email-link,
.contact__fb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cream-dim);
  border: 1px solid var(--color-rule);
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.contact__email-link svg,
.contact__fb-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact__email-link:hover,
.contact__fb-link:hover {
  color: var(--color-gold-light);
  border-color: var(--color-gold);
  background: rgba(201,168,76,0.06);
}

/* -------------------------------------------
   9. FOOTER
   ------------------------------------------- */
.site-footer {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-rule);
  padding: 2.5rem 0;
  text-align: center;
}

.footer__copy,
.footer__studio {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--color-cream-dim);
  opacity: 0.6;
  line-height: 1.9;
  max-width: 38rem;   /* keep the legal line from spanning the whole page width */
  margin-inline: auto;
}

.footer__studio { margin-top: 0.75rem; }

/* Studio credit link: muted like the rest of the footer, with a touch of gold
   on hover/focus. */
.footer__studio a {
  color: inherit;
  transition: color var(--transition-fast);
}
.footer__studio a:hover,
.footer__studio a:focus-visible {
  color: var(--color-gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* -------------------------------------------
   10. RESPONSIVE — MOBILE
   ------------------------------------------- */
@media (max-width: 580px) {
  .hero__scroll-chevron {
    animation: none;
    opacity: 0.6;
  }

  .hero__scroll-cue {
    bottom: 1rem;
  }

  .hero__logo-wrap {
    margin-top: -2rem;
  }

  .hero__subtitle {
    margin-top: 0.75rem;
  }

  .contact__links {
    flex-direction: column;
    align-items: stretch;
  }

  .contact__email-link,
  .contact__fb-link {
    justify-content: center;
  }
}

/* -------------------------------------------
   11. REDUCED MOTION
   ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  /* No `animation/transition: 0.01ms !important` here on purpose. On this page
     it forced the chevron's `infinite` animation down to a 0.01ms cycle, which
     restarts it continuously and janks scrolling on iOS Safari — landscape only,
     since portrait hits the max-width:580px rule that sets animation:none. */
  html {
    scroll-behavior: auto;
  }
}
