/* =========================================================
   BILL SPOONER  —  SITE STYLES
   Inspired by The Tubes' theatrical 70s/80s aesthetic:
   heavy black + white, neon pink/cyan accents, bold type.
   ========================================================= */

:root {
  --ink: #0a0a0a;
  --paper: #f4f1ea;
  --white: #ffffff;
  --neon-pink: #ff2d7a;
  --neon-cyan: #00e5ff;
  --neon-yellow: #ffe600;
  --grain: rgba(255, 255, 255, 0.04);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  --font-display: "Bebas Neue", "Impact", "Oswald", sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(var(--grain) 1px, transparent 1px),
    radial-gradient(var(--grain) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  opacity: 0.6;
  mix-blend-mode: overlay;
  z-index: 1000;
}

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

a { color: var(--neon-cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--neon-pink); }

/* ------------------ TYPOGRAPHY ------------------ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.95;
  font-weight: 900;
}

h1 { font-size: clamp(3rem, 9vw, 8.5rem); }
h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }

p { margin-bottom: 1.2em; max-width: 72ch; }

.kicker {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--neon-pink);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
}

.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.3;
  border-left: 4px solid var(--neon-pink);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  max-width: 36ch;
}

/* ------------------ NAV ------------------ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0));
  backdrop-filter: blur(6px);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  color: var(--white);
  text-transform: uppercase;
}
.nav__brand span { color: var(--neon-pink); }

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav__links a {
  color: var(--white);
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--neon-pink);
  transition: width 0.3s;
}
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--neon-pink); }

.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav { padding: 0.75rem 1rem; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--ink);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    transform: translateY(-120%);
    transition: transform 0.3s;
    border-bottom: 2px solid var(--neon-pink);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__toggle {
    display: block;
    background: none;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    font-family: var(--font-display);
    letter-spacing: 0.15em;
    cursor: pointer;
  }
}

/* ------------------ HERO ------------------ */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
  background: var(--ink);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.15);
  opacity: 0.7;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.4) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.95) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero__title {
  color: var(--white);
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.hero__title em {
  font-style: normal;
  color: var(--neon-pink);
  display: block;
}

.hero__sub {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  letter-spacing: 0.3em;
  color: var(--neon-cyan);
  margin-top: 1rem;
}

/* Faux poster hero when no photo */
.hero--poster .hero__bg {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,45,122,0.35), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,229,255,0.25), transparent 55%),
    repeating-linear-gradient(
      45deg,
      #111 0 40px,
      #1a1a1a 40px 80px
    );
  filter: none;
  opacity: 1;
}

/* ------------------ SECTIONS ------------------ */

.section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section--dark { background: var(--ink); }
.section--light { background: var(--paper); color: var(--ink); }
.section--light a { color: var(--neon-pink); }
.section--light .kicker { color: var(--ink); border-bottom: 2px solid var(--neon-pink); padding-bottom: 3px; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 1.5rem;
}
.section--light .section__head {
  border-bottom-color: rgba(0,0,0,0.2);
}

/* ------------------ IMAGE GRID ------------------ */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
}

.tile {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 4 / 5;
  cursor: pointer;
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}
.tile--bw img { filter: grayscale(1) contrast(1.1); }
.tile:hover img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.05);
}

.tile__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  color: var(--white);
  font-size: 0.9rem;
}

/* Placeholder tiles (no image yet) */
.tile--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}
.tile--placeholder.v1 { background: linear-gradient(135deg, #111 0%, #2a0a1d 100%); }
.tile--placeholder.v2 { background: linear-gradient(135deg, #001820 0%, #000 100%); }
.tile--placeholder.v3 { background: repeating-linear-gradient(-45deg, #0a0a0a 0 20px, #161616 20px 40px); }
.tile--placeholder.v4 { background: radial-gradient(circle at 30% 30%, #ff2d7a33, #0a0a0a 70%); }
.tile--placeholder.v5 { background: radial-gradient(circle at 70% 70%, #00e5ff33, #0a0a0a 70%); }
.tile--placeholder.v6 { background: linear-gradient(180deg, #1a1a1a 0%, #000 100%); }

/* Span helpers */
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.tile--tall { aspect-ratio: 3 / 5; }
.tile--wide { aspect-ratio: 16 / 9; }
.tile--square { aspect-ratio: 1 / 1; }

/* Show the whole image (no crop) with clean letterboxing */
.tile--contain { aspect-ratio: auto; background: #000; }
.tile--contain img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.tile--contain:hover img { transform: none; filter: none; }

/* Caption stacked BELOW the thumbnail (used on /music album grid) */
.tile--caption-below {
  background: transparent;
  aspect-ratio: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.tile--caption-below .tile__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #1a1a1a;
}
.tile--caption-below .tile__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.6s ease;
}
.tile--caption-below:hover .tile__thumb img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.05);
}
.tile--caption-below .tile__caption {
  position: static;
  background: none;
  padding: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--ink);
}

/* Split image rendered as a real <img> so nothing gets cropped */
.split__photo {
  display: block;
  width: 100%;
  height: auto;
  background: #0a0a0a;
  box-shadow: var(--shadow);
  filter: grayscale(1) contrast(1.15);
}

@media (max-width: 900px) {
  .span-4, .span-6, .span-8 { grid-column: span 6; }
  .span-12 { grid-column: span 12; }
}
@media (max-width: 560px) {
  .span-4, .span-6, .span-8, .span-12 { grid-column: span 12; }
}

/* ------------------ MARQUEE ------------------ */

.marquee {
  background: var(--neon-pink);
  color: var(--ink);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  font-size: 1.4rem;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.marquee__track {
  display: inline-block;
  animation: scroll 30s linear infinite;
}
.marquee span { margin: 0 2rem; }
.marquee span::after { content: "★"; margin-left: 2rem; color: var(--ink); }

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------------ BUTTONS ------------------ */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover {
  background: var(--neon-pink);
  border-color: var(--neon-pink);
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn--solid {
  background: var(--neon-pink);
  border-color: var(--neon-pink);
  color: var(--ink);
}
.btn--solid:hover {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

/* ------------------ CARDS / LINKS ------------------ */

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  display: block;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2rem;
  transition: all 0.25s;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-cyan) 100%);
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 0;
}
.card > * { position: relative; z-index: 1; }
.card:hover { transform: translate(-4px, -4px); box-shadow: 10px 10px 0 var(--neon-pink); }
.card:hover::before { opacity: 0.08; }

.card h3 { margin-bottom: 0.5rem; color: var(--white); }
.card p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin: 0; }
.card__arrow { font-family: var(--font-display); letter-spacing: 0.2em; color: var(--neon-pink); margin-top: 1rem; display: inline-block; }

/* ------------------ SPOTIFY ------------------ */

.spotify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.spotify-card {
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s;
}
.spotify-card:hover { border-color: #1DB954; }
.spotify-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--white);
}
.spotify-card__meta { color: rgba(255,255,255,0.55); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.spotify-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1DB954;
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  font-size: 0.9rem;
}
.spotify-card__link::before {
  content: "▶";
  font-size: 0.8rem;
}

/* ------------------ FOOTER ------------------ */

.footer {
  background: #000;
  color: rgba(255,255,255,0.6);
  padding: 4rem 2rem 2rem;
  text-align: center;
  border-top: 3px solid var(--neon-pink);
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.3em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer__brand span { color: var(--neon-pink); }
.footer__links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.footer__links a { color: rgba(255,255,255,0.7); font-family: var(--font-display); letter-spacing: 0.15em; font-size: 0.9rem; }
.footer__small { font-size: 0.8rem; letter-spacing: 0.1em; }

/* ------------------ FULL-BLEED IMAGE BANNER ------------------ */

.banner {
  position: relative;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.banner__bg {
  position: absolute;
  inset: 0;
  filter: grayscale(1) contrast(1.2);
  background-size: cover;
  background-position: center;
}
.banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.banner__text {
  position: relative;
  z-index: 2;
  color: var(--white);
}

/* Two-column feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.split__image {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #111 0%, #2a0a1d 100%);
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.15);
  box-shadow: var(--shadow);
}

/* Subpage header strip */
.strip {
  padding: 8rem 2rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  max-width: 1400px;
  margin: 0 auto;
}
.strip .kicker { display: block; }

/* Utility */
.center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

/* ------------------ LIGHTBOX ------------------ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 130px);
  max-height: calc(100vh - 100px);
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 100px);
  object-fit: contain;
  user-select: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox__close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 10;
  font-family: var(--font-body);
  line-height: 1;
}
.lightbox__close:hover {
  background: var(--neon-pink);
  border-color: var(--neon-pink);
  color: var(--ink);
}
.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 10;
  font-family: var(--font-body);
  line-height: 1;
}
.lightbox__nav:hover {
  background: var(--neon-pink);
  border-color: var(--neon-pink);
  color: var(--ink);
}
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
.lightbox__caption {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 1.5rem 5rem 1rem;
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  pointer-events: none;
}
.lightbox__counter {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  pointer-events: none;
}
@media (max-width: 560px) {
  .lightbox__img-wrap { max-width: 100vw; }
  .lightbox__nav { width: 2.25rem; height: 4rem; font-size: 1.5rem; }
  .lightbox__prev { left: 0.25rem; }
  .lightbox__next { right: 0.25rem; }
}
