/* ============================================================
   KITE — Live at Way Out West
   VHS / VCR-OSD aesthetic. Font: VCR OSD Mono (freeware, dafont)
   ============================================================ */

@font-face {
  font-family: 'VCR OSD Mono';
  src: url('../fonts/VCR_OSD_MONO.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070707;
  --bg-deep: #0e0d0d;
  --ink: #f2ece6;
  --dim: var(--ink); /* ponytail: all type same white per request; restore #a2938d for hierarchy */
  --accent: #ffff00;
  --aberr-r: rgba(255, 59, 59, .45);
  --aberr-b: rgba(64, 156, 255, .45);
  --line: rgba(242, 236, 230, .16);
  --font: 'VCR OSD Mono', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: .04em;
  -webkit-font-smoothing: none;
}

a { color: var(--ink); }
a:hover { color: var(--accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05) brightness(.6);
  z-index: 0;
}

/* animated static, drawn by JS */
.vhs-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: .16;
  mix-blend-mode: screen;
  pointer-events: none;
}

.vhs-scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, .28) 3px,
    rgba(0, 0, 0, .28) 4px
  );
}

/* the white horizontal tracking glitch that drifts down the screen */
.tracking-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 42px;
  z-index: 2;
  pointer-events: none;
  opacity: .07;
  background: linear-gradient(to bottom, transparent, #fff 45%, #fff 55%, transparent);
  animation: tracking 9s linear infinite;
}

@keyframes tracking {
  0%   { top: -10%; opacity: .02; }
  8%   { opacity: .09; }
  50%  { opacity: .05; }
  100% { top: 110%; opacity: .02; }
}

/* VCR on-screen display corners */
.osd {
  position: absolute;
  z-index: 4;
  font-size: clamp(13px, 1.6vw, 18px);
  color: var(--ink);
  letter-spacing: .12em;
}
.osd-tl { top: 16px; left: 16px; }
.osd-tr { top: 16px; right: 16px; }
.osd-bl { bottom: 16px; left: 16px; }
.osd-br { bottom: 16px; right: 16px; }

@media (min-width: 700px) {
  .osd-tl { top: 24px; left: 28px; }
  .osd-tr { top: 24px; right: 28px; }
  .osd-bl { bottom: 24px; left: 28px; }
  .osd-br { bottom: 24px; right: 28px; }
}

.blink { animation: blink 1.2s steps(1) infinite; color: var(--ink); }
@keyframes blink { 50% { opacity: 0; } }

.hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 80px 20px;
  max-width: 1100px;
  width: 100%;
}

@media (min-width: 700px) {
  .hero-inner { padding: 96px 24px; }
}

.logo {
  display: block;
  height: auto;
  margin: 0 auto;
}
.hero-logo { width: clamp(180px, 28vw, 260px); margin-bottom: 32px; }
.footer-logo { width: 120px; margin-bottom: 28px; opacity: .9; }
.loader-logo { width: 150px; }

.hero-title {
  font-weight: normal;
  font-size: clamp(34px, 6.4vw, 84px);
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: none;
}

/* chromatic aberration glitch, VHS-style */
.glitch { position: relative; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.glitch::before {
  color: var(--aberr-r);
  transform: translateX(-3px);
  animation: jitter 3.1s steps(2) infinite;
}
.glitch::after {
  color: var(--aberr-b);
  transform: translateX(3px);
  animation: jitter 2.7s steps(2) infinite reverse;
}
@keyframes jitter {
  0%, 92%, 100% { clip-path: inset(0 0 100% 0); }
  93% { clip-path: inset(10% 0 55% 0); }
  95% { clip-path: inset(60% 0 8% 0); }
  97% { clip-path: inset(30% 0 40% 0); }
}

.hero-sub {
  margin-top: 18px;
  color: var(--dim);
  font-size: clamp(14px, 1.8vw, 19px);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 560px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: none;
  }
}

.btn {
  display: inline-block;
  padding: 15px 28px;
  text-align: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-wrap: balance;
  background: transparent;
  cursor: pointer;
  transition: background .15s, color .15s;
}
@media (max-width: 559px) {
  .btn { padding: 14px 18px; font-size: 13px; letter-spacing: .08em; }
}
.btn:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.btn-solid:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-icon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 8px;
}

.social-btns {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.sbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--ink);
  transition: color .15s, transform .15s;
}
.sbtn svg { width: 24px; height: 24px; display: block; }
.sbtn:hover, .sbtn:focus-visible {
  color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}

.scroll-hint {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: var(--dim);
  text-decoration: none;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

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

.section {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 20px 40px;
  border-bottom: 1px dashed var(--line);
}

@media (min-width: 700px) {
  .section { padding: 96px 24px 48px; }
}
.section:last-of-type { border-bottom: none; }

.section-title {
  font-weight: normal;
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tape-label {
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--accent);
  text-transform: uppercase;
}
.tape-label::before { content: '\25A0 '; animation: blink 1.6s steps(1) infinite; }

.section-lead { color: var(--dim); margin-bottom: 28px; }

.fineprint {
  margin-top: 28px;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: .08em;
}

/* ---------------- TRACKLIST ---------------- */

.tracklist {
  list-style: none;
  counter-reset: none;
}
.tracklist li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 13px 6px;
  border-bottom: 1px solid var(--line);
  transition: background .12s, padding-left .12s;
}
.tracklist li:hover {
  background: rgba(255, 59, 59, .07);
  padding-left: 14px;
}
.tno { color: var(--accent); font-size: 14px; min-width: 2.2em; }
.tfeat {
  display: block;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: .08em;
}
@media (min-width: 700px) {
  .tfeat { display: inline; margin-left: 12px; }
}
.tname { font-size: clamp(16px, 2.2vw, 20px); }
.tracklist li::after {
  content: '';
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
}

/* ---------------- TOUR ---------------- */

.tour-empty { color: var(--dim); padding: 4px 0 12px; }

/* restyle the Bandsintown widget to match the page */
#tour-widget .bit-widget,
#tour-widget .bit-widget * {
  font-family: var(--font) !important;
  letter-spacing: .04em;
}
#tour-widget .bit-widget {
  background: transparent !important;
  color: var(--ink) !important;
}
#tour-widget .bit-widget a { color: var(--accent) !important; }
#tour-widget .bit-widget .bit-upcoming-events-show-all-button,
#tour-widget .bit-widget .bit-button {
  background: transparent !important;
  border: 1px solid var(--ink) !important;
  color: var(--ink) !important;
  border-radius: 0 !important;
  text-transform: uppercase;
  letter-spacing: .14em !important;
}
#tour-widget .bit-widget .bit-button:hover {
  background: var(--ink) !important;
  color: var(--bg) !important;
}
#tour-widget .bit-widget .bit-event {
  border-bottom: 1px solid var(--line) !important;
}

/* ---------------- MERCH ---------------- */

.section-wide { max-width: 1000px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}
@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
}
.product {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.product-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--bg-deep);
  filter: saturate(.9) contrast(1.02);
  margin-bottom: 12px;
}
.product:hover .product-img { filter: saturate(1) contrast(1.05) brightness(1.08); }
.product-title {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.product:hover .product-title { color: var(--accent); }
.product-price { display: block; color: var(--dim); font-size: 13px; }
.product-loading, .product-error { color: var(--dim); grid-column: 1 / -1; }
.merch-more { margin-top: 36px; text-align: center; }

/* ---------------- NEWSLETTER ---------------- */

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"],
.newsletter-form input[type="tel"] {
  flex: 1;
  min-width: 180px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: .06em;
  padding: 13px 16px;
  outline: none;
}
.newsletter-form input[type="email"]:focus,
.newsletter-form input[type="tel"]:focus {
  border-color: var(--accent);
}
.newsletter-form input::placeholder { color: var(--dim); }

.form-msg { margin-top: 16px; color: var(--accent); font-size: 14px; min-height: 1.4em; }

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

.footer {
  text-align: center;
  padding: 80px 24px 56px;
}


.social-btns-footer { margin-top: 0; margin-bottom: 32px; }

.footer-note { color: var(--dim); font-size: 12px; letter-spacing: .12em; }

.y1 {
  display: block;
  margin-top: 32px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .3em;
  opacity: .75;
}
.y1:hover { opacity: 1; color: var(--ink); }
.y1 img { display: block; height: 24px; width: auto; margin: 0 auto; }

/* ---------------- LOADER ---------------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: var(--bg);
  transition: opacity .55s ease, visibility .55s;
}
.loader::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, .28) 3px,
    rgba(0, 0, 0, .28) 4px
  );
}
.loader .logo {
  animation: logo-pulse 1.2s ease-in-out infinite;
}
@keyframes logo-pulse {
  0%, 100% { opacity: .5; transform: scale(.97); }
  50% { opacity: 1; transform: scale(1.03); }
}
.loader-text {
  color: var(--dim);
  font-size: 13px;
  letter-spacing: .3em;
}
.loader-dots::after {
  content: '';
  animation: loader-dots 1.2s steps(4) infinite;
}
@keyframes loader-dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}
body.loaded .loader {
  opacity: 0;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .loader .logo { animation: none; }
  .blink, .tape-label::before, .glitch::before, .glitch::after,
  .tracking-bar, .social-btns {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.sbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--ink);
  transition: color .15s, transform .15s;
}
.sbtn svg { width: 24px; height: 24px; display: block; }
.sbtn:hover, .sbtn:focus-visible {
  color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}

.scroll-hint { animation: none; }
  .glitch::before, .glitch::after { display: none; }
  html { scroll-behavior: auto; }
}
