:root {
  --bg: #0a0a0a;
  --paper: #f4f4f2;
  --ink: #111111;
  --accent: #e8e8e5;
  --accent-2: #d2d2cc;
  --muted: #b6b6b1;
  --panel: rgba(18, 18, 18, 0.8);
  --panel-border: rgba(255, 255, 255, 0.18);
  --radius: 20px;
  --shadow: 0 22px 40px rgba(0, 0, 0, 0.45);
  --bg-photo-1: url("assets/covers/the-fall.jpg");
  --bg-photo-2: url("assets/covers/cover-nocturne.svg");
  --bg-photo-3: url("assets/covers/cover-drift.svg");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  isolation: isolate;
  font-family: "Space Grotesk", sans-serif;
  color: var(--paper);
  background:
    radial-gradient(960px 520px at 76% 15%, rgba(255, 255, 255, 0.07), transparent 62%),
    radial-gradient(700px 420px at 15% 84%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(165deg, #171717 0%, #0e0e0e 48%, #070707 100%);
  line-height: 1.5;
  padding: 1.25rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.6) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: screen;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.12), transparent 38%),
    linear-gradient(to top, rgba(255, 255, 255, 0.06), transparent 30%);
  animation: flicker 2.8s steps(2, end) infinite;
}

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

a {
  color: inherit;
}

.photo-wall {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

.photo-wall .shot {
  position: absolute;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.12) brightness(0.52) blur(0.8px);
  opacity: 0.32;
  --shot-rot-a: -2deg;
  --shot-rot-b: 2deg;
  --shot-scale-a: 1.03;
  --shot-scale-b: 1.08;
  animation: drift 24s ease-in-out infinite alternate;
}

.photo-wall .shot-1 {
  inset: -10% 46% 28% -12%;
  background-image: var(--bg-photo-1);
  --shot-rot-a: -4deg;
  --shot-rot-b: -1deg;
  --shot-scale-a: 1.04;
  --shot-scale-b: 1.09;
  animation-duration: 26s;
}

.photo-wall .shot-2 {
  inset: 18% -10% -12% 34%;
  background-image: var(--bg-photo-2);
  --shot-rot-a: 3deg;
  --shot-rot-b: 5.2deg;
  --shot-scale-a: 1.05;
  --shot-scale-b: 1.1;
  animation-duration: 30s;
  animation-delay: -6s;
}

.photo-wall .shot-3 {
  inset: 54% 14% -18% -8%;
  background-image: var(--bg-photo-3);
  --shot-rot-a: -2.5deg;
  --shot-rot-b: 0.4deg;
  --shot-scale-a: 1.02;
  --shot-scale-b: 1.06;
  animation-duration: 22s;
  animation-delay: -3s;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.5) 0.45px, transparent 0.45px),
    radial-gradient(rgba(0, 0, 0, 0.5) 0.45px, transparent 0.45px);
  background-size: 3px 3px, 4px 4px;
  background-position: 0 0, 1px 1px;
}

.site-header,
main,
.site-footer {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border: 1px solid var(--panel-border);
  border-radius: calc(var(--radius) - 4px);
  background: var(--panel);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 1.25rem;
  z-index: 2;
}

.brand {
  font-family: "League Spartan", sans-serif;
  font-size: clamp(1.4rem, 2vw + 1rem, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.2rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--paper);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 1.2rem auto;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 4rem);
  min-height: 62vh;
  display: grid;
  align-content: center;
  gap: 1rem;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(255, 255, 255, 0.08), transparent 68%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  animation: heroZoom 22s ease-in-out infinite alternate;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.tag {
  margin: 0;
  display: inline-block;
  width: fit-content;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

h1,
h2,
h3 {
  font-family: "League Spartan", sans-serif;
  margin: 0;
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(2.8rem, 7.5vw, 7rem);
  letter-spacing: 0.04em;
}

.hero-copy {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, #f3f3ef, #d6d6d1);
  color: #0d0d0d;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
}

.panel {
  margin-top: 1.1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.music-card {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1rem;
  transform: perspective(800px) rotateX(0deg) rotateY(0deg) translateY(0);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.music-card:hover,
.music-card:focus-within {
  transform: perspective(800px) rotateX(1.3deg) rotateY(-1.8deg) translateY(-4px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35);
}

.music-card p {
  margin-top: 0.3rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
}

.music-card iframe {
  width: 100%;
  min-height: 152px;
  border: 0;
  border-radius: 12px;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.art-card {
  margin: 0;
  padding: 0.6rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.art-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

.art-card figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  margin-top: 1.1rem;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.3rem;
}

.site-footer p {
  margin: 0.5rem 0;
  color: var(--muted);
}

.site-footer p a {
  margin-right: 0.8rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin: 0.7rem 0 1rem;
}

.social-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--paper);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3);
}

.social-link:active {
  transform: translateY(0) scale(0.98);
}

.site-footer small {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes flicker {
  0% { opacity: 0.05; }
  25% { opacity: 0.07; }
  50% { opacity: 0.04; }
  75% { opacity: 0.09; }
  100% { opacity: 0.06; }
}

@keyframes drift {
  0% {
    transform: translate3d(-8px, -6px, 0) rotate(var(--shot-rot-a)) scale(var(--shot-scale-a));
  }
  100% {
    transform: translate3d(10px, 8px, 0) rotate(var(--shot-rot-b)) scale(var(--shot-scale-b));
  }
}

@keyframes heroZoom {
  0% {
    transform: scale(1) translateY(0);
    opacity: 0.28;
  }
  100% {
    transform: scale(1.04) translateY(-1.2%);
    opacity: 0.38;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-wall .shot,
  .hero::before {
    animation: none;
  }

  body::after {
    animation: none;
  }

  .music-card,
  .music-card:hover,
  .music-card:focus-within {
    transform: none;
  }
}

@media (max-width: 860px) {
  .photo-wall .shot-1 {
    inset: -14% 22% 44% -26%;
  }

  .photo-wall .shot-2 {
    inset: 8% -30% 20% 32%;
  }

  .photo-wall .shot-3 {
    inset: 42% -24% -24% -16%;
  }

  body {
    padding: 0.8rem;
  }

  .site-header {
    top: 0.8rem;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--paper);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-weight: 600;
  }

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0.7rem;
    padding-top: 0.35rem;
  }

  .site-nav.open {
    display: flex;
  }

  .music-grid,
  .art-grid {
    grid-template-columns: 1fr;
  }
}
