/* ===================================================================
   TELL ME YOUR STORY — Landing Page Styles
   Art direction: Cinematic dark, moody blues + warm highlights
   =================================================================== */

/* --- Fonts --- */
@font-face {
  font-family: 'Astrid';
  src: url('./assets/Astrid.woff') format('woff'),
       url('./assets/Astrid.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Design Tokens --- */
:root {
  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3.5rem, 1rem + 8vw, 9rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Color — dark cinematic palette derived from the photography */
  --color-bg: #0a0a0f;
  --color-surface: #111118;
  --color-surface-2: #16161f;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #e8e4df;
  --color-text-muted: #8a857e;
  --color-text-faint: #4a4742;
  --color-accent: #c9a34e; /* warm gold from skin highlight tones */
  --color-accent-hover: #cdb89e;

  /* Fonts */
  --font-display: 'Astrid', 'Georgia', serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;

  /* Layout */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Global --- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-6) var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
}

.site-header .logo {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-8);
  padding-bottom: var(--space-16);
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--color-bg) 0%, transparent 50%),
    linear-gradient(to top, rgba(10, 10, 15, 0.3) 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 0.95;
  color: var(--color-text);
  letter-spacing: 0;
  font-variant-ligatures: common-ligatures;
  font-feature-settings: 'liga' 1, 'aalt' 1;
  -webkit-font-feature-settings: 'liga' 1, 'aalt' 1;
  margin-bottom: var(--space-6);
}



/* --- Play Button --- */
.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease;
  margin-top: var(--space-6);
}

.play-btn svg {
  width: 18px;
  height: 18px;
}

.play-btn .play-icon {
  margin-left: 2px; /* optical center for play triangle */
}

.play-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.08);
}

.play-btn:active {
  transform: scale(0.96);
}

.play-btn.is-playing {
  background: rgba(255, 255, 255, 0.06);
}

/* --- Section shared --- */
.section {
  padding: clamp(var(--space-16), 10vw, var(--space-32)) var(--space-8);
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
}

/* --- Photo Gallery --- */
.gallery {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-8);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Clean 3-column grid — all items same aspect ratio */
.gallery-item {
  aspect-ratio: 3 / 4;
}

/* First item spans 2 rows for visual interest */
.gallery-item:nth-child(1) {
  grid-row: span 2;
  aspect-ratio: auto;
}

/* Last item spans remaining columns to avoid empty gap */
.gallery-item:last-child {
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}

/* --- Divider --- */
.divider {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-8);
  height: 1px;
  background: var(--color-border);
}

/* --- About / Text Section --- */
.about {
  max-width: var(--content-default);
  margin: 0 auto;
}

.about-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
  max-width: 36ch;
}

.about-text span {
  color: var(--color-text-muted);
}



/* --- Connect / Links Section --- */
.connect {
  max-width: var(--content-default);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  list-style: none;
  flex-wrap: wrap;
}

.social-links a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b4a08c;
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: 0;
  transition:
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    color var(--transition-interactive);
}

.social-links a:hover {
  background: rgba(180, 160, 140, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}

/* --- Instagram Link --- */
.ig-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b4a08c !important;
  text-decoration: none;
  -webkit-text-fill-color: #b4a08c;
  transition: color 0.3s ease, transform 0.3s ease;
}

.ig-link:visited {
  color: #b4a08c !important;
  -webkit-text-fill-color: #b4a08c;
}

.ig-link:hover {
  color: #e8e4df !important;
  -webkit-text-fill-color: #e8e4df;
  transform: scale(1.1);
}

.ig-link svg {
  color: inherit;
  stroke: currentColor;
}

/* --- Shows Section (placeholder) --- */
.shows {
  max-width: var(--content-default);
  margin: 0 auto;
}

.shows-empty {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-faint);
  text-align: center;
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}



/* --- Footer --- */
.site-footer {
  padding: var(--space-16) var(--space-8) var(--space-8);
  text-align: center;
}

.footer-band-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: #b4a08c;
  font-variant-ligatures: common-ligatures;
  font-feature-settings: 'liga' 1, 'aalt' 1;
  -webkit-font-feature-settings: 'liga' 1, 'aalt' 1;
  margin-bottom: var(--space-2);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: #b4a08c;
  letter-spacing: 0.1em;
  max-width: none;
  margin: 0 auto;
}

/* --- Scroll Reveal Animations --- */
.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* Staggered gallery items */
@supports (animation-timeline: scroll()) {
  .gallery-item:nth-child(2) { animation-range: entry 5% entry 85%; }
  .gallery-item:nth-child(3) { animation-range: entry 10% entry 90%; }
  .gallery-item:nth-child(4) { animation-range: entry 15% entry 95%; }
  .gallery-item:nth-child(5) { animation-range: entry 20% entry 100%; }
  .gallery-item:nth-child(6) { animation-range: entry 0% entry 80%; }
  .gallery-item:nth-child(7) { animation-range: entry 5% entry 85%; }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .site-header {
    padding: var(--space-4) var(--space-5);
  }

  .hero {
    padding: var(--space-5);
    padding-bottom: var(--space-12);
  }

  .hero-title {
    font-size: clamp(2.5rem, 1rem + 10vw, 5rem);
  }

  .gallery {
    padding: var(--space-12) var(--space-4);
    padding-top: var(--space-8);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  .gallery-item:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }
  .gallery-item {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 3 / 4;
  }

  .gallery-item:last-child {
    grid-column: auto;
    aspect-ratio: 3 / 4;
  }

  .section {
    padding: var(--space-12) var(--space-5);
  }

  .about-text {
    font-size: var(--text-lg);
  }

  .social-links {
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
  }

  .social-links a {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: var(--space-5) var(--space-6);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:last-child {
    grid-column: 1;
    grid-row: auto;
    aspect-ratio: 3 / 4;
  }
}
