:root {
  --bg: #000;
  --fg: #fff;
  --muted: #888;
  --accent: #fff;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 2rem;
  --space-4: 4rem;
  --font-body: system-ui, -apple-system, sans-serif;
  --radius: 0;
}

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

html { color-scheme: dark; font-size: clamp(16px, 100vw / 120, 32px); }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  line-height: 1.6;
}

.container {
  max-width: min(90ch, 100% - 2rem);
  margin-inline: auto;
}

/* nav */
.site-nav {
  padding: var(--space-2) 0;
  border-bottom: 1px solid #222;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--fg); }

.nav-links { display: flex; gap: var(--space-3); list-style: none; }

/* hero */
.hero {
  min-height: 90dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) 0;
  background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.75)), url('/assets/img/hero.jpg');
  background-size: cover;
  background-position: center 20%;
}

.logo {
  width: min(80lvmin, 43.75rem);
  height: auto;
  display: block;
}

/* sections */
section { padding: var(--space-4) 0; }
section + section { border-top: 1px solid #222; }

h2 {
  font-size: clamp(1.25rem, 1rem + 1vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

p { max-width: 65ch; }

/* socials */
.socials-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #333;
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

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

.social-btn svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }

/* gig cards */
.gig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: var(--space-2);
}

.gig-card {
  border: 1px solid #222;
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.gig-card time {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.gig-card .gig-address { font-size: 1rem; }
.gig-card .gig-desc { font-size: 0.875rem; color: var(--muted); }
.gig-card .btn { align-self: flex-start; margin-top: auto; }

.empty { color: var(--muted); font-style: italic; }

/* mixcloud embed */
.mixcloud-wrap { border: 1px solid #222; overflow: hidden; }
.mixcloud-wrap iframe { display: block; width: 100%; height: 7.5rem; }

/* CTA row */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

/* buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-radius: var(--radius);
}

.btn:hover { background: var(--fg); color: var(--bg); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover { background: var(--bg); color: var(--fg); }

/* section filter tabs (gigs page) */
.filter-tabs { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); list-style: none; }
.filter-tab { color: var(--muted); cursor: pointer; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.filter-tab.active { color: var(--fg); border-bottom-color: var(--fg); }
.filter-section { }
.filter-section.hidden { display: none; }

/* forms */
.form-group { display: flex; flex-direction: column; gap: var(--space-1); margin-bottom: var(--space-2); }
.form-group label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

input, textarea, select {
  background: #111;
  border: 1px solid #333;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
  border-radius: var(--radius);
  transition: border-color 0.15s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--fg);
}

input:invalid, textarea:invalid { border-color: #c00; }
textarea { min-height: 8rem; resize: vertical; }

/* Google Places autocomplete dropdown */
.pac-container { background: #111; border: 1px solid #333; font-family: var(--font-body); }
.pac-item { color: var(--fg); padding: 0.4rem 0.75rem; }
.pac-item:hover, .pac-item-selected { background: #222; }
.pac-item-query { color: var(--fg); }
.pac-matched { color: var(--accent); }

.honeypot { display: none !important; }

#contact-status { margin-top: var(--space-2); }
#contact-status.error { color: #f88; }
#contact-status a { color: var(--fg); }

/* admin */
.admin-section { display: none; }
.admin-section.visible { display: block; }

.login-section { max-width: 25rem; margin-top: var(--space-3); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #222;
}
.admin-table th { color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; }
.admin-table .actions { display: flex; gap: var(--space-1); }

.new-gig-form { max-width: 37.5rem; margin-top: var(--space-3); }

#admin-status { margin-top: var(--space-1); min-height: 1.5rem; font-size: 0.875rem; }
#admin-status.error { color: #f88; }

/* site footer */
.site-footer {
  padding: var(--space-3) 0;
  border-top: 1px solid #222;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
