:root {
  --slate: #061b31;
  --blurple: #533afd;
  --ink: #061b31;
  --muted: #425466;
  --paper: #f6f9fc;
  --white: #ffffff;
  --line: #e3e8ee;
  --line-strong: #c9d4e0;
  --shadow: 0 24px 48px -28px rgba(6, 27, 49, 0.28);
  --radius: 16px;
  --header: 4.5rem;
  --wrap: 72rem;
  --measure: 68ch;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.has-dock {
  padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blurple);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--blurple);
  outline-offset: 3px;
}

::selection {
  background: var(--blurple);
  color: var(--white);
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 40;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 249, 252, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  min-height: var(--header);
  padding-block: 0.85rem;
}

.community-home {
  flex: 1 1 12rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-decoration: none;
}

.community-home:hover {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.72;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.wordmark {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.wordmark img {
  display: block;
  height: 18px;
  width: auto;
}

.wordmark:hover {
  opacity: 0.72;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.011em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--blurple);
  color: var(--white);
}

.button-primary:hover {
  color: var(--white);
  text-decoration: none;
  filter: brightness(0.94);
}

.button-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  color: var(--ink);
  text-decoration: none;
  border-color: var(--ink);
}

.button-primary:focus-visible,
.dock .button:focus-visible,
.footer a:focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 3px var(--blurple);
}

.header-cta {
  display: none;
  min-height: 2.75rem;
  padding-inline: 1rem;
}

.hero {
  padding: 2.75rem 0 1rem;
}

.hero > .wrap {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  display: contents;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--blurple);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.011em;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 4.25rem);
  text-wrap: balance;
}

.lede {
  max-width: var(--measure);
  margin: 1.25rem 0 0;
  font-size: 1.2rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-media {
  order: 4;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.facts {
  display: grid;
  gap: 0.85rem;
  order: 2;
  margin: 0.5rem 0 0;
  padding: 0;
}

.fact {
  margin: 0;
  padding: 1.2rem 1.25rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 3px 0 var(--blurple);
}

.fact dt {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.fact dd {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.fact dd p,
.fact address {
  margin: 0;
  font-style: normal;
}

.when-time {
  display: block;
  margin-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.when-zone {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
}

.fact a {
  font-weight: 600;
}

.map-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.notes {
  order: 3;
  margin-top: 0.25rem;
}

.notes h2 {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.notes ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.notes li {
  margin: 0;
  padding: 0.95rem 1.15rem;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  font-weight: 500;
  letter-spacing: -0.011em;
  line-height: 1.4;
}

.notes li:first-child {
  border-top: 0;
}

.section {
  padding: 4.25rem 0 0;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

.section-intro {
  max-width: var(--measure);
  margin: -0.25rem 0 1.5rem;
  color: var(--muted);
}

.prose {
  max-width: 70ch;
}

.prose p {
  margin: 0 0 1.1rem;
  text-wrap: pretty;
}

.agenda-list {
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.slot {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 1.35rem 1.25rem;
  border-top: 1px solid var(--line);
}

.slot:first-child {
  border-top: 0;
}

.slot-time {
  margin: 0;
  color: var(--blurple);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.slot-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.slot h3 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.25rem;
}

.slot p:last-child {
  margin: 0;
}

.slot .detail + .detail {
  margin-top: 0.65rem;
}

.rsvp {
  margin-top: 4.25rem;
  padding-bottom: 4.5rem;
}

.rsvp-panel {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rsvp-panel h2,
.rsvp-panel p {
  margin: 0;
}

.rsvp-panel p {
  color: var(--muted);
  max-width: 40ch;
}

.site-footer {
  background: var(--slate);
  color: #e6ebf1;
  padding: 3rem 0 2.5rem;
}

.footer-name {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 1.25rem 0 1.75rem;
}

.footer-nav a {
  color: var(--white);
  font-weight: 600;
}

.footer .wordmark img {
  height: 20px;
}

.legal {
  max-width: 62ch;
  margin: 1.5rem 0 0;
  color: #d5dde6;
  font-size: 0.875rem;
  line-height: 1.55;
}

.dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 25;
  padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(246, 249, 252, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.dock .button {
  width: 100%;
}

@media (min-width: 720px) {
  .wrap {
    width: min(100% - 4rem, var(--wrap));
  }

  .header-cta,
  .community-home {
    display: inline-flex;
  }

  .community-home {
    font-size: 1.125rem;
  }

  .notes ul {
    grid-template-columns: 1fr 1fr;
  }

  .notes li:nth-child(-n + 2) {
    border-top: 0;
  }

  .notes li:nth-child(odd) {
    box-shadow: inset -1px 0 0 var(--line);
  }

  .notes li:last-child {
    grid-column: 1 / -1;
    box-shadow: none;
  }

  .slot {
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: 0.35rem 2rem;
    padding: 1.6rem 2rem;
    align-items: start;
  }

  .slot-time {
    padding-top: 0.15rem;
  }

  .rsvp-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 2rem 2.25rem;
  }

  .rsvp-panel .button {
    justify-self: end;
  }

  .dock {
    display: none;
  }

  body.has-dock {
    padding-bottom: 0;
  }
}

@media (min-width: 960px) {
  .hero {
    padding-top: 4rem;
  }

  .hero > .wrap {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    column-gap: 3.5rem;
    row-gap: 0;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .hero-media {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .facts {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 0.9fr 1.25fr 0.85fr;
    gap: 1rem;
    margin-top: 2.75rem;
  }

  .notes {
    grid-column: 1 / -1;
    grid-row: 3;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button-primary:hover {
    filter: none;
    background: #4328f0;
  }
}

@media print {
  .site-header,
  .dock,
  .actions,
  .header-cta,
  .rsvp .button,
  .map-link {
    display: none;
  }

  body,
  body.has-dock {
    padding: 0;
    background: white;
  }

  .site-footer {
    background: white;
    color: black;
  }

  .footer-name,
  .footer-nav a,
  .legal {
    color: black;
  }

  .agenda-list,
  .fact,
  .notes li,
  .rsvp-panel,
  .hero-media img {
    box-shadow: none;
  }
}
