@import url("https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600&family=Space+Grotesk:wght@700&display=swap");

:root {
  color-scheme: light;
  --paper: #f4f0e6;
  --content: #fff;
  --surface: #fffef9;
  --ink: #132c2c;
  --muted: #4f6161;
  --link: #2d5bb7;
  --on-ink: #f4f0e6;
  --border: rgba(19, 44, 44, 0.22);
  --display: "Space Grotesk", sans-serif;
  --body: "Public Sans", sans-serif;
  --page-max-width: 1440px;
  --page-gutter: 64px;
  --header-height: 72px;
  --card-padding: 24px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-18: 72px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --prose-size: 22px;
  --prose-line: 34px;
  --prose-max-width: 800px;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--paper);
}
body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/27px var(--body);
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  transform: translateY(-150%);
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--on-ink);
}
.skip-link:focus {
  transform: none;
}

.site-header {
  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: center;
  background: var(--paper);
}
.header-inner {
  display: flex;
  width: min(100%, var(--page-max-width));
  height: 100%;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
  padding: var(--space-4) var(--page-gutter);
  border-radius: var(--radius-md);
}
.wordmark {
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  text-decoration: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: 15px;
  line-height: 22px;
}
.site-nav a {
  text-decoration: none;
}
.nav-disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.content {
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
  background: var(--content);
}
.page-inner {
  width: min(100%, var(--page-max-width));
  margin-inline: auto;
}
.home-inner {
  display: flex;
  min-height: 811px;
  flex-direction: column;
  gap: 0;
  padding: var(--space-16) var(--page-gutter);
}
.hero {
  display: flex;
  width: min(980px, 100%);
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
  margin-bottom: var(--space-14);
}
.metadata {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-transform: uppercase;
}
.display-heading,
.page-heading,
.section-heading,
.detail-heading {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
}
.display-heading {
  max-width: 980px;
  font-size: 72px;
  letter-spacing: -1.2px;
  line-height: 76px;
}
.lead {
  width: min(720px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 34px;
}
.actions,
.filters {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.filters {
  gap: var(--space-2);
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--on-ink);
  font: 500 15px/18px var(--body);
  text-decoration: none;
}
.button:hover {
  filter: brightness(1.15);
}
.button:disabled {
  cursor: not-allowed;
  filter: none;
  opacity: 0.45;
}
.section-heading {
  font-size: 32px;
  letter-spacing: -0.2px;
  line-height: 41px;
}
.home-inner > .section-heading {
  margin-bottom: var(--space-6);
}
.event-group-heading {
  margin: 0;
}

.event-group {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: var(--space-9);
}

.event-list {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: var(--space-4);
  list-style: none;
}
.empty-state {
  display: flex;
  width: 100%;
  min-height: 104px;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--card-padding);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.empty-state h3,
.empty-state p {
  margin: 0;
}
.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}
.empty-state p {
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
}
.event-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--card-padding);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.card-heading a {
  text-decoration: none;
}
.card-heading a:hover {
  color: var(--link);
}
.event-card p {
  margin: 0;
}
.card-heading {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
}
.card-copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
}
.card-footer {
  display: flex;
  width: 100%;
  align-items: center;
  gap: var(--space-3);
}
.attendee-stack {
  display: inline-flex;
  align-items: center;
  isolation: isolate;
}
.attendee-avatar,
.attendee-overflow {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
  border: 2px solid var(--surface);
  border-radius: 50%;
}
.attendee-avatar:first-child {
  margin-left: 0;
}
.attendee-avatar {
  background: var(--surface);
  transition: translate 120ms ease;
}
.attendee-avatar:hover,
.attendee-avatar:focus-visible {
  z-index: 1;
  translate: 0 -2px;
}
.attendee-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.attendee-overflow {
  background: var(--ink);
  color: var(--on-ink);
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  text-decoration: none;
}
.attendee-stack-empty {
  display: none;
}

.events-inner {
  display: flex;
  min-height: 722px;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-9);
  padding: var(--space-16) var(--page-gutter) var(--space-18);
}
.about-inner {
  display: flex;
  min-height: 722px;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
  padding: var(--space-16) var(--page-gutter) var(--space-18);
}
.about-inner > .section-heading {
  margin-top: var(--space-6);
}
.about-copy {
  width: min(var(--prose-max-width), 100%);
  font-size: var(--prose-size);
  line-height: var(--prose-line);
}
.about-copy p {
  margin: 0;
}
.about-copy p + p {
  margin-top: var(--prose-line);
}
.about-copy a {
  color: var(--link);
}
.page-heading,
.detail-heading {
  font-size: 56px;
  letter-spacing: -0.7px;
  line-height: 64px;
}
.detail-inner {
  display: flex;
  min-height: 702px;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-7);
  padding: var(--space-12) var(--page-gutter) var(--space-18);
}
.event-when {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 27px;
}
.event-information {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 800px) 448px;
  align-items: start;
  gap: var(--space-16);
  padding-top: var(--space-8);
}
.event-description {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}
.event-description p {
  margin: 0;
}
.event-copy {
  font-size: 22px;
  line-height: 34px;
}
.event-copy p + p {
  margin-top: 34px;
}
.attendance-count {
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
}
.attendance-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
.attendance-empty {
  width: 100%;
}

.rsvp-panel {
  display: flex;
  width: 448px;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: var(--space-7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.rsvp-panel h2,
.rsvp-panel p {
  margin: 0;
}
.rsvp-panel h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
}
.rsvp-panel p {
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
}
.mobile-only {
  display: none;
}

@media (max-width: 700px) {
  :root {
    --page-gutter: 20px;
    --header-height: 64px;
    --prose-size: 17px;
    --prose-line: 27px;
  }

  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: initial;
  }
  .site-header {
    height: var(--header-height);
  }
  .header-inner {
    padding: var(--space-3) var(--page-gutter);
  }
  .wordmark {
    font-size: 17px;
    font-weight: 400;
    line-height: 27px;
  }
  .site-nav {
    gap: var(--space-4);
  }
  .site-nav a {
    font-size: 14px;
    line-height: 20px;
  }
  .site-nav .nav-disabled {
    display: none;
  }
  .content {
    min-height: calc(100vh - var(--header-height));
  }
  .home-inner,
  .events-inner,
  .detail-inner,
  .about-inner {
    width: 100%;
    padding-inline: var(--page-gutter);
  }
  .home-inner {
    min-height: 528px;
    gap: 0;
    padding-top: var(--space-8);
    padding-bottom: var(--space-10);
  }
  .hero {
    gap: var(--space-5);
    margin-bottom: var(--space-8);
  }
  .home-inner > .section-heading {
    margin-bottom: var(--space-5);
  }
  .display-heading {
    width: 100%;
    font-size: 46px;
    letter-spacing: -0.6px;
    line-height: 49px;
  }
  .lead {
    font-size: 17px;
    line-height: 27px;
  }
  .actions .button:not(:first-child),
  .home-content > .section-heading {
    display: none;
  }
  .event-card {
    padding: var(--card-padding);
  }
  .events-inner,
  .about-inner {
    min-height: calc(100vh - var(--header-height));
    gap: var(--space-6);
    padding-top: var(--space-10);
    padding-bottom: var(--space-12);
  }
  .event-group {
    gap: var(--space-6);
  }
  .page-heading {
    font-size: 46px;
    letter-spacing: -0.6px;
    line-height: 49px;
  }
  .filters {
    margin-bottom: 8px;
  }
  .detail-inner {
    min-height: 649px;
    gap: var(--space-6);
    padding-top: var(--space-8);
    padding-bottom: var(--space-12);
  }
  .detail-heading {
    width: 100%;
    font-size: 32px;
    letter-spacing: -0.2px;
    line-height: 41px;
  }
  .back-link {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    text-transform: uppercase;
  }
  .event-information {
    display: flex;
    padding-top: var(--space-2);
    flex-direction: column;
    gap: var(--space-6);
  }
  .event-description {
    gap: var(--space-5);
  }
  .event-copy {
    font-size: 17px;
    line-height: 27px;
  }
  .event-copy p:not(:first-child),
  .event-description .attendance-count,
  .rsvp-panel > h2,
  .rsvp-panel > .rsvp-help,
  .rsvp-panel .cant-go {
    display: none;
  }
  .rsvp-panel {
    width: 100%;
    gap: var(--space-3);
    padding: var(--space-5);
  }
  .rsvp-panel .mobile-count {
    display: block;
    color: var(--ink);
    font-size: 22px;
    line-height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
