@font-face { font-family: "Archivo Black"; src: url("/static/fonts/ArchivoBlack-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/static/fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/static/fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/static/fonts/AtkinsonHyperlegible-Italic.ttf") format("truetype"); font-style: italic; font-display: swap; }

:root {
  --navy: #0e1630; --navy-deep: #080c1e; --navy-2: #16204a; --line: #28345f;
  --cream: #fff6e6; --sun: #ff9e2e; --gold: #ffcd5c; --peach: #ffc48c; --muted: #a4b0d4;
  --bad: #ff6b6b;
  --display: "Archivo Black", Impact, "Arial Black", sans-serif;
  --body: "Atkinson", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px; --gutter: 16px; --max: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy); color: var(--cream); font-family: var(--body); font-size: 18px; line-height: 1.55; overflow-x: hidden; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 9vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-family: var(--body); font-weight: 700; }
.hl { color: var(--gold); }
.dim { color: var(--muted); }
.small { font-size: .9rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--peach); margin: 0 0 .9rem; }
.lede { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 42rem; color: #e9e2d2; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--gutter); max-width: var(--max); margin: 0 auto; }
.wordmark { font-family: var(--display); font-size: 1.1rem; color: var(--cream); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.sun-dot { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, var(--gold), var(--sun)); box-shadow: 0 0 14px var(--sun); }
.nav nav { display: flex; align-items: center; gap: 16px; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav nav a:hover { color: var(--cream); }
.nav nav a.btn, .nav nav a.btn:hover { color: #1a1000; }
@media (max-width: 560px) { .nav nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--sun); color: #1a1000; font-weight: 700; text-decoration: none; border: 2px solid transparent; border-radius: 999px; padding: 12px 22px; font-size: 1rem; cursor: pointer; font-family: var(--body); transition: transform .08s ease, background .15s ease; }
.btn:hover { background: var(--gold); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 16px 30px; font-size: 1.15rem; }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { background: var(--navy-2); color: var(--cream); }

/* Hero */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero-sm { padding: 40px 0 24px; }
.hero .wrap { position: relative; z-index: 1; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.sun { position: absolute; right: -120px; bottom: -220px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle at 45% 40%, var(--gold) 0 40%, var(--sun) 41% 100%); box-shadow: 0 0 120px 40px rgba(255, 158, 46, .28), 0 0 260px 120px rgba(255, 158, 46, .12); animation: refuse 6s ease-in-out infinite; pointer-events: none; }
@keyframes refuse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .sun { animation: none; } }
@media (max-width: 720px) { .sun { width: 300px; height: 300px; right: -110px; bottom: -170px; } }

/* Countdown */
.countdown { margin-top: 36px; display: inline-block; background: rgba(8, 12, 30, .55); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; backdrop-filter: blur(6px); }
.cd-label { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.cd-grid { display: flex; gap: 18px; margin: 8px 0 4px; }
.cd-grid div { display: flex; flex-direction: column; align-items: center; min-width: 54px; }
.cd-grid b { font-family: var(--display); font-size: clamp(1.6rem, 6vw, 2.6rem); color: var(--cream); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-grid span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.cd-sub { font-size: .9rem; color: var(--peach); font-style: italic; }

/* Counter band */
.counter-band { background: linear-gradient(180deg, var(--navy-2), var(--navy)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; text-align: center; }
.big-number { font-family: var(--display); font-size: clamp(3rem, 12vw, 6.5rem); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(255, 205, 92, .25); }
.counter-label { font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 700; margin-top: 6px; }

/* Pledge */
.pledge { padding: 64px 0; }
.pledge-card { background: var(--cream); color: #1b1a2e; border-radius: var(--radius); padding: clamp(22px, 5vw, 48px); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); position: relative; }
.pledge-card::before { content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(27, 26, 46, .18); border-radius: calc(var(--radius) - 6px); pointer-events: none; }
.pledge-card .kicker { color: #9a5a0a; }
.pledge-card h2 { color: #1b1a2e; }
.pledge-intro { font-size: 1.15rem; line-height: 2.1; }
.inline-input, .inline-select { font: inherit; font-weight: 700; color: #1b1a2e; background: #fff; border: 0; border-bottom: 3px solid #1b1a2e; padding: 2px 10px; border-radius: 6px 6px 0 0; }
.inline-input { width: 11ch; max-width: 60vw; }
.inline-select { max-width: 70vw; }
.bad { border-color: var(--bad) !important; background: #fff0f0; }
.error { color: #b3261e; font-weight: 700; margin: 4px 0 0; }
.clauses { padding-left: 1.3em; margin: 18px 0; }
.clauses li { margin: 10px 0; }
.signed { font-style: italic; color: #4a4860; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.pledge-card .btn { box-shadow: 0 10px 30px rgba(255, 158, 46, .35); }
.fine { font-size: .85rem; color: #5a5870; margin: 14px 0 0; text-align: center; }

/* Wall */
.wall { padding: 0 0 56px; }
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--navy-deep); padding: 12px 0; white-space: nowrap; }
.ticker-track { display: inline-block; animation: scroll 60s linear infinite; padding-left: 100%; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: inline-block; margin-right: 44px; color: var(--muted); }
.tick b { color: var(--cream); }
.tick::after { content: "☀"; color: var(--sun); margin-left: 44px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; padding-left: var(--gutter); } }
.boards { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
@media (min-width: 760px) { .boards { grid-template-columns: 3fr 2fr; } }
.board { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.tab { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.tab.active { background: var(--sun); color: #1a1000; border-color: var(--sun); }
.board-table { width: 100%; border-collapse: collapse; }
.board-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.board-table tr:last-child td { border-bottom: 0; }
.rank { color: var(--peach); font-family: var(--display); width: 2ch; }
.num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.badge { font-size: .7rem; background: var(--gold); color: #1a1000; border-radius: 999px; padding: 2px 8px; font-weight: 700; vertical-align: middle; }
.recent { list-style: none; padding: 0; margin: 0; }
.recent li { padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.recent li:last-child { border-bottom: 0; }

/* How-to & FAQ */
.howto, .faq { padding: 64px 0; border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; margin: 10px 0 30px; }
.cheat { width: 100%; border-collapse: collapse; min-width: 560px; }
.cheat th, .cheat td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cheat th { color: var(--peach); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.accordion details { background: var(--navy-2); border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; padding: 0 18px; }
.accordion summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--gold); font-family: var(--display); font-size: 1.3rem; }
.accordion details[open] summary::after { content: "–"; }
.accordion details > *:not(summary) { margin-top: 0; }
.accordion details > p, .accordion details > ol { padding-bottom: 14px; }
.note { font-size: .9rem; color: var(--muted); }
.bottom-cta { text-align: center; margin-top: 36px; }

/* Share page */
.share { padding: 10px 0 64px; }
.card-img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); display: block; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.share-x { background: #1d9bf0; color: #fff; } .share-fb { background: #1877f2; color: #fff; } .share-threads { background: #111; color: #fff; border-color: #333; }
.share-bsky { background: #0085ff; color: #fff; } .share-reddit { background: #ff4500; color: #fff; } .share-sms { background: #34c759; color: #fff; } .share-email { background: var(--navy-2); color: var(--cream); border-color: var(--line); }
.share-row .btn:hover { filter: brightness(1.1); }
.next-steps { margin-top: 30px; background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.next-steps ul { margin: 0; padding-left: 1.2em; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 60px; color: var(--muted); font-size: .95rem; }
.footer p { margin: 0 0 10px; }
