@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light dark;
  --canvas: light-dark(#f8f4eb, #201a1b);
  --paper: light-dark(#fffcf6, #2d2426);
  --ink: light-dark(#2e2425, #f8ede4);
  --muted: light-dark(#6a5855, #c9b5ac);
  --line: light-dark(#e8ded1, #483b3d);
  --accent: light-dark(#923f35, #ffa686);
  --on-accent: light-dark(#fff8ee, #2c1813);
  --rose: light-dark(#f7e7dd, #47302e);
  --sage: light-dark(#e6ebd8, #344033);
  --gold: light-dark(#f1e8ce, #433722);
  --lilac: light-dark(#eee5f0, #3f3148);
  --hero: light-dark(#602f38, #542b37);
  --heading: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  font: 400 15px/1.45 'DM Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.08; }
h1 { font-size: clamp(33px, 6vw, 52px); letter-spacing: -.055em; overflow-wrap: anywhere; }
h2 { font-size: 23px; letter-spacing: -.035em; overflow-wrap: anywhere; }
h3 { font-size: 17px; letter-spacing: -.02em; overflow-wrap: anywhere; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .button, nav a { touch-action: manipulation; }
button { cursor: pointer; }
button[disabled] { cursor: wait; opacity: .6; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
.skip { position: absolute; z-index: 2; top: 4px; left: 5px; padding: 10px; background: var(--paper); }
.skip:not(:focus) { clip-path: inset(50%); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar, .main { max-width: 1100px; margin-inline: auto; padding-inline: 30px; }
.bar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 24px/1 var(--heading); letter-spacing: -.05em; text-decoration: none; }
.mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--on-accent); background: var(--accent); }
.mark::after { content: ''; width: 18px; height: 15px; border: 2px solid currentColor; border-bottom-width: 3px; border-radius: 65% 65% 12% 12% / 85% 85% 15% 15%; transform: rotate(-8deg); }
nav { display: flex; gap: 5px; }
.site-header nav { margin-inline-start: auto; }
.account-link, .access-links a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.account-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 9px; }
nav a { min-height: 44px; display: grid; place-items: center; padding: 0 13px; border-radius: 9px; color: var(--muted); font-weight: 700; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { background: var(--rose); color: var(--accent); }
.main { padding-top: 30px; padding-bottom: 42px; }
.heading, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.heading { margin-bottom: 22px; flex-wrap: wrap; }
.heading > div { min-width: 0; }
.date-line, .quiet { color: var(--muted); font-size: 14px; }
.date-line { font-weight: 700; margin-bottom: 4px; }
.flow > * + * { margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.button, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 700; text-align: center;
}
.button:hover, button:hover { background: var(--rose); }
.primary { border-color: transparent; background: var(--accent); color: var(--on-accent); }
.primary:hover { background: color-mix(in srgb, var(--accent) 90%, var(--ink)); color: var(--on-accent); }
.secondary { border-color: transparent; background: transparent; color: var(--accent); }
.button[aria-current="page"], button[aria-pressed="true"] { border-color: var(--accent); background: var(--rose); color: var(--accent); }
.panel { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.home-grid, .columns { display: grid; grid-template-columns: minmax(0, 1.26fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.home-grid { grid-template-areas: "hero poll" "hero tools" "upcoming tools"; grid-template-rows: auto 47px auto; }
.hero { grid-area: hero; align-self: stretch; position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: center; min-height: 230px; padding: 23px; border-radius: 17px; background: var(--hero); color: #fff4e2; }
.hero-copy { position: relative; max-width: 100%; }
.hero h2 { font-size: clamp(28px, 5vw, 42px); letter-spacing: -.052em; }
.hero .quiet { color: #f3d4c6; }
.hero .hero-cta { background: #fff4e2; border-color: transparent; color: #4d2630; }
.hero .hero-cta:hover { background: #f9d5bb; }
.hero :focus-visible { outline-color: #fff4e2; }
.cave-contours { position: absolute; z-index: -1; right: -34px; bottom: -101px; width: min(72%, 372px); aspect-ratio: 1; transform: rotate(-13deg); pointer-events: none; }
.cave-contours i { position: absolute; inset: var(--inset); border: 1px solid rgb(255 210 184 / .37); border-radius: 53% 47% 24% 20% / 58% 59% 39% 42%; background: rgb(255 177 143 / .04); }
.poll-home { grid-area: poll; }
.upcoming { grid-area: upcoming; }
.drawer { grid-area: tools; }
.tickets { display: grid; gap: 7px; list-style: none; padding: 0; margin-top: 9px; }
.ticket { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 56px; padding: 0 12px 0 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); text-decoration: none; }
.ticket:hover { background: var(--canvas); border-color: var(--accent); }
.ticket time { align-self: stretch; display: grid; align-content: center; border-right: 1px dashed color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 9px 0 0 9px; background: var(--rose); font-size: 12px; text-align: center; line-height: 1.12; }
.ticket time b { font: 700 22px/1 var(--heading); font-variant-numeric: tabular-nums; }
.tickets li:nth-child(3n+2) time { background: var(--lilac); }
.tickets li:nth-child(3n+3) time { background: var(--sage); }
.ticket .event-copy { display: grid; gap: 1px; padding-block: 5px; overflow-wrap: anywhere; }
.arrow { color: var(--accent); }
.tray { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 1px; margin-top: 12px; background: var(--line); border-radius: 12px; }
.tray a { display: grid; grid-template-columns: 1fr auto; gap: 11px 6px; min-width: 0; min-height: 89px; padding: 10px 12px; background: var(--canvas); text-decoration: none; font-weight: 700; }
.tray a:nth-child(1) { border-start-start-radius: 11px; }
.tray a:nth-child(2) { border-start-end-radius: 11px; }
.tray a:nth-last-child(2):nth-child(odd) { border-end-start-radius: 11px; }
.tray a:nth-last-child(1):nth-child(even) { border-end-end-radius: 11px; }
.tray a:nth-last-child(1):nth-child(odd) { grid-column: 1 / -1; border-end-start-radius: 11px; border-end-end-radius: 11px; }
.tray a:hover, .tray a[aria-current="page"] { background: var(--rose); }
.tray a:focus-visible { outline-offset: -3px; }
.tray a span:last-child { grid-column: 1/-1; align-self: end; overflow-wrap: anywhere; }
.glyph { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 7px; background: var(--rose); font-weight: 700; }
.tray a:nth-child(4n+1) .glyph { background: var(--sage); }
.tray a:nth-child(4n+3) .glyph { background: var(--gold); }
.tray a:nth-child(4n+4) .glyph { background: var(--lilac); }
.poll-home h3 { margin: 8px 0 5px; font-size: 23px; }
.poll-home .button { margin-top: 13px; }
.ballot { float: right; margin: 0 0 8px 8px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--rose); color: var(--accent); font-size: 20px; }
.notice:not(:empty) { margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.notice[data-error] { color: var(--accent); }
.form, .checklist { display: grid; gap: 12px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
label { display: grid; gap: 5px; min-width: 0; font-weight: 700; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--paper); color: var(--ink); font-size: 16px; }
textarea { min-height: 110px; resize: vertical; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.poll-option { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 54px; border-radius: 8px; background: var(--canvas); padding: 9px; }
.poll-option:has(:checked) { background: var(--rose); box-shadow: inset 0 0 0 1px var(--accent); }
.poll-option time, .poll-option small { display: block; }
.poll-option small { font-weight: 500; }
.poll-option .count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.plain-list { list-style: none; padding: 0; }
.plain-list > li + li { border-top: 1px solid var(--line); }
.plain-list > li { padding: 9px 0; }
.plain-list .line-item { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.line-item > div { min-width: 0; overflow-wrap: anywhere; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.calendar-grid .weekday { text-align: center; color: var(--muted); font-size: 12px; padding-block: 6px; }
.calendar-grid .day { min-width: 0; min-height: 44px; display: grid; align-content: center; justify-items: center; gap: 3px; border-radius: 7px; text-decoration: none; }
.day:hover { background: var(--rose); }
.day[aria-current="date"] { box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
.day[data-selected="true"] { background: var(--accent); color: var(--on-accent); }
.day-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.day-dot.empty { visibility: hidden; }
output { display: block; color: var(--accent); font-weight: 700; overflow-wrap: anywhere; }
dialog { width: min(420px, calc(100% - 28px)); max-height: 90vh; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgb(28 16 18 / .5); }
dialog form { display: grid; gap: 12px; }
#copy-status:empty { display: none; }
.access-body { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; }
.access-card { width: min(100%, 440px); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.access-masthead { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; padding: 24px; min-height: 90px; background: var(--hero); color: #fff4e2; }
.access-masthead .mark { color: #fff4e2; background: transparent; border: 1px solid #c38981; }
.access-masthead .cave-contours { width: 180px; right: -48px; bottom: -90px; }
.access-content { display: grid; gap: 16px; padding: clamp(20px, 5vw, 32px); overflow-wrap: anywhere; }
.access-content h1 { font-size: clamp(30px, 5vw, 40px); }
.access-content .button { justify-self: start; }
.access-content details { border-block: 1px solid var(--line); }
.access-content summary { padding-block: 12px; cursor: pointer; font-weight: 700; }
.access-content details p { padding-bottom: 12px; }
.access-links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: 14px; }
.access-links a { display: inline-flex; align-items: center; min-height: 44px; }
.recovery-steps { margin: 0; padding-inline-start: 1.4em; }
.recovery-steps li + li { margin-top: 8px; }
[data-member-screen] [hidden], #member-status:empty { display: none; }
#member-component { min-width: 0; }
#member-component .cl-rootBox, #member-component .cl-cardBox { width: 100%; max-width: 100%; }
#member-component .cl-cardBox { border: 0; border-radius: 0; box-shadow: none; }
#member-component .cl-card { padding: 2px; background: var(--paper); }
#member-status { color: var(--muted); }
@media (max-width: 680px) {
  .bar, .main { padding-inline: 14px; }
  .bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; padding-block: 8px; }
  .bar .account-link { grid-row: 1; grid-column: 2; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; margin-inline-start: 0; }
  nav { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
  nav a { padding-inline: 3px; font-size: 14px; }
  .main { padding-top: 18px; }
  .heading { margin-bottom: 15px; }
  .home-grid, .columns { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .home-grid { grid-template-areas: "hero" "poll" "upcoming" "tools"; grid-template-rows: auto; }
  .hero { min-height: 173px; padding: 16px; }
  .panel { padding: 13px; }
  .ticket { grid-template-columns: 45px minmax(0,1fr) auto; gap: 8px; min-height: 52px; }
}
