/* Misfits — minimal. Red is used only for the live dot and the entry code. */
:root {
  --bg: #fafaf8;
  --ink: #111111;
  --soft: #8a8a85;
  --line: #e6e6e1;
  --red: #e8232a;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
a { color: inherit; }
.muted { margin: 0; color: var(--soft); }
.label { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }

/* Nav */
.nav { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; }
.logo img { width: 32px; height: 32px; mix-blend-mode: multiply; }
.links { display: flex; gap: 28px; font-size: 15px; }
.links a { text-decoration: none; color: var(--soft); transition: color .2s; }
.links a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; padding-top: 120px; padding-bottom: 160px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.meta { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--soft); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.8s ease-in-out infinite; }
h1 { margin: 0; font-size: clamp(48px, 7.4vw, 92px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.soft { color: var(--soft); }
.lead { margin: 0; max-width: 460px; font-size: 19px; color: #4a4a46; }
.mascot { position: absolute; right: 28px; bottom: 120px; width: clamp(120px, 20vw, 220px); height: auto; mix-blend-mode: multiply; }

/* Button */
.btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; color: var(--bg); background: var(--ink); border: 0; border-radius: 999px; padding: 0 24px; min-height: 48px; transition: opacity .2s, transform .2s; white-space: nowrap; }
.btn:hover { opacity: .85; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: wait; }
.linkbtn { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Sections: label in the left column, content on the right */
.section { padding-top: 96px; padding-bottom: 96px; border-top: 1px solid var(--line); }
.rows { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px 48px; align-items: start; }
.rows > .label { padding-top: 6px; }
.big { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; letter-spacing: -.02em; max-width: 720px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.02em; }
.list li:first-child { padding-top: 0; }
.list span { font-family: var(--mono); font-size: 12px; color: var(--soft); }

/* Action */
.action { display: flex; flex-direction: column; gap: 36px; }
h2 { margin: 0; font-size: clamp(36px, 5vw, 60px); font-weight: 500; line-height: 1.02; letter-spacing: -.04em; }
.details { margin: 0; max-width: 520px; }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.details div:first-child { border-top: 1px solid var(--line); }
.details dt { color: var(--soft); }
.details dd { margin: 0; text-align: right; }
.countdown { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }

.signup { max-width: 520px; }
.signup label { display: block; margin-bottom: 14px; color: #4a4a46; }
.field { display: flex; gap: 8px; flex-wrap: wrap; }
.field input { flex: 1 1 220px; min-width: 0; min-height: 48px; font: inherit; font-size: 16px; color: var(--ink); background: #ffffff; border: 1px solid var(--line); border-radius: 999px; padding: 0 20px; outline: none; transition: border-color .2s; }
.field input:focus { border-color: var(--ink); }
.err { margin: 10px 0 0 20px; min-height: 20px; font-size: 14px; color: #b3141a; }

.ticket { max-width: 520px; display: flex; flex-direction: column; gap: 12px; animation: intro .5s ease both; }
.ticket[hidden] { display: none; }
.code { margin: 0; font-family: var(--mono); font-size: clamp(28px, 4vw, 40px); font-weight: 500; letter-spacing: .02em; color: var(--red); }

/* IRL photos */
.grid { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.grid figure { margin: 0; }
.ph { aspect-ratio: 1; width: 100%; border-radius: 6px; }
.grid img { aspect-ratio: 3 / 4; width: 100%; height: auto; border-radius: 6px; }
.grid img { display: block; object-fit: cover; }
.ph { display: flex; align-items: center; justify-content: center; background: #f0f0ec; border: 1px dashed #d6d6d0; font-family: var(--mono); font-size: 11px; color: var(--soft); }
.grid figcaption { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--soft); }

/* Donate */
.wallets { margin: 32px 0 0; max-width: 720px; }
.wallets div { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.wallets div:first-child { border-top: 1px solid var(--line); }
.wallets dt { font-size: 14px; }
.wallets dd { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.wallets code { font-family: var(--mono); font-size: 14px; word-break: break-all; }
.wallets .linkbtn { font-size: 14px; flex-shrink: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child summary { padding-top: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--soft); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: #4a4a46; max-width: 600px; }

/* Footer */
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 32px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); }

/* Motion — subtle */
.in { animation: intro .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes intro { from { opacity: 0; transform: translateY(16px); } }
@keyframes pulse { 50% { opacity: .25; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@supports (animation-timeline: view()) {
  .rv { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
}

@media (max-width: 760px) {
  .rows { grid-template-columns: 1fr; gap: 20px; }
  .hero { padding-top: 64px; padding-bottom: 96px; }
  .mascot { position: static; width: 140px; margin-top: 16px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .links { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in, .rv, .dot, .ticket { animation: none !important; }
}
