:root {
  --paper: #e6dec8;
  --paper-2: #efe9d8;
  --ink: #15232e;
  --ink-2: #2a3a47;
  --mustard: #d6960a;
  --sun: #f6c90e;
  --white: #fffdf7;
  --ok: #2f7d4f;
  --err: #b3261e;
  --radius: 14px;
  --shadow: 0 2px 0 var(--ink), 0 10px 30px rgba(21, 35, 46, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(rgba(21, 35, 46, 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
  color: var(--ink);
  font: 17px/1.55 'Barlow', system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
h1, h2, h3, .display {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
}
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h3 { font-size: 1.6rem; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--ink-2); opacity: 0.8; }
.small { font-size: 0.88rem; }
.center { text-align: center; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--ink); color: var(--paper);
}
.nav .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.nav .brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--paper); }
.nav .brand img { width: 46px; height: 44px; object-fit: contain; filter: drop-shadow(0 0 1px rgba(255,255,255,.6)); }
.nav .brand span { font: 800 1.35rem 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.04em; }
.nav .links { margin-left: auto; display: flex; gap: 1.1rem; align-items: center; }
.nav .links a { color: var(--paper); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav .links a:hover { color: var(--sun); }
@media (max-width: 820px) { .nav .links a:not(.btn) { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font: 800 1.15rem 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.7rem 1.3rem; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--sun); color: var(--ink); text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--ink); transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn.dark { background: var(--ink); color: var(--sun); border-color: var(--ink); }
.btn.ghost { background: transparent; }
.btn.small { font-size: 0.95rem; padding: 0.45rem 0.9rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.nav .btn { font-size: 1rem; padding: 0.45rem 1rem; box-shadow: none; border-color: var(--sun); }

/* hero */
.hero { padding: 3rem 0 2rem; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(3.4rem, 9vw, 6.6rem); margin: 0; }
.hero h1 .gold { color: var(--mustard); display: block; font-style: italic; transform: rotate(-2deg); margin-top: 0.05em; }
.hero .art { position: relative; }
.hero .art img { border-radius: 50% 50% 18px 18px; border: 3px solid var(--ink); box-shadow: var(--shadow); }
.banner {
  display: inline-block; background: var(--ink); color: var(--paper);
  font: 700 clamp(1.1rem, 2.4vw, 1.5rem) 'Barlow Condensed', sans-serif;
  padding: 0.45rem 1rem; border-radius: 6px; margin: 1.2rem 0 1rem; transform: rotate(-0.6deg);
}
.hero .lead { font-size: 1.15rem; max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .art { order: -1; max-width: 420px; margin: 0 auto; }
}

.countdown { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.countdown div { background: var(--white); border: 2px solid var(--ink); border-radius: 10px; padding: 0.35rem 0.7rem; text-align: center; min-width: 4.2rem; }
.countdown b { display: block; font: 800 2rem/1 'Barlow Condensed', sans-serif; }
.countdown span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

/* progress */
.raised { background: var(--ink); color: var(--paper); padding: 1.6rem 0; }
.raised .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; }
.raised .big { font: 800 clamp(2.4rem, 6vw, 3.6rem)/1 'Barlow Condensed', sans-serif; color: var(--sun); }
.raised .stat b { font: 800 1.8rem/1 'Barlow Condensed', sans-serif; display: block; }
.raised .bar-wrap { flex: 1 1 320px; }
.bar { height: 18px; border-radius: 999px; background: rgba(255,255,255,.12); border: 2px solid var(--paper); overflow: hidden; }
.bar > i { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--sun) 0 14px, var(--mustard) 14px 28px); }

/* sections */
section.block { padding: 4rem 0; }
section.alt { background: var(--paper-2); border-block: 2px solid rgba(21,35,46,.08); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.kicker { font: 800 1rem 'Barlow Condensed', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mustard); margin-bottom: 0.4rem; }

.card {
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.4rem; position: relative;
}

/* prizes */
.prizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.6rem; }
.prize { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.prize .img { aspect-ratio: 16 / 10; background: var(--sun); display: grid; place-items: center; border-bottom: 2px solid var(--ink); overflow: hidden; }
.prize .img img { width: 100%; height: 100%; object-fit: cover; }
.prize .img .placeholder { font: 800 2.2rem 'Barlow Condensed', sans-serif; text-transform: uppercase; text-align: center; padding: 1rem; }
.prize .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.prize .desc { white-space: pre-line; }
.tag {
  position: absolute; top: 0.8rem; left: 0.8rem; z-index: 2;
  background: var(--ink); color: var(--sun); font: 800 0.9rem 'Barlow Condensed', sans-serif;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0.65rem; border-radius: 999px;
}
.tag.auction { background: var(--mustard); color: var(--ink); }
.bidbox { background: var(--paper-2); border: 2px dashed var(--ink-2); border-radius: 10px; padding: 0.8rem 1rem; margin-top: auto; }
.bidbox .amt { font: 800 2rem/1 'Barlow Condensed', sans-serif; }
.winner { background: var(--sun); border: 2px solid var(--ink); border-radius: 10px; padding: 0.6rem 0.9rem; font-weight: 700; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { margin-bottom: 0.8rem; }

/* forms */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
@media (max-width: 560px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.8rem; }
input, select, textarea {
  display: block; width: 100%; margin-top: 0.3rem; font: inherit; font-weight: 500;
  padding: 0.65rem 0.8rem; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; }
input[type=checkbox] { display: inline; width: auto; margin: 0 0.45rem 0 0; transform: scale(1.2); }
label.check { font-weight: 500; display: flex; align-items: flex-start; gap: 0.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.3rem 0 0.9rem; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { margin: 0; }
.chips span {
  display: inline-block; border: 2px solid var(--ink); border-radius: 999px; padding: 0.4rem 1rem;
  font: 800 1.15rem 'Barlow Condensed', sans-serif; cursor: pointer; background: var(--white);
}
.chips input:checked + span { background: var(--ink); color: var(--sun); }
.chips input:focus-visible + span { outline: 3px solid var(--sun); }
.total { font: 800 1.6rem 'Barlow Condensed', sans-serif; margin: 0.3rem 0 0.8rem; }

.flash { padding: 0.9rem 1.1rem; border-radius: 10px; border: 2px solid var(--ink); margin: 1rem 0; font-weight: 600; }
.flash.success { background: #d9f0df; }
.flash.error { background: #f8d7d3; }
.flash.info { background: var(--paper-2); }
.notice { background: var(--sun); color: var(--ink); text-align: center; padding: 0.5rem 1rem; font-weight: 700; border-bottom: 2px solid var(--ink); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; }
.mo { padding: 0.6rem 0.6rem 0.8rem; transform: rotate(var(--r, 0deg)); }
.mo img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 8px; border: 2px solid var(--ink); }
.mo b { display: block; font: 800 1.3rem 'Barlow Condensed', sans-serif; text-transform: uppercase; margin-top: 0.5rem; }

/* event */
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.event-grid .card b { font: 800 1.6rem/1.05 'Barlow Condensed', sans-serif; text-transform: uppercase; display: block; }

footer { background: var(--ink); color: var(--paper); padding: 2.5rem 0; margin-top: 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
footer img { width: 80px; }
footer a { color: var(--sun); }

/* tickets (thanks page) */
.tickets { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 1rem 0; }
.ticket {
  background: var(--sun); border: 2px dashed var(--ink); border-radius: 8px; padding: 0.5rem 1rem;
  font: 800 1.8rem 'Barlow Condensed', sans-serif;
}
.page-narrow { width: min(640px, 100% - 2rem); margin: 3rem auto; }

/* fixes */
[hidden] { display: none !important; }
.nav .links a.btn { color: var(--ink); }
.nav .links a.btn:hover { color: var(--ink); }
.nav .brand img { background: var(--paper); border-radius: 50%; padding: 3px; width: 48px; height: 48px; filter: none; }
@media (max-width: 820px) {
  .hero { padding-top: 1.5rem; }
  .hero .art { max-width: 300px; }
}
.hero .art img { height: auto; width: 100%; }
@media (max-width: 820px) { .hero .art { max-width: 280px; } }
