/* Spiders on Somerset Canyon */
:root {
  --void: #050309;
  --bog: #150c25;
  --bog-2: #21143b;
  --violet: #9b4dff;
  --violet-hi: #c9a3ff;
  --lime: #b8f021;
  --bone: #f1ebfa;
  --muted: #bdb0d1;
  --radius: 6px;
  --measure: 62ch;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-display: "Rubik Wet Paint", "Barlow Condensed", Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(155, 77, 255, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(184, 240, 33, 0.07), transparent 60%),
    var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: #d8ff6a; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -999px; top: 8px; background: var(--lime); color: #000;
  padding: 0.5rem 1rem; z-index: 100; font-weight: 600;
}
.skip:focus { left: 8px; }

.wrap { width: min(1040px, 100% - 2.5rem); margin-inline: auto; }

/* Header */
.site-header { padding: 1rem 0; border-bottom: 1px solid rgba(155, 77, 255, 0.35); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--bone); }
.brand img { width: 48px; height: 48px; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; line-height: 1; letter-spacing: 0.01em; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--bone); }
.nav a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--lime); }

/* Silk thread (wide screens only) */
.silk {
  position: fixed; left: clamp(10px, 2.6vw, 44px); top: 0; width: 28px; margin-left: -13px;
  height: var(--silk, 110px); pointer-events: none; z-index: 5; display: none;
}
.silk::before {
  content: ""; position: absolute; left: 13px; top: 0; bottom: 18px; width: 1.5px;
  background: linear-gradient(var(--violet-hi), rgba(201, 163, 255, 0.25));
}
.silk svg { position: absolute; bottom: 0; left: 0; width: 28px; height: 28px; filter: drop-shadow(0 0 6px rgba(184, 240, 33, 0.55)); }
@media (min-width: 1180px) { .silk { display: block; } }

/* Type */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.02; margin: 0 0 0.6em; letter-spacing: 0.005em; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.02; color: var(--lime); text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 700; color: var(--bone); text-wrap: balance; }
h3 { font-size: 1.55rem; font-weight: 700; color: var(--violet-hi); margin-bottom: 0.3em; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
.lede { font-size: 1.35rem; line-height: 1.5; color: var(--bone); max-width: 34ch; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; } }
.hero-art { position: relative; transform: rotate(1.4deg); }
.hero-art .frame {
  border: 3px solid var(--violet); border-radius: var(--radius); overflow: hidden;
  box-shadow: 8px 8px 0 rgba(155, 77, 255, 0.45);
}
.hero-art .sticker { position: absolute; width: 38%; max-width: 190px; right: -4%; bottom: -14%; transform: rotate(-9deg); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6)); }
@media (max-width: 899px) { .hero-art { margin-bottom: 2rem; } }

.countdown {
  display: inline-block; margin: 0 0 1.4rem; padding: 0.35rem 0.9rem; border: 2px solid var(--lime);
  border-radius: 999px; color: var(--lime); font-weight: 600; font-size: 1rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1.1rem; margin-top: 1.6rem; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 1.1rem; padding: 0.85rem 1.35rem;
  min-height: 48px; border: 2px solid #000; border-radius: var(--radius);
  background: var(--lime); color: #05030a; box-shadow: 4px 4px 0 var(--violet);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { color: #05030a; background: #d0ff55; transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--violet); }
.btn.alt { background: transparent; color: var(--bone); border-color: var(--violet); box-shadow: 4px 4px 0 rgba(155, 77, 255, 0.5); }
.btn.alt:hover { background: rgba(155, 77, 255, 0.18); color: #fff; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section.tight { padding-top: 0; }
.split { display: grid; gap: 2rem 3rem; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1.2fr; } }
.three { display: grid; gap: 2rem 2.5rem; }
@media (min-width: 860px) { .three { grid-template-columns: repeat(3, 1fr); } }
.three p { max-width: 30ch; margin-bottom: 0; }

/* Haunt night band with a jagged lower edge */
.band {
  background: linear-gradient(180deg, var(--bog-2), var(--bog));
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 94% 100%, 88% 93%, 80% 100%, 73% 92%, 65% 100%, 57% 93%, 49% 100%, 41% 92%, 33% 100%, 25% 93%, 17% 100%, 9% 92%, 0 100%);
  margin-bottom: 1rem;
}
.band h2 { color: var(--lime); }

/* Lists */
.plain { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: var(--measure); }
.plain li { padding: 0.75rem 0; border-top: 1px solid rgba(155, 77, 255, 0.35); }
.plain li:last-child { border-bottom: 1px solid rgba(155, 77, 255, 0.35); }
.plain strong { color: var(--bone); }

/* Counter */
.counter {
  border: 3px solid var(--violet); border-radius: var(--radius); padding: 1.5rem; background: rgba(21, 12, 37, 0.8);
  box-shadow: 8px 8px 0 rgba(155, 77, 255, 0.35); text-align: center;
}
.counter .count { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 8rem); line-height: 1; color: var(--lime); margin: 0.2em 0; }
.counter .row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.counter .btn.big { font-size: 1.5rem; padding: 1rem 2rem; min-height: 64px; cursor: pointer; font-family: var(--font-body); }
.counter button.btn { cursor: pointer; font-family: var(--font-body); }
.counter .tiny { margin: 1rem auto 0; font-size: 0.95rem; color: var(--muted); max-width: 36ch; }

/* FAQ */
details { border-top: 1px solid rgba(155, 77, 255, 0.35); padding: 0.9rem 0; max-width: var(--measure); }
details:last-of-type { border-bottom: 1px solid rgba(155, 77, 255, 0.35); }
summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; color: var(--bone); }
summary:hover { color: var(--lime); }
details p { margin: 0.7em 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid rgba(155, 77, 255, 0.35); padding: 2.5rem 0 3rem; color: var(--muted); font-size: 1rem; }
.site-footer .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: auto 1fr; align-items: center; gap: 2rem; } }
.site-footer img { width: 88px; height: 88px; }
.site-footer p { margin: 0 0 0.4em; max-width: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
