@font-face {
  font-family: Tonight;
  src: url("/title.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #34344f;
  background: #f4f3fa;
  font-synthesis: none;
  --muted: #77758e;
  --accent: #626d9e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #9d9fce;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.topbar {
  height: 92px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid #dfdfeb;
  background: #f4f3faed;
}
.wordmark {
  font-family: Tonight, sans-serif;
  font-weight: 700;
  font-size: 37px;
  letter-spacing: -2px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.moon {
  font-family: Georgia, serif;
  color: #b49870;
  font-size: 35px;
  transform: rotate(-16deg);
}
.admin-label,
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--muted);
}
.admin-label {
  border-left: 1px solid #dbd9e8;
  padding-left: 22px;
}
.quiet {
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.topbar .quiet {
  margin-left: auto;
}
.catalog {
  padding: 42px 5vw 12px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}
h1 {
  font-family: Tonight, sans-serif;
  letter-spacing: -1.8px;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.06;
  margin: 12px 0;
}
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0 0;
}
.summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 3px;
}
.summary strong {
  font-size: 19px;
  color: #55516c;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff8f;
  border: 1px solid #e4e1ee;
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 40px;
}
.filter {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 165px;
}
.filter label,
label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
select,
input {
  border: 1px solid #dfdce9;
  background: #fff;
  color: #3d3b57;
  border-radius: 11px;
  min-height: 42px;
  padding: 0 13px;
}
select {
  padding-right: 34px;
}
.custom-range {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.custom-range[hidden] {
  display: none;
}
.timezone {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 14px;
}
.primary {
  background: #626d9e;
  color: white;
  border-radius: 11px;
  padding: 12px 20px;
  font-weight: 600;
  min-height: 42px;
}
.category {
  margin-bottom: 36px;
}
.category-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.category-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.category-emoji {
  font-size: 22px;
}
.category h2 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.45px;
  margin: 0;
}
.count {
  background: #e9e7f2;
  color: #827b98;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 10px;
}
.rail-controls {
  display: flex;
  gap: 7px;
}
.arrow {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #dedbe9;
  color: #716b85;
}
.rail {
  display: flex;
  gap: 17px;
  overflow-x: auto;
  padding: 2px 2px 13px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #d0ccdf transparent;
}
.event-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid #e1deeb;
  background: white;
  text-align: left;
  border-radius: 17px;
  padding: 0;
  box-shadow: 0 3px 8px #34344f04;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px #34344f0c;
}
.event-image {
  height: 151px;
  position: relative;
  background: #e5e3ee;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.no-image {
  background: linear-gradient(135deg, #e4e6f4, #eddfec);
  font-size: 42px;
}
.score {
  position: absolute;
  right: 10px;
  top: 10px;
  border-radius: 8px;
  padding: 5px 8px;
  background: #ffffffec;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 1px 6px #34344f13;
}
.score.unknown {
  font-weight: 500;
  font-size: 10px;
  color: #77758e;
}
.event-copy {
  padding: 16px;
}
.event-time {
  font-size: 10px;
  color: #8c7890;
  font-weight: 600;
}
.event-copy h3 {
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.15px;
  margin: 8px 0 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 41px;
}
.event-venue {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-price {
  font-size: 11px;
  margin: 10px 0 0;
  color: #5e5b75;
}
.load-more {
  flex: 0 0 135px;
  background: #eae7f3;
  border: 1px dashed #ccc6dd;
  border-radius: 17px;
  font-size: 12px;
  padding: 20px;
  color: #736b8b;
}
.load-more[hidden] {
  display: none;
}
.empty {
  padding: 65px 20px;
  text-align: center;
  color: var(--muted);
}
footer {
  padding: 18px 5vw 32px;
  color: #9690a6;
  font-size: 10px;
}
.error {
  color: #a4536a;
  font-size: 13px;
  line-height: 1.5;
}
.error:empty {
  display: none;
}
.skeleton {
  background: linear-gradient(100deg, #e8e5f0 30%, #f6f4fa 50%, #e8e5f0 70%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
  border-radius: 17px;
}
.skeleton-heading {
  width: 130px;
  height: 23px;
  margin-bottom: 18px;
}
.skeleton-card {
  height: 292px;
  flex: 0 0 240px;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
dialog {
  border: 0;
  border-radius: 24px;
  padding: 0;
  width: min(650px, calc(100vw - 24px));
  max-height: 90dvh;
  background: #faf9fd;
  color: inherit;
  box-shadow: 0 24px 80px #292b5045;
}
dialog::backdrop {
  background: #23233985;
  backdrop-filter: blur(5px);
}
.close {
  position: sticky;
  top: 12px;
  left: calc(100% - 48px);
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-bottom: -34px;
  background: #ffffffed;
  box-shadow: 0 2px 10px #24243c15;
}
.detail-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}
.detail-copy {
  padding: 30px;
}
.detail-copy h2 {
  font-family: Tonight, sans-serif;
  font-size: 30px;
  letter-spacing: -0.7px;
  line-height: 1.15;
  margin: 12px 0 18px;
}
.detail-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.description {
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-line;
  margin: 22px 0;
}
.assessment {
  background: #eeebf5;
  border: 1px solid #e2ddea;
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
}
.assessment h3,
.sources h3 {
  font-size: 14px;
  margin: 0 0 12px;
}
.assessment p {
  font-size: 12px;
  line-height: 1.65;
}
.assessment-type {
  color: #77708f;
}
.assessment-date {
  color: #9790a7;
  font-size: 10px !important;
}
.source-link {
  display: block;
  color: #626d9e;
  font-size: 12px;
  margin: 10px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.record-id {
  font-size: 9px;
  color: #a29aaa;
  margin-top: 30px;
  overflow-wrap: anywhere;
}
.detail-skeleton {
  height: 450px;
  margin: 20px;
}
.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 25% 20%, #dddff0, transparent 55%),
    radial-gradient(ellipse at 90% 90%, #ebd7de, transparent 55%), #eeecf5;
  overflow: hidden;
}
.login-panel {
  width: min(390px, calc(100vw - 48px));
  z-index: 1;
}
.login-panel .wordmark {
  margin-bottom: 60px;
}
.login-panel h1 {
  font-size: 52px;
  margin: 20px 0;
  line-height: 1.03;
}
.login-panel form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}
.login-panel input {
  min-height: 50px;
}
.login-panel .primary {
  display: flex;
  justify-content: space-between;
  min-height: 50px;
  margin-top: 2px;
}
.login-note {
  font-size: 10px;
  color: #9992aa;
  display: block;
  margin-top: 24px;
}
.login-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.login-orbit span {
  position: absolute;
  font-size: 46px;
  opacity: 0.5;
  filter: drop-shadow(0 8px 15px #5c56751a);
}
.login-orbit span:nth-child(1) {
  top: 19%;
  left: 13%;
  transform: rotate(-15deg);
}
.login-orbit span:nth-child(2) {
  top: 22%;
  right: 14%;
  transform: rotate(12deg);
}
.login-orbit span:nth-child(3) {
  bottom: 14%;
  left: 19%;
  transform: rotate(9deg);
}
.login-orbit span:nth-child(4) {
  bottom: 22%;
  right: 17%;
  transform: rotate(-12deg);
}
@media (max-width: 650px) {
  .topbar {
    height: 75px;
  }
  .wordmark {
    font-size: 30px;
  }
  .admin-label {
    font-size: 8px;
  }
  .catalog {
    padding-top: 29px;
  }
  .intro {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  .summary {
    text-align: left;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }
  .summary strong {
    font-size: 15px;
  }
  .summary span {
    font-size: 10px;
  }
  .toolbar {
    padding: 13px;
    gap: 10px;
    margin-bottom: 30px;
  }
  .filter {
    min-width: 0;
    flex: 1;
  }
  .custom-range {
    width: 100%;
  }
  .custom-range .filter {
    min-width: 120px;
  }
  .timezone {
    display: none;
  }
  .event-card {
    flex-basis: 215px;
  }
  .event-image {
    height: 141px;
  }
  .rail-controls {
    display: none;
  }
  .category h2 {
    font-size: 17px;
  }
  .detail-copy {
    padding: 24px;
  }
  .login-orbit {
    opacity: 0.35;
  }
  .login-orbit span:nth-child(1) {
    top: 6%;
    left: 4%;
  }
  .login-orbit span:nth-child(2) {
    top: 10%;
    right: 5%;
  }
  .login-orbit span:nth-child(3) {
    bottom: 8%;
    left: 5%;
  }
  .login-orbit span:nth-child(4) {
    bottom: 9%;
    right: 8%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.search-filter {
  flex: 1;
  min-width: 260px;
}
.search-filter input {
  width: 100%;
}
.search-filter input::placeholder {
  color: #a29bb2;
}
@media (max-width: 650px) {
  .search-filter {
    flex-basis: 100%;
    min-width: 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .category,
  .login-panel,
  dialog[open] {
    animation: arrive 0.18s ease-out both;
  }
  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
