:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #a3a3a3;
  --soft: #d4d4d4;
  --line: #1f1f1f;
  --line-2: #333333;
  --tile: #141414;
  --accent: #ff6a47;
  --radius: 6px;
  --wrap: 1320px;
  --gutter: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Archivo, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--soft); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; padding: 10px 14px; background: var(--fg); color: var(--bg); border-radius: var(--radius); z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small-text { font-size: 13px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: rgba(0, 0, 0, 0.92); backdrop-filter: saturate(140%) blur(8px); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding-top: 10px; padding-bottom: 10px; }
.wordmark { font-stretch: 125%; font-weight: 800; font-size: 21px; letter-spacing: 0.01em; }
.wordmark.small { font-size: 18px; }
.main-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { display: inline-flex; align-items: center; height: 44px; padding: 0 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.main-nav a[aria-current='page'] { color: var(--fg); font-weight: 600; }
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.city-menu { position: relative; }
.city-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.city-menu summary::-webkit-details-marker { display: none; }
.city-menu[open] summary { border-color: var(--fg); }
.city-menu ul { position: absolute; right: 0; top: 52px; min-width: 200px; margin: 0; padding: 6px; list-style: none; background: #0d0d0d; border: 1px solid var(--line-2); border-radius: var(--radius); z-index: 6; }
.city-menu li a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 4px; font-weight: 600; }
.city-menu li a:hover, .city-menu li a[aria-current='true'] { background: #1a1a1a; color: var(--fg); }

.search { display: flex; align-items: center; height: 44px; border: 1px solid var(--line-2); border-radius: 999px; padding-left: 16px; }
.search:focus-within { border-color: var(--fg); }
.search input { width: 180px; background: transparent; border: 0; color: var(--fg); font: 400 15px Archivo, sans-serif; outline: none; }
.search input::placeholder { color: #8a8a8a; }
.search button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 42px; border: 0; background: transparent; color: var(--fg); cursor: pointer; border-radius: 999px; }

/* hero */
.hero { padding-top: 56px; padding-bottom: 8px; }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.hero h1 { margin: 0; font-stretch: 125%; font-weight: 800; font-size: clamp(40px, 5.6vw, 78px); line-height: 0.96; letter-spacing: -0.025em; max-width: 14ch; }
.h1-city { color: var(--muted); }
.lede { margin: 0 0 6px; max-width: 360px; color: var(--muted); }
.status-line { margin: 14px 0 0; }

.chips { display: flex; align-items: center; gap: 8px; overflow-x: auto; margin-top: 36px; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips-when { margin-top: 10px; }
.chips.small { margin-top: 20px; flex-wrap: wrap; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; color: var(--fg); white-space: nowrap; }
.chip:hover { border-color: #5c5c5c; color: var(--fg); }
.chip[aria-current='true'] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chips-when .chip { height: 36px; font-size: 13px; color: var(--soft); }
.chips-when .chip[aria-current='true'] { color: var(--bg); }

/* sections */
.section { padding-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section h2, .section-head h2 { margin: 0 0 20px; font-stretch: 112%; font-weight: 800; font-size: 26px; letter-spacing: -0.01em; }
.section-head h2 { margin: 0; }
.link { font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }

/* cards */
.rail { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.rail .card { flex: 0 0 calc((100% - 32px) / 3); min-width: 280px; scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 16px; }
.card { position: relative; min-width: 0; }
.card-link { display: flex; flex-direction: column; gap: 12px; color: var(--fg); }
.card-link:hover { color: var(--fg); }
.card-link:hover img { transform: scale(1.02); }
.img { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--tile); }
.img.r11 { aspect-ratio: 1 / 1; }
.img.r45 { aspect-ratio: 4 / 5; }
.img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease-out; }
.noimg { display: flex; align-items: flex-end; padding: 16px; background: linear-gradient(160deg, #1c1c1c 0%, #0b0b0b 100%); }
.noimg-text { font-stretch: 125%; font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -0.01em; color: #e6e6e6; overflow-wrap: anywhere; }
.badges { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 4px 8px; border-radius: 4px; background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 700; }
.badge.outline { background: transparent; color: var(--fg); border: 1px solid var(--line-2); }
.card-body { display: flex; flex-direction: column; gap: 2px; }
.date { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--accent); }
.title { font-size: 17px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.venue { font-size: 14px; color: var(--muted); }
.meta { font-size: 14px; margin-top: 4px; }
.card-feature .date { font-size: 13px; }
.card-feature .title { font-stretch: 105%; font-size: 22px; line-height: 1.15; }
.card-feature .venue, .card-feature .meta { font-size: 15px; }
.save { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: var(--fg); cursor: pointer; }
.save[aria-pressed='true'] svg { fill: var(--accent); stroke: var(--accent); }

/* nights */
.night { padding-top: 8px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.night:first-of-type { border-top: 0; }
.night-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 0 20px; }
.night-head h3 { margin: 0; font-stretch: 112%; font-weight: 800; font-size: 22px; }
.night-head h3 .muted { font-weight: 600; font-size: 16px; margin-left: 6px; }
.count { font-size: 14px; }
.more { display: inline-flex; align-items: center; margin-top: 24px; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.btn, .btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 15px Archivo, sans-serif; cursor: pointer; }
.btn { background: var(--fg); color: var(--bg); border: 0; }
.btn:hover { background: var(--soft); color: var(--bg); }
.btn-outline { background: transparent; color: var(--fg); border: 1px solid var(--line-2); }
.btn-outline:hover { border-color: #6b6b6b; color: var(--fg); }
.load-more { margin-top: 8px; }
.empty { padding: 48px 0; color: var(--muted); }

/* cities */
.cities { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.city-tile { position: relative; display: block; height: 260px; border-radius: var(--radius); overflow: hidden; background: var(--tile); }
.city-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.82) 100%); }
.city-tile-text { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }
.city-name { font-stretch: 125%; font-weight: 800; font-size: 30px; line-height: 1; }

/* event page */
.event { padding-top: 28px; }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 600; }
.event-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; margin-top: 12px; align-items: start; }
.event-media img { display: block; width: 100%; border-radius: var(--radius); background: var(--tile); }
.big-noimg { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.big-noimg .noimg-text { font-size: 44px; }
.event-info h1 { margin: 6px 0 10px; font-stretch: 118%; font-weight: 800; font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.event-info .date { font-size: 14px; }
.event-venue { margin: 0; font-size: 18px; font-weight: 600; }
.event-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.event-badges:empty { display: none; }
.tickets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.h-small { margin: 32px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); text-transform: none; }
.lineup { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 18px; font-weight: 600; }
.about { color: var(--soft); max-width: 62ch; }
.about p { margin: 0 0 12px; }
.pick { margin: 24px 0 0; padding: 14px 16px; border-left: 2px solid var(--accent); background: #0b0b0b; color: var(--soft); }
.save-wide { margin-top: 28px; }
.save-wide[aria-pressed='true'] svg { fill: var(--accent); stroke: var(--accent); }

/* footer */
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 32px; padding-bottom: 48px; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.footer-row nav a { padding: 10px 0; color: var(--muted); }
.footer-row .small-text { max-width: 420px; }

@media (max-width: 900px) {
  .event-grid { grid-template-columns: 1fr; gap: 28px; }
  .event-media { max-width: 520px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-header { position: static; }
  /* Wordmark and city on one row, search below, nav last. */
  .header-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .header-tools { display: contents; }
  .wordmark { grid-column: 1; grid-row: 1; }
  .city-menu { grid-column: 2; grid-row: 1; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .main-nav { grid-column: 1 / -1; grid-row: 3; margin: 0 -12px; }
  .search input { flex: 1; width: auto; min-width: 0; font-size: 16px; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .chips { margin-top: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .rail .card { flex-basis: 78%; min-width: 0; }
  .title { font-size: 15px; }
  .card-feature .title { font-size: 19px; }
  .venue, .meta { font-size: 13px; }
  .save { width: 40px; height: 40px; top: 6px; right: 6px; }
  .noimg-text { font-size: 18px; }
  .section { padding-top: 40px; }
  .city-tile { height: 200px; }
}

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