:root {
  color-scheme: light;
  --red: #b04855;
  --red-dark: #7e2631;
  --mint: #73c9c2;
  --cream: #fff7df;
  --ink: #2d1e1e;
  --yellow: #ffd45d;
  --green: #8ccf64;
  --shadow: 0 18px 50px rgb(88 31 38 / 24%);
  --body-bg:
    radial-gradient(circle at 18% 8%, rgb(255 212 93 / 42%), transparent 24rem),
    linear-gradient(135deg, #fff7df 0%, #eaf8f4 48%, #ffe6e4 100%);
  --body-grid:
    linear-gradient(90deg, rgb(176 72 85 / 10%) 1px, transparent 1px),
    linear-gradient(rgb(176 72 85 / 10%) 1px, transparent 1px);
  --body-grid-size: 18px 18px;
  --shell-bg:
    radial-gradient(circle at 18% 8%, rgb(255 212 93 / 35%), transparent 22rem),
    linear-gradient(135deg, rgb(255 247 223 / 84%) 0%, rgb(234 248 244 / 86%) 48%, rgb(255 230 228 / 86%) 100%);
  --shell-shadow: 0 0 70px rgb(45 30 30 / 16%);
  --surface-bg: rgb(255 255 255 / 78%);
  --edge-color: rgb(45 30 30 / 92%);
  --access-bg: linear-gradient(135deg, rgb(255 255 255 / 88%), rgb(115 201 194 / 32%));
}

:root[data-theme="paper"] {
  --red: #b04855;
  --red-dark: #7e2631;
  --yellow: #ffd45d;
  --green: #8ccf64;
}

:root[data-theme="market"] {
  --red: #2f9a78;
  --red-dark: #1f6b58;
  --yellow: #ffcf5a;
  --green: #9bdc55;
  --body-bg:
    radial-gradient(circle at 18% 4%, rgb(255 207 90 / 48%), transparent 24rem),
    radial-gradient(circle at 82% 16%, rgb(47 154 120 / 25%), transparent 22rem),
    linear-gradient(135deg, #fffbe6 0%, #dff7e9 54%, #e8f8ff 100%);
  --body-grid:
    radial-gradient(circle, rgb(47 154 120 / 18%) 1.5px, transparent 2px);
  --body-grid-size: 16px 16px;
  --shell-bg:
    linear-gradient(120deg, rgb(255 251 230 / 90%) 0%, rgb(225 248 231 / 88%) 50%, rgb(255 238 197 / 84%) 100%);
  --shell-shadow: 0 0 80px rgb(35 101 77 / 18%);
  --surface-bg: rgb(255 255 245 / 82%);
  --access-bg: linear-gradient(135deg, rgb(255 255 245 / 92%), rgb(155 220 85 / 34%));
}

:root[data-theme="festival"] {
  --red: #d94a5f;
  --red-dark: #8a2635;
  --yellow: #ffe066;
  --green: #69c7b4;
  --body-bg:
    radial-gradient(circle at 12% 9%, rgb(255 224 102 / 50%), transparent 18rem),
    radial-gradient(circle at 90% 10%, rgb(105 199 180 / 34%), transparent 21rem),
    linear-gradient(135deg, #fff1cf 0%, #ffe0df 44%, #d8f5ef 100%);
  --body-grid:
    repeating-linear-gradient(135deg, rgb(217 74 95 / 12%) 0 8px, transparent 8px 24px);
  --body-grid-size: auto;
  --shell-bg:
    radial-gradient(circle at 50% 0%, rgb(255 224 102 / 32%), transparent 24rem),
    linear-gradient(160deg, rgb(255 246 217 / 88%) 0%, rgb(255 230 223 / 86%) 52%, rgb(218 248 240 / 84%) 100%);
  --shell-shadow: 0 0 90px rgb(138 38 53 / 18%);
  --surface-bg: rgb(255 255 255 / 82%);
  --access-bg: linear-gradient(135deg, rgb(255 255 255 / 90%), rgb(255 224 102 / 36%));
}

:root[data-theme="evening"] {
  --red: #e65f72;
  --red-dark: #4a2a45;
  --yellow: #ffd36f;
  --green: #71d8bd;
  --body-bg:
    radial-gradient(circle at 22% 12%, rgb(255 211 111 / 32%), transparent 20rem),
    radial-gradient(circle at 86% 18%, rgb(113 216 189 / 24%), transparent 21rem),
    linear-gradient(135deg, #25314f 0%, #392849 48%, #174a50 100%);
  --body-grid:
    radial-gradient(circle, rgb(255 255 255 / 18%) 1px, transparent 1.6px);
  --body-grid-size: 22px 22px;
  --shell-bg:
    linear-gradient(160deg, rgb(255 249 231 / 92%) 0%, rgb(241 236 255 / 88%) 48%, rgb(222 250 244 / 84%) 100%);
  --shell-shadow: 0 0 100px rgb(0 0 0 / 30%);
  --surface-bg: rgb(255 255 255 / 84%);
  --access-bg: linear-gradient(135deg, rgb(255 255 255 / 92%), rgb(113 216 189 / 30%));
}

:root[data-theme="halloween"] {
  --red: #f260a3;
  --red-dark: #722259;
  --mint: #44d2cf;
  --yellow: #ffc32b;
  --green: #8bcf69;
  --ink: #251625;
  --shadow: 0 18px 50px rgb(74 17 68 / 26%);
  --body-bg:
    radial-gradient(circle at 14% 7%, rgb(255 195 43 / 56%), transparent 20rem),
    radial-gradient(circle at 90% 12%, rgb(242 96 163 / 34%), transparent 22rem),
    linear-gradient(135deg, #ffc82f 0%, #ffd5d7 46%, #bdf3e8 100%);
  --body-grid:
    repeating-linear-gradient(90deg, rgb(37 22 37 / 9%) 0 2px, transparent 2px 28px);
  --body-grid-size: auto;
  --shell-bg:
    radial-gradient(circle at 48% 0%, rgb(255 195 43 / 40%), transparent 26rem),
    linear-gradient(160deg, rgb(255 237 185 / 90%) 0%, rgb(255 218 222 / 90%) 48%, rgb(206 248 235 / 88%) 100%);
  --shell-shadow: 0 0 90px rgb(74 17 68 / 20%);
  --surface-bg: rgb(255 253 241 / 86%);
  --edge-color: rgb(37 22 37 / 94%);
  --access-bg: linear-gradient(135deg, rgb(255 251 230 / 94%), rgb(68 210 207 / 34%));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--body-bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: var(--body-grid);
  background-size: var(--body-grid-size);
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.video-open {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.video-open:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 4px;
}

.video-open > video {
  pointer-events: none;
}

.page-shell {
  container-type: inline-size;
  width: min(100%, 768px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--shell-bg);
  box-shadow: var(--shell-shadow);
}

.hero {
  min-height: 100svh;
  display: grid;
  align-content: end;
  gap: 22px;
  padding: max(18px, env(safe-area-inset-top)) 16px 26px;
}

.hero__copy {
  animation: rise-in 700ms ease both;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 9em;
  margin: 0;
  font-size: clamp(2.7rem, 17cqw, 4.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 4px 0 #fff, 0 8px 0 rgb(176 72 85 / 22%);
}

.lead {
  max-width: 34rem;
  margin: 18px 0 0;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.75;
}

.event-theme {
  display: inline-block;
  margin: 14px 0 0;
  padding: 7px 11px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  color: #fff;
  background: var(--red-dark);
  box-shadow: 4px 4px 0 var(--yellow);
  font-size: clamp(1rem, 4.7cqw, 1.45rem);
  font-weight: 900;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero__actions a,
.access a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 5px 0 var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.hero__actions a:nth-child(2) {
  color: var(--ink);
  background: var(--yellow);
}

.flyer-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

.hero-card {
  width: min(100%, 460px);
  margin: 0 auto;
  transform: rotate(-1.4deg);
  animation: poster-pop 850ms 140ms cubic-bezier(.2, .9, .2, 1.1) both, float-poster 5.6s 1.1s ease-in-out infinite;
}

.hero-card img,
.hero-card video,
.flyer-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-card video {
  background: #fff;
}

.hero--poster .hero-card {
  cursor: zoom-in;
}

.quick-info {
  display: grid;
  gap: 10px;
  padding: 0 16px 34px;
}

.quick-info article,
.feature,
.access {
  border: 2px solid var(--edge-color);
  border-radius: 8px;
  background: var(--surface-bg);
  box-shadow: 0 6px 0 var(--edge-color);
}

.quick-info article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
}

.quick-info span,
.feature span {
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.quick-info strong {
  text-align: right;
}

.event-push {
  position: relative;
  margin: 8px 16px 28px;
  padding: 22px 20px 21px 22px;
  border: 2px solid var(--edge-color);
  border-left: 7px solid var(--red);
  border-radius: 9px;
  color: var(--ink);
  background: linear-gradient(135deg, rgb(255 255 255 / 92%), rgb(255 247 223 / 94%));
  box-shadow: 0 6px 0 var(--edge-color);
}

.event-push__spark {
  position: absolute;
  top: 17px;
  right: 18px;
  color: var(--red);
  font-size: 1.15rem;
  line-height: 1;
}

.event-push .eyebrow {
  margin-bottom: 8px;
  color: var(--red-dark);
}

.event-push > p:last-child {
  margin: 12px 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.85;
}

.section-head {
  padding: 42px 16px 12px;
}

.section-head h2,
.access h2 {
  margin: 0;
  font-size: clamp(1.65rem, 7.4cqw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p:last-child,
.access p:last-child {
  margin: 12px 0 0;
  line-height: 1.7;
  font-weight: 650;
}

.flyer-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(78cqw, 335px), 335px);
  gap: 16px;
  overflow-x: auto;
  padding: 14px 16px 34px;
  scroll-padding-inline: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.flyer-strip::-webkit-scrollbar {
  display: none;
}

.flyer-card {
  position: relative;
  scroll-snap-align: center;
  transform: rotate(var(--tilt, -1deg));
}

.flyer-card:nth-child(2) {
  --tilt: 1.3deg;
}

.flyer-card:nth-child(3) {
  --tilt: -0.6deg;
}

.flyer-card:nth-child(4) {
  --tilt: 1deg;
}

.flyer-card span {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 8px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 3px 0 var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.video-feature {
  margin: 0 16px 18px;
  padding: 12px 12px 14px;
  border: 2px solid var(--edge-color);
  border-radius: 8px;
  background: var(--surface-bg);
  box-shadow: 0 6px 0 var(--edge-color);
}

.video-feature video {
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid #fff;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.video-feature p {
  margin: 14px 4px 0;
  color: var(--red-dark);
  font-size: clamp(1.35rem, 5.2cqw, 2.1rem);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.feature-grid {
  display: grid;
  gap: 14px;
  padding: 24px 16px 42px;
}

.schedule,
.past-events {
  margin: 0 16px 42px;
  padding: 20px;
  border: 2px solid var(--edge-color);
  border-radius: 8px;
  background: var(--surface-bg);
  box-shadow: 0 6px 0 var(--edge-color);
}

.schedule h2,
.past-events h2 {
  margin: 0;
  font-size: clamp(1.65rem, 7.4cqw, 2.5rem);
  line-height: 1.08;
}

.schedule ol {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.schedule li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px dashed rgb(37 22 37 / 32%);
  font-weight: 800;
}

.schedule li:first-child {
  border-top: 0;
}

.schedule time {
  color: var(--red-dark);
  font-weight: 950;
}

.feature {
  padding: 18px;
}

.feature h3 {
  margin: 8px 0;
  font-size: 1.34rem;
  letter-spacing: 0;
}

.feature p {
  margin: 0;
  line-height: 1.7;
  font-weight: 650;
}

.access {
  display: grid;
  gap: 18px;
  margin: 0 16px 48px;
  padding: 20px;
  background: var(--access-bg);
}

.access a {
  width: 100%;
  background: var(--green);
}

.past-events {
  margin-bottom: 56px;
}

.past-event-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: inherit;
  background: #fff;
  box-shadow: 0 4px 0 var(--ink);
  text-decoration: none;
}

.past-event-card img {
  width: 92px;
  height: 112px;
  border-radius: 5px;
  object-fit: cover;
  object-position: top;
}

.past-event-card span {
  display: grid;
  gap: 5px;
}

.past-event-card small {
  color: var(--red-dark);
  font-weight: 900;
}

.past-event-card strong {
  font-size: 1.08rem;
  line-height: 1.35;
}

.archive-banner {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: max(9px, env(safe-area-inset-top)) 12px 9px;
  color: #fff;
  background: rgb(45 30 30 / 94%);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
}

.archive-banner span {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
}

.archive-banner a {
  color: #fff;
  font-weight: 900;
}

.cancellation-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 0%, rgb(255 195 43 / 26%), transparent 22rem),
    linear-gradient(165deg, rgb(245 226 255 / 94%) 0%, rgb(255 232 211 / 92%) 58%, rgb(255 248 222 / 94%) 100%);
}

.cancellation-hero {
  display: grid;
  gap: 24px;
  padding: max(34px, env(safe-area-inset-top)) 16px 38px;
}

.cancellation-copy {
  padding: 22px 18px;
  border: 2px solid var(--edge-color);
  border-radius: 10px;
  background: rgb(255 255 255 / 86%);
  box-shadow: 0 6px 0 var(--edge-color);
}

.cancellation-copy .eyebrow {
  color: var(--red-dark);
}

.cancellation-copy h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(1rem, 4.5cqw, 2.15rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-shadow: none;
}

.cancellation-copy h1 span {
  color: var(--red-dark);
}

.cancellation-copy > p:last-child {
  margin: 17px 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
}

.cancellation-poster {
  width: min(100%, 560px);
  margin: 0 auto;
}

.cancellation-poster img {
  display: block;
  width: 100%;
  height: auto;
  border: 5px solid #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.previous-event {
  margin-top: 0;
  background: rgb(255 255 255 / 86%);
}

.previous-event__intro {
  margin: 12px 0 0;
  font-weight: 650;
  line-height: 1.7;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  background: rgb(35 20 20 / 88%);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__bar {
  display: grid;
  grid-template-columns: 46px 1fr 46px auto;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.lightbox__bar p {
  margin: 0;
  text-align: center;
  font-weight: 900;
}

.lightbox__nav,
.lightbox__close {
  min-height: 44px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: rgb(255 255 255 / 12%);
  font-weight: 900;
}

.lightbox__nav {
  font-size: 1.9rem;
  line-height: 1;
}

.lightbox__close {
  padding: 0 13px;
}

.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  background: rgb(20 14 16 / 94%);
  backdrop-filter: blur(8px);
}

.video-modal[hidden] {
  display: none;
}

.video-modal__bar {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: end;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.video-modal__bar p {
  display: none;
}

.video-modal__sound,
.video-modal__close {
  min-height: 44px;
  padding: 0 13px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: rgb(255 255 255 / 12%);
  font-weight: 900;
}

.video-modal__sound.is-on {
  color: var(--ink);
  background: var(--yellow);
}

.video-modal video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) rotate(var(--tilt, 0deg));
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2, .9, .2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--tilt, 0deg));
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes poster-pop {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(-5deg) scale(.94);
  }
  to {
    opacity: 1;
    transform: rotate(-1.4deg) scale(1);
  }
}

@keyframes float-poster {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}
