:root {
  color-scheme: dark;
  --page: #101211;
  --text: #f4f5f2;
  --muted: #989e99;
  --line: rgba(255,255,255,.13);
  --mint: #86f2d5;
}

* { box-sizing: border-box; }

html { background: var(--page); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 8%, rgba(74,100,88,.14), transparent 30rem),
    var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  width: min(1160px, calc(100% - 44px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.brand, .viewer-link { color: var(--text); text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 720; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(134,242,213,.55); border-radius: 9px; color: var(--mint); font-size: 14px; }
.experiment-badge { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.viewer-link { margin-left: auto; color: var(--muted); font-size: 13px; }

main {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
  padding: 86px 0 72px;
}

.hero { max-width: 760px; }
h1 { margin: 0; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.18); font-size: clamp(58px, 7.2vw, 104px); line-height: .92; letter-spacing: -.07em; font-weight: 760; }

.location-picker { position: relative; isolation: isolate; margin-top: 58px; }

.selected-style-route {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.selected-style-route[hidden] { display: none; }
.selected-style-route line {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2;
  stroke-linecap: square;
  vector-effect: non-scaling-stroke;
}
.selected-style-route .selected-style-trunk { transition: stroke-dashoffset .08s linear; }
.selected-style-route .selected-style-branch { transition: stroke-dashoffset .52s cubic-bezier(.42,0,.2,1); }

.place-choices {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px,5vw,70px);
}

.place-choice {
  min-height: 52px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #6f7570;
  background: transparent;
  font-size: clamp(30px,4vw,52px);
  font-weight: 680;
  letter-spacing: -.045em;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}

.place-choice:hover, .place-choice:focus-visible { color: var(--text); border-bottom-color: var(--mint); }
.place-choice[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--mint); }

.style-picker {
  --route-origin: 120px;
  --route-run: 118px;
  margin-top: -2px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.style-picker[hidden] { display: none; }
.style-route {
  min-height: 72px;
  display: flex;
  align-items: flex-end;
  margin-left: var(--route-origin);
  color: var(--mint);
}
.style-route-line {
  position: relative;
  width: var(--route-run);
  height: 72px;
  flex: 0 0 auto;
}
.style-route-line::before,
.style-route-line::after {
  content: "";
  position: absolute;
  background: var(--mint);
  transform-origin: left top;
}
.style-route-line::before {
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: left top;
}
.style-route-line::after {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 0 0 0 13px;
  transform: scaleX(0);
}
.style-picker.is-opening .style-route-line::before {
  animation: style-route-draw-vertical .7s cubic-bezier(.42,0,.2,1) 100ms both;
}
.style-picker.is-opening .style-route-line::after {
  animation: style-route-draw-horizontal .85s cubic-bezier(.42,0,.2,1) .78s both;
}
.style-route-label {
  margin: 0 0 -15px -2px;
  padding-left: 14px;
  font-size: clamp(28px,3.5vw,46px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--mint);
  opacity: 0;
  transform: translateY(7px);
}
.style-picker.is-opening .style-route-label {
  animation: style-label-reveal .9s ease-in-out 1.58s both;
}
.style-choices {
  margin: 43px 0 0 calc(var(--route-origin) + var(--route-run));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
}
.style-choice {
  max-width: min(360px,calc(100vw - var(--route-origin) - var(--route-run) - 44px));
  padding: 0;
  border: 0;
  color: #5f6560;
  background: transparent;
  font-size: clamp(24px,3.2vw,42px);
  font-weight: 680;
  line-height: 1.05;
  letter-spacing: -.04em;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: color .22s ease, opacity .72s ease, transform .72s ease;
  transition-delay: 0ms, var(--style-delay, 0ms), var(--style-delay, 0ms);
}
.style-choice.is-visible { opacity: 1; transform: translateY(0); }
.style-choice:hover, .style-choice:focus-visible { color: #bfc4bf; }
.style-choice[aria-pressed="true"] { color: #fff; }
.solo-style-group { display: contents; }
.solo-styles-toggle { display: inline-flex; align-items: center; gap: 12px; }
.solo-styles-toggle span {
  color: var(--mint);
  font-size: .7em;
  font-weight: 500;
  transition: transform .45s ease;
}
.solo-styles-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.solo-styles-toggle.has-selection { color: #fff; }
.solo-style-options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin: -3px 0 6px 24px;
  padding: 7px 0 5px 22px;
  border-left: 1px solid rgba(134,242,213,.28);
}
.solo-style-options[hidden] { display: none; }
.solo-style-choice {
  padding: 0;
  border: 0;
  color: #6f7570;
  background: transparent;
  font-size: clamp(19px,2.2vw,30px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateY(9px);
  animation: solo-style-reveal .7s ease forwards;
  animation-delay: calc(var(--solo-index) * 90ms);
}
.solo-style-choice:hover, .solo-style-choice:focus-visible { color: #bfc4bf; }
.solo-style-choice[aria-pressed="true"] { color: #fff; }

.results {
  width: min(1380px,calc(100vw - 44px));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 76px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.18);
  z-index: 1;
}

.results.reveal { animation: results-reveal .38s ease both; }
.results-layout {
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  gap: 40px;
  align-items: start;
}
.result-list { display: grid; gap: 34px; }

.scroll-calendar { min-width: 0; align-self: stretch; }
.calendar-sticky {
  position: sticky;
  top: 24px;
  padding: 17px 0 14px;
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.11);
}
.calendar-month {
  margin: 0 0 16px;
  color: #a2a7a2;
  font-size: 22px;
  font-weight: 780;
  letter-spacing: -.025em;
}
.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 4px;
}
.calendar-weekdays { margin-bottom: 5px; }
.calendar-weekdays span {
  color: #707671;
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}
.calendar-day,
.calendar-blank { width: 100%; aspect-ratio: 1; }
.calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border: 1px solid transparent;
  color: #7f8580;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
}
button.calendar-day { cursor: pointer; }
.calendar-day.has-events { color: #c2c6c2; border-color: rgba(255,255,255,.10); }
.calendar-day.has-events::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #858b86;
}
.calendar-day.is-active { color: #101211; border-color: #a8ada8; background: #a8ada8; }
.calendar-day.is-active::after { background: #101211; }

.date-block {
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255,255,255,.15);
  scroll-margin-top: 24px;
  animation: row-reveal .34s ease both;
  animation-delay: calc(var(--row-index) * 45ms);
}

.date-heading {
  margin: 0 0 26px;
  color: #686e69;
  font-size: clamp(30px,4vw,52px);
  font-weight: 680;
  line-height: 1;
  letter-spacing: -.045em;
}

.day-events {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),430px));
  gap: 34px;
  align-items: start;
}

.event-tile { min-width: 0; padding-bottom: 2px; }

.flyer-wrap {
  width: 100%;
  overflow: hidden;
}

.event-flyer {
  width: 100%;
  height: auto;
  max-height: 540px;
  display: block;
  object-fit: contain;
  object-position: left bottom;
}

.flyer-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.13);
  color: #8d938e;
  text-align: center;
}

.flyer-placeholder-label {
  font-size: 15px;
  font-weight: 680;
  line-height: 1.3;
}

.flyer-upload-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(134,242,213,.45);
  color: var(--mint);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.flyer-upload-link:hover,
.flyer-upload-link:focus-visible {
  color: #07100d;
  border-color: var(--mint);
  background: var(--mint);
}

.event-name {
  margin: 18px 0 13px;
  color: var(--text);
  font-size: clamp(21px, 1.65vw, 25px);
  font-weight: 780;
  line-height: 1.16;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.venue-block {
  padding: 14px 0 13px;
  border-top: 1px solid rgba(255,255,255,.11);
  border-bottom: 1px solid rgba(255,255,255,.11);
}

.venue-name { margin: 0; color: #f0f2ef; font-size: 16px; font-weight: 760; line-height: 1.28; letter-spacing: -.015em; }
.venue-address { margin: 6px 0 0; color: #b9bfba; font-size: 14px; font-weight: 520; line-height: 1.42; letter-spacing: -.008em; }
.event-details { margin: 14px 0 0; color: #b9bfba; font-size: 14px; font-weight: 560; line-height: 1.5; letter-spacing: -.01em; }
.event-details strong { color: var(--mint); font-size: 15px; font-weight: 780; }
.empty-state { margin: 0; padding: 20px 0; color: var(--muted); }

@keyframes results-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes row-reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes style-route-draw-vertical { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes style-route-draw-horizontal { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes style-label-reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes solo-style-reveal { to { opacity: 1; transform: translateY(0); } }

:focus-visible { outline: 3px solid rgba(134,242,213,.7); outline-offset: 5px; }

@media (max-width: 820px) {
  .results-layout { display: block; }
  .scroll-calendar { display: contents; }
  .calendar-sticky {
    top: 0;
    z-index: 5;
    margin-bottom: 26px;
    padding: 12px 0 14px;
    background: var(--page);
  }
  .calendar-month { margin-bottom: 10px; font-size: 19px; }
  .calendar-weekdays, .calendar-days { gap: 3px; }
  .calendar-day, .calendar-blank { height: 30px; aspect-ratio: auto; }
  .calendar-day { font-size: 14px; }
  .calendar-day.has-events::after { bottom: 2px; }
  .date-block { scroll-margin-top: 244px; }
}

@media (max-width: 560px) {
  .site-header, main { width: calc(100% - 28px); }
  .site-header { height: 64px; gap: 9px; }
  .brand span:last-child { display: none; }
  .experiment-badge { font-size: 9px; }
  .viewer-link { font-size: 12px; }
  main { padding: 50px 0 48px; }
  h1 { font-size: clamp(52px,17vw,72px); }
  .intro { font-size: 16px; }
  .location-picker { margin-top: 54px; }
  .place-choices { gap: 18px 28px; }
  .place-choice { min-height: 46px; font-size: 30px; }
  .style-picker { --route-run: 76px; }
  .style-route { min-height: 68px; }
  .style-route-line { height: 68px; }
  .style-route-label { margin-bottom: -13px; padding-left: 11px; }
  .style-choices { margin-top: 39px; gap: 18px; }
  .style-choice {
    max-width: calc(100vw - var(--route-origin) - var(--route-run) - 28px);
    font-size: 27px;
  }
  .solo-style-options { margin-left: 13px; padding-left: 16px; }
  .solo-style-choice { font-size: 22px; }
  .results { margin-top: 72px; padding-top: 18px; }
  .date-block { padding: 18px 0 26px; }
  .date-heading { font-size: 30px; margin-bottom: 20px; }
  .day-events { grid-template-columns: 1fr; gap: 26px; }
  .event-name { font-size: 22px; }
  .venue-name { font-size: 16px; }
  .venue-address, .event-details { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .style-choice { opacity: 1; transform: none; }
  .style-route-line::before, .style-route-line::after { transform: none; }
  .style-route-label, .solo-style-choice { opacity: 1; transform: none; }
  .selected-style-route line { transition: none !important; }
}
