:root {
  --background: #ffffff;
  --text: #171717;
  --muted: #666666;
  --border: #dddddd;
  --surface: #f7f7f7;
  color-scheme: light;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
}

.page {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.site-header {
  margin-bottom: 48px;
}

h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.02em;
}

input,
select,
button {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.query-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--text);
  padding: 15px 16px;
  font-size: 17px;
  outline: none;
}

input::placeholder {
  color: #888888;
}

input:focus,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.query-row button {
  border: 1px solid var(--text);
  border-radius: 8px;
  padding: 0 22px;
  background: var(--text);
  color: var(--background);
  font-weight: 650;
}

.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

select,
.secondary {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 10px;
  background: var(--background);
  color: var(--muted);
  font-size: 14px;
}

.secondary.active {
  background: var(--surface);
  color: var(--text);
}

#status {
  min-height: 20px;
  margin: 28px 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.event {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.event-time {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 14px;
}

.event h2 {
  margin: 0 0 7px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -.015em;
}

.event p {
  margin: 5px 0;
  line-height: 1.5;
}

.venue {
  color: var(--text);
  font-size: 15px;
}

.description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.tag {
  color: var(--muted);
  font-size: 13px;
}

.tag + .tag::before {
  margin-right: 6px;
  color: #aaaaaa;
  content: "·";
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.actions a,
.actions button {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.actions a:hover,
.actions button:hover {
  text-decoration: underline;
}

.empty {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .page {
    padding: 24px 18px 64px;
  }

  .site-header {
    margin-bottom: 32px;
  }

  .query-row {
    grid-template-columns: 1fr;
  }

  .query-row button {
    min-height: 48px;
  }
}
