/* Edmonton After Dark — dark, editorial, nightlife guide.
   Original identity. Mobile-first (≈390px), scales to tablet/desktop. */

:root {
  --bg: #0a0a0b;
  --surface: #131315;
  --surface-2: #1a1a1d;
  --line: #26262a;
  --text: #f5f5f7;
  --text-2: #a6a6ad;
  --text-3: #6e6e76;
  --accent: #e50914;   /* electric red */
  --alt: #c026d3;      /* magenta — underground */
  --free: #4ade80;     /* free green */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- masthead ---------- */
.masthead {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 16px 8px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.brand {
  margin: 0;
  font-size: clamp(40px, 11vw, 72px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.brand .accent { color: var(--accent); }
.subtitle {
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.meta {
  margin: 12px 0 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.intro {
  margin: 18px 0 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

/* ---------- filter controls ---------- */
.controls {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(var(--bg) 78%, rgba(10, 10, 11, 0));
  padding: 16px 0 8px;
}
.chip-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding: 4px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.chip.opt.active { background: var(--alt); border-color: var(--alt); }
.search-row { padding: 4px 0; }
#search {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  padding: 13px 16px;
  border-radius: 999px;
  outline: none;
}
#search:focus { border-color: var(--accent); }
#search::placeholder { color: var(--text-3); }

/* ---------- sections ---------- */
.section { padding: 30px 0 8px; }
.section-title {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.section-title .kicker {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.section-title.alt .kicker { color: var(--alt); }

/* ---------- feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.card.alt { border-top: 3px solid var(--alt); }
.card .media {
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
}
.card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.card:hover .media img { transform: scale(1.04); }
.card-body { padding: 16px; }
.card-title {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.card-title a { text-decoration: none; color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-sub {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}
.card-sub .when { color: var(--text); font-weight: 700; }
.card-sub .sep { color: var(--text-3); }
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}
.tag {
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}
.price {
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.price.free { color: var(--free); text-transform: uppercase; }
.price.muted { color: var(--text-3); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.cta {
  display: block;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background .15s ease;
  min-height: 46px; /* comfortable touch target */
}
.cta:hover { background: #c40a13; }
.card.alt .cta { background: var(--alt); }
.card.alt .cta:hover { background: #9f1da8; }

/* ---------- all-events list ---------- */
.day-list { display: flex; flex-direction: column; gap: 20px; }
.day-head {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--line);
}
.row {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-areas: "time name" "time meta";
  column-gap: 10px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid #1a1a1d;
}
.time {
  grid-area: time;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.row-name {
  grid-area: name;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.row-name a { text-decoration: none; color: var(--text); }
.row-name a:hover { color: var(--accent); }
.row-meta {
  grid-area: meta;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.4;
}
.row-meta .sep { color: var(--text-3); }
.row-meta .free-txt { color: var(--free); font-weight: 700; }
.row-cta {
  color: var(--accent);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  margin-left: 4px;
  white-space: nowrap;
}
.row-cta:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.footer {
  max-width: 1180px;
  margin: 40px auto 0;
  padding: 24px 16px 48px;
  border-top: 1px solid var(--line);
}
.footer-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-sub { margin: 0; color: var(--text-3); font-size: 12px; }

/* ---------- hidden / filtered ---------- */
[hidden] { display: none !important; }
.no-matches {
  color: var(--text-3);
  font-size: 14px;
  padding: 20px 0;
}

/* ---------- focus (accessibility) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- tablet ---------- */
@media (min-width: 640px) {
  .wrap, .masthead, .footer { padding-left: 24px; padding-right: 24px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 72px 1fr; }
}

/* ---------- desktop ---------- */
@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .section-title { font-size: 30px; }
  #coming-up .cards { grid-template-columns: repeat(2, 1fr); }
  #coming-up .card:first-child { grid-column: span 2; }
  .controls { display: flex; flex-direction: column; gap: 2px; }
  .chip-row { overflow-x: visible; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card:hover .media img { transform: none; }
}
