/* Halloween palette on the D wi Diddeleng page: warm black, bone, pumpkin orange. Flat, poster-like. */
/* Self-hosted (OFL), no request to Google Fonts. */
@font-face { font-family: "Anton"; src: url("/fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
:root {
  --bg: #0f0d0b;
  --panel: #1a1714;
  --line: #2e2924;
  --text: #f2ebdd;
  --muted: #a89f92;
  --accent: #f26a1b;
  --accent-ink: #0f0d0b;
  --ok: #9bd37a;
  --err: #ff8f7a;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
main { max-width: 680px; margin: 0 auto; padding: 0 16px 40px; }
a { color: var(--accent); }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; margin: 0 0 12px; }
h2 { font-size: 30px; }

/* header */
.top { display: flex; justify-content: space-between; align-items: center; max-width: 680px; margin: 0 auto; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--text); }

.wordmark { font-family: var(--display); font-size: 24px; text-transform: uppercase; letter-spacing: 0.02em; }
.wordmark b { color: var(--accent); font-weight: 400; }
.langs { display: flex; gap: 2px; }
.langs button { background: none; border: 0; color: var(--muted); font: 600 13px var(--body); padding: 6px 8px; cursor: pointer; text-transform: uppercase; }
.langs button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); }

/* hero */
.hero { padding: 32px 0 8px; }
.kicker { color: var(--accent); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 0.12em; margin: 0 0 10px; }
.hero h1 { font-size: clamp(56px, 17vw, 112px); margin: 0 0 16px; }
.hero h1::after { content: " 🎃"; font-size: 0.7em; vertical-align: 0.08em; }
.dates::before { content: "🎃 "; }
.dates { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 10px; margin: 0 0 18px; }
.intro { font-size: 18px; margin: 0 0 8px; max-width: 34em; }
.banner { border-left: 4px solid var(--accent); background: var(--panel); padding: 12px 16px; margin-top: 16px; }

/* sections */
.card { border-top: 1px solid var(--line); padding: 28px 0 8px; margin-top: 24px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.who { color: var(--muted); font-size: 14px; }
.who button { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; cursor: pointer; padding: 0 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; align-items: baseline; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 36px; line-height: 1; color: var(--accent); }

.vouchers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 4px 0 16px; }
@media (min-width: 640px) { .vouchers { grid-template-columns: repeat(4, 1fr); } }
.vouchers b { font-family: var(--display); font-weight: 400; font-size: 34px; text-align: center; padding: 16px 4px; border: 2px solid var(--accent); color: var(--accent); }
.vouchers b:first-child { background: var(--accent); color: var(--accent-ink); }

/* gallery */
.gallery-wrap { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 28px; }
/* Windows are wide, so the cards are landscape: one per row on a phone, two on a tablet, three on desktop. */
.gallery { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: 1fr; gap: 22px 14px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.shop { display: flex; flex-direction: column; }
.shop img, .shop .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--panel); }
.shop .ph { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border: 1px solid var(--line); }
.shop .ph .pumpkin { font-size: 52px; line-height: 1; }
.shop .ph .num { font-family: var(--display); font-size: 22px; color: var(--muted); }
.shop .body { padding: 10px 0 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.shop h3 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.25; }
.shop .body p { margin: 0; font-size: 13px; }
.shop.voted img, .shop.voted .ph { outline: 3px solid var(--accent); outline-offset: -3px; }

/* pumpkin rating: 1 to 5 pumpkins, unlit pumpkins are greyed out */
.rater { display: flex; align-items: center; gap: 2px; margin-top: auto; padding-top: 10px; flex-wrap: nowrap; }
.rater button { flex: 1 1 0; min-width: 0; height: 40px; border: 0; background: none; padding: 0; cursor: pointer; font: 22px/1 var(--body); }
.rater button.p { filter: grayscale(1) brightness(.55); opacity: .7; transition: filter .12s, transform .12s; }
.rater button.p.on { filter: none; opacity: 1; }
.rater button.p:active { transform: scale(1.2); }
.rater button:disabled { cursor: default; }
.shop .body p.rated { color: var(--muted); margin-top: 2px; }
.shop.voted .body p.rated { color: var(--accent); font-weight: 800; }

/* sticky "send my votes" bar while ratings are not confirmed yet */
.submitbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: var(--panel); border-top: 2px solid var(--accent); }
.submitbar[hidden] { display: none; }
.submitbar span { font-weight: 800; }
.submitbar .btn { width: auto; padding: 12px 16px; }
body:has(.submitbar:not([hidden])) main { padding-bottom: 96px; }

/* buttons */
.btn { display: block; width: 100%; border: 0; border-radius: 3px; padding: 14px 18px; font: 800 15px var(--body); text-transform: uppercase; letter-spacing: 0.05em; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* thank-you, below the gallery */
.done { border: 2px solid var(--accent); padding: 20px; margin-top: 32px; }
.done h2 { color: var(--accent); }
.done .btn { margin-top: 12px; }

/* dialogs */
dialog { background: var(--panel); color: var(--text); border: 0; border-top: 4px solid var(--accent); border-radius: 0; padding: 22px 20px; width: min(420px, calc(100vw - 32px)); }
dialog { position: fixed; }
dialog .close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; }
dialog .close:hover { color: var(--text); }
#step1 .btn.ghost { margin-top: 8px; }
dialog::backdrop { background: rgba(8, 6, 5, .8); }
label { display: block; margin: 14px 0; font-size: 14px; }
label > span { display: block; margin-bottom: 6px; color: var(--muted); font-weight: 600; }
input:not([type=checkbox]) { width: 100%; padding: 12px; border-radius: 3px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 16px var(--body); }
input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
label.check { display: flex; gap: 10px; align-items: flex-start; }
label.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
label.check span { color: var(--text); margin: 0; font-weight: 400; }
.err { color: var(--err); min-height: 1.5em; margin: 8px 0 0; font-size: 14px; }
#step2 .btn.ghost { margin-top: 8px; }

.toast { z-index: 10; position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--text); color: var(--bg); font-weight: 700; padding: 12px 18px; max-width: calc(100vw - 32px); }

/* footer: D wi Diddeleng first, then the initiative line with the city and FCAD logos */
.foot { max-width: 680px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }
.foot p { margin: 0 0 12px; }
.partners { display: flex; justify-content: center; align-items: center; gap: 24px; margin-bottom: 12px; }
.partners img { height: 36px; width: auto; }

/* bat swarm on page open: each bat flies left to right on its own line (--y start, --m middle, --e end) and flaps */
.bats { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.bats .bat { position: absolute; left: 0; top: 0; width: var(--s); animation: fly var(--t) var(--d) cubic-bezier(.45, .1, .55, .9) both; }
.bats .bat svg { display: block; width: 100%; height: auto; fill: #050403; filter: drop-shadow(0 0 2px #f26a1b) drop-shadow(0 0 14px rgba(242, 106, 27, .85)); animation: flap .14s ease-in-out infinite alternate; transform-origin: 50% 40%; }
.bats .bat.lit svg { fill: var(--accent); filter: drop-shadow(0 0 10px rgba(242, 106, 27, .7)); }
@keyframes fly {
  0% { transform: translate(-25vw, var(--y)) rotate(-8deg); }
  50% { transform: translate(45vw, var(--m)) rotate(6deg); }
  100% { transform: translate(115vw, var(--e)) rotate(-10deg); }
}
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
@media (prefers-reduced-motion: reduce) { .bats { display: none; } }

/* "how it works" as running text (client copy 2026-10-13) */
.howto p { margin: 0 0 8px; }
.howto p.lead { font-weight: 800; }
.howto p:last-child { margin-bottom: 0; }

/* phone hint under the field */
#login label small { display: block; margin-top: 4px; font-size: 12px; }

/* tap a photo for the large view */
.shop img.zoom { cursor: zoom-in; }
.viewer { border: 0; padding: 0; background: none; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.viewer::backdrop { background: rgba(0, 0, 0, .9); }
.viewer[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.viewer img { max-width: calc(100vw - 24px); max-height: calc(100vh - 90px); object-fit: contain; display: block; }
.viewer p { margin: 0; color: #fff; font-weight: 800; }
.viewer .close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; }

/* wordmark, social links, follow block after voting */
.brand .logo { height: 58px; width: auto; display: block; }
.social a { color: var(--text); font-weight: 600; }
.follow { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.follow .links { display: flex; gap: 8px; margin-top: 10px; }
.follow .links a { flex: 1; text-align: center; text-decoration: none; }

/* three social links after voting */
.follow .links a { min-width: 0; padding-left: 6px; padding-right: 6px; }
