*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

:root {
  --font-sans: 'Courier Prime', Georgia, serif;
  --font-mono: 'Courier Prime', ui-monospace, monospace;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: black;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

header,
main,
footer {
  width: 100%;
  max-width: 720px;
  padding: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:hover {
  opacity: 0.75;
}

p {
  max-width: 65ch;
}

form > div {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

input,
textarea {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

textarea {
  resize: vertical;
  min-height: 8rem;
}

button:not(.venue-trigger):not(.modal-close):not(.description-toggle),
input[type="submit"] {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
}

button:not(.venue-trigger):not(.modal-close):not(.description-toggle):hover,
input[type="submit"]:hover {
  opacity: 0.75;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  text-align: left;
  padding: 0.5rem 1rem 0.5rem 0;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

th {
  font-weight: 700;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

tr.past td {
  text-decoration: line-through;
  opacity: 0.45;
}

tr.has-description-open td {
  border-bottom: none;
}

.muted {
  opacity: 0.65;
  font-size: 0.875rem;
}

.description-toggle {
  all: unset;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
}

.description-toggle:hover {
  opacity: 0.75;
}

.description-row td {
  padding-top: 0;
  opacity: 0.65;
  font-size: 0.875rem;
}

.venue-trigger,
.modal-close {
  all: unset;
  cursor: pointer;
}

.venue-trigger {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
}

.venue-trigger:hover,
.modal-close:hover {
  opacity: 0.75;
}

#venue-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

#venue-modal[hidden] {
  display: none;
}

#venue-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

#venue-modal-panel {
  position: relative;
  background: black;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 2rem;
  max-width: 380px;
  width: calc(100% - 3rem);
  max-height: 80vh;
  overflow-y: auto;
}

#venue-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

#venue-modal-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

#venue-modal-room {
  opacity: 0.65;
  margin-bottom: 0.75rem;
}

#venue-modal-address {
  margin-bottom: 0.75rem;
}

#venue-modal-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

#venue-modal-socials {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

code, pre {
  font-family: var(--font-mono);
  font-variation-settings: 'MONO' 1;
}
