/* =============================================================================
   South Metro Live — Bento Redesign
   Design tokens & components per landing-page/design/tokens.md
   Default theme: bone (Bone + Brick Red). Alternates: paper, cream.
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* -----------------------------------------------------------------------------
   Theme: Bone (default) — cool bone-white + brick red. Locked production palette.
----------------------------------------------------------------------------- */
:root,
:root[data-theme="bone"] {
  --bg: #F2F0EB;
  --surface: #FFFFFF;
  --surface-elevated: #F8F7F3;
  --border: #DAD6CD;
  --text-primary: #1A1814;
  --text-secondary: #4A463E;
  --text-muted: #6E6A5E;
  --accent: #B8392F;
  --accent-strong: #952820;
  --accent-soft: rgba(184, 57, 47, 0.10);
  --accent-glow: rgba(184, 57, 47, 0.18);
  --accent-fg: #FFFFFF;
  --success: #1F7A3A;
  --success-bg: rgba(31, 122, 58, 0.10);
  --error: #B8392F;
  --error-bg: rgba(184, 57, 47, 0.10);
}

/* -----------------------------------------------------------------------------
   Theme: Paper (alternate) — warm white + brick red. Newsprint editorial.
----------------------------------------------------------------------------- */
:root[data-theme="paper"] {
  --bg: #F8F6F0;
  --surface: #FFFFFF;
  --surface-elevated: #FCFAF4;
  --border: #DDD8C8;
  --text-primary: #1A1814;
  --text-secondary: #4A463E;
  --text-muted: #6E6A5E;
  --accent: #B8392F;
  --accent-strong: #952820;
  --accent-soft: rgba(184, 57, 47, 0.10);
  --accent-glow: rgba(184, 57, 47, 0.18);
  --accent-fg: #FFFFFF;
  --success: #1F7A3A;
  --success-bg: rgba(31, 122, 58, 0.10);
  --error: #B8392F;
  --error-bg: rgba(184, 57, 47, 0.10);
}

/* -----------------------------------------------------------------------------
   Theme: Cream + deep teal/forest. Literary, Penguin-Classics warmth.
----------------------------------------------------------------------------- */
:root[data-theme="cream"] {
  --bg: #F1ECDC;
  --surface: #FBF7E8;
  --surface-elevated: #F5F0DD;
  --border: #D9CFB6;
  --text-primary: #1A2622;
  --text-secondary: #424E48;
  --text-muted: #5A645E;
  --accent: #1B5E50;
  --accent-strong: #134438;
  --accent-soft: rgba(27, 94, 80, 0.10);
  --accent-glow: rgba(27, 94, 80, 0.18);
  --accent-fg: #FBF7E8;
  --success: #1B5E50;
  --success-bg: rgba(27, 94, 80, 0.10);
  --error: #B23B2C;
  --error-bg: rgba(178, 59, 44, 0.10);
}

/* -----------------------------------------------------------------------------
   Shared tokens (typography, spacing, radius, motion)
----------------------------------------------------------------------------- */
:root {
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: clamp(40px, 6vw, 56px);
  --text-5xl: clamp(56px, 9vw, 96px);

  --tracking-tight: -0.02em;
  --tracking-wide: 0.08em;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.06);
  --shadow-md: 0 2px 8px rgba(20, 20, 20, 0.08), 0 1px 2px rgba(20, 20, 20, 0.04);
  --shadow-lg: 0 8px 24px rgba(20, 20, 20, 0.10), 0 2px 6px rgba(20, 20, 20, 0.06);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
}

/* -----------------------------------------------------------------------------
   Reset & base
----------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}

a:hover { color: var(--accent-strong); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

/* -----------------------------------------------------------------------------
   Layout: container + bento grid
----------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }
}

.bento-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .bento-grid { gap: var(--space-4); grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .bento-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 1024px) {
  .bento-grid { gap: var(--space-5); grid-template-columns: repeat(12, 1fr); }
}

/* Tile span helpers */
.tile-hero      { grid-column: 1 / -1; }
.tile-feature   { grid-column: 1 / -1; }
.tile-half      { grid-column: 1 / -1; }
.tile-third     { grid-column: 1 / -1; }
.tile-quarter   { grid-column: 1 / -1; }
.tile-full      { grid-column: 1 / -1; }

@media (min-width: 480px) {
  .tile-feature { grid-column: span 1; }
  .tile-half    { grid-column: span 2; }
  .tile-quarter { grid-column: span 1; }
}
@media (min-width: 768px) {
  .tile-hero    { grid-column: span 6; }
  .tile-feature { grid-column: span 3; }
  .tile-half    { grid-column: span 3; }
  .tile-third   { grid-column: span 2; }
  .tile-quarter { grid-column: span 3; }
  .tile-full    { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .tile-hero    { grid-column: span 8; }
  .tile-feature { grid-column: span 4; }
  .tile-half    { grid-column: span 6; }
  .tile-third   { grid-column: span 4; }
  .tile-quarter { grid-column: span 3; }
}

/* -----------------------------------------------------------------------------
   Bento tile (base)
----------------------------------------------------------------------------- */
.tile {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: background-color var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease),
              border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tile-interactive:hover,
.tile-interactive:focus-within {
  background-color: var(--surface-elevated);
  border-color: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tile-accent {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-elevated) 100%);
  border-color: var(--accent-soft);
}

.tile-padded-lg { padding: var(--space-6); }

@media (min-width: 1024px) {
  .tile { padding: var(--space-6); }
  .tile-padded-lg { padding: var(--space-7); }
}

/* -----------------------------------------------------------------------------
   Typography utilities
----------------------------------------------------------------------------- */
.kicker {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--accent);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  color: var(--text-primary);
}

.display-xl { font-size: var(--text-5xl); }
.display-lg { font-size: var(--text-4xl); }
.display-md { font-size: var(--text-3xl); line-height: 1.15; }

.headline {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

.body-lg {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--text-secondary);
}

.body { font-size: var(--text-base); line-height: 1.55; color: var(--text-secondary); }

.muted { color: var(--text-muted); font-size: var(--text-sm); }

/* -----------------------------------------------------------------------------
   Navigation
----------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(242, 240, 235, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

:root[data-theme="paper"] .nav { background-color: rgba(248, 246, 240, 0.85); }
:root[data-theme="cream"] .nav { background-color: rgba(241, 236, 220, 0.85); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: 0.08em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

@media (min-width: 768px) {
  .wordmark { font-size: var(--text-xl); }
}

/* Minnesota silhouette: NW Angle bump (top-left), Arrowhead (top-right diagonal),
   rectangular body, straight south + west borders.
   Polygon points as % of element box (56×72 proportional grid):
   NW-angle-TL, NW-angle-TR, NW-angle-BR, top-right, NE-arrowhead, SE, SW, NW */
.wordmark .accent-dot {
  position: relative;
  width: 11px;
  height: 14px;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  flex-shrink: 0;
}

.wordmark .accent-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--accent);
  clip-path: polygon(16% 0%, 27% 0%, 27% 12%, 74% 11%, 100% 38%, 71% 54%, 74% 100%, 6% 100%, 0% 65%, 5% 61%, 0% 57%, 0% 12%, 16% 0%);
}

.wordmark .accent-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  background-color: var(--accent);
  clip-path: polygon(16% 0%, 27% 0%, 27% 12%, 74% 11%, 100% 38%, 71% 54%, 74% 100%, 6% 100%, 0% 65%, 5% 61%, 0% 57%, 0% 12%, 16% 0%);
  opacity: 0;
  animation: mn-pulse 2.4s ease-out infinite;
}

@keyframes mn-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a[aria-current="page"] {
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* Hamburger toggle: visible <768px, hidden ≥768px */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-toggle:hover { background: rgba(0, 0, 0, 0.05); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease;
}

.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after  { top:  7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon         { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after  { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide-down panel.
   The <nav aria-label="Primary"> element is the panel wrapper; on mobile it
   absolute-positions below the sticky header and slides via max-height. */
@media (max-width: 767px) {
  .nav-inner > nav[aria-label="Primary"] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #f2f0eb;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    max-height: 0;
    transition: max-height 220ms ease;
  }

  :root[data-theme="paper"] .nav-inner > nav[aria-label="Primary"] { background-color: #f8f6f0; }
  :root[data-theme="cream"] .nav-inner > nav[aria-label="Primary"] { background-color: #f1ecdc; }

  .nav-toggle[aria-expanded="true"] ~ nav[aria-label="Primary"] {
    max-height: 80vh;
  }

  .nav-toggle[aria-expanded="true"] ~ nav[aria-label="Primary"] .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) var(--space-5) var(--space-4);
  }

  .nav-toggle[aria-expanded="true"] ~ nav[aria-label="Primary"] .nav-links a {
    display: block;
    padding: var(--space-3) 0;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle[aria-expanded="true"] ~ nav[aria-label="Primary"] .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-toggle[aria-expanded="true"] ~ nav[aria-label="Primary"] .nav-links a[aria-current="page"] {
    border-bottom-color: var(--accent);
    border-bottom-width: 2px;
  }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
}

/* -----------------------------------------------------------------------------
   Theme switcher
----------------------------------------------------------------------------- */
.theme-switcher {
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: var(--space-1);
  padding: var(--space-1);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .theme-switcher {
    bottom: auto;
    top: var(--space-4);
    left: auto;
    right: var(--space-4);
    transform: none;
  }
}

.theme-switcher button {
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: color var(--duration-fast) var(--ease),
              background-color var(--duration-fast) var(--ease);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .theme-switcher button {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
  }
}

.theme-switcher button:hover { color: var(--text-primary); }

.theme-switcher button[aria-pressed="true"] {
  color: var(--accent-fg);
  background-color: var(--accent);
}

/* -----------------------------------------------------------------------------
   Hero
----------------------------------------------------------------------------- */
.hero {
  padding-top: var(--space-7);
  padding-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .hero { padding-top: var(--space-7); padding-bottom: var(--space-5); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.hero-headline .accent-text { color: var(--accent); }

.hero-sub {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 56ch;
}

/* -----------------------------------------------------------------------------
   Form
----------------------------------------------------------------------------- */
.signup {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.signup-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 480px) {
  .signup-row { flex-direction: row; }
  .signup-row > * { flex: 1; }
}

.input {
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  background-color: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast) var(--ease),
              background-color var(--duration-fast) var(--ease);
  min-height: 48px;
}

.input::placeholder { color: var(--text-muted); }
.input:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 0; background-color: var(--surface-elevated); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  min-height: 48px;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease),
              transform var(--duration-fast) var(--ease),
              box-shadow var(--duration-base) var(--ease);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-fg);
}

.btn-primary:hover {
  background-color: var(--accent-strong);
  box-shadow: var(--shadow-md);
}

.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { background-color: var(--text-muted); cursor: not-allowed; transform: none; box-shadow: none; }

.btn-block { width: 100%; }

/* -----------------------------------------------------------------------------
   Messages
----------------------------------------------------------------------------- */
.message {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: 1.45;
  display: none;
}

.message.success {
  display: block;
  background-color: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success);
}

.message.error {
  display: block;
  background-color: var(--error-bg);
  color: var(--error);
  border: 1px solid var(--error);
}

/* -----------------------------------------------------------------------------
   Pill / Tag
----------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background-color: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.pill-muted {
  background-color: var(--surface-elevated);
  color: var(--text-secondary);
}

/* -----------------------------------------------------------------------------
   Event card (specialized bento tile)
----------------------------------------------------------------------------- */
.event-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  transition: background-color var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease),
              border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
  text-decoration: none;
  color: var(--text-primary);
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  opacity: 0.7;
}

.event-card:hover,
.event-card:focus-visible {
  background-color: var(--surface-elevated);
  border-color: var(--accent-soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.event-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.event-date .day {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.event-date .date-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: var(--accent);
}

.event-time {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
  background-color: var(--accent-soft);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.event-artist {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  /* Reserve space for two lines so cards align across the bento row regardless
     of whether the artist name wraps. */
  min-height: 2.4em;
}

.event-venue {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  /* Reserve two lines for the venue line as well so stacks align. */
  min-height: 2.6em;
}

.event-venue .city { color: var(--text-muted); }

.event-link {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: auto;
}

.event-card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  /* Favor the top of the photo so faces remain in view when portraits get
     cropped to the 16:10 frame. */
  object-position: center 20%;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.45),
              0 2px 4px -2px rgba(0, 0, 0, 0.25);
  background-color: var(--surface-elevated);
}

.event-card-past {
  opacity: 0.7;
}

.event-card-past::before {
  background: var(--border);
  opacity: 0.5;
}

.event-card-past .event-date .date-num {
  color: var(--text-muted);
}

.event-card-past .event-time {
  color: var(--text-muted);
  background-color: var(--surface-elevated);
}

/* -----------------------------------------------------------------------------
   Event grid (3-up desktop, 2-up tablet, 1-up mobile)
----------------------------------------------------------------------------- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 960px) {
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .event-grid {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------------------------------------------
   Artist hero photo
----------------------------------------------------------------------------- */
.artist-photo {
  margin: var(--space-4) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 320px;
  border: 1px solid var(--border);
  background-color: var(--surface);
}

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

.photo-credit {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
  padding: 0 var(--space-3) var(--space-2);
}

.kicker-muted {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--space-2);
}

/* -----------------------------------------------------------------------------
   Artist directory cards
----------------------------------------------------------------------------- */
.dir-letter-heading {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
  margin: var(--space-6) 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--accent-soft);
}

.dir-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (max-width: 600px) {
  .dir-grid {
    grid-template-columns: 1fr;
  }
}

.dir-card {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
}

.dir-card:hover,
.dir-card:focus-visible {
  border-color: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.dir-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--surface-elevated);
}

.dir-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--text-muted);
}

.dir-text {
  flex: 1;
  min-width: 0;
}

.dir-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0 0 var(--space-1);
  color: var(--text-primary);
}

.dir-genre {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-style: italic;
  margin: 0 0 var(--space-1);
}

.dir-stats {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0;
}

/* -----------------------------------------------------------------------------
   Venue directory
----------------------------------------------------------------------------- */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (max-width: 720px) {
  .venue-grid {
    grid-template-columns: 1fr;
  }
}

.venue-card {
  padding: var(--space-4);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.venue-card-type {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
}

.venue-card-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

.venue-card-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease);
}

.venue-card-name a:hover,
.venue-card-name a:focus-visible {
  border-bottom-color: var(--accent);
}

.venue-card-address {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.venue-card-links {
  font-size: var(--text-sm);
}

.venue-card-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.venue-card-links a:hover,
.venue-card-links a:focus-visible {
  text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   This Week — day sections + compact event rows
----------------------------------------------------------------------------- */
.tw-weeknav {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.tw-weeknav .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.tw-weeknav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.tw-weeknav strong {
  color: var(--text-primary);
}

.tw-day {
  padding-top: var(--space-6);
  padding-bottom: var(--space-2);
}

.tw-day-heading {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--accent-soft);
}

.tw-event-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tw-event {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-3) var(--space-4);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
}

.tw-event-trivia { border-left-color: #4A6FA5; }
.tw-event-event { border-left-color: var(--text-muted); }
.tw-event-karaoke { border-left-color: #8B5CA8; }
.tw-event-openmic { border-left-color: #5B8C5A; }

.tw-event-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-family: var(--font-display);
}

.tw-event-cat {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
}

.tw-event-trivia .tw-event-cat { color: #4A6FA5; }
.tw-event-event .tw-event-cat { color: var(--text-muted); }
.tw-event-karaoke .tw-event-cat { color: #8B5CA8; }
.tw-event-openmic .tw-event-cat { color: #5B8C5A; }

.tw-event-time {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.tw-event-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.tw-event-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease);
}

.tw-event-title a:hover,
.tw-event-title a:focus-visible {
  border-bottom-color: var(--accent);
}

.tw-event-venue {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.tw-event-venue a {
  color: var(--text-secondary);
  text-decoration: none;
}

.tw-event-venue a:hover,
.tw-event-venue a:focus-visible {
  color: var(--accent);
}

.event-genre {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-style: italic;
  margin-top: var(--space-1);
}

/* Artist photo on /this-week/ cards. Adds a 96px column to the left
   of the existing meta column. Use class `tw-event-with-photo` on the
   <article> and place an <img class="tw-event-photo"> as the first child. */
.tw-event-with-photo {
  grid-template-columns: 96px 140px 1fr;
}

.tw-event-photo {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  /* Favor the top of the photo so faces stay in frame on tall portraits. */
  object-position: center 20%;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.40),
              0 1px 2px -1px rgba(0, 0, 0, 0.25);
  background-color: var(--surface-elevated);
  grid-column: 1;
  grid-row: 1 / span 2;
}

/* Empty placeholder when a music card has no artist photo on file. Holds the
   same column slot so every music card lines up across the list. */
.tw-event-photo-empty {
  background-color: var(--surface);
  box-shadow: none;
  border: 1px solid var(--border);
}

.tw-event-with-photo .tw-event-meta { grid-column: 2; grid-row: 1; }
.tw-event-with-photo .tw-event-title { grid-column: 3; grid-row: 1; }
.tw-event-with-photo .tw-event-venue { grid-column: 3; grid-row: 2; }
.tw-event-with-photo .event-genre { grid-column: 3; grid-row: 3; }

@media (max-width: 600px) {
  .tw-event {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  .tw-event-meta {
    flex-direction: row;
    align-items: baseline;
    gap: var(--space-2);
  }
  .tw-event-with-photo {
    grid-template-columns: 64px 1fr;
  }
  .tw-event-with-photo .tw-event-photo {
    width: 64px;
    height: 64px;
    grid-row: 1 / span 3;
  }
  .tw-event-with-photo .tw-event-meta { grid-column: 2; grid-row: 1; }
  .tw-event-with-photo .tw-event-title { grid-column: 2; grid-row: 2; }
  .tw-event-with-photo .tw-event-venue { grid-column: 2; grid-row: 3; }
  .tw-event-with-photo .event-genre { grid-column: 2; grid-row: 4; }
}

/* -----------------------------------------------------------------------------
   Value-prop tile
----------------------------------------------------------------------------- */
.vp {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.vp-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.vp-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.vp-body { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.5; }

/* -----------------------------------------------------------------------------
   FAQ
----------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  transition: background-color var(--duration-base) var(--ease),
              border-color var(--duration-base) var(--ease);
}

.faq-item[open] { border-color: var(--accent-soft); }

.faq-summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 48px;
}

.faq-summary::-webkit-details-marker { display: none; }

.faq-summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform var(--duration-base) var(--ease);
}

.faq-item[open] .faq-summary::after { content: '\2013'; }

.faq-body {
  padding: 0 var(--space-5) var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   Footer
----------------------------------------------------------------------------- */
.footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-6) 0;
  margin-top: var(--space-8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  row-gap: var(--space-4);
  column-gap: var(--space-4);
  text-align: center;
}

.footer-inner > p {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.footer-inner > .footer-links {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
}

.footer p { color: var(--text-muted); font-size: var(--text-sm); }
.footer p strong { color: var(--text-primary); font-weight: 600; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  list-style: none;
}

.footer-links a { color: var(--text-secondary); font-size: var(--text-sm); }
.footer-links a:hover { color: var(--accent); }

.footer-socials {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-inner > .footer-socials,
  .footer-inner > p,
  .footer-inner > .footer-links {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
  }
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background-color: transparent;
  transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.footer-social:hover,
.footer-social:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background-color: var(--surface-elevated);
}

.footer-social svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-icons .footer-social {
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.social-icons .footer-social:hover,
.social-icons .footer-social:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

/* -----------------------------------------------------------------------------
   Section heading
----------------------------------------------------------------------------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.section-head .kicker { color: var(--accent); }

.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

.section-head .more-link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--space-2);
}

@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .section-head > div { display: flex; flex-direction: column; gap: var(--space-2); }
  .section-head .more-link { margin-top: 0; }
}

/* -----------------------------------------------------------------------------
   Section spacing
----------------------------------------------------------------------------- */
.section { padding: var(--space-6) 0; }

@media (min-width: 768px) {
  .section { padding: var(--space-5) 0; }
}

/* -----------------------------------------------------------------------------
   Text-only block (no tile chrome) — used for editorial/about/value-prop copy
   Matches the container width of other sections.
----------------------------------------------------------------------------- */
.text-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.text-block .kicker { color: var(--accent); }

.text-block h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin: 0;
}

.text-block .body-lg { color: var(--text-secondary); margin: 0; }
.text-block .body-lg strong { color: var(--text-primary); font-weight: 600; }
.text-block .muted { margin: 0; }

.text-block a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-fast) var(--ease);
}
.text-block a:hover { border-bottom-color: var(--accent); }

.venue-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.venue-list li {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-secondary);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.venue-list li:last-child { border-bottom: none; }
.venue-list strong {
  color: var(--text-primary);
  font-weight: 600;
  margin-right: var(--space-2);
}

/* -----------------------------------------------------------------------------
   Archive tiles (clickable past-issue cards)
----------------------------------------------------------------------------- */
.archive-tile {
  text-decoration: none;
  color: var(--text-primary);
}
.archive-tile h3 {
  margin: var(--space-2) 0;
}
.archive-tile:hover h3,
.archive-tile:focus-visible h3 {
  color: var(--accent);
}

/* -----------------------------------------------------------------------------
   Reduced motion
----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
