:root {
  --bg: #000000;
  --bg-elev: #111111;
  --text: #ffffff;
  --muted: #cfcfcf;
  --brand: #ed1c24; /* HindSight red */
  --border: #1a1a1a;
  --link: #ed1c24;
  --shadow: 0 10px 30px rgba(0,0,0,.5);
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-elev: #f6f7f9;
  --text: #0b1220;
  --muted: #4b5563;
  --brand: #ed1c24;
  --border: #e5e7eb;
  --link: #0284c7;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* Light mode email signup button: white background, black border */
[data-theme="light"] .signup-form button {
  background: #ffffff;
  border: 1px solid #000000;
  color: #0b1220;
}
[data-theme="light"] .signup-form button:hover,
[data-theme="light"] .signup-form button:active {
  filter: none;
  background: #f8fafc;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  background-image: 
    url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="256" height="256" filter="url(%23n)" opacity="0.05"/></svg>');
  background-repeat: repeat;
  color: var(--text);
  line-height: 1.5;
}

h1, h2, h3 {
  color: #fff;
}

.band-members-title {
  color: #000 !important;
}

.shows-wrap {
  background: rgba(15,15,15,0.75);
  border: 1px solid rgba(237,28,36,0.25);
  box-shadow: 0 18px 45px rgba(0,0,0,0.6), 0 0 40px rgba(237,28,36,0.15);
  border-radius: 14px;
  padding: 24px;
  margin: 16px 0 28px;
  backdrop-filter: blur(4px);
}

.shows-page {
  position: relative;
  isolation: isolate;
}

.shows-page::before {
  content: '';
  position: absolute;
  inset: -24px;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.85)),
    url('assets/Shows.jpg');
  background-size: fill;
  background-position: center;
  filter: blur(12px);
  opacity: 0.65;
  z-index: 0;
  border-radius: 18px;
}

.shows-page > * {
  position: relative;
  z-index: 1;
}

.home-page {
  position: relative;
  isolation: isolate;
}

.home-page::before {
  content: '';
  position: absolute;
  inset: -24px;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.85)),
    url('assets/Homepage.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  opacity: 0.65;
  z-index: 0;
  border-radius: 18px;
}

.home-wrap {
  position: relative;
  z-index: 1;
  background: rgba(15,15,15,0.75);
  border: 1px solid rgba(237,28,36,0.25);
  box-shadow: 0 18px 45px rgba(0,0,0,0.6), 0 0 40px rgba(237,28,36,0.15);
  border-radius: 14px;
  padding: 24px;
  margin: 16px 0 28px;
  backdrop-filter: blur(4px);
}

.media-page {
  position: relative;
  isolation: isolate;
}

.media-page::before {
  content: '';
  position: absolute;
  inset: -24px;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.85)),
    url('assets/media.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  opacity: 0.65;
  z-index: 0;
  border-radius: 18px;
}

.media-wrap {
  position: relative;
  z-index: 1;
  background: rgba(15,15,15,0.75);
  border: 1px solid rgba(237,28,36,0.25);
  box-shadow: 0 18px 45px rgba(0,0,0,0.6), 0 0 40px rgba(237,28,36,0.15);
  border-radius: 14px;
  padding: 24px;
  margin: 16px 0 28px;
  backdrop-filter: blur(4px);
}

.about-page {
  position: relative;
  isolation: isolate;
}

.about-page::before {
  content: '';
  position: absolute;
  inset: -24px;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.85)),
    url('assets/About.jpeg');
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  opacity: 0.65;
  z-index: 0;
  border-radius: 18px;
}

.about-wrap {
  position: relative;
  z-index: 1;
  background: rgba(15,15,15,0.75);
  border: 1px solid rgba(237,28,36,0.25);
  box-shadow: 0 18px 45px rgba(0,0,0,0.6), 0 0 40px rgba(237,28,36,0.15);
  border-radius: 14px;
  padding: 24px;
  margin: 16px 0 28px;
  backdrop-filter: blur(4px);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.header-inner { display: flex; align-items: center; gap: 20px; padding: 14px 0; }
.brand { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .3px; }
/* Render brand as logo image while keeping accessible link text */
.brand {
  display: inline-block;
  width: 170px;
  height: 42px;
  background-image: url("/assets/Hindsight%20Logo.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
  text-indent: -9999px; /* hide text visually, keep for screen readers */
  overflow: hidden;
}
.nav { display: flex; gap: 14px; flex: 1; }
.nav-link { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav-link:hover { color: var(--text); background: var(--bg); }
.nav-link.active { color: var(--text); background: transparent; border-bottom: 2px solid var(--brand); border-radius: 0; }
.theme-toggle { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.theme-toggle:hover { background: var(--bg-elev); }

.hero { 
  display: flex; 
  flex-direction: column; 
  gap: 18px; 
  align-items: center; 
  padding: 28px 0 18px;
  border-radius: 8px;
  padding: 28px 20px 18px;
  margin: 0 -20px;
}
.hero-media { width: 100%; }
.hero-media img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--border); display: block; }
.hero-content { width: 100%; }
.hero-content h1 { margin: 0 0 6px; font-size: 42px; text-align: center; color: #fff; font-family: "Snell Roundhand", cursive; }
.hero-content p { margin: 0 0 16px; color: #fff; text-align: center; }
.stats { display: none; gap: 20px; }
.stat { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.stat-value { font-size: 28px; font-weight: 700; color: #fff; }
.stat-label { display: block; color: #fff; font-size: 12px; }

.signup { margin: 24px 0 40px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 18px; border-top: 2px solid var(--brand); }
.signup h2 { margin-top: 0; }
.signup-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.signup-form input[type="email"] { flex: 1 1 280px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.signup-form button { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--brand); color: #0b1220; font-weight: 700; cursor: pointer; }
.signup-form button:hover { filter: brightness(0.95); }
.form-note { color: #fff; margin: 8px 0 0; font-size: 12px; opacity: 0.85; }
.form-message { margin: 6px 0 0; }
.form-message.ok { color: #22c55e; }
.form-message.err { color: #ef4444; }

/* Make the signup card a prominent brand accent while keeping the site background dark */
.signup { background: var(--brand); color: #fff; border-color: transparent; }
.signup .signup-form button { background: #000; color: #fff; border-color: transparent; }
.signup h2, .signup p, .signup .form-note { color: #fff; }

.shows { border-top: 2px solid var(--brand); padding-top: 18px; margin-top: 18px; }
.shows h2 { margin-bottom: 10px; }

.show-year-group { border: 1px solid var(--border); border-radius: 10px; margin: 10px 0; background: rgba(0,0,0,0.35); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.show-year-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: transparent; color: #fff; border: none; cursor: pointer; font-size: 16px; text-align: left; border-radius: 10px; }
.show-year-toggle:hover { background: rgba(255,255,255,0.05); }
.show-year-label { font-weight: 700; letter-spacing: 0.3px; }
.show-year-toggle .chevron { transition: transform 0.2s ease; }
.show-year-toggle[aria-expanded="false"] .chevron { transform: rotate(-90deg); }

.show-year-list { padding: 0 12px 12px; display: flex; flex-wrap: wrap; gap: 12px; }
.show-year-list[hidden] { display: none !important; }
.show-list { display: flex; flex-wrap: wrap; gap: 14px; }
.show-card { border: 1px solid var(--border); background: var(--bg-elev); border-radius: 12px; padding: 14px; flex: 1 1 280px; min-width: 260px; }
.show-date { color: var(--brand); font-weight: 700; margin-bottom: 6px; }
.show-venue { font-weight: 700; }
.show-time, .show-address { color: var(--muted); font-size: 14px; }
.show-notes { margin-top: 6px; color: var(--muted); font-size: 14px; }

.content { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin: 12px 0; text-align: center; position: relative; border-top: 2px solid var(--brand); }
.content p { text-align: center; position: relative; z-index: 1; }
.content h2 { position: relative; z-index: 1; }
.members { list-style: none; padding: 0; margin: 0; text-align: center; position: relative; z-index: 1; }
.members li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.members li:last-child { border-bottom: 0; }

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 24px 0;
  position: relative;
  z-index: 1;
}

.member-card {
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(237, 28, 36, 0.3);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(237, 28, 36, 0.2);
}

.member-photo {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  padding: 16px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ed1c24;
}

.member-inffffff{
  color: #ed1c24;
  margin: 0 0 8px 0;
  font-size: 16px;
}

.member-info p {
  color: #000000;
  margin: 0;
  font-size: 14px;
  text-align: center;
}

/* About page background image */
.content.about-story {
  color: #ffffff;
}

.content.about-story h2 {
  color: #ffffff;
}

.content.about-story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('assets/About.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  z-index: 0;
}

.content.about-story::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(60, 60, 60, 0.75);
  border-radius: 12px;
  z-index: 0;
}

.contact-note { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); margin-top: 8px; }
.actions { margin-top: 10px; }
.actions button { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--brand); color: #0b1220; font-weight: 700; cursor: pointer; }

.contact-page .content {
  background: #ed1c24;
  color: #ffffff;
  border-top: 2px solid #ffffff;
}

.contact-page .content p {
  color: #ffffff;
}

.contact-page .content a {
  color: #000000;
  font-weight: 700;
}

.contact-page .muted {
  color: #ffffff;
}

.contact-page .contact-note {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.contact-page .contact-note::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-page .actions button {
  background: #000000;
  color: #ed1c24;
  border: 1px solid #000000;
}

.media-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.media-tab {
  padding: 12px 16px;
  border: 1px solid rgba(237,28,36,0.3);
  border-radius: 10px;
  background: rgba(0,0,0,0.3);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.media-tab:hover {
  background: rgba(237,28,36,0.15);
  border-color: rgba(237,28,36,0.5);
}

.media-tab.active {
  background: var(--brand);
  color: #000;
  border-color: var(--brand);
}

.media-section {
  margin-top: 16px;
}

.contact-page {
  position: relative;
  isolation: isolate;
}

.contact-page::before {
  content: '';
  position: absolute;
  inset: -24px;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.85)),
    url('assets/media.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  opacity: 0.65;
  z-index: 0;
  border-radius: 18px;
}

.contact-wrap {
  position: relative;
  z-index: 1;
  background: rgba(15,15,15,0.75);
  border: 1px solid rgba(237,28,36,0.25);
  box-shadow: 0 18px 45px rgba(0,0,0,0.6), 0 0 40px rgba(237,28,36,0.15);
  border-radius: 14px;
  padding: 24px;
  margin: 16px 0 28px;
  backdrop-filter: blur(4px);
}

.embed-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.embed-item { border: 1px solid var(--border); background: var(--bg-elev); border-radius: 12px; padding: 10px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 10px; }
.photo-grid img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); }

.muted { color: var(--muted); }

.media-page .muted {
  color: #ffffff;
}

.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.site-footer { margin-top: 40px; padding: 18px 0; border-top: 1px solid var(--border); background: var(--bg-elev); }
.footer-inner { display: flex; justify-content: center; color: var(--muted); }

@media (max-width: 860px){
  .hero { grid-template-columns: 1fr; }
  .brand { width: 140px; height: 36px; }
}