/* ============================================================
   RumourDead — CSS
   Dark gritty post-grunge aesthetic with modern landing page
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --black: #000000;
  --paper: #d8c7aa;
  --dirty-white: #eee2ca;
  --blood-red: #6f1712;
  --rust: #9a3d21;
  --rain-gray: #3b3e3f;
  --faded-gold: #b58c59;

  --font-display: 'Special Elite', 'Courier New', Courier, monospace;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --max-width: 1200px;
  --gutter: clamp(1rem, 5vw, 3rem);
  --radius: 4px;
  --transition: 0.25s ease;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--dirty-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---- Screen Reader Only ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Section ---- */
.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

/* ---- Section Titles ---- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  color: var(--dirty-white);
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--blood-red);
  margin: 0.75rem auto 0;
}

/* ---- Grain / Noise Overlay ---- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.06;
  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='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(111, 23, 18, 0.25);
  transition: background var(--transition), border var(--transition);
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  border-bottom-color: rgba(111, 23, 18, 0.5);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-img {
  height: 64px;
  width: auto;
  display: block;
  transition: opacity var(--transition), filter var(--transition);
}

.logo:hover .logo-img,
.logo:focus-visible .logo-img {
  opacity: 0.85;
  filter: brightness(1.2);
}

/* ---- Navigation ---- */
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blood-red);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--dirty-white);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--faded-gold);
}

/* ---- Mobile Nav Toggle ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dirty-white);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 60px;
}

/* Dark vignette background */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(9, 8, 7, 0) 0%, rgba(9, 8, 7, 0.7) 60%, rgba(9, 8, 7, 0.95) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(111, 23, 18, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(58, 61, 63, 0.2) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Crect fill='%23090807' width='400' height='400'/%3E%3Cg fill='%233b3e3f' opacity='0.08'%3E%3Ccircle cx='50' cy='50' r='2'/%3E%3Ccircle cx='150' cy='30' r='1.5'/%3E%3Ccircle cx='250' cy='70' r='2'/%3E%3Ccircle cx='350' cy='40' r='1'/%3E%3Ccircle cx='80' cy='150' r='1.5'/%3E%3Ccircle cx='200' cy='180' r='2'/%3E%3Ccircle cx='320' cy='130' r='1'/%3E%3Ccircle cx='100' cy='280' r='2'/%3E%3Ccircle cx='300' cy='290' r='1.5'/%3E%3Ccircle cx='180' cy='350' r='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 400px;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1;
  color: var(--dirty-white);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  text-shadow: 3px 3px 0 rgba(111, 23, 18, 0.3);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--blood-red);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--paper);
  opacity: 0.8;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border: 3px solid rgba(111, 23, 18, 0.4);
  box-shadow:
    0 0 60px rgba(111, 23, 18, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.5);
  filter: saturate(0.8) contrast(1.1);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-arrow {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(5px, 5px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.btn-primary {
  background: var(--blood-red);
  color: var(--dirty-white);
  border-color: var(--blood-red);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--rust);
  border-color: var(--rust);
  box-shadow: 0 0 24px rgba(111, 23, 18, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--dirty-white);
  border-color: var(--paper);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--paper);
  color: var(--black);
  transform: translateY(-2px);
}

.btn-stream {
  background: rgba(59, 62, 63, 0.4);
  color: var(--dirty-white);
  border-color: rgba(216, 199, 170, 0.25);
  font-size: 0.75rem;
  padding: 0.55rem 1.2rem;
}

.btn-stream:hover,
.btn-stream:focus-visible {
  background: rgba(59, 62, 63, 0.7);
  border-color: var(--faded-gold);
  color: var(--faded-gold);
  transform: translateY(-1px);
}

/* ============================================================
   MUSIC SECTION
   ============================================================ */
.music {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(111, 23, 18, 0.08) 0%, transparent 60%);
}

.music-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  background: rgba(59, 62, 63, 0.2);
  border: 1px solid rgba(216, 199, 170, 0.1);
  padding: clamp(1.5rem, 4vw, 3rem);
  /* Torn paper edges via box-shadows */
  box-shadow:
    inset 0 0 40px rgba(0,0,0,0.3),
    0 1px 0 rgba(111, 23, 18, 0.2),
    0 2px 0 rgba(216, 199, 170, 0.05),
    0 3px 0 rgba(111, 23, 18, 0.1);
}

.music-cover {
  position: relative;
}

.music-cover img {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid rgba(154, 61, 33, 0.35);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.music-track-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: var(--dirty-white);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.music-artist {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--faded-gold);
  margin-bottom: 1.5rem;
}

.music-player {
  margin-bottom: 1.5rem;
}

/* Custom audio player styling */
.music-player audio {
  width: 100%;
  max-width: 500px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(9, 8, 7, 0.6);
}

.music-player audio::-webkit-media-controls-panel {
  background: var(--rain-gray);
}

.music-player audio::-webkit-media-controls-current-time-display,
.music-player audio::-webkit-media-controls-time-remaining-display {
  color: var(--dirty-white);
}

.music-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  position: relative;
  background:
    radial-gradient(ellipse at 70% 80%, rgba(111, 23, 18, 0.06) 0%, transparent 50%);
}

.about-card {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(59, 62, 63, 0.25), rgba(9, 8, 7, 0.5));
  border: 1px solid rgba(216, 199, 170, 0.1);
  padding: clamp(2.5rem, 6vw, 4rem);
  /* Torn paper */
  box-shadow:
    0 1px 0 rgba(111, 23, 18, 0.15),
    0 2px 0 rgba(216, 199, 170, 0.04),
    0 3px 0 rgba(111, 23, 18, 0.08);
}

.about-icon {
  font-size: 2.5rem;
  color: var(--blood-red);
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.about-quote p {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.8;
  color: var(--paper);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

.about-quote p::before {
  content: '\201C';
  color: var(--blood-red);
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 0.1em;
}

.about-quote p::after {
  content: '\201D';
  color: var(--blood-red);
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 0;
  vertical-align: -0.45em;
  margin-left: 0.05em;
}

.about-decor {
  width: 80px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--blood-red),
    var(--faded-gold),
    var(--blood-red),
    transparent
  );
  margin: 2rem auto 0;
}

/* ============================================================
   LYRICS SECTION
   ============================================================ */
.lyrics-card {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(59, 62, 63, 0.2), rgba(9, 8, 7, 0.4));
  border: 1px solid rgba(216, 199, 170, 0.08);
  padding: clamp(2.5rem, 6vw, 4rem);
  box-shadow:
    0 1px 0 rgba(111, 23, 18, 0.12),
    0 2px 0 rgba(216, 199, 170, 0.03),
    0 3px 0 rgba(111, 23, 18, 0.06);
}

.lyrics-lines {
  margin-bottom: 2rem;
}

.lyrics-lines p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.6;
  color: var(--paper);
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.lyrics-btn {
  margin: 0 auto;
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(111, 23, 18, 0.05) 0%, transparent 50%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.gallery-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: rgba(59, 62, 63, 0.3);
  border: 1px solid rgba(216, 199, 170, 0.1);
  box-shadow:
    0 1px 0 rgba(111, 23, 18, 0.1),
    0 2px 0 rgba(216, 199, 170, 0.03);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.gallery-card:hover,
.gallery-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(154, 61, 33, 0.4);
  box-shadow:
    0 8px 32px rgba(111, 23, 18, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.5);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.1);
  transition: filter var(--transition), transform var(--transition);
}

.gallery-card:hover img {
  filter: saturate(1) contrast(1.05);
  transform: scale(1.03);
}

.gallery-caption {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 0.75rem 1rem;
  text-align: center;
}

/* ============================================================
   JOIN / MAILING LIST SECTION
   ============================================================ */
.join {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(111, 23, 18, 0.08) 0%, transparent 60%);
}

.join-form {
  max-width: 520px;
  margin: 0 auto;
}

.join-input-group {
  display: flex;
  gap: 0.75rem;
}

.join-input-group input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dirty-white);
  background: rgba(59, 62, 63, 0.4);
  border: 1px solid rgba(216, 199, 170, 0.2);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.join-input-group input::placeholder {
  color: rgba(216, 199, 170, 0.4);
}

.join-input-group input:focus {
  border-color: var(--blood-red);
  box-shadow: 0 0 0 3px rgba(111, 23, 18, 0.2);
}

.join-success {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--faded-gold);
  margin-top: 1rem;
  min-height: 1.5em;
  opacity: 0;
  transition: opacity var(--transition);
}

.join-success.visible {
  opacity: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid rgba(111, 23, 18, 0.2);
  padding: 2rem 0;
  background: rgba(9, 8, 7, 0.6);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--paper);
  opacity: 0.6;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.6;
  transition: color var(--transition), opacity var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--faded-gold);
  opacity: 1;
}

/* ============================================================
   FOCUS VISIBLE (accessibility)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--faded-gold);
  outline-offset: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet & below */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(9, 8, 7, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 1000;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-image img {
    max-width: 260px;
  }

  .hero-buttons {
    justify-content: center;
  }

  /* Music */
  .music-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .music-cover img {
    margin: 0 auto;
  }

  .music-links {
    justify-content: center;
  }

  .music-player audio {
    max-width: 100%;
  }

  /* Join */
  .join-input-group {
    flex-direction: column;
  }

  /* Footer */
  .site-footer .container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
