/* stakesystems.io. One stylesheet: one dark theme, system fonts, no images, nothing from third parties. */

:root {
  color-scheme: dark;
  --paper: #0b0a0a;
  --surface: #141211;
  --ink: #f4efe8;
  --ink-2: #cdc5bb;
  --muted: #938b82;
  --rule: #2d2826;
  --rule-soft: #1e1b19;
  --red: #f25c54;
  --ok: #6fdc9a;
  --warn: #f2b84b;
  --yes: #7a726a;
  --abstain: #4a4541;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  --gut: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
b { font-weight: 650; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--red); color: var(--paper); }
[hidden] { display: none !important; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 8px 12px; background: var(--ink); color: var(--paper); }
.skip:focus { left: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 84%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule-soft); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1rem/1 var(--mono); text-decoration: none; }
.brand:hover { color: inherit; }
.brand-name { letter-spacing: -.01em; }
.mark { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--red); stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.nav { display: flex; align-items: center; gap: 26px; font-size: .9375rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--red); }
.nav .nav-cta, .btn-primary { border-color: var(--red); background: var(--red); color: var(--paper); }
.nav .nav-cta { padding: 8px 14px; border-radius: 3px; font: 700 .8125rem/1 var(--mono); }
.nav .nav-cta:hover, .btn-primary:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* hero: the statement, and the 2022 vote as a ring of ticks */
.hero { overflow: hidden; border-bottom: 1px solid var(--rule); background-color: #080707;
  background-image: radial-gradient(46% 58% at 79% 40%, rgba(242, 92, 84, .17), transparent 72%), radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 1.5px);
  background-size: auto, 30px 30px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; padding-top: 76px; padding-bottom: 52px; }
.hero-copy { min-width: 0; }
.eyebrow { margin-bottom: 24px; color: var(--red); font: 600 .8125rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
h1 { font-size: clamp(2.7rem, 5.6vw + .5rem, 5.2rem); font-weight: 750; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
h1 em { color: var(--red); font-style: normal; }
.lede { max-width: 34em; margin-top: 28px; color: var(--ink-2); font-size: 1.1875rem; line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border: 1.5px solid var(--muted); border-radius: 3px; font: 700 .9375rem/1 var(--mono); text-decoration: none; }
.btn:hover { border-color: var(--red); color: var(--red); }
.btn-primary::after { content: "→"; }

.ring-fig { min-width: 0; }
.ring { display: block; width: 100%; max-width: 540px; height: auto; margin: 0 auto; }
.ring line { stroke-width: 2.4; stroke-linecap: round; }
.ring-orbit { fill: none; stroke: var(--rule); stroke-width: 1.5; stroke-dasharray: 2 10; transform-origin: 300px 300px; animation: orbit 240s linear infinite; }
.ring-hair { fill: none; stroke: var(--rule-soft); }
.t-yes { stroke: var(--yes); animation: arrive 1.4s .7s both; }
.t-abstain { stroke: var(--abstain); animation: arrive 1.2s .5s both; }
.t-no { stroke: var(--ink-2); animation: arrive 1s .4s both; }
.t-veto { stroke: var(--red); animation: arrive .8s both, glow 3.6s 1.4s ease-in-out infinite; }
.t-veto line, .t-us line { stroke-width: 3.2; }
.t-us { fill: var(--ink); stroke: var(--ink); animation: arrive .8s .9s both; }
.t-us circle { stroke: none; }
.ring-us { fill: var(--ink); font: 700 17px var(--mono); letter-spacing: .14em; animation: arrive .8s 1.1s both; }
.ring-num { fill: var(--red); font: 750 120px var(--sans); letter-spacing: -.05em; }
.ring-pct { font-size: 58px; letter-spacing: 0; }
.ring-cap { fill: var(--ink-2); font: 600 19px var(--mono); letter-spacing: .2em; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes arrive { from { opacity: 0; } }
@keyframes glow { 50% { opacity: .6; } }
@keyframes beat { 50% { opacity: .35; } }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-top: 16px; color: var(--muted); font: 500 .78rem/1.4 var(--mono); }
.legend b { color: var(--ink-2); font-weight: 600; }
.legend li::before, .row dt::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 2px; background: var(--k); }
.k-yes { --k: var(--yes); }
.k-abstain { --k: var(--abstain); }
.k-no { --k: var(--ink-2); }
.k-veto { --k: var(--red); }
.ring-src { margin-top: 10px; color: var(--muted); font-size: .8125rem; text-align: center; }

.ticker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.tick { display: grid; align-content: start; gap: 3px; padding: 18px 16px 20px 0; text-decoration: none; }
.tick + .tick { padding-left: 16px; border-left: 1px solid var(--rule-soft); }
.tick:hover .tick-name { color: var(--red); }
.tick-name { font-weight: 650; }
.tick-role, .net-role, .tri-k, .tally-k, .chan-k, .ids dt, .reading dt { color: var(--muted); font: 500 .7rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.tick-state { font: 500 .78rem/1.4 var(--mono); }
.pill::before, .tick-state::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.is-ok { color: var(--ok); }
.is-ok::before { animation: beat 2.4s ease-in-out infinite; }
.is-warn { color: var(--warn); }
.is-bad { color: var(--red); }
.is-off { color: var(--muted); }

/* sections */
.sec { padding: 104px 0; border-bottom: 1px solid var(--rule-soft); }
.sec-head { max-width: 47rem; margin-bottom: 52px; }
.sec-no, .eyebrow, .panel-k, .principle-k { color: var(--red); }
.sec-no, .panel-k, .principle-k { margin-bottom: 18px; font: 600 .8125rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 3vw + 1rem, 3.3rem); font-weight: 720; line-height: 1.03; letter-spacing: -.035em; text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: 680; line-height: 1.2; letter-spacing: -.015em; }
.sec-sub { margin-top: 20px; color: var(--ink-2); font-size: 1.1875rem; line-height: 1.5; }

/* 01 mission */
.tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.tri-item { padding: 30px 32px 0 0; }
.tri-item + .tri-item { padding-left: 32px; border-left: 1px solid var(--rule-soft); }
.tri-k { margin-bottom: 14px; }
.tri-item h3 { margin-bottom: 12px; font-size: 1.6rem; letter-spacing: -.025em; }
.tri-item p:last-child, .q p:last-child, .practice p, .panel p:last-child, .story > p, .net-note, .quorum-lead { color: var(--ink-2); }

/* 02 networks: one row per network, the live readings on the right */
.board { border-top: 1px solid var(--rule); }
.net { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 56px; padding: 40px 0; border-bottom: 1px solid var(--rule); }
.net-main { min-width: 0; }
.net-side { min-width: 0; align-self: center; }
.net-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.pill { padding: 3px 10px 4px; border: 1px solid currentColor; border-radius: 999px; font: 600 .72rem/1.3 var(--mono); }
.net h3 { font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem); font-weight: 720; line-height: 1.05; letter-spacing: -.035em; }
.ids { display: grid; gap: 8px; margin-top: 18px; }
.ids dd, .addr { color: var(--ink-2); font: 400 .8125rem/1.45 var(--mono); overflow-wrap: anywhere; }
.net-note { max-width: 35em; margin-top: 18px; font-size: .975rem; }
.readings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); }
.reading { min-width: 0; padding: 16px 18px 18px; }
.reading:nth-child(odd) { border-right: 1px solid var(--rule); }
.reading:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
.reading dt { margin-bottom: 8px; }
.val { font: 600 1.375rem/1.15 var(--mono); letter-spacing: -.02em; overflow-wrap: anywhere; }
.sub, .net-src { color: var(--muted); font: 400 .72rem/1.4 var(--mono); }
.sub { margin-top: 5px; }
.net-off, .net-static { color: var(--muted); font-size: .95rem; }
.net-off { padding: 16px 18px; border: 1px dashed var(--rule); border-radius: 4px; }
.net-static { max-width: 30em; padding-left: 18px; border-left: 2px solid var(--rule); }
.net-src { margin-top: 10px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font: 600 .8125rem/1.4 var(--mono); }
.links a::after { content: " ↗"; color: var(--red); }

/* 03 record */
.record { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.story { min-width: 0; }
.story > p { max-width: 36em; }
.story > * + p { margin-top: 18px; }
.story b { color: var(--ink); }
.quote { margin: 26px 0; padding-left: 22px; border-left: 2px solid var(--red); }
.quote p { font-size: clamp(1.3rem, 1vw + 1rem, 1.65rem); font-weight: 600; line-height: 1.28; letter-spacing: -.02em; text-wrap: balance; }
.quote footer { margin-top: 12px; color: var(--muted); font: 400 .78rem/1.5 var(--mono); }
.tally { position: sticky; top: 92px; padding: 26px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); }
.tally-k { margin-bottom: 18px; }
.bar { display: block; width: 100%; height: 12px; margin-bottom: 14px; }
.b-yes { fill: var(--yes); }
.b-abstain { fill: var(--abstain); }
.b-no { fill: var(--ink-2); }
.b-veto { fill: var(--red); }
.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto 7.5em; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule-soft); font: 500 .875rem/1.4 var(--mono); }
.row-pct { font-weight: 650; }
.row-pow { color: var(--muted); text-align: right; }
.row.k-veto dt, .row.k-veto .row-pct { color: var(--red); }
.ours { margin-left: 8px; padding: 2px 7px; border-radius: 3px; background: var(--red); color: var(--paper); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tally-src { margin-top: 16px; color: var(--muted); font-size: .8125rem; }
.principle, .foot-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 20px 48px; }
.principle { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--rule); }
.principle-t { font-size: clamp(1.5rem, 1.8vw + 1rem, 2.4rem); font-weight: 650; line-height: 1.18; letter-spacing: -.028em; text-wrap: balance; }

/* 04 method */
.quorum-lead { max-width: 44em; margin-bottom: 24px; }
.quorum-lead b { color: var(--ink); }
.quorum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--rule); border-radius: 4px; background: var(--rule); }
.q { padding: 24px 22px 26px; background: var(--surface); }
.q-k { margin-bottom: 16px; color: var(--ok); font: 600 .75rem/1 var(--mono); letter-spacing: .1em; }
.q-k::before { content: "✓ "; }
.q h3, .practice h3 { margin-bottom: 8px; }
.q p:last-child, .practice p { font-size: .975rem; }
.practices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; margin-top: 56px; }
.practice { padding: 24px 0 26px; border-top: 1px solid var(--rule); }
.practice h3 { font-size: 1.125rem; }

/* 05 accountability */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.panel { padding: 34px 32px 36px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); }
.panel h3 { margin-bottom: 14px; font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem); font-weight: 720; line-height: 1.1; letter-spacing: -.03em; }
.bounty { color: var(--red); font-family: var(--mono); letter-spacing: -.05em; }

/* 06 contact, footer */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; }
.contact .sec-head { margin-bottom: 0; }
.channels { border-top: 1px solid var(--rule); }
.channels li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); font: 600 1.0625rem/1.3 var(--mono); overflow-wrap: anywhere; }
.foot { padding: 44px 0 56px; color: var(--muted); font-size: .8125rem; }
.foot-name { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font: 600 .875rem/1 var(--mono); }
.foot-text { max-width: 62em; }
.foot-text p + p { margin-top: 12px; }

@media (max-width: 980px) {
  .hero { background-image: radial-gradient(60% 30% at 50% 58%, rgba(242, 92, 84, .16), transparent 72%), radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 1.5px); }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 52px; }
  .ring { max-width: 430px; }
  .ticker { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .tick, .tick + .tick { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--rule-soft); }
  .tri, .net, .record, .principle, .practices, .duo, .contact, .foot-in { grid-template-columns: minmax(0, 1fr); }
  .tri-item, .tri-item + .tri-item { padding: 26px 0; border-left: 0; }
  .tri-item + .tri-item { border-top: 1px solid var(--rule-soft); }
  .record { gap: 40px; }
  .tally { position: static; }
  .quorum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 560px) {
  :root { --gut: 18px; }
  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 40px; }
  .ticker { grid-template-columns: minmax(0, 1fr); }
  .tick { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; }
  .tick-role { grid-row: 2; }
  .tick-state { grid-row: 1; grid-column: 2; }
  .quorum { grid-template-columns: minmax(0, 1fr); }
  .val { font-size: 1.125rem; }
  .reading { padding: 14px 14px 16px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row-pow { grid-column: 1 / -1; text-align: left; }
  .panel, .tally { padding: 24px 20px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring-orbit, .ring-us, .t-yes, .t-abstain, .t-no, .t-veto, .t-us, .is-ok::before { animation: none; }
}
