/* Halloween 2026. Only when <html data-theme="halloween">. Safe to delete after the season. */
html[data-theme="halloween"] {
  --pumpkin: #e07a2f;
  --harvest: #fbf6ef;
  --amber: #f0c27a;
  --dusk: #241018;
  --night: #3b1623;
}

html[data-theme="halloween"] body {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(224, 122, 47, .07), transparent 34%),
    var(--harvest);
}

.seasonal-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.seasonal-banner,
.seasonal-hero-deco,
.theme-halloween {
  display: none;
}

html[data-theme="halloween"] .theme-default {
  display: none;
}

html[data-theme="halloween"] .theme-halloween {
  display: inline;
}

html[data-theme="halloween"] .seasonal-banner {
  display: block;
  background:
    radial-gradient(ellipse at 18% 50%, rgba(224, 122, 47, .22), transparent 42%),
    radial-gradient(ellipse at 82% 50%, rgba(224, 122, 47, .18), transparent 40%),
    var(--dusk);
  color: var(--harvest);
  border-bottom: 1px solid rgba(240, 194, 122, .45);
}

html[data-theme="halloween"] .seasonal-banner-inner {
  position: relative;
  padding: 16px 96px;
}

html[data-theme="halloween"] .seasonal-banner-copy {
  text-align: center;
}

html[data-theme="halloween"] .seasonal-banner-copy p {
  margin: 0 auto;
  max-width: 36ch;
}

html[data-theme="halloween"] .seasonal-banner-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -.4px;
  color: var(--amber);
}

html[data-theme="halloween"] .seasonal-banner-copy p + p {
  margin-top: 4px;
  font-size: 15px;
  color: #f6e6d4;
}

html[data-theme="halloween"] .hero {
  position: relative;
}

html[data-theme="halloween"] .hero-copy {
  position: relative;
  z-index: 2;
}

html[data-theme="halloween"] .hero-photo {
  background:
    radial-gradient(circle at 10% 0%, rgba(243, 215, 164, .42), transparent 26%),
    radial-gradient(circle at 94% 2%, rgba(224, 122, 47, .4), transparent 28%),
    radial-gradient(ellipse at 50% 18%, #5c2838 0%, var(--dusk) 64%);
  z-index: 1;
}

html[data-theme="halloween"] .hero-photo img {
  position: relative;
  z-index: 1;
}

html[data-theme="halloween"] .seasonal-hero-deco {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

html[data-theme="halloween"] .moon,
html[data-theme="halloween"] .bat,
html[data-theme="halloween"] .seasonal-dot,
html[data-theme="halloween"] .lantern {
  position: absolute;
  pointer-events: none;
}

html[data-theme="halloween"] .moon {
  top: 2%;
  right: 14%;
  width: 7%;
  aspect-ratio: 1;
  height: auto;
  opacity: .95;
}

html[data-theme="halloween"] .bat {
  color: #f6e3b8;
  height: auto;
}

html[data-theme="halloween"] .bat-1 {
  top: 0;
  left: 14.2%;
  width: 12.4%;
  aspect-ratio: 200 / 64;
}

html[data-theme="halloween"] .bat-2 {
  display: none;
}

html[data-theme="halloween"] .seasonal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f6e3b8;
  box-shadow: 0 0 0 4px rgba(224, 122, 47, .28), 0 0 12px rgba(255, 186, 96, .85);
}

html[data-theme="halloween"] .dot-1 { top: 14%; left: 3.5%; }
html[data-theme="halloween"] .dot-3 { top: 13%; right: 3%; }

html[data-theme="halloween"] .lantern svg {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

html[data-theme="halloween"] .lantern-glow {
  position: absolute;
  left: 22%;
  right: 22%;
  top: 34%;
  bottom: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 186, 96, .95) 0%, rgba(255, 120, 40, .35) 48%, transparent 72%);
  opacity: .72;
  z-index: 0;
}

html[data-theme="halloween"] .lantern-banner {
  top: 0;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 54px;
  margin-block: auto;
  overflow: hidden;
}

html[data-theme="halloween"] .lantern-banner.seasonal-extra {
  left: auto;
  right: 0;
}

html[data-theme="halloween"] .lantern-left {
  top: 0;
  left: 0;
  width: 13%;
  aspect-ratio: 200 / 170;
  height: auto;
}

html[data-theme="halloween"] .lantern-right {
  top: 0;
  right: 0;
  width: 11.5%;
  aspect-ratio: 200 / 170;
  height: auto;
}

html[data-theme="halloween"] .hero-photo figcaption {
  background: var(--amber);
  color: var(--night);
  z-index: 4;
}

html[data-theme="halloween"] .hours span {
  background: #e07a2f;
}

html[data-theme="halloween"] .lunch-paper {
  border-top-color: #e07a2f;
}

html.hw-motion .hw-reveal,
html.hw-motion .lantern,
html.hw-motion .bat,
html.hw-motion .moon {
  opacity: 0;
}

@media (max-width: 950px) {
  html[data-theme="halloween"] .moon {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 650px) {
  html[data-theme="halloween"] .seasonal-banner-inner {
    padding: 14px 68px;
  }

  html[data-theme="halloween"] .seasonal-banner-title {
    font-size: 22px;
  }

  html[data-theme="halloween"] .seasonal-banner-copy p + p {
    font-size: 14px;
  }

  html[data-theme="halloween"] .lantern-banner {
    width: 48px;
    height: 41px;
  }

  html[data-theme="halloween"] .seasonal-extra,
  html[data-theme="halloween"] .lantern-left,
  html[data-theme="halloween"] .lantern-right,
  html[data-theme="halloween"] .bat-2,
  html[data-theme="halloween"] .dot-3 {
    display: none;
  }

  html[data-theme="halloween"] .bat-1 {
    top: 2px;
    left: 2px;
    width: 62px;
    height: 20px;
    aspect-ratio: auto;
  }

  html[data-theme="halloween"] .moon {
    top: 8px;
    right: 10px;
    width: 30px;
    height: 30px;
  }

  html[data-theme="halloween"] .dot-1 {
    top: 40px;
    left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="halloween"] *,
  html[data-theme="halloween"] *::before,
  html[data-theme="halloween"] *::after {
    animation: none !important;
    transition: none !important;
  }
}
