/* Veto SMP public site. Royal/political: a navy assembly hall, crimson sash, gold seal, and one cream decree sheet
   (today's law) as the memorable piece. Palatino for proclamations, the system sans for everything else. */
:root {
  --navy: #0B1530;
  --navy2: #111E40;
  --navy3: #18284F;
  --rule: #24365F;
  --crimson: #B3263A;
  --gold: #E3B341;
  --paper: #F2E8CF;
  --ink: #22180F;
  --text: #EEE8DA;
  --muted: #A7B0C4;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--text); font: 16px/1.6 var(--sans);
  background-image: radial-gradient(900px 500px at 85% -10%, rgba(179, 38, 58, .22), transparent 60%), radial-gradient(700px 500px at -10% 30%, rgba(227, 179, 65, .07), transparent 60%); background-repeat: no-repeat; }
a { color: var(--gold); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; }
p { margin: 0; }
.muted { color: var(--muted); }

/* ---------- top bar */
.top { display: flex; align-items: center; gap: 22px; padding-block: 20px; }
.crest { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 700 21px var(--serif); }
.crest svg { width: 40px; height: 44px; }
.top nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; padding: 11px 20px; font: 650 15px var(--sans); text-decoration: none; cursor: pointer; border: 1px solid var(--rule); background: var(--navy3); color: var(--text); transition: transform .12s, filter .2s, border-color .2s; }
.btn:hover { border-color: var(--gold); }
.btn:active { transform: scale(.97); }
.btn.sash { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.btn.sash:hover { filter: brightness(1.12); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1E1505; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- hero: join first, decree beside it */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 56px; align-items: center; padding-block: 56px 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; max-width: 12ch; }
.hero .lede { font-size: 19px; color: #D4D9E4; max-width: 46ch; margin-top: 18px; }
.pass { margin-top: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 8px 8px 26px; border-radius: 999px; background: var(--navy2); border: 1px solid var(--rule); box-shadow: 0 18px 50px -24px rgba(227, 179, 65, .45); max-width: 100%; }
.pass code { font: 700 clamp(22px, 2.6vw, 28px) var(--sans); letter-spacing: -.01em; color: var(--text); white-space: nowrap; }
.pass .btn { margin-left: 14px; }
.live { margin-top: 16px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #5CD68B; margin-right: 8px; box-shadow: 0 0 0 0 rgba(92, 214, 139, .6); animation: ping 2.2s ease-out infinite; }
.dot.off { background: #E25B5B; animation: none; }
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(92, 214, 139, 0); } }

/* the decree: the one loud thing on the page */
.decree { position: relative; background: var(--paper); color: var(--ink); border-radius: 6px 6px 18px 18px; padding: 34px 32px 30px; transform: rotate(1.2deg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(34, 24, 15, .08), inset 0 0 60px rgba(160, 120, 60, .18); }
.decree::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid rgba(34, 24, 15, .25); border-radius: 3px 3px 12px 12px; pointer-events: none; }
.decree .by { font: 600 14px var(--serif); color: #6B5536; }
.decree h2 { font-size: clamp(34px, 4vw, 46px); margin: 6px 0 10px; color: var(--ink); }
.decree p { font: 17px/1.55 var(--serif); color: #3A2D1C; }
.decree .when { margin-top: 20px; padding-top: 14px; border-top: 1px dashed rgba(34, 24, 15, .3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 600 15px var(--sans); color: #4B3A22; }
.decree .when b { font-variant-numeric: tabular-nums; color: var(--crimson); }
.seal { position: absolute; right: -18px; bottom: -26px; width: 104px; height: 104px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); animation: stamp .55s cubic-bezier(.3, 1.5, .5, 1) .5s both; }
@keyframes stamp { from { transform: scale(1.8) rotate(-25deg); opacity: 0; } }

/* ---------- strips and sections */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
.strip > div { background: var(--navy2); padding: 20px 24px; }
.strip .k { color: var(--muted); font-size: 14px; }
.strip .v { font: 700 24px var(--serif); margin-top: 4px; font-variant-numeric: tabular-nums; }
section { padding-block: 84px 0; }
section header { max-width: 640px; margin-bottom: 34px; }
section header p { margin-top: 12px; color: var(--muted); font-size: 17px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--navy2); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--crimson); color: #fff; font: 700 16px var(--serif); margin-bottom: 14px; }
.steps b { display: block; font: 700 19px var(--serif); margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }

.laws { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.law { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--navy2); border: 1px solid var(--rule); }
.law .ico { font-size: 24px; line-height: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--navy3); flex: none; }
.law b { font: 700 17px var(--serif); }
.law p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.law.now { border-color: var(--gold); background: linear-gradient(160deg, rgba(227, 179, 65, .14), transparent 70%), var(--navy2); }
.law .tag { margin-left: 6px; font: 700 11.5px var(--sans); color: #1E1505; background: var(--gold); padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }

.powers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.office { background: var(--navy2); border: 1px solid var(--rule); border-radius: 22px; padding: 28px; }
.office .who { font: 700 30px var(--serif); margin: 4px 0 6px; }
.office .slogan { font: italic 17px var(--serif); color: #D4D9E4; }
.power-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.power-list li { display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--rule); background: rgba(17, 30, 64, .6); }
.power-list .n { font: 700 26px var(--serif); color: var(--gold); width: 60px; flex: none; text-align: center; }
.power-list b { display: block; font-weight: 650; }
.power-list p { color: var(--muted); font-size: 14.5px; }

.votes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.votes a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 16px; background: var(--navy2); border: 1px solid var(--rule); color: var(--text); text-decoration: none; font-weight: 650; transition: border-color .2s, transform .15s; }
.votes a:hover { border-color: var(--gold); transform: translateY(-2px); }
.votes a span { color: var(--gold); }

.discord { margin-top: 84px; border-radius: 24px; padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(179, 38, 58, .35), rgba(17, 30, 64, .9) 60%), var(--navy2); border: 1px solid var(--rule); }
.discord h2 { font-size: clamp(26px, 3vw, 34px); }
.discord p { color: #D4D9E4; margin-top: 8px; max-width: 52ch; }

footer { margin-top: 90px; padding-block: 32px 40px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

/* ---------- store */
.charters { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: stretch; }
.charter { position: relative; border-radius: 22px; padding: 30px 28px; background: var(--navy2); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 16px; }
.charter.patron { border-color: rgba(179, 38, 58, .7); background: linear-gradient(170deg, rgba(179, 38, 58, .2), transparent 55%), var(--navy2); }
.charter .badge { align-self: flex-start; font: 700 13px var(--sans); padding: 4px 12px; border-radius: 999px; background: var(--gold); color: #1E1505; }
.charter.patron .badge { background: var(--crimson); color: #fff; }
.charter h3 { font-size: 30px; }
.charter .price { font: 700 44px var(--serif); line-height: 1; }
.charter .price small { font: 500 15px var(--sans); color: var(--muted); margin-left: 6px; }
.charter ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.charter li { display: flex; gap: 10px; align-items: flex-start; color: #D4D9E4; }
.charter li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E1505' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.charter .btn { margin-top: auto; justify-content: center; }
.fine { margin-top: 26px; padding: 18px 22px; border-radius: 16px; border: 1px dashed var(--rule); color: var(--muted); font-size: 15px; }
.pwyw { display: flex; gap: 8px; flex-wrap: wrap; }
.pwyw button { border-radius: 999px; border: 1px solid var(--rule); background: var(--navy3); color: var(--text); font: 650 15px var(--sans); padding: 9px 16px; cursor: pointer; }
.pwyw button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }

/* one entrance on load; the seal stamp above is the only other moment */
.rise { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.rise.d1 { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.decree.rise { animation-name: rise-tilt; }
@keyframes rise-tilt { from { opacity: 0; transform: translateY(16px) rotate(1.2deg); } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 28px 56px; }
  .powers { grid-template-columns: 1fr; }
  .top nav a.hide-sm { display: none; }
  .decree { transform: none; margin-right: 12px; }
  .top { gap: 12px; }
  .top nav { gap: 14px; flex-wrap: nowrap; }
  .crest { white-space: nowrap; font-size: 19px; }
  .top .btn { padding: 8px 14px; font-size: 14px; white-space: nowrap; }
  /* the join pass stacks: address on its own line, full-width copy button below */
  .pass { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; border-radius: 22px; width: 100%; }
  .pass code { text-align: center; overflow-wrap: normal; }
  .pass .btn { margin-left: 0; justify-content: center; }
  .discord { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
