/* === Fonts === */
@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/Lato-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/Lato-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/Lato-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* === Custom Properties === */
:root {
  --bg: #faf8f3;
  --bg-elevated: #f0ebe2;
  --accent: #641616;
  --accent-hover: #7a1d1d;
  --warm: #0b1315;
  --text: #0b1315;
  --text-secondary: #4a3a2a;
  --text-muted: #8a7a6a;
  --border: #e6dfd2;
  --max-width: 1000px;
  --section-padding: 80px 24px;
}

/* === Hero === */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/hero-bg.jpg') center top / cover no-repeat;
}

@media (min-width: 641px) {
  .hero-bg {
    background-position: center 15%;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 80%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-logo-img {
  max-width: clamp(280px, 50vw, 600px);
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 0 40px rgba(0,0,0,0.3));
}

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid transparent;
  margin-top: -52px;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s, margin-top 0.3s;
}

.nav.scrolled {
  background: rgba(250, 248, 243, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  margin-top: 0;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 201;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* === Mobile Menu Overlay === */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(250, 248, 243, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  z-index: 200;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 32px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  z-index: 201;
}

.mobile-menu-link {
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--text);
  transition: color 0.3s;
}

.mobile-menu-link:hover {
  color: var(--accent);
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav-inner {
    justify-content: flex-end;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none !important;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* === Sections === */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
}

/* === Audio Bio === */
.audio-bio {
  max-width: 600px;
  margin: 0 auto;
}

.audio-bio-visual {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-elevated);
  border-radius: 60px;
}

.audio-play-btn {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
}

.audio-play-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

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

.waveform {
  flex: 1;
  height: 48px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
}

.waveform-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  position: relative;
  z-index: 1;
}

.waveform-bars .bar {
  flex: 1;
  background: var(--text-muted);
  border-radius: 2px;
  min-width: 2px;
  transition: background 0.1s;
}

.waveform-bars .bar.played {
  background: var(--accent);
}

.waveform-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  z-index: 0;
}

.audio-time {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: right;
}

.audio-bio-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 16px;
  font-style: italic;
  letter-spacing: 1px;
}

/* === Quotes === */
.quotes {
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.quote {
  flex: 1;
  text-align: center;
  margin: 0;
  padding: 0;
  border: none;
}

.quote p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
}

.quote cite {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-style: normal;
  color: var(--text-muted);
  letter-spacing: 1px;
}

@media (max-width: 640px) {
  .quotes {
    flex-direction: column;
    gap: 20px;
  }
}

/* === Music === */
.music-players {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.player-container {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  height: 450px;
}

.player-container iframe {
  display: block;
  width: 100%;
  height: 100%;
}

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

/* === Visuals === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.video-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

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

/* === Blog / Journal === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.blog-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.blog-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 20px;
}

.blog-card-date {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

/* === Blog Modal === */
.blog-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 40px 24px;
}

.blog-modal.open {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.blog-modal-content {
  background: var(--bg);
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  position: relative;
  padding: 48px 40px;
  margin: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.blog-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.blog-modal-close:hover {
  color: var(--text);
}

.blog-modal-body img.blog-modal-hero {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 24px;
}

.blog-modal-body .blog-modal-date {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.blog-modal-body .blog-modal-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.3;
}

.blog-modal-body .blog-post-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.blog-modal-body .blog-post-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
}

.blog-modal-body .blog-post-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 8px;
}

.blog-modal-body .blog-post-content ul,
.blog-modal-body .blog-post-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.blog-modal-body .blog-post-content li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.6;
}

.blog-modal-body .blog-post-content img {
  width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

.blog-modal-body .blog-post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 16px 0;
  font-style: italic;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .blog-modal {
    padding: 16px;
  }

  .blog-modal-content {
    padding: 32px 20px;
  }

  .blog-modal-body .blog-modal-title {
    font-size: 22px;
  }
}

/* === Tour === */
.tour-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 1px;
}

/* === Fan Zone === */
.fan-zone-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
}

.fan-zone-cta {
  display: inline-block;
  margin: 0 auto;
}

.fan-zone .section-inner {
  text-align: center;
}

/* === Shop === */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 32px;
}

.shop-card {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.shop-card:hover {
  transform: translateY(-2px);
}

.shop-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.shop-card-price {
  font-size: 13px;
  color: var(--text-secondary);
}

/* === Vinyl === */
.vinyl-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1.15;
  margin-bottom: 16px;
}

.vinyl-sleeve {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 75%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  box-shadow: 2px 2px 16px rgba(0,0,0,0.2);
  z-index: 2;
}

.vinyl-disc {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 70%;
  aspect-ratio: 1;
  background: #1a1a1a;
  border-radius: 50%;
  z-index: 1;
  transition: transform 0.5s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.shop-card:hover .vinyl-disc {
  transform: translateY(-50%) rotate(30deg);
}

.vinyl-grooves {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0px,
    transparent 2px,
    rgba(255,255,255,0.03) 2px,
    rgba(255,255,255,0.03) 4px
  );
}

.vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
}

.vinyl-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg);
}

@media (max-width: 640px) {
  .shop-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto 32px;
  }
}

/* === Sign Up === */
.signup-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
}

.signup-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
  justify-content: center;
}

.signup-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.signup-input::placeholder {
  color: var(--text-muted);
}

.signup-input:focus {
  border-color: var(--warm);
}

.btn-secondary {
  padding: 12px 24px;
  background: var(--warm);
  color: var(--bg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}

.btn-secondary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* === Footer === */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-top {
  margin-bottom: 24px;
}

.footer-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.footer-separator {
  color: var(--text-muted);
  font-size: 14px;
  user-select: none;
}

.social-link {
  color: var(--text-secondary);
  transition: color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
}

.social-link:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.footer-newsletter {
  margin-bottom: 20px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-copy a {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer-copy a:hover {
  color: var(--text-secondary);
}

/* === Responsive === */
@media (max-width: 640px) {
  :root {
    --section-padding: 60px 20px;
  }
}

/* === Scroll Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
