/* Club Session: v1 styles. Mobile-first.
   BRAND HOOKS: swap the tokens below when the collective picks colors and type.
   Everything else reads from these variables. */
:root {
  --bg: #0b0b0f;
  --bg-raised: #15151c;
  --bg-placeholder: #23232e;
  --fg: #f4f4f6;
  --fg-muted: #a3a3b2;
  --accent: #ff2e88;          /* [PLACEHOLDER] brand accent */
  --accent-fg: #0b0b0f;
  --line: #2c2c38;
  --ok: #3ddc97;
  --err: #ff6b6b;

  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --radius: 10px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 var(--font-body);
  overflow-x: hidden;
}
a { color: var(--fg); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: var(--gutter); background: var(--accent); color: var(--accent-fg); padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Placeholder blocks: plain color + label until real assets arrive */
.placeholder {
  display: grid; place-items: center;
  background: var(--bg-placeholder);
  color: var(--fg-muted);
  font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  border-radius: var(--radius);
  text-align: center;
}
.placeholder--logo { width: 120px; height: 120px; margin: 0 auto 24px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gutter);
  padding-top: max(12px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__brand { font-weight: 800; text-decoration: none; letter-spacing: .02em; }
.topbar__nav { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.topbar__nav a { color: var(--fg-muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
.topbar__nav a:hover { color: var(--fg); }
@media (max-width: 420px) { .topbar__nav a:nth-child(n+3) { display: none; } }

/* Hero */
.hero { padding: 48px var(--gutter) 56px; text-align: center; max-width: var(--max); margin: 0 auto; }
.hero__title { font-size: clamp(36px, 10.5vw, 96px); overflow-wrap: anywhere; font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; }
.hero__sub { font-size: 18px; margin: 8px 0 0; color: var(--fg-muted); }
.hero__tagline { margin: 4px 0 0; color: var(--fg-muted); font-size: 14px; }
.hero__tagline:empty { display: none; }
.hero__next {
  display: inline-flex; flex-direction: column; gap: 4px;
  margin: 32px auto 0; padding: 16px 24px;
  border: 1px solid var(--accent); border-radius: var(--radius);
}
.hero__date { font-size: 22px; }
.hero__meta { color: var(--fg-muted); font-size: 14px; }
.hero__meta:empty { display: none; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-raised); color: var(--fg);
  font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--fg-muted); }
.btn--primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn--primary:hover { filter: brightness(1.1); border-color: var(--accent); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }

/* Sections */
.section { padding: 48px var(--gutter); max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); }
.section__title { font-size: 28px; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; }
.section__lede { color: var(--fg-muted); margin: -8px 0 24px; max-width: 60ch; }

/* Events */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .events { grid-template-columns: repeat(2, 1fr); } }
.event {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px;
  padding: 14px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
}
.event--special { border-color: var(--accent); }
.event > div { min-width: 0; overflow-wrap: anywhere; }
.event__flyer { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: var(--bg-placeholder); }
.event__flyer.placeholder { font-size: 10px; }
.event__date { color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.event__title { font-size: 18px; margin: 4px 0; }
.event__meta { color: var(--fg-muted); font-size: 14px; margin: 0; }
.event__desc { font-size: 14px; margin: 8px 0 0; }
.event__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-size: 11px; vertical-align: middle; }

/* Forms */
.form { display: grid; gap: 14px; max-width: 520px; }
.field { display: grid; gap: 6px; }
.field label, .footer__label { font-size: 14px; font-weight: 600; }
.opt { color: var(--fg-muted); font-weight: 400; }
input, select {
  width: 100%; min-height: 48px; padding: 0 14px;
  font: 16px var(--font-body); /* 16px stops iOS zoom-on-focus */
  color: var(--fg); background: var(--bg-raised);
  border: 1px solid var(--line); border-radius: 8px;
}
input:focus, select:focus { border-color: var(--accent); outline: none; }
input[aria-invalid="true"] { border-color: var(--err); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { font-size: 13px; color: var(--fg-muted); margin: 0; }
.form__status { margin: 0; min-height: 1.5em; font-size: 14px; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--err); }
.form__row { display: flex; gap: 8px; }
.form__row input { flex: 1; min-width: 0; }

/* Members */
.members { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 720px) { .members { grid-template-columns: repeat(4, 1fr); } }
.member__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--bg-placeholder); }
.member__photo.placeholder { font-size: 11px; }
.member { min-width: 0; overflow-wrap: anywhere; }
.member__dj { font-size: 16px; margin: 10px 0 0; }
.member__name, .member__role { color: var(--fg-muted); font-size: 13px; margin: 2px 0 0; }
.member__links { display: flex; gap: 12px; margin-top: 6px; font-size: 13px; }

/* Venue */
.venue { display: grid; gap: 6px; justify-items: start; }
.venue__name { font-size: 20px; font-weight: 700; margin: 0; }
.venue__addr { font-style: normal; color: var(--fg-muted); white-space: pre-line; }
.venue__doors { margin: 0 0 10px; }

/* Footer */
.footer { padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; display: grid; gap: 20px; }
.footer__links { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; }
.footer__human { font-size: 13px; color: var(--fg-muted); margin: 0; }

/* Install banner */
.install {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom)); z-index: 50;
  display: grid; gap: 10px; padding: 14px;
  background: var(--bg-raised); border: 1px solid var(--accent); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  max-width: 480px; margin: 0 auto;
}
.install__text { margin: 0; font-size: 14px; }
.install__actions { display: flex; gap: 8px; }

/* Admin */
.admin { padding: 24px var(--gutter); max-width: var(--max); margin: 0 auto; }
.admin__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--bg-raised); position: sticky; top: 0; }
.muted { color: var(--fg-muted); }
