/* ===== SOTWMUSIC — site stylesheet ===== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700;800&display=swap');

:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --border: #242424;
  --white: #ffffff;
  --muted: #6e6e6e;
  --accent: #c9a24a;
  --max: 900px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color: var(--white);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  color: var(--white);
}

p { margin: 0 0 1em; color: var(--muted); }

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Bracket links / buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 22px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

.btn-primary { border-color: var(--white); }

/* ---------- Header + subnav ---------- */

.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.nav-brand-row {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--white);
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 18px;
  flex: 0 0 auto;
}

/* Base letters: solid white, plenty of white space visible. A hue-rotate
   filter drives the intermittent color changes below — it has no visible
   effect on white/black (they carry no hue), so the base text is untouched
   and only the colored line/wave layers actually shift color. */
.brand-full-name {
  position: relative;
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transform: scale(1.9);
  transform-origin: left center;
  color: var(--white);
  animation: brandHue 14s steps(1) infinite;
}

.brand-full-name::before,
.brand-full-name::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: transparent;
  background-repeat: repeat-x;
  background-position: 0 0;
  background-size: 120px 100%;
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
}

/* Idle state: a thin flat line, staying under the lettering. */
.brand-full-name::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='40'%20viewBox='0%200%20120%2040'%3E%3Cline%20x1='0'%20y1='20'%20x2='120'%20y2='20'%20stroke='%23ff2d55'%20stroke-width='1.5'/%3E%3C/svg%3E");
  animation: flatPulse 14s ease-in-out infinite;
}

/* Burst state: the same line flickers into a waveform — amplitude (via
   scaleY) and duration vary per burst so no two flickers look identical. */
.brand-full-name::after {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='40'%20viewBox='0%200%20120%2040'%3E%3Cpolyline%20points='0,20%206,20%2010,8%2014,32%2018,14%2022,28%2026,18%2030,4%2034,36%2038,16%2042,24%2046,10%2050,30%2054,20%2058,14%2062,26%2066,6%2070,34%2074,18%2078,22%2082,10%2086,30%2090,20%2094,8%2098,32%20102,18%20106,24%20110,14%20114,26%20118,20%20120,20'%20fill='none'%20stroke='%23ff2d55'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 0;
  animation: waveScroll 4s linear infinite, waveBurst 14s ease-in-out infinite;
}

@keyframes waveScroll {
  from { background-position: 0 0; }
  to { background-position: -120px 0; }
}

/* Flat line dims out whenever the wave (::after) flickers in, then returns. */
@keyframes flatPulse {
  0%, 12%, 20%, 45%, 55%, 75%, 86%, 100% { opacity: 1; }
  14%, 16%, 49%, 51%, 79%, 81% { opacity: 0.15; }
}

/* Three bursts per loop, each a different depth/intensity, held briefly
   at peak so the flicker actually reads instead of just spiking. */
@keyframes waveBurst {
  0%, 12%, 20%, 45%, 55%, 75%, 86%, 100% { opacity: 0; transform: scaleY(0.3); }
  14%, 16% { opacity: 1; transform: scaleY(0.5); }
  49%, 51% { opacity: 1; transform: scaleY(1.15); }
  79%, 81% { opacity: 1; transform: scaleY(0.8); }
}

/* Color jumps intermittently, timed to each burst; idle stays the base hue. */
@keyframes brandHue {
  0%, 13% { filter: hue-rotate(0deg); }
  14%, 20% { filter: hue-rotate(110deg); }
  21%, 48% { filter: hue-rotate(0deg); }
  49%, 55% { filter: hue-rotate(210deg); }
  56%, 78% { filter: hue-rotate(0deg); }
  79%, 86% { filter: hue-rotate(300deg); }
  87%, 100% { filter: hue-rotate(0deg); }
}

.subnav {
  border-bottom: 1px solid var(--border);
  position: relative;
}

.subnav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
  border-color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
}

@media (max-width: 560px) {
  .brand-divider, .brand-full-name { display: none; }
}

@media (max-width: 480px) {
  .subnav-inner { justify-content: flex-start; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { max-height: 260px; }

  .nav-links li { border-top: 1px solid var(--border); }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-bottom: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 110px 0 90px;
  text-align: center;
}

.intro {
  max-width: 56ch;
  margin: 0 auto;
}

.prompt-line {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 22px 0 0;
  letter-spacing: 0.02em;
}

.prompt-line .cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--white);
  margin-left: 2px;
  vertical-align: -0.15em;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 42px;
}

/* ---------- Page header (non-home pages) ---------- */

.page-header {
  padding: 70px 0 44px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-header .eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  margin-bottom: 12px;
}

.page-header p {
  max-width: 50ch;
  margin: 0 auto;
  font-size: 0.92rem;
}

/* ---------- Sections ---------- */

section.block { padding: 72px 0; }

/* A block that opens the page directly, with no page-header above it. */
section.block.page-content { padding-top: 88px; }

section.block.tight { padding: 48px 0; }

.section-head {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 40px;
}

.section-title {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- Empty state (events placeholder) ---------- */

.empty-state {
  text-align: center;
  padding: 56px 28px;
  border: 1px dashed var(--border);
}

.empty-state h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.empty-state p {
  max-width: 42ch;
  margin: 0 auto;
  font-size: 0.9rem;
}

/* ---------- Event list ---------- */

.event-list {
  border-top: 1px solid var(--border);
}

.event-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 6px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.event-row:hover { background: var(--surface); }

.event-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.event-date .day {
  display: block;
  font-size: 1.6rem;
  color: var(--white);
  line-height: 1;
}

.event-info h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.event-info .venue {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .event-row { grid-template-columns: 1fr; gap: 8px; text-align: left; }
  .event-date .day { display: inline; font-size: 1rem; }
}

/* ---------- Latest event (home) ---------- */

.latest-flyer {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 32px;
  border: 1px solid var(--border);
}

.latest-flyer-link {
  display: block;
}

.latest-flyer-block {
  text-align: center;
}

.latest-flyer-block .latest-flyer {
  margin-bottom: 20px;
}

.latest-flyer-block .btn {
  margin-bottom: 32px;
}

.ticket-btn {
  padding: 10px 26px;
}

.flyer-meta .ticket-btn {
  margin-top: 14px;
}

/* ---------- Discrete carousel (events page rows, home page featured) ---------- */

.carousel {
  overflow: hidden;
}

.carousel-track {
  display: flex;
}

/* Simple one-at-a-time carousel — home page's featured flyer. */
.carousel:not(.carousel-peek) .carousel-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
}

/* Center-mode carousel — events page rows. The active flyer sits full
   size in the middle; its neighbors peek in on both sides. */
.carousel-peek .carousel-track {
  width: max-content;
}

.carousel-peek .carousel-slide {
  flex: 0 0 auto;
  width: min(300px, 78vw);
  display: flex;
  justify-content: center;
  opacity: 0.35;
  transform: scale(0.92);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.carousel-peek .carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-static {
  display: flex;
  justify-content: center;
}

.carousel-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.carousel-dots .dot {
  width: 6px;
  height: 6px;
  border: 1px solid var(--muted);
  cursor: pointer;
}

.carousel-dots .dot.active {
  background: var(--white);
  border-color: var(--white);
}

/* ---------- Horizontal auto-scrolling row (event carousels, photo album) ---------- */

.event-section { padding: 48px 0; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.hscroll {
  overflow: hidden;
  width: 100%;
}

.hscroll-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 24px;
}

.hscroll-track.scrolling {
  animation-name: hscroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.hscroll:hover .hscroll-track.scrolling {
  animation-play-state: paused;
}

.hscroll-track.static {
  justify-content: center;
  margin: 0 auto;
}

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

/* ---------- Event flyer cards (used inside .hscroll) ---------- */

.flyer-card {
  display: block;
  flex: 0 0 auto;
  width: min(260px, 80vw);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}

.flyer-card:hover {
  border-color: var(--white);
}

.flyer-card img {
  width: 100%;
  display: block;
  border-bottom: 1px solid var(--border);
}

.flyer-meta {
  padding: 18px;
}

.flyer-meta h3 {
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.flyer-meta .venue {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Photo album (used inside .hscroll on the About page) ---------- */

.photo-item {
  flex: 0 0 auto;
  height: 260px;
  border: 1px solid var(--border);
}

.photo-item img {
  height: 100%;
  width: auto;
  display: block;
}

/* ---------- Contact ---------- */

.contact-list {
  border-top: 1px solid var(--border);
  margin-bottom: 56px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.contact-row .contact-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}

.contact-row .contact-value {
  font-size: 0.92rem;
  color: var(--white);
  transition: color 0.15s ease;
}

.contact-row:hover .contact-value { color: var(--muted); }
.contact-row:hover .contact-label { color: var(--white); }

/* ---------- Forms (submissions / mailing list) ---------- */

.form-card {
  border: 1px solid var(--border);
  padding: 36px;
  max-width: 600px;
  margin: 0 auto;
}

.field { margin-bottom: 24px; }

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 0;
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  transition: border-color 0.15s ease;
}

.field textarea {
  border: 1px solid var(--border);
  padding: 10px;
  resize: vertical;
  min-height: 110px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--white);
}

.field-hint {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 6px;
}

.form-submit {
  width: 100%;
  cursor: pointer;
  background: transparent;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 18px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 36px;
}

.form-success.visible { display: block; }

.form-success h3 { font-size: 1.1rem; margin-bottom: 8px; }

/* ---------- Mailing list ---------- */

.mailing-list {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

/* The standalone Subscribe page — same widget, more room to breathe. */
.subscribe-standalone {
  border-bottom: none;
  padding: 140px 0;
}

.mailing-form {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 460px;
  margin: 0 auto;
}

.mailing-fields {
  flex: 1 1 auto;
  min-width: 0;
}

.mailing-field {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}

.mailing-field label {
  flex: 0 0 auto;
  width: 48px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.mailing-field input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 4px;
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.mailing-field input:focus { outline: none; }

.subscribe-btn {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.62rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.subscribe-btn:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

.mailing-status {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--white);
  min-height: 1.1em;
  text-align: center;
}

/* ---------- Footer ---------- */

.site-footer {
  color: var(--muted);
  padding: 30px 0;
  font-size: 0.76rem;
  border-top: 1px solid var(--border);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer a:hover { color: var(--white); }


/* ---------- Home: nothing upcoming — flyer beside photo + subscribe ---------- */

.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.home-split-flyer .latest-flyer {
  max-width: 100%;
  margin: 0;
  display: block;
}

.home-split-flyer .carousel-static,
.home-split-flyer .latest-flyer-block {
  display: block;
  height: 100%;
}

.home-split-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.home-photo-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 220px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.home-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-split-side .mailing-list {
  border: 1px solid var(--border);
  padding: 20px;
}

@media (max-width: 760px) {
  .home-split { grid-template-columns: 1fr; }
  .home-photo-wrap { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
}

/* Honeypot input (added by js/script.js) — invisible to real visitors. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-error {
  text-align: center;
  font-size: 0.8rem;
  color: var(--white);
  min-height: 1.2em;
  margin-top: 8px;
}
