/* The Good Husbands — collage zine aesthetic */
:root {
  --cream: #faf5ea;
  --paper: #f3ecdc;
  --ink: #1c1a16;
  --pink: #ef8fb8;
  --pink-deep: #d96a99;
  --leaf: #2e4a34;
  --leaf-deep: #1d3123;
  --tape: rgba(239, 200, 214, 0.75);
  --shadow: 0 10px 30px rgba(28, 26, 22, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 76px; /* room for player bar */
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

.display {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0.35em 0 0.5em;
}

.kicker {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pink-deep);
}

.section { padding: 96px 0; }
.section-sub { font-size: 1.08rem; color: #4a463c; max-width: 560px; }
.section-sub a { color: var(--pink-deep); font-weight: 600; }

.handnote {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem; color: var(--leaf);
  transform: rotate(-1.5deg);
  margin: 0.4em 0 1.2em;
}

.btn {
  display: inline-block;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 1.05rem;
  background: var(--ink); color: var(--cream);
  padding: 14px 34px; border-radius: 999px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--pink-deep); transform: translateY(-2px) rotate(-1deg); }

/* ---------- enter overlay ---------- */
#enter-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 18, 14, 0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: opacity 0.5s ease;
}
#enter-overlay[hidden] { display: none; }
#enter-overlay.dismiss { opacity: 0; pointer-events: none; }
.enter-card { text-align: center; animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.enter-logo { width: min(300px, 60vw); filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4)); }
.enter-play {
  width: 92px; height: 92px; margin: 26px auto 12px;
  border-radius: 50%; background: var(--pink);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--ink);
  box-shadow: 0 0 0 10px rgba(239, 143, 184, 0.25), var(--shadow);
}
.enter-play span { transform: translateX(3px); }
.enter-text {
  font-family: 'Caveat', cursive; font-size: 1.9rem; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* ---------- nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(rgba(20,18,14,0.55), transparent);
}
.nav-logo img { height: 44px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.04em; text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.nav-links a:hover, .nav-links a.active { color: var(--pink); }
.spotify-follow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1db954; color: #fff; font-weight: 600; font-size: 0.9rem;
  padding: 9px 18px; border-radius: 999px; text-decoration: none;
  transition: transform 0.15s ease;
}
.spotify-follow:hover { transform: scale(1.05); }
.spotify-follow svg { width: 18px; height: 18px; fill: #fff; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  background: url('/assets/img/hero-flowers.jpg') center / cover no-repeat var(--leaf-deep);
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(transparent 55%, rgba(20,18,14,0.45));
  pointer-events: none;
}
.scroll-cue {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #fff; text-decoration: none; margin-bottom: 28px;
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  animation: floaty 2.6s ease-in-out infinite;
}
.scroll-cue svg { width: 26px; height: 26px; fill: #fff; }

/* ---------- music ---------- */
.music-section { background: var(--ink); color: var(--cream); }
.music-section .section-sub { color: #b9b2a2; }
.music-section .section-sub a { color: var(--pink); }
.tracklist { list-style: none; margin-top: 36px; border-top: 1px solid #3a362c; }
.tracklist li {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 8px; border-bottom: 1px solid #3a362c;
  cursor: pointer; transition: background 0.15s ease;
}
.tracklist li:hover { background: rgba(239, 143, 184, 0.07); }
.tracklist li.playing { background: rgba(239, 143, 184, 0.12); }
.track-play {
  width: 52px; height: 52px; flex: 0 0 52px;
  border-radius: 50%; border: 2px solid var(--pink);
  background: transparent; color: var(--pink);
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.track-play span { transform: translateX(2px); }
.tracklist li.playing .track-play { background: var(--pink); color: var(--ink); }
.track-meta { display: flex; flex-direction: column; flex: 1; }
.track-title { font-family: 'Anton', sans-serif; font-size: 1.35rem; letter-spacing: 0.03em; text-transform: uppercase; }
.track-prod { font-size: 0.85rem; color: #8f887a; }
.track-num { font-family: 'Caveat', cursive; font-size: 1.6rem; color: var(--pink); }

/* ---------- about ---------- */
.about-section { background: var(--cream); }
.bio p { margin-bottom: 1.2em; font-size: 1.06rem; }
.bio-mission {
  font-family: 'Caveat', cursive; font-size: 1.9rem; color: var(--leaf);
  transform: rotate(-1deg); margin: 1.6em 0 0.4em;
}
.stat-row { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: 'Anton', sans-serif; font-size: 2.4rem; color: var(--pink-deep); }
.stat-label { font-size: 0.85rem; color: #6b6558; }

/* ---------- collage ---------- */
.photos-section { background: var(--paper); overflow: hidden; }
.collage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 34px 26px;
  margin-top: 20px;
}
.polaroid {
  background: #fff; padding: 12px 12px 44px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.25s ease;
}
.polaroid:hover { transform: rotate(0deg) scale(1.04) !important; z-index: 5; }
.polaroid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.polaroid figcaption {
  font-family: 'Caveat', cursive; font-size: 1.35rem; color: #555;
  text-align: center; margin-top: 8px;
}
.polaroid::before {
  content: ''; position: absolute; top: -14px; left: 50%;
  width: 92px; height: 28px; transform: translateX(-50%) rotate(-3deg);
  background: var(--tape);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.r1 { transform: rotate(-2.2deg); } .r2 { transform: rotate(1.6deg); }
.r3 { transform: rotate(-1.2deg); } .r4 { transform: rotate(2.4deg); }
.r5 { transform: rotate(-1.8deg); } .r6 { transform: rotate(1.1deg); }
.r7 { transform: rotate(-2.6deg); } .r8 { transform: rotate(2deg); }
.r9 { transform: rotate(-1deg); }

/* ---------- shows / merch teaser / join ---------- */
.shows-section { background: var(--leaf-deep); color: var(--cream); text-align: center; }
.shows-section .section-sub { color: #b9c4b6; margin: 0 auto 28px; }
.shows-section .kicker { color: var(--pink); }

.merch-teaser { background: var(--cream); text-align: center; }
.merch-teaser .section-sub { margin: 0 auto 28px; }

.join-section { background: var(--ink); color: var(--cream); text-align: center; }
.join-section .section-sub { color: #b9b2a2; margin: 0 auto 28px; }
.join-section .kicker { color: var(--pink); }
.email-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.email-form input {
  flex: 1; padding: 14px 20px; border-radius: 999px;
  border: 2px solid #3a362c; background: #24211b; color: var(--cream);
  font-size: 1rem; outline: none;
}
.email-form input:focus { border-color: var(--pink); }
.form-note { margin-top: 14px; min-height: 1.6em; font-family: 'Caveat', cursive; font-size: 1.4rem; color: var(--pink); }
@media (max-width: 520px) { .email-form { flex-direction: column; } }

/* ---------- merch page ---------- */
.merch-section { padding-top: 140px; }
.merch-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px; margin-top: 40px;
}
.merch-card {
  background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: var(--shadow); transform: rotate(-0.8deg);
  transition: transform 0.2s ease;
}
.merch-card:nth-child(even) { transform: rotate(0.9deg); }
.merch-card:hover { transform: rotate(0) translateY(-4px); }
.merch-img { aspect-ratio: 1; overflow: hidden; }
.merch-img img { width: 100%; height: 100%; object-fit: cover; }
.merch-card h3 { font-family: 'Anton', sans-serif; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.03em; padding: 16px 18px 0; }
.merch-note { padding: 2px 18px 12px; color: #6b6558; font-size: 0.92rem; }
.merch-soon {
  display: inline-block; margin: 0 18px 18px;
  font-family: 'Caveat', cursive; font-size: 1.25rem; color: var(--pink-deep);
  border: 2px dashed var(--pink); border-radius: 999px; padding: 4px 16px;
  transform: rotate(-2deg);
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b9b2a2; text-align: center; padding: 64px 0 40px; }
.footer-logo { width: 170px; margin-bottom: 14px; }
.footer-tag { font-family: 'Caveat', cursive; font-size: 1.6rem; color: var(--pink); }
.social-row { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 26px 0; }
.social-row a { color: #b9b2a2; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.social-row a:hover { color: var(--pink); }
.footer-small { font-size: 0.8rem; color: #6f695c; }

/* ---------- player bar ---------- */
.player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: flex; align-items: center; gap: 14px;
  background: rgba(28, 26, 22, 0.96); color: var(--cream);
  padding: 10px 18px 14px;
  border-top: 2px solid var(--pink-deep);
  backdrop-filter: blur(8px);
}
.player-bar[hidden] { display: none; }
#pb-art { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; }
.pb-meta { display: flex; flex-direction: column; min-width: 0; }
#pb-title { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pb-prod { font-size: 0.75rem; color: #8f887a; }
.pb-controls { display: flex; gap: 6px; margin-left: auto; }
.pb-controls button {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid #4a463c; background: transparent; color: var(--cream);
  font-size: 1rem; cursor: pointer;
}
#pb-toggle { background: var(--pink); border-color: var(--pink); color: var(--ink); font-size: 1.05rem; }
.pb-progress {
  position: absolute; top: -2px; left: 0; right: 0; height: 4px;
  background: #3a362c; cursor: pointer;
}
#pb-fill { height: 100%; width: 0; background: var(--pink); }
