:root {
  color-scheme: dark;
  --paper: #11101a;
  --paper-deep: #0c0c14;
  --surface: rgba(30, 28, 43, 0.72);
  --surface-hover: #26243a;
  --ink: #f6f3ff;
  --muted: #b6b1c6;
  --line: rgba(225, 217, 255, 0.13);
  --violet: #9b8cff;
  --violet-soft: #2d2948;
  --coral: #ff9b85;
  --mint: #a8dfc3;
  --danger: #ff9e9b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.27);
}

* { box-sizing: border-box; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 580px at 88% -8%, rgba(120, 88, 210, 0.30), transparent 63%),
    radial-gradient(720px 500px at 0 22%, rgba(255, 127, 112, 0.14), transparent 62%),
    var(--paper-deep);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 96px; }
.hero {
  position: relative;
  isolation: isolate;
  max-width: 100%;
  margin-bottom: 24px;
  padding: 28px 44px 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(125deg, rgba(45, 38, 80, 0.9), rgba(26, 25, 42, 0.62));
  box-shadow: var(--shadow);
}
.hero::before {
  position: absolute;
  z-index: -1;
  top: -140px;
  right: -100px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 177, 137, 0.85), rgba(154, 119, 255, 0.38) 40%, transparent 70%);
  content: "";
  filter: blur(3px);
}
.hero::after { position: absolute; z-index: -1; right: 45px; bottom: -75px; width: 210px; height: 150px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: ""; transform: rotate(-24deg); }
.wordmark { display: inline-block; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.065em; text-decoration: none; }
.eyebrow { margin: 31px 0 10px; color: var(--mint); font-size: .73rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 900px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.55rem, 5.2vw, 4.8rem); font-weight: 500; letter-spacing: -.065em; line-height: .98; text-wrap: balance; }
.lead { max-width: 700px; margin: 16px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.55; text-wrap: pretty; }
.hero-note { display: inline-flex; align-items: center; gap: 9px; margin: 18px 0 0; padding: 7px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #e4deff; background: rgba(17, 16, 29, .35); font-size: .78rem; font-weight: 650; }
.hero-note span { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(168,223,195,.13); }

.events-section { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: rgba(18, 18, 29, .68); box-shadow: 0 16px 42px rgba(0,0,0,.16); backdrop-filter: blur(16px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 500; letter-spacing: -.045em; }
.events-count, .updated-at { margin: 7px 0 0; color: var(--muted); font-size: .83rem; }
.updated-at { text-align: right; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.filters + .filters { margin-top: 11px; }
.filter-button, .city-filter-button, .source-filter-button { min-height: 38px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; color: #dcd7ee; background: rgba(255,255,255,.025); cursor: pointer; font: inherit; font-size: .86rem; font-weight: 650; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease; }
.filter-button:hover, .city-filter-button:hover, .source-filter-button:hover { border-color: rgba(187,172,255,.72); background: rgba(155,140,255,.12); transform: translateY(-1px); }
.filter-button[aria-pressed="true"], .city-filter-button[aria-pressed="true"], .source-filter-button[aria-pressed="true"] { border-color: transparent; color: #191526; background: linear-gradient(135deg, #b4a7ff, #ffb29e); box-shadow: 0 5px 16px rgba(133,112,240,.2); }
.filter-button:focus-visible, .city-filter-button:focus-visible, .source-filter-button:focus-visible, .event-link:focus-visible, .description-toggle:focus-visible, .wordmark:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.status { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.5; }
.status.error { color: var(--danger); }
.events-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.event-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); box-shadow: 0 10px 24px rgba(0,0,0,.12); transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.event-card:hover { border-color: rgba(183,168,255,.44); background: rgba(155,140,255,.09); box-shadow: 0 18px 32px rgba(0,0,0,.2); transform: translateY(-4px); }
.event-image { position: relative; display: grid; width: 100%; aspect-ratio: 1 / 1; place-items: center; overflow: hidden; color: #ddd8ee; background: linear-gradient(135deg, #3a315d, #7e566d); font-family: Georgia, "Times New Roman", serif; font-size: 2.4rem; font-weight: 600; }
.event-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 340ms ease; }
.event-card:hover .event-image img { transform: scale(1.055); }
.image-fallback { position: absolute; }
.event-image .date-block { position: absolute; z-index: 1; left: 11px; bottom: 11px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; color: #fff; background: rgba(15,13,25,.76); box-shadow: 0 4px 14px rgba(0,0,0,.22); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .73rem; font-weight: 800; letter-spacing: .02em; line-height: 1.15; text-transform: capitalize; backdrop-filter: blur(8px); }
.event-content { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 17px 17px 10px; }
.event-time { margin: 0 0 7px; color: var(--mint); font-size: .77rem; font-variant-numeric: tabular-nums; line-height: 1.4; }
h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.12; text-wrap: balance; }
.event-location { margin: 9px 0 0; color: #c7c0da; font-size: .83rem; line-height: 1.4; }
.description-wrap { margin-top: 11px; }
.event-description { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.5; text-wrap: pretty; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.event-description.is-collapsed { -webkit-line-clamp: 3; line-clamp: 3; }
.description-toggle { display: none; }
.event-links { display: flex; gap: 8px; padding: 0 17px 17px; }
.event-link { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; flex: 1; padding: 0 10px; border: 1px solid transparent; border-radius: 9px; color: #211b2d; background: linear-gradient(135deg, #b7a8ff, #ffb29d); box-shadow: 0 5px 14px rgba(123,98,222,.18); font-size: .78rem; font-weight: 800; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.event-link:hover { box-shadow: 0 8px 18px rgba(123,98,222,.32); transform: translateY(-1px); }
.secondary-link { border-color: rgba(190,178,255,.3); color: #dbd4f4; background: rgba(255,255,255,.04); box-shadow: none; }
.secondary-link:hover { background: var(--violet-soft); box-shadow: none; }

@media (max-width: 960px) {
  .events-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .page-shell { width: min(100% - 28px, 1080px); padding-top: 18px; }
  .hero { margin-bottom: 18px; padding: 30px 24px 34px; border-radius: 22px; }
  .hero::after { right: 10px; }
  .eyebrow { margin-top: 42px; }
  .events-section { padding: 22px 17px; border-radius: 20px; }
  .section-heading { align-items: start; flex-direction: column; gap: 4px; }
  .updated-at { text-align: left; }
}
@media (max-width: 560px) {
  .events-list { grid-template-columns: 1fr; gap: 14px; }
  .event-image { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
