:root {
  --ink: #343943;
  --slate: #555c67;
  --blue: #668ca3;
  --blue-dark: #496f87;
  --mauve: #976780;
  --mauve-dark: #765065;
  --taupe: #b4a296;
  --cream: #fbf8f5;
  --paper: #ffffff;
  --line: rgba(52, 57, 67, 0.14);
  --shadow: 0 24px 70px rgba(52, 57, 67, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 85% 0%, rgba(151, 103, 128, 0.12), transparent 34rem),
    radial-gradient(circle at 0% 32%, rgba(102, 140, 163, 0.13), transparent 28rem),
    var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(102, 140, 163, 0.48);
  outline-offset: 3px;
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 4;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  backdrop-filter: blur(16px);
}

.site-header .shell {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(176px, 22vw, 240px);
  height: auto;
}

.nav-link {
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-link:hover {
  color: var(--mauve);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--mauve);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8vw, 7.3rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.86;
}

.display em,
.section-title em {
  color: var(--mauve);
  font-weight: 400;
}

.lead {
  max-width: 650px;
  margin: 1.6rem 0 0;
  color: var(--slate);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.35;
}

.hero {
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4.5rem, 9vw, 8rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(270px, 0.72fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(102, 140, 163, 0.9), rgba(151, 103, 128, 0.8));
  box-shadow: var(--shadow);
}

.hero-mark::before,
.hero-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
}

.hero-mark::before {
  inset: 8%;
}

.hero-mark::after {
  inset: 18%;
}

.hero-mark span {
  position: relative;
  z-index: 1;
  max-width: 13ch;
  color: white;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4vw, 2.8rem);
  font-style: italic;
  line-height: 1.05;
  text-align: center;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-soft {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.section-title {
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.event-card {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: minmax(270px, 0.78fr) minmax(0, 1.22fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.event-card-media {
  min-height: 470px;
  background: #e8e2df;
}

.event-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.event-card-body {
  padding: clamp(2rem, 5vw, 4.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status {
  align-self: flex-start;
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(151, 103, 128, 0.28);
  border-radius: 999px;
  color: var(--mauve-dark);
  background: rgba(151, 103, 128, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-card h3 {
  margin: 1.25rem 0 0.6rem;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.event-card-copy {
  margin: 0;
  color: var(--slate);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
}

.event-facts {
  margin: 1.6rem 0 0;
  display: grid;
  gap: 0;
}

.event-facts div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.event-facts dt {
  color: var(--mauve);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-facts dd {
  margin: 0;
  color: var(--ink);
}

.button {
  align-self: flex-start;
  display: inline-flex;
  min-height: 48px;
  margin-top: 1.8rem;
  padding: 0.8rem 1.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue-dark);
  border-radius: 999px;
  color: white;
  background: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(73, 111, 135, 0.22);
}

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

.site-footer {
  padding: 2rem 0;
  color: var(--slate);
  font-size: 0.78rem;
  border-top: 1px solid var(--line);
}

.site-footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* Event registration page */
.event-main {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0;
}

.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.event-heading {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.event-heading em {
  color: var(--mauve);
}

.event-intro {
  margin: 0;
  color: var(--slate);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
}

.detail-list {
  margin: 1.8rem 0;
  display: grid;
}

.detail-list .row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-list .key {
  color: var(--mauve);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.program-note {
  margin: 1.5rem 0;
  padding: 1.2rem;
  border-left: 3px solid var(--blue);
  color: var(--slate);
  background: rgba(102, 140, 163, 0.07);
  line-height: 1.6;
}

.poster-link {
  display: block;
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}

.poster-link img {
  display: block;
  width: 100%;
}

.poster-caption {
  margin: 0.65rem 0 0;
  color: var(--slate);
  font-size: 0.75rem;
  text-align: center;
}

.panel {
  position: sticky;
  top: 1.5rem;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.15rem;
  font-weight: 500;
}

.panel-sub {
  margin: 0.45rem 0 1.25rem;
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.5;
}

.closed-banner,
.notice {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(151, 103, 128, 0.3);
  border-radius: 12px;
  color: var(--mauve-dark);
  background: rgba(151, 103, 128, 0.08);
  font-size: 0.88rem;
  line-height: 1.55;
}

.notice {
  display: none;
  margin-bottom: 1rem;
}

.notice.show {
  display: block;
}

.notice.error {
  color: #842d42;
  border-color: rgba(132, 45, 66, 0.28);
  background: rgba(132, 45, 66, 0.07);
}

.notice ul {
  margin: 0.45rem 0 0 1.15rem;
  padding: 0;
}

.form-section {
  margin-top: 1.35rem;
}

.form-label {
  display: block;
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.38rem;
  margin-bottom: 0.9rem;
}

.field label {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

.field input:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 140, 163, 0.13);
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.option {
  position: relative;
  display: block;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  cursor: pointer;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-title,
.option-meta {
  display: block;
}

.option-title {
  font-size: 0.88rem;
  font-weight: 700;
}

.option-meta {
  margin-top: 0.25rem;
  color: var(--slate);
  font-size: 0.76rem;
  line-height: 1.4;
}

.option:hover,
.option:has(input:checked) {
  border-color: var(--mauve);
  background: rgba(151, 103, 128, 0.07);
}

.option:has(input:focus-visible) {
  outline: 3px solid rgba(102, 140, 163, 0.42);
  outline-offset: 3px;
}

.billing-note {
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(102, 140, 163, 0.05);
  font-size: 0.83rem;
  line-height: 1.5;
}

.total {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
}

.total span:first-child {
  color: var(--slate);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.total strong {
  color: var(--mauve);
  font-family: var(--serif);
  font-size: 1.45rem;
}

.submit {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.submit:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.fine-print {
  margin: 0.75rem 0 0;
  color: var(--slate);
  font-size: 0.74rem;
  line-height: 1.5;
}

.member-success {
  text-align: center;
}

.member-success h2 {
  margin-bottom: 0.6rem;
}

.member-success > p {
  color: var(--slate);
  line-height: 1.6;
}

.member-success-summary {
  margin: 1.3rem 0;
  border-top: 1px solid var(--line);
}

.member-success-summary div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.member-success-summary span {
  color: var(--slate);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-success-summary strong {
  text-align: right;
}

/* Payment return page */
.success-main {
  min-height: calc(100vh - 172px);
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
}

.success-card {
  width: min(100%, 570px);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
  text-align: center;
}

.success-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--mauve);
  border-radius: 50%;
  color: var(--mauve);
  font-family: var(--serif);
  font-size: 2rem;
}

.success-card h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
}

.success-card > p {
  color: var(--slate);
  line-height: 1.6;
}

.summary {
  margin: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.summary-row span:first-child {
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-row strong {
  text-align: right;
}

.spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 1.2rem;
  border: 3px solid rgba(102, 140, 163, 0.18);
  border-top-color: var(--blue-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Private event roster */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.roster-body {
  padding: clamp(1rem, 4vw, 2.5rem);
}

.roster-shell {
  width: min(1500px, 100%);
  margin-inline: auto;
}

.roster-gate {
  width: min(100%, 410px);
  margin: 8vh auto;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
  text-align: center;
}

.roster-gate > img {
  width: 210px;
  height: auto;
}

.roster-gate h1,
.roster-heading h1 {
  margin: 1.25rem 0 0.4rem;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
}

.roster-gate h1 em,
.roster-heading h1 em {
  color: var(--mauve);
}

.roster-gate p,
.roster-heading p {
  color: var(--slate);
  line-height: 1.5;
}

.roster-gate form {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.65rem;
  text-align: left;
}

.roster-gate label {
  font-size: 0.76rem;
  font-weight: 700;
}

.roster-gate input,
.roster-toolbar input {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: white;
}

.roster-gate .button {
  width: 100%;
  margin-top: 0.25rem;
}

.roster-error {
  min-height: 1.25rem;
  margin: 0 !important;
  color: #842d42 !important;
  font-size: 0.8rem;
}

.roster-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.roster-heading .eyebrow {
  margin-bottom: 0.35rem;
}

.roster-heading h1 {
  margin-top: 0;
}

.roster-heading p {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
}

.roster-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.roster-stats > div {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.roster-stats strong,
.roster-stats span {
  display: block;
}

.roster-stats strong {
  color: var(--mauve);
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
}

.roster-stats span {
  color: var(--slate);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.roster-toolbar {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.roster-toolbar input {
  min-width: 180px;
  flex: 1;
}

.roster-button {
  min-height: 46px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-transform: uppercase;
}

.roster-button:hover {
  border-color: var(--blue);
}

.roster-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 12px 34px rgba(52, 57, 67, 0.08);
}

.roster-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 0.82rem;
}

.roster-table th,
.roster-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.roster-table th {
  color: var(--slate);
  background: #f4f1ee;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.roster-table tr:last-child td {
  border-bottom: 0;
}

.roster-empty {
  padding: 2rem !important;
  color: var(--slate);
  text-align: center !important;
}

.roster-pill {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.roster-pill.paid {
  color: #315f4b;
  background: rgba(74, 133, 103, 0.14);
}

.roster-pill.member {
  color: var(--blue-dark);
  background: rgba(102, 140, 163, 0.14);
}

.roster-pill.pending {
  color: var(--mauve-dark);
  background: rgba(151, 103, 128, 0.12);
}

@media (max-width: 860px) {
  .hero-grid,
  .event-card,
  .event-layout {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    width: min(72vw, 420px);
    margin-inline: auto;
  }

  .event-card-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .event-card-media img {
    object-position: center 28%;
  }

  .panel {
    position: static;
  }

  .roster-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roster-toolbar {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .site-header .shell {
    min-height: 78px;
  }

  .nav-link {
    font-size: 0.7rem;
  }

  .display {
    font-size: clamp(3.2rem, 18vw, 5.2rem);
  }

  .two-col,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .shell {
    flex-direction: column;
    text-align: center;
  }

  .roster-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .roster-stats {
    grid-template-columns: 1fr;
  }
}

@media print {
  .roster-body {
    padding: 0;
    color: black;
    background: white;
  }

  .roster-toolbar,
  .roster-heading .nav-link {
    display: none !important;
  }

  .roster-stats > div,
  .roster-table-wrap {
    box-shadow: none;
  }

  .roster-table {
    color: black;
    white-space: normal;
    font-size: 9pt;
  }

  .roster-table th {
    color: black;
    background: #eee;
  }
}
