:root {
  --accent: #464e98;
  --bg: #f6f6f8;
  --fg: #1a1a1f;
  --muted: #5b5d6b;
  --bar: #111114;
  --card: #ffffff;
  --row-alt: #f0f0f5;
  --line: #e2e2ea;
  --warn: #a4262c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #a5acf2;
    --bg: #121216;
    --fg: #ececf1;
    --muted: #a3a5b5;
    --card: #1c1c22;
    --row-alt: #22222a;
    --line: #2c2c35;
    --warn: #ff8a8f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 64rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

.masthead { background: var(--bar); color: #fff; padding: 1.25rem 0; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 2rem; letter-spacing: -0.01em; }
.tagline { margin: 0.25rem 0 0; color: #c9cbe0; }

main { padding-top: 1.25rem; padding-bottom: 2rem; }
h1 { font-size: 1.5rem; margin: 0 0 0.25rem; }
.muted, .count { color: var(--muted); }
.count { margin: 0; font-size: 0.9rem; }

.toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filters input, .filters select {
  font: inherit; color: var(--fg); background: var(--card);
  border: 1px solid var(--line); border-radius: 4px; padding: 0.35rem 0.5rem;
}
.filters input { min-width: 14rem; }

.venue-header { margin-bottom: 0.5rem; }
.venue-header p { margin: 0.25rem 0; }

.day-label {
  position: sticky; top: 0; z-index: 1;
  margin: 1.25rem 0 0; padding: 0.4rem 0;
  font-size: 1rem; background: var(--bg); border-bottom: 2px solid var(--accent);
}

.shows { width: 100%; border-collapse: collapse; table-layout: fixed; }
.shows tr { background: var(--card); }
.shows tr:nth-child(even) { background: var(--row-alt); }
.shows td { padding: 0.45rem 0.5rem; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.shows .time { width: 5.5rem; color: var(--muted); white-space: nowrap; }
.shows .bill a { font-weight: 600; text-decoration: none; color: var(--fg); }
.shows .bill a:hover { text-decoration: underline; }
.shows .supports { display: block; color: var(--muted); font-size: 0.9rem; }
.shows .venue { width: 10rem; }
.shows .details { width: 11rem; color: var(--muted); font-size: 0.9rem; }
.shows .tix { width: 4.5rem; text-align: right; }
.shows .label { color: var(--warn); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; }
.shows tr.is-cancelled .bill a { text-decoration: line-through; }

@media (max-width: 40rem) {
  .shows, .shows tbody, .shows tr { display: block; }
  .shows tr { display: grid; grid-template-columns: 4.5rem 1fr auto; padding: 0.4rem 0.25rem; border-bottom: 1px solid var(--line); }
  .shows td { display: block; border: 0; padding: 0.1rem 0.25rem; width: auto; }
  .shows .time { grid-row: 1 / span 3; }
  .shows .bill { grid-column: 2; }
  .shows .tix { grid-column: 3; grid-row: 1; }
  .shows .venue, .shows .details { grid-column: 2 / span 2; font-size: 0.9rem; }
  .filters input { min-width: 0; flex: 1; }
}

.footer { color: var(--muted); font-size: 0.875rem; padding-bottom: 2rem; }
