/* ============================================================
   BIG BATTLE — Classic Battles Night
   New-poster style (black, white frame, red accents, heavy type)
   in a standard web layout: hero → line-up cards → footer.
   ============================================================ */

:root {
  --bg:        oklch(0.13 0.006 40);
  --bg-card:   oklch(0.16 0.006 40);
  --bg-deep:   oklch(0.10 0.005 40);
  --ink:       oklch(0.95 0.012 90);   /* poster white/cream */
  --muted:     oklch(0.64 0.014 60);   /* labels */
  --hot:       #e3322a;                /* poster red: dates, Noir, Flux */
  --line:      oklch(0.34 0.010 50);   /* dividers, card borders */
  --frame:     oklch(0.90 0.012 90);   /* white frame border */

  --font-display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --font-body:    "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --pad:  clamp(1rem, 3.5vw, 2.6rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  background-color: var(--bg-deep);
  background-image: url("assets/bg-textile.jpg");
  background-image: image-set(url("assets/bg-textile.webp") type("image/webp"), url("assets/bg-textile.jpg") type("image/jpeg"));
  background-size: cover; background-position: center; background-repeat: no-repeat;
  font-family: var(--font-body); font-size: clamp(1rem, 0.95rem + 0.2vw, 1.06rem);
  line-height: 1.5; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; border-radius: 2px; }

/* distressed grain */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--hot); color: var(--ink); padding: 0.7em 1.2em; font-weight: 700; text-decoration: none; }
.skip:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ≡ three-bar motif */
.bars { display: inline-block; width: 2.1rem; height: 0.9rem; flex: none; background: repeating-linear-gradient(to bottom, currentColor 0 3px, transparent 3px 7px); }

/* ============================================================
   FRAME
   ============================================================ */
.frame {
  position: relative; z-index: 1; background: oklch(0.11 0.005 40 / 0.45);
  border: 2px solid var(--frame);
  margin: clamp(0.5rem, 1.6vw, 1.2rem);
  padding: clamp(2rem, 6vw, 4rem) var(--pad) clamp(1rem, 2.5vw, 1.6rem);
  min-height: calc(100svh - clamp(1rem, 3.2vw, 2.4rem));
}

/* ============================================================
   HERO
   ============================================================ */
.hero { max-width: 920px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.present { font-weight: 600; font-size: clamp(0.62rem, 1.6vw, 0.82rem); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
.hero__crest { width: clamp(200px, 27vw, 360px); margin-top: clamp(0.6rem, 1.6vw, 1rem); }
.hero__crest img { width: 100%; height: auto; filter: drop-shadow(0 8px 22px oklch(0 0 0 / 0.55)); }
.wordmark {
  font-family: "Anton", var(--font-display); font-weight: 400;
  font-size: clamp(2.9rem, 13.5vw, 8.5rem); line-height: 0.9; letter-spacing: 0.005em;
  text-transform: uppercase; color: var(--ink); margin: clamp(0.5rem, 1.6vw, 1rem) 0 0;
}
.tagline { display: flex; align-items: center; justify-content: center; gap: clamp(0.6rem, 2vw, 1rem); margin-top: clamp(0.6rem, 1.6vw, 1rem); color: var(--ink); }
.tagline span {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(0.9rem, 2.5vw, 1.5rem); letter-spacing: 0.02em; text-transform: uppercase;
  padding: 0.3em 0.8em; border: 2px solid var(--frame); white-space: nowrap;
}
.hero__dates {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.4rem clamp(0.8rem, 2.5vw, 1.6rem);
  margin-top: clamp(1.2rem, 3vw, 2rem);
  font-family: var(--font-display); font-weight: 900; font-size: clamp(1.5rem, 4.5vw, 2.6rem);
  letter-spacing: -0.01em; color: var(--hot);
}
.hero__dates a { text-decoration: none; transition: opacity 0.2s; }
.hero__dates a:hover { opacity: 0.8; }
.hero__sep { width: 2px; height: 1.1em; background: var(--frame); border-radius: 2px; }
.hero__venue {
  margin-top: 0.5rem; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1rem, 2.6vw, 1.5rem); text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink);
}

/* ============================================================
   LINE-UP
   ============================================================ */
main { max-width: var(--maxw); margin: clamp(2.4rem, 6vw, 4.2rem) auto 0; }
.nights { display: grid; grid-template-columns: 1fr; gap: clamp(1.2rem, 3vw, 1.8rem); }
@media (min-width: 760px) { .nights { grid-template-columns: 1fr 1fr; } }

.night {
  background: var(--bg-card); border: 1px solid var(--line);
  padding: clamp(1.3rem, 3.2vw, 2rem); scroll-margin-top: 1.5rem;
}
.night__date {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.7rem, 4.4vw, 2.5rem); line-height: 1; letter-spacing: -0.02em; color: var(--hot);
  padding-bottom: clamp(0.7rem, 1.8vw, 1rem); margin-bottom: 0.4rem;
  border-bottom: 2px solid var(--line);
}

.lineup { margin: 0; }
.row { padding: 0.6rem 0; border-bottom: 1px solid oklch(0.34 0.01 50 / 0.45); display: grid; gap: 0.2rem; }
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row dt { font-weight: 600; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.row dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.05em 0.5em; }
.name {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.05; letter-spacing: -0.005em;
  text-transform: uppercase; color: var(--ink);
}
.name--hot { color: var(--hot); }
.row--bands dd { flex-direction: column; align-items: flex-start; gap: 0.05rem; }
.row--bands .name { font-size: clamp(1.7rem, 4.6vw, 2.7rem); line-height: 1.0; }
.crew { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); text-transform: none; }

.row--vs dd { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.3rem 0.6rem; }
.side { display: flex; flex-direction: column; gap: 0.06rem; min-width: 0; }
.row--vs .side:last-child { text-align: right; align-items: flex-end; }
.vs { justify-self: center; align-self: center; font-family: var(--font-display); font-weight: 900; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--hot); }
.tba { display: inline-block; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0.3em 0.65em; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  max-width: var(--maxw); margin: clamp(2.4rem, 6vw, 4rem) auto 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.9rem 1.5rem; padding-top: clamp(1rem, 2.2vw, 1.5rem); border-top: 2px solid var(--frame);
}
.footer__venue { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 900; font-size: clamp(1rem, 2.4vw, 1.4rem); text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink); }
.footer__box { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; border: 2px solid var(--frame); padding: 0.55em 0.9em; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer__box a { text-decoration: none; transition: color 0.2s; }
.footer__box a:hover { color: var(--hot); }
.footer__handle { color: var(--muted); }

/* ============================================================
   PREVIEW LANDING (logo + subtle password gate, on black + frame)
   ============================================================ */
.landing {
  position: relative; z-index: 1; margin: 0; max-width: none; width: 100%; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--pad); text-align: center; overflow: hidden; background: transparent;
}
.landing::before { content: ""; position: absolute; inset: clamp(0.6rem, 2vw, 1.4rem); border: 2px solid var(--frame); pointer-events: none; }
.landing__logo { position: relative; z-index: 1; margin: 0; width: clamp(210px, 38vw, 380px); }
.landing__logo img { width: 100%; height: auto; filter: drop-shadow(0 16px 40px oklch(0 0 0 / 0.6)); }

.gate { position: fixed; left: 50%; bottom: clamp(1.6rem, 5vh, 3rem); transform: translateX(-50%); z-index: 2; }
.gate__input {
  width: 168px; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--muted); font-family: var(--font-body); font-size: 0.82rem;
  letter-spacing: 0.22em; text-align: center; text-transform: lowercase; padding: 0.45em 0.3em; opacity: 0.4;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.gate__input::placeholder { color: var(--muted); letter-spacing: 0.22em; }
.gate__input:hover { opacity: 0.72; }
.gate__input:focus { outline: none; opacity: 1; border-color: var(--hot); color: var(--ink); }
.gate--error .gate__input { border-color: var(--hot); color: var(--hot); animation: shake 0.4s var(--ease); }
@keyframes shake { 10%,90%{transform:translateX(-1px)} 20%,80%{transform:translateX(2px)} 30%,50%,70%{transform:translateX(-4px)} 40%,60%{transform:translateX(4px)} }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 430px) {
  .row--vs dd { grid-template-columns: 1fr; gap: 0.25rem; }
  .row--vs .side:last-child { text-align: left; align-items: flex-start; }
  .vs { justify-self: start; }
  .footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
