@font-face {
  font-family: Montserrat;
  src: url("/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  --top: #fdf6e3; --mid: #fbf8ef; --base: #faf8f5;
  --dark-top: #3e737b; --dark-mid: #2b414a; --dark-base: #0b0d0c;
  --ink: #171717; --secondary: #5e5a56; --panel: rgba(255,255,255,.36);
  --page-width: 430px;
  margin: 0; background: #f4f3f1; color: var(--ink);
  font: 400 .9375rem/1.3 Montserrat, -apple-system, sans-serif;
  overflow-wrap: anywhere;
}
body[data-theme="blue"] { --top: #f4faff; --mid: #b2dbf5; --base: #27619e; --dark-top: #172b46; --dark-mid: #163f67; --dark-base: #070f1e; }
body[data-theme="purple"] { --top: #fcf7ff; --mid: #d6baf0; --base: #6c3999; --dark-top: #2a193f; --dark-mid: #492468; --dark-base: #140a22; }
body[data-theme="red"] { --top: #fff7f4; --mid: #f4b8ac; --base: #bb352c; --dark-top: #411c20; --dark-mid: #752c2d; --dark-base: #230b10; }
body[data-theme="darkRed"] { --top: #fcf5f6; --mid: #d5a4ae; --base: #6c1b35; --dark-top: #30131e; --dark-mid: #4d192d; --dark-base: #18070f; }
body[data-theme="black"] { --top: #f5f4f3; --mid: #999595; --base: #171719; --dark-top: #1a191c; --dark-mid: #242327; --dark-base: #050506; }
body[data-theme="pink"] { --top: #fff6fb; --mid: #f6b8d8; --base: #b84683; --dark-top: #381d30; --dark-mid: #642b51; --dark-base: #1b0b19; }
body[data-theme="yellow"] { --top: #fffef1; --mid: #f4eba0; --base: #c5a321; --dark-top: #363018; --dark-mid: #52451d; --dark-base: #1b180b; }
body[data-theme="gold"] { --top: #fffaef; --mid: #eac98e; --base: #a96b24; --dark-top: #352619; --dark-mid: #62421f; --dark-base: #1b1209; }
body[data-theme="brown"] { --top: #fcf7f1; --mid: #cfb29d; --base: #704730; --dark-top: #2f231e; --dark-mid: #493326; --dark-base: #190f0b; }
body[data-theme="teal"] { --top: #f2fcf9; --mid: #a2dad2; --base: #236c6b; --dark-top: #162f32; --dark-mid: #1e4c4e; --dark-base: #09191c; }
body[data-theme="gray"] { --top: #f7f9fb; --mid: #bec9d2; --base: #5b6b7d; --dark-top: #282f38; --dark-mid: #3b4755; --dark-base: #121820; }
body[data-theme="green"] { --top: #ffffff; --mid: #d1f0db; --base: #73bf8c; --dark-top: #1b3023; --dark-mid: #2b5439; --dark-base: #09180d; }
body[data-theme="black"], body[data-theme="gray"] { --shade: rgba(0,0,0,.76); --ink: white; --secondary: #eee; }
@media (prefers-color-scheme: dark) {
  body { background: #121212; --ink: #fff; --secondary: #d1d1d1; --panel: rgba(35,35,35,.38); }
  body[data-theme] { --top: var(--dark-top); --mid: var(--dark-mid); --base: var(--dark-base); --shade: transparent; }
}
.phone, .unavailable { width: min(100%, var(--page-width)); min-height: 100vh; min-height: 100dvh; margin: auto; position: relative; isolation: isolate; }
.phone::before, .unavailable::before {
  content: ""; position: fixed; z-index: -1; inset: 0; width: min(100%, var(--page-width)); margin: auto;
  background: linear-gradient(var(--shade,transparent),var(--shade,transparent)),
    linear-gradient(180deg,var(--top),var(--mid) 56%,var(--base) 98%);
}
h1, h2, p { margin: 0; }
h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
h2, .section summary { font-size: 1.0625rem; font-weight: 600; }
a, button, summary { color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { border: none; background: none; padding: 0; }
a { text-decoration: none; }
:focus-visible { outline: 3px solid #25749b; outline-offset: 2px; }
header { padding-top: env(safe-area-inset-top); height: calc(65px + env(safe-area-inset-top)); display: grid; place-items: center; }
.visibility { border-radius: 99px; background: color-mix(in srgb, currentColor 12%, transparent); padding: 8px 16px; font-size: .75rem; font-weight: 600; }
.media { position: relative; width: 90%; margin: auto; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 12px; }
.gallery::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; aspect-ratio: 4/5; overflow: hidden; scroll-snap-align: start; }
.photo, .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.activity { height: 200px; display: grid; place-items: center; color: #fa9959; }
.slide .activity { height: 100%; }
.activity > * { width: 88px; height: 88px; object-fit: contain; }
.counter { position: absolute; top: 10px; right: 10px; color: white; font-size: .75rem; font-weight: 600; border-radius: 99px; background: #0009; padding: 7px 10px; }
.content { display: grid; gap: 16px; padding: 16px max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
.content > * { min-width: 0; }
.intro { display: grid; gap: 8px; }
.short { border-top: 1px solid #8884; padding: 12px 0 8px; margin-top: 8px; }
.glass { border: 1px solid rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(150,150,150,.1); background: var(--panel); }
.schedule { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 12px; }
.schedule a { flex: 1; min-width: 0; min-height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.schedule a span { color: var(--secondary); }
.venue { text-align: right; }
.host-row, .host, .actions, .attendance { display: flex; align-items: center; gap: 12px; }
.host-row, .attendance { justify-content: space-between; }
.host { min-width: 0; }
.avatar { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; position: relative; overflow: hidden; background: #d7dfdf; color: #42515a; font-weight: 600; }
.price { color: #fff; background: #8cd9a6; padding: 8px 12px; border-radius: 30px; font-size: 1.0625rem; text-align: center; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; height: 44px; }
.action svg { width: 24px; height: 24px; }
.interest { font-size: .75rem; font-weight: 600; }
.interest svg { width: 20px; }
.more { position: relative; }
.more summary { list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.menu { position: absolute; left: 0; top: 100%; z-index: 2; min-width: 150px; background: Canvas; color: CanvasText; box-shadow: 0 4px 24px #0002; border-radius: 14px; overflow: hidden; }
.menu > * { display: block; text-align: left; padding: 12px 16px; width: 100%; }
.menu > * + * { border-top: 1px solid #8884; }
.about, .section { padding-block: 8px; }
.long-text, .short { white-space: pre-line; }
.long-text { margin-top: 8px; font-size: 1.0625rem; }
.poll-option { display: block; border-radius: 12px; padding: 12px; margin-top: 8px; }
.note { color: var(--secondary); font-size: .75rem; margin-top: 8px; }
.event-link { color: #8053a4; font-size: 1.0625rem; text-decoration: underline; }
.attendance { border-radius: 16px; padding: 12px 16px; font-size: 1.0625rem; }
.count { padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.18); font-size: .9375rem; font-weight: 600; }
.map { height: 200px; position: relative; display: grid; place-items: center; background: #8882; color: var(--secondary); border-radius: 12px; overflow: hidden; }
.map svg { width: 30px; }
.map iframe, .map a { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map iframe { pointer-events: none; }
.event-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-100% + 3px));
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.22));
}
.map-search-link {
  position: absolute; top: 8px; right: 8px;
  display: flex; align-items: center; gap: 4px; padding: 4px 8px;
  border-radius: 12px; background: Canvas; color: CanvasText; font-size: .75rem;
}
.active { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
.join-bar { position: fixed; z-index: 3; bottom: 0; width: min(100%,var(--page-width)); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; }
.join { display: grid; place-items: center; min-height: 50px; border-radius: 999px; background: linear-gradient(135deg,#fa9959,#f27340); font-size: 1.0625rem; font-weight: 600; color: white; pointer-events: auto; }
dialog { max-width: min(90vw,400px); border: 0; border-radius: 16px; padding: 20px; color: CanvasText; background: Canvas; }
dialog::backdrop { background: #0008; }
dialog form { display: grid; gap: 15px; }
dialog input { width: 100%; font: inherit; padding: 8px; }
#viewer { padding: 0; background: #111; width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; }
#viewer img { width: 100%; height: 100%; object-fit: contain; }
#viewer button { position: absolute; top: max(16px,env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px; border-radius: 50%; background: #0009; color: white; font-size: 28px; }
#notice:not(:empty) { position: fixed; left: 50%; transform: translateX(-50%); z-index: 5; bottom: calc(86px + env(safe-area-inset-bottom)); background: #222; color: white; padding: 8px 16px; border-radius: 20px; }
.unavailable { display: grid; align-content: center; justify-items: center; text-align: center; gap: 16px; padding: 16px; }
.unavailable a { text-decoration: underline; }
.guests { display: flex; margin-left: auto; padding-left: 8px; }
.guests .avatar { flex: none; width: 34px; height: 34px; margin-left: -8px; border: 2px solid #fffc; font-size: .75rem; }
.event-footer {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 16px 12px 4px;
  border-radius: 16px;
  background: transparent;
}
.footer-logo { width: min(168px, 100%); height: auto; display: block; }
.footer-brand-name {
  /* Bring the name up into the transparent padding below the mark. */
  margin-top: -26px;
  padding-inline-start: .25em;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-shadow: 0 1px 3px #0005;
}
.event-footer nav { display: flex; justify-content: center; flex-wrap: wrap; column-gap: 10px; }
.event-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
.event-header { position: relative; }
.account-button {
  position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: 11px;
  min-height: 44px; padding: 0 16px; border-radius: 99px;
  font-size: .875rem; font-weight: 600;
}
.join-bar .join { width: 100%; }
.auth-dialog {
  width: min(356px, calc(100% - 32px)); max-width: none;
  padding: 26px 24px 20px; text-align: center; box-shadow: 0 12px 48px #0003;
}
.auth-dialog h2 { font-size: 1.35rem; margin: 4px 24px 22px; }
.auth-close { position: absolute; right: 4px; top: 4px; font-size: 24px; width: 44px; height: 44px; }
.auth-dialog [hidden] { display: none; }
#auth-options:not([hidden]), #auth-email:not([hidden]), #auth-profile:not([hidden]), #auth-account:not([hidden]) { display: grid; gap: 10px; }
.auth-option, .auth-primary {
  display: grid; place-items: center; width: 100%; min-height: 46px; border-radius: 12px;
  font-size: .9375rem; font-weight: 600;
}
.auth-option { border: 1px solid color-mix(in srgb, CanvasText 34%, transparent); }
.apple-option, .auth-primary { color: Canvas; background: CanvasText; }
.auth-link { justify-self: center; display: inline-grid; place-items: center; min-height: 44px; font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; }
#auth-email label, #auth-profile label { display: grid; gap: 5px; text-align: left; font-weight: 600; }
#auth-email input, #auth-profile input { width: 100%; min-height: 44px; border: 1px solid #8889; border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 1rem; }
#auth-message:not(:empty) { margin-top: 12px; font-size: .875rem; }
.auth-dialog button:disabled { opacity: .55; }
.profile-photo-preview { display: flex; align-items: center; gap: 12px; }
.profile-photo-preview img { object-fit: cover; border-radius: 50%; }
#auth-profile input[type=file] { min-width: 0; font-size: .875rem; }
#auth-profile small { font-weight: 400; }
