@font-face { font-family: InterVariable; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/inter.woff2') format('woff2'); }

:root {
  --night: #0b1d14;
  --ink: #111b15;
  --ink-soft: #2c3830;
  --muted: #56615a;
  --line: rgb(17 27 21 / 10%);
  --line-strong: rgb(17 27 21 / 18%);
  --well: #f4f7f4;
  --forest: #1c5a3a;
  --forest-hover: #144a2e;
  --forest-tint: #eaf4eb;
  --forest-tint-strong: #d9ebdb;
  --lime: #c8f170;
  --amber: #d48a24;
  --amber-tint: #fdf4e3;
  --amber-text: #7c4810;
  --red: #c4432f;
  --red-tint: #fdf0ed;
  --red-text: #952c1c;
  --focus: #2a7a4f;
  --column-gap: 48px;
  font-family: InterVariable, system-ui, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01', 'ss03';
  font-synthesis: none;
  color: var(--ink);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 1rem; line-height: 1.5rem; }
p, h1, h2, h3, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Heroicons micro: 16px wide, one line tall so they center on the first line of adjacent text. */
.icon { flex-shrink: 0; width: 16px; height: 1lh; }

/* Page frame: the night band behind the header, the sign-in ticket, and the events hero. */
.app-shell {
  isolation: isolate;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(34rem 26rem at 6% -8rem, rgb(200 241 112 / 12%), transparent 70%),
    radial-gradient(40rem 26rem at 52% -14rem, rgb(46 140 90 / 26%), transparent 70%),
    var(--night);
}
.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 20px; }
main { flex: 1; display: flex; flex-direction: column; }

.mode-notice { order: -1; background: var(--amber-tint); color: var(--amber-text); border-bottom: 1px solid rgb(124 72 16 / 16%); }
.notice-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-block: 10px; }
.notice-inner a { color: var(--amber-text); font-weight: 600; }

/* Header: the wordmark, and once signed in, who you are and a way out. */
.site-header { color: white; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; border-bottom: 1px solid rgb(255 255 255 / 8%); }
.wordmark { flex-shrink: 0; display: inline-flex; align-items: flex-start; gap: 3px; color: white; font-size: 1.25rem; line-height: 1.75rem; font-weight: 650; letter-spacing: -0.04em; text-decoration: none; }
.brand-dot { flex-shrink: 0; width: 7px; height: 7px; margin-block-start: 5px; border-radius: 50%; background: var(--lime); }
.site-header :focus-visible, .hero :focus-visible { outline-color: var(--lime); }
.account { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.account:empty { display: none; }
.account-name { display: flex; align-items: center; gap: 10px; min-width: 0; color: rgb(255 255 255 / 80%); font-weight: 500; }
/* Narrow screens keep the monogram; the name stays available to screen readers. */
.account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.monogram { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; outline: 1px solid rgb(0 0 0 / 5%); outline-offset: -1px; background: var(--lime); color: var(--night); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }

/* Sign-in ticket */
.signin { flex: 1; display: flex; flex-direction: column; align-items: center; padding-block: 32px 64px; }
.ticket {
  --tone-bg: var(--forest-tint);
  --tone-text: var(--forest);
  --tone-dot: #2f9a5e;
  width: 100%;
  max-width: 26rem;
  border-radius: 20px;
  color: var(--ink);
  /* An outer shadow never paints inside the box, so the notches stay clear. */
  box-shadow: 0 1px 2px rgb(0 0 0 / 20%), 0 24px 64px -16px rgb(0 0 0 / 55%);
}
.ticket[data-tone="warning"] { --tone-bg: var(--amber-tint); --tone-text: var(--amber-text); --tone-dot: var(--amber); }
/* The perforation's notches are cut out of both halves, so the page shows through them. */
.ticket-stub {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 14px 20px;
  border-bottom: 2px dashed rgb(17 27 21 / 16%);
  border-radius: 20px 20px 0 0;
  background: var(--tone-bg);
  color: var(--tone-text);
  mask:
    radial-gradient(circle 10px at left bottom, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 10px at right bottom, #0000 98%, #000) right / 51% 100% no-repeat;
}
.admit { display: flex; align-items: flex-start; gap: 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.admit .icon { fill: currentColor; }
.ticket-status { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.status-dot { flex-shrink: 0; display: flex; align-items: center; height: 1lh; }
.status-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tone-dot); }
.ticket-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 20px 28px;
  border-radius: 0 0 20px 20px;
  background: white;
  mask:
    radial-gradient(circle 10px at left top, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 10px at right top, #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket-header { display: flex; flex-direction: column; gap: 8px; }
.ticket-header h1 { font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ticket-header p { color: var(--muted); line-height: 1.75rem; }

/* Forms */
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 500; }
.input { width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: white; font-size: 1rem; line-height: 1.5rem; }
.input::placeholder { color: rgb(17 27 21 / 42%); }
.input:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }
.input:user-invalid, .input[aria-invalid="true"] { border-color: var(--red); }
.input:disabled { background: var(--well); color: var(--muted); }
/* The code field matches the phone field's width and height; only the digits are set apart. */
.code-input { font-size: 1.125rem; font-weight: 500; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
.form-actions { display: flex; flex-direction: column; gap: 16px; }
.nowrap { white-space: nowrap; }
.helper { max-width: 56ch; color: var(--muted); line-height: 1.75rem; }
.field-error { display: flex; align-items: flex-start; gap: 6px; color: var(--red-text); }
.field-error .icon { fill: var(--red); }

.chip { flex-shrink: 0; padding: 0 8px; border-radius: 999px; background: rgb(17 27 21 / 7%); color: var(--ink-soft); font-size: 0.875rem; line-height: 1.5rem; font-weight: 600; }
.chip[data-tone="pending"] { background: white; outline: 1px dashed var(--line-strong); outline-offset: -1px; color: var(--ink-soft); }

.callout { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--well); color: var(--ink-soft); line-height: 1.75rem; }
.callout .icon { fill: #87928b; }
.callout[data-tone="error"] { background: var(--red-tint); color: var(--red-text); }
.callout[data-tone="error"] .icon { fill: var(--red); }
.message p { min-width: 0; overflow-wrap: anywhere; }

/* Buttons: two sizes (lg 44→38px, sm 38→32px), one primary per screen. */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border: 1px solid transparent; border-radius: 10px; font-size: 1rem; line-height: 1.5rem; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn-sm { padding: 6px 12px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--forest); color: white; box-shadow: 0 1px 2px rgb(17 27 21 / 20%), inset 0 1px rgb(255 255 255 / 12%); }
.btn-primary:hover:not(:disabled) { background: var(--forest-hover); }
.btn-quiet { border-color: rgb(255 255 255 / 20%); background: transparent; color: white; }
.btn-quiet:hover:not(:disabled) { background: rgb(255 255 255 / 8%); }
.btn:disabled, .link-button:disabled { cursor: not-allowed; opacity: 0.5; box-shadow: none; }
.link-button { position: relative; align-self: flex-start; padding: 0; border: 0; background: none; color: var(--forest); font-weight: 500; text-align: left; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover:not(:disabled) { color: var(--forest-hover); text-decoration-thickness: 2px; }
/* Expand small controls to a 48px touch target on coarse pointers. */
.btn-sm::after, .link-button::after { content: ''; position: absolute; top: 50%; left: 50%; width: max(100%, 48px); height: max(100%, 48px); transform: translate(-50%, -50%); }

/* Events hero */
.hero { display: flex; flex-direction: column; gap: 24px; padding-block: 40px 48px; color: white; }
.intro-heading { display: flex; flex-direction: column; gap: 12px; }
.eyebrow { color: var(--lime); font-weight: 500; }
.hero h1 { max-width: 24ch; font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.intro-heading h1 { text-wrap: balance; }
.intro-copy { max-width: 48ch; color: rgb(255 255 255 / 72%); font-size: 1.125rem; line-height: 1.75rem; }
.rsvp-recovery { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: white; padding-block-end: 32px; }

/* Events */
.events-section { flex: 1; padding-block: 48px 72px; background: white; color: var(--ink); }
.events-inner { display: flex; flex-direction: column; gap: 32px; }
.section-heading { display: flex; flex-direction: column; gap: 8px; }
.section-heading h2 { font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.02em; }
.section-heading > p { max-width: 56ch; color: var(--muted); }
.section-heading > .progress { color: var(--ink-soft); font-weight: 500; }

.route-wrap { container-type: inline-size; }
.route { position: relative; display: grid; gap: 40px; }
.stop { position: relative; display: flex; padding-left: 36px; }
/* Stop markers sit on a dashed route line: vertical on narrow layouts, horizontal on wide ones. */
.stop::before { content: ''; position: absolute; left: 0; top: 4px; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: inset 0 0 0 2px var(--forest); }
.stop:not(:last-child)::after { content: ''; position: absolute; left: 7px; top: 28px; bottom: -36px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line-strong) 0 4px, transparent 4px 9px); }
.stop[data-state="going"]::before { background: var(--forest); box-shadow: 0 0 0 4px var(--lime); }
.stop[data-state="not-going"]::before { box-shadow: inset 0 0 0 2px var(--line-strong); }
.stop[data-state="ended"]::before { background: var(--well); box-shadow: inset 0 0 0 2px var(--line-strong); }
.event { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 36rem; }
/* The time keeps its line; the status chip moves below it before the range would wrap. */
.event-meta { order: -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 24px; }
.event-time { flex: 0 1 auto; min-width: 0; color: var(--forest); font-weight: 500; font-variant-numeric: tabular-nums; text-wrap: wrap; }
/* Each part of a range (day, start, end) wraps as a unit, and only if the whole range can't fit. */
.time-part { display: inline-block; }
.time-zone { color: var(--muted); }
.badge { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px 0 4px; border-radius: 999px; background: var(--lime); color: var(--night); font-size: 0.875rem; line-height: 1.5rem; font-weight: 600; }
.badge .icon { fill: var(--forest); }
.event h3 { font-size: 1.25rem; line-height: 1.75rem; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.event-description { flex: 1; max-width: 56ch; color: var(--muted); line-height: 1.75rem; }
.event-location { display: flex; align-items: flex-start; gap: 6px; color: var(--muted); }
.event-location .icon { fill: var(--forest); }
.event-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.rsvp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; width: 100%; max-width: 18rem; }
.rsvp-option { border-color: var(--line-strong); background: white; color: var(--ink); }
.rsvp-option:hover:not([aria-disabled="true"]) { background: var(--well); }
.rsvp-option[aria-pressed="true"] { padding-left: 6px; }
.rsvp-option[data-response="going"][aria-pressed="true"] { border-color: var(--forest); background: var(--lime); color: var(--night); }
.rsvp-option[data-response="going"] .icon { fill: var(--forest); }
.rsvp-option[data-response="not_going"][aria-pressed="true"] { border-color: var(--ink-soft); background: rgb(17 27 21 / 7%); }
.rsvp-option[data-response="not_going"] .icon { fill: var(--ink-soft); }
.rsvp-option[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.rsvp-option, #phone, #code { scroll-margin-top: 24px; }

/* One row of stops, so the route line always connects every marker. */
@container (min-width: 52rem) {
  .route:is([data-count="2"], [data-count="3"]) { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: var(--column-gap); }
  .route:is([data-count="2"], [data-count="3"])::before { content: ''; position: absolute; top: 11px; left: 8px; right: 0; height: 2px; background: repeating-linear-gradient(to right, var(--line-strong) 0 4px, transparent 4px 9px); mask-image: linear-gradient(to right, #000 80%, transparent); }
  .route:is([data-count="2"], [data-count="3"]) .stop { padding-left: 0; padding-top: 40px; }
  .route:is([data-count="2"], [data-count="3"]) .stop:not(:last-child)::after { content: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .status-dot[data-pulse]::before { animation: pulse 1.6s ease-out infinite; }
}
@keyframes pulse {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tone-dot) 55%, transparent); }
  to { box-shadow: 0 0 0 7px transparent; }
}

@media (pointer: fine) {
  .btn-sm::after, .link-button::after { content: none; }
}

@media (forced-colors: active) {
  .rsvp-option[aria-pressed="true"] { border: 2px solid Highlight; }
  .ticket-stub { border-bottom-color: CanvasText; }
}

@media (min-width: 640px) {
  body { font-size: 0.875rem; line-height: 1.25rem; }
  .container { padding-inline: 32px; }
  .header-inner { min-height: 72px; }
  .account-label { position: static; width: auto; height: auto; max-width: 16rem; clip-path: none; text-overflow: ellipsis; }
  .signin { padding-block: clamp(48px, 10vh, 112px) 96px; }
  .ticket-stub { padding-inline: 28px; }
  .ticket-body { padding: 28px 28px 32px; }
  .ticket-header p, .helper, .callout, .event-description { line-height: 1.5rem; }
  .input { padding: 8px 11px; font-size: 0.875rem; line-height: 1.25rem; }
  .code-input { font-size: 1rem; }
  .btn { padding: 8px 13px; font-size: 0.875rem; line-height: 1.25rem; }
  .btn-sm { padding: 5px 11px; }
  .rsvp-option[aria-pressed="true"] { padding-left: 5px; }
  .chip { padding-inline: 8px; font-size: 0.75rem; line-height: 1.25rem; }
  .badge { font-size: 0.75rem; line-height: 1.25rem; padding-block: 2px; }
  .hero { padding-block: 56px 64px; }
  .hero h1 { font-size: 3rem; line-height: 1; }
  .intro-copy { font-size: 1rem; line-height: 1.75rem; }
  .events-section { padding-block: 64px 96px; }
  .events-inner { gap: 40px; }
  .section-heading h2 { font-size: 1.875rem; line-height: 2.25rem; }
  .section-heading > p { line-height: 1.5rem; }
  .event h3 { font-size: 1.125rem; line-height: 1.75rem; }
}

@media (min-width: 1024px) {
  .hero { padding-block: 64px 72px; }
}
