/* Runway at night: the identity's palette. Night first; day is the same system on white.
   Verdict colours are text-safe on both grounds; rule (unlit lamps, hairlines) never carries meaning alone. */
:root{color-scheme:dark;
 --ground:#0E1A2C;--raised:#15253B;--rule:#2B3D57;--text:#F2F1E9;--dim:#9AA6B9;
 --allow:#00EC97;--warn:#FFB547;--block:#FF6B5F;
 --sans:"Mona Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
 --mono:"B612 Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
@media (prefers-color-scheme:light){:root{color-scheme:light;
 --ground:#FFFFFF;--raised:#F1F4F8;--rule:#D2D9E3;--text:#0E1A2C;--dim:#526075;
 --allow:#00794D;--warn:#965A00;--block:#C8352B}}

*{box-sizing:border-box}
html{background:var(--ground)}
body{margin:0 auto;max-width:64rem;padding:2rem 16px 3rem;background:var(--ground);color:var(--text);
 font:400 1rem/1.55 var(--sans);font-stretch:100%;-webkit-text-size-adjust:100%}
h1,h2{font-family:var(--sans);font-weight:700;font-stretch:112.5%;letter-spacing:-.01em}
h1{font-size:2rem;line-height:1;margin:0}
h2{font-size:1.25rem;line-height:1.3;margin:0 0 .75rem}
h2 small{font:400 .875rem var(--sans);font-stretch:100%;letter-spacing:0;color:var(--dim);margin-left:.25rem}
p{margin:0 0 .75rem}
h1,h2{text-wrap:balance}
p,li,dd{text-wrap:pretty}
code{font-family:var(--mono);font-size:.84em;overflow-wrap:anywhere}
a{color:inherit;text-decoration:underline;text-decoration-color:var(--dim);text-decoration-thickness:1px;text-underline-offset:.2em}
a:hover{text-decoration-color:currentColor}
:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.note,.status{color:var(--dim);font-size:.9rem;max-width:44rem}
.err{color:var(--block);font-weight:600}
.empty{color:var(--dim)}

/* Header: the go/no-go board beside the name. */
.brand{display:flex;align-items:center;gap:.875rem;margin-bottom:1.25rem}
a.brand{width:fit-content;text-decoration:none}
.brand img{display:block;width:48px;height:48px}
.lede{font-size:1.125rem;line-height:1.5;max-width:44rem}

main>section,details.more{margin-top:2.75rem;padding-top:1.25rem;border-top:1px solid var(--rule)}

/* So far */
.summary{font-size:1.3rem;line-height:1.45;max-width:46rem;margin-bottom:1rem}
.summary strong{font-weight:700;font-variant-numeric:tabular-nums}
.allow{color:var(--allow)} .warn{color:var(--warn)} .block{color:var(--block)} .pending{color:var(--dim)}
.bar{display:flex;gap:2px;height:6px;max-width:46rem;background:var(--rule)}
.bar span{display:block}
.bar .block{background:var(--block)} .bar .warn{background:var(--warn)} .bar .allow{background:var(--allow)} .bar .pending{background:var(--dim)}

/* How one check goes: the four lamps of the board, one per step, joined like the launch tower.
   Unlit until a signed purchase is read, then lit in order, once. */
.steps{list-style:none;counter-reset:step;margin:0 0 1rem;padding:0;max-width:46rem}
.steps li{counter-increment:step;position:relative;padding:0 0 1.25rem 2.75rem}
.steps li::before{content:counter(step);position:absolute;left:0;top:.1rem;width:1.75rem;height:1.75rem;display:grid;place-items:center;
 font:700 .8rem/1 var(--mono);background:var(--rule);color:var(--dim);transition:background-color .25s,color .25s}
.steps li:not(:last-child)::after{content:"";position:absolute;left:calc(.875rem - 1px);top:calc(1.85rem + 4px);bottom:4px;width:2px;background:var(--rule)}
.steps.lit li::before{background:var(--allow);color:var(--ground)}
.steps.lit[data-v=warn] li::before{background:var(--warn)}
.steps li:nth-child(2)::before{transition-delay:.18s} .steps li:nth-child(3)::before{transition-delay:.36s} .steps li:nth-child(4)::before{transition-delay:.54s}
.steps li>b:first-child{display:block;font-weight:600}
.steps q{quotes:"\201C" "\201D"}

/* Facts: a raised panel of label and value. */
.facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.4rem 1.5rem;margin:0;padding:1rem 1.25rem;background:var(--raised)}
.facts dt{color:var(--dim)} .facts dd{margin:0;overflow-wrap:anywhere;min-width:0}
.stack{display:flex;flex-direction:column;gap:.15rem}
.vote small{color:var(--dim);font-size:.82rem;margin-left:.35rem}
.blob{display:block;max-height:6.5rem;overflow:auto;margin-top:.2rem;padding:.4rem .55rem;background:var(--ground);word-break:break-all;font-size:.78rem}

/* A check: its four lamps in the verdict's colour, then the word. Asked, simulated and stored light with the verdict;
   the fourth (NEAR signs) only on .signed. Pending: asked only. */
.verdict{font:700 .84em var(--mono);letter-spacing:.02em}
.v{display:inline-flex;align-items:baseline;gap:.5rem;white-space:nowrap}
.lamps{display:inline-flex;gap:3px;align-self:center}
.lamps i{display:block;width:6px;height:6px;background:var(--rule)}
.v:is(.allow,.warn,.block) i:nth-child(-n+3),.v.signed i,.v.pending i:first-child{background:currentColor}
.legend{max-width:none;margin-top:-.35rem}
.legend .lamps{vertical-align:.08em;margin-right:.45rem}
.legend .lamps i{background:var(--dim)}
code.acct{font-family:var(--sans);font-size:1em}

/* The journal: one <details> per check, its summary laid out as a row. */
.log-head,.row{display:grid;grid-template-columns:3rem minmax(0,15rem) 6.5rem minmax(0,1fr);gap:1rem;align-items:baseline}
.log-head{font-size:.8rem;color:var(--dim);padding:0 .75rem .4rem 1.75rem;border-bottom:1px solid var(--rule)}
.log{list-style:none;margin:0;padding:0}
.log>li{border-bottom:1px solid var(--rule)}
.log>li.empty,.log>li.gone{padding:.65rem .75rem .65rem 1.75rem;color:var(--dim)}
.log summary{padding:.65rem .75rem .65rem 1.75rem;cursor:pointer;list-style:none;position:relative}
.log summary::-webkit-details-marker{display:none}
.log summary:hover{background:var(--raised)}
.log summary::before,details.more>summary::before{content:"";position:absolute;left:.6rem;top:1.15rem;border:.28rem solid transparent;border-left-color:var(--dim);border-right-width:0;transition:transform .15s}
.log details[open] summary::before,details.more[open]>summary::before{transform:rotate(90deg)}
.log details[open] summary{background:var(--raised)}
.log details .facts{padding:.25rem .75rem 1rem 1.75rem;font-size:.92rem}
.id{font:400 .84rem var(--mono);color:var(--dim);font-variant-numeric:tabular-nums}
.tok{display:flex;flex-direction:column;min-width:0}
.addr{font-size:.72rem;color:var(--dim)}
.why{min-width:0;overflow-wrap:anywhere}
.why small,.kind small{color:var(--dim);font-size:.82rem}

table{width:100%;border-collapse:collapse;font-size:.92rem}
th,td{text-align:left;padding:.55rem .75rem .55rem 0;border-bottom:1px solid var(--rule);vertical-align:top}
th{font-size:.8rem;font-weight:400;color:var(--dim);padding-top:0}
td code{font-size:.8rem}

details.more>summary{cursor:pointer;list-style:none;position:relative;padding-left:1.1rem}
details.more>summary::-webkit-details-marker{display:none}
details.more>summary::before{left:.1rem;top:.55rem}
details.more>summary h2{display:inline;margin:0}
details.more[open]>summary{margin-bottom:.9rem}

footer{margin-top:3rem;padding-top:1.25rem;border-top:1px solid var(--rule);color:var(--dim);font-size:.85rem}
footer p{margin:.25rem 0;max-width:none}

@media (prefers-reduced-motion:reduce){.steps li::before,.log summary::before,details.more>summary::before{transition:none}}
@media (max-width:720px){
 body{padding-top:1.25rem}
 h1{font-size:1.6rem}
 .brand img{width:32px;height:32px}
 .lede{font-size:1.05rem}
 .summary{font-size:1.15rem}
 .facts{grid-template-columns:minmax(0,1fr);gap:0;padding:.85rem 1rem}
 .facts dd{margin-bottom:.5rem}
 .log-head{display:none}
 .log{border-top:1px solid var(--rule)}
 .row{grid-template-columns:auto minmax(0,1fr);gap:.3rem .75rem}
 .row .id{grid-column:1;grid-row:1}
 .row .kind{grid-column:2;grid-row:1}
 .row .v{grid-column:1/3;grid-row:2;justify-self:start}
 .row .why{grid-column:1/3;grid-row:3}
 .log summary{padding-left:1.5rem}
 .log summary::before{left:.45rem}
 .log details .facts{padding-left:1.5rem}
 thead{position:absolute;left:-9999px}
 table,tbody,tr,td{display:block;width:100%}
 tr{border-top:1px solid var(--rule);padding:.5rem 0}
 tr:last-child{border-bottom:1px solid var(--rule)}
 td{border:0;padding:.1rem 0}
 #blocklist td:nth-child(n+2)::before{color:var(--dim);font-size:.8rem;margin-right:.5rem}
 #blocklist td:nth-child(2)::before{content:"Listed by"} #blocklist td:nth-child(3)::before{content:"When"} #blocklist td:nth-child(4)::before{content:"Note"}
 #blocklist td.empty::before{content:none}
 .facts code:not(.acct,.blob){font-size:.7rem}
}

/* Landing page (index.html). Everything below is scoped to body.landing: the journal is untouched.
   One loud thing, the board of "Run a check"; the rest stays quiet. Verdict colours mean verdicts only:
   buttons and links use the text colour. */
.landing{max-width:74rem;padding:0 clamp(16px,4vw,48px) 3rem;font-size:1.0625rem}
.landing h1{font-size:clamp(2.5rem,1.1rem + 4.4vw,4.6rem);line-height:1.02;font-stretch:125%;letter-spacing:-.025em;max-width:15em;margin:0;text-wrap:balance}
.landing h2{font-size:clamp(1.6rem,1.2rem + 1.2vw,2.15rem);line-height:1.1;font-stretch:118%;letter-spacing:-.02em;margin:0 0 1rem}
.landing code{font-size:.84em}
.landing code.acct{font-size:1em}
.landing .note{font-size:.9375rem}
.landing .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.landing main>section{margin:0;padding:clamp(4rem,9vw,7.5rem) 0 0;border:0}
.landing .intro{color:var(--dim);max-width:40rem;margin-bottom:2rem}

.landing .top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.5rem 1.5rem;padding:1.5rem 0}
.landing .wordmark{font-weight:700;font-stretch:112.5%;font-size:1.125rem;text-decoration:none;letter-spacing:-.01em}
.landing .top nav{display:flex;gap:1.5rem}
.landing .top nav a{text-decoration-color:transparent}
.landing .top nav a:hover{text-decoration-color:currentColor}

/* Hero: the headline, two sentences, two buttons; then the pad, the logo standing on a ground line drawn at
   its own pixel size (96 px logo, 6 px pixels), and under it the live readout. */
.landing .hero{padding-top:clamp(2rem,5vw,4rem)}
.landing .lede{font-size:clamp(1.0625rem,1rem + .3vw,1.25rem);line-height:1.55;max-width:38rem;margin:0 0 .9rem}
.landing .hero .sub{font-size:clamp(1.125rem,.8rem + 1.5vw,2.1rem);line-height:1.2;font-stretch:112.5%;letter-spacing:-.01em;color:var(--dim);max-width:none;margin:clamp(.6rem,1.2vw,1rem) 0 0;text-wrap:balance}
.landing .hero .sub+.lede{margin-top:clamp(1.5rem,3vw,2.25rem)}
.landing .vw{font:700 .84em var(--mono)}
.allow.vw{color:var(--allow)} .warn.vw{color:var(--warn)} .block.vw{color:var(--block)}
.landing .cta{display:flex;flex-wrap:wrap;gap:.75rem;margin:0 0 1.75rem}
.landing .btn{display:inline-flex;align-items:center;min-height:2.75rem;padding:.55rem 1.15rem;border:1.5px solid var(--text);background:none;color:var(--text);
 font:600 1rem/1.2 var(--sans);font-stretch:112.5%;text-decoration:none;cursor:pointer}
.landing .btn:hover{background:var(--raised)}
.landing .btn.primary{background:var(--text);color:var(--ground)}
.landing .btn.primary:hover{background:var(--dim);border-color:var(--dim)}
.landing .btn.small{min-height:2.25rem;padding:.35rem .85rem;font-size:.9375rem}
.landing .btn:active{transform:translateY(1px)}
.landing .btn:disabled{opacity:.45;cursor:default}
.landing .btn:disabled:hover{background:none}
.landing .pad{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-top:clamp(1.75rem,3.5vw,2.5rem)}
.landing .pad::before{content:"";position:absolute;left:0;right:0;bottom:0;height:6px;background:var(--text)}
.landing .pad picture{flex:none}
.landing .pad img{display:block;width:96px;height:96px;margin-right:clamp(0px,6vw,4rem)}
.landing .live{margin:1.1rem 0 0;font-size:1.0625rem;max-width:none}
.landing .live strong{font:700 1.1em var(--mono);font-variant-numeric:tabular-nums}
.landing .live small{display:block;margin-top:.2rem;color:var(--dim);font-size:.875rem}

/* The demo film: the poster is a frame of the film, on the night ground in both themes. The width and height
   attributes and the ratio hold its place before anything loads. */
.landing .film video{display:block;width:100%;max-width:60rem;height:auto;aspect-ratio:16/9;background:#0E1A2C;outline:1px solid var(--rule)}

/* Run a check: the picker, then the board. A lamp per step, joined by a rail; lit in order in the text colour,
   then all of them in the verdict's colour once the verdict is stored; the fourth only if NEAR signed. */
.landing .console{display:grid;grid-template-columns:minmax(0,19rem) minmax(0,1fr);align-items:start}
.landing .picker{margin:0;padding:0;border:0;min-width:0}
/* The chosen token is a tab of the board: same ground, no gap between them. */
.landing .choice{display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 .85rem;padding:.75rem 1rem .75rem .9rem;cursor:pointer}
.landing .choice:has(input:checked){background:var(--raised)}
.landing .choice input{appearance:none;-webkit-appearance:none;margin:.42em 0 0;width:10px;height:10px;box-shadow:inset 0 0 0 1.5px var(--dim);cursor:pointer;grid-row:1/3}
.landing .choice input:checked{background:var(--text);box-shadow:none}
.landing .choice input:focus-visible{outline:2px solid var(--text);outline-offset:4px}
.landing .choice:has(input:checked){font-weight:600}
.landing .choice:hover .name{text-decoration:underline;text-decoration-color:var(--dim);text-underline-offset:.2em}
.landing .choice .id{font:400 .8125rem var(--sans);color:var(--dim)}
.landing .picker .btn{margin:1.25rem 0 0 .9rem}
.landing .picker .empty{margin:0;padding:.8rem .9rem;color:var(--dim)}

.landing .board{--vc:var(--text);background:var(--raised);padding:clamp(1.25rem,3vw,2rem) clamp(1rem,3vw,2.25rem) clamp(1.25rem,3vw,2rem);min-width:0}
.landing .board[data-v=allow]{--vc:var(--allow)} .landing .board[data-v=warn]{--vc:var(--warn)} .landing .board[data-v=block]{--vc:var(--block)}
.landing .caption{color:var(--dim);font-size:.9375rem;margin:0 0 1.75rem;max-width:44rem}
.landing .caption strong{color:var(--text);font-weight:600}
.landing .seq{list-style:none;margin:0;padding:0}
.landing .seq>li{position:relative;padding:0 0 1.5rem 2.6rem;min-height:3.25rem}
.landing .seq>li:last-child{padding-bottom:0}
.landing .seq .lamp{position:absolute;left:0;top:.15rem;width:20px;height:20px;background:var(--rule);transition:background-color .3s,box-shadow .4s}
.landing .seq>li:not(:last-child)::after{content:"";position:absolute;left:9px;top:28px;bottom:6px;width:2px;background:var(--rule);transition:background-color .3s}
.landing .seq>li>b{display:block;font-weight:600;font-stretch:112.5%;color:var(--dim);transition:color .3s}
.landing .seq .what{display:none;margin:.25rem 0 0;max-width:46rem;overflow-wrap:anywhere}
.landing .seq>li.on>b{color:var(--text)}
.landing .seq>li.on .what{display:block;animation:lit .45s ease-out}
@keyframes lit{from{opacity:0}}
.landing .seq>li.on .lamp{background:var(--text)}
.landing .seq>li.on:has(+li.on)::after{background:var(--text)}
.landing .board.judged .seq>li.on .lamp{background:var(--vc);box-shadow:0 0 18px -2px var(--vc)}
.landing .board.judged .seq>li.on:has(+li.on)::after{background:var(--vc)}
.landing .board.judged[data-signed=no] .seq>li:last-child.on .lamp{background:none;box-shadow:inset 0 0 0 2px var(--rule)}
.landing .board.judged[data-signed=no] .seq>li.on:nth-child(3)::after{background:var(--rule)}
.landing .what code{font-size:.8em}
.landing .what .acct{font-size:1em}
.landing .reasons{list-style:none;margin:.35rem 0 .35rem;padding:0}
.landing .reasons li{padding:0 0 .2rem;min-height:0}
.landing .reasons q{quotes:"\201C" "\201D"}
.landing .what small{color:var(--dim);font-size:.875rem}
.landing .plate{display:none;flex-wrap:wrap;align-items:center;gap:.5rem 1.1rem;margin:1.75rem 0 0;padding-top:1.5rem;border-top:1px solid var(--rule);max-width:none}
.landing .board.done .plate{display:flex;animation:lit .45s ease-out}
.landing .plate .lamps{gap:5px}
.landing .plate .lamps i{width:14px;height:14px}
.landing .plate .word{font:700 clamp(1.75rem,1.3rem + 1.5vw,2.5rem)/1 var(--mono);color:var(--vc);letter-spacing:.01em}
.landing .plate .means{flex:1 1 16rem;color:var(--text)}
.landing .board .err{display:block;margin-top:.5rem}

/* What it stops / does not stop: side by side, the second plainer. */
.landing .limits{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(3rem,6vw,5.5rem)}
.landing .threats{list-style:none;margin:0 0 1rem;padding:0;border-top:1px solid var(--rule)}
.landing .threats a{display:grid;grid-template-columns:9.5rem minmax(0,1fr);gap:1rem;align-items:baseline;padding:.85rem 0;border-bottom:1px solid var(--rule);text-decoration:none}
.landing .threats a:hover>span:last-child{text-decoration:underline;text-decoration-color:var(--dim);text-underline-offset:.2em}
.landing .threats .lamps i{width:7px;height:7px}
.landing .threats small{font:400 .8rem var(--sans);color:var(--dim)}
.landing .nostop ul{margin:0 0 1rem;padding:0;list-style:none;border-top:1px solid var(--rule)}
.landing .nostop li{padding:.85rem 0;border-bottom:1px solid var(--rule)}
.landing .nostop b{font-weight:600}

/* How one purchase goes: the diagram beside its numbered steps. */
.landing .how-grid{display:grid;grid-template-columns:minmax(0,35rem) minmax(0,1fr);gap:clamp(2rem,5vw,4rem);align-items:start;margin-bottom:1.5rem}
.landing .dia{display:block;width:100%;height:auto;overflow:visible}
.dia .region{fill:none;stroke:var(--rule);stroke-width:1.5;stroke-dasharray:6 5}
.dia .box{fill:var(--raised)}
.dia .box.key{stroke:var(--text);stroke-width:1.5}
.dia text{font-family:var(--sans)}
.dia .name{fill:var(--text);font-size:18px;font-weight:600;font-stretch:112.5%}
.dia .sub,.dia .tag{fill:var(--dim);font-size:14px}
.dia .arrows line{stroke:var(--dim);stroke-width:1.5;marker-end:url(#ah)}
.dia .arrows line.faint{stroke-dasharray:4 4}
.dia .ah{fill:var(--dim)}
.dia .badges rect{fill:var(--ground);stroke:var(--text);stroke-width:1.5}
.dia .badges text{fill:var(--text);font:700 13px var(--mono);text-anchor:middle}
.dia .badges .first{fill:var(--text)} .dia .badges .first+text{fill:var(--ground)}
.dia .relay{fill:var(--text);font-weight:600}
.landing .flow{list-style:none;counter-reset:f;margin:0;padding:0}
.landing .flow li{counter-increment:f;position:relative;padding:0 0 1rem 2.6rem;max-width:34rem}
.landing .flow li::before{content:counter(f);position:absolute;left:0;top:.1rem;width:1.5rem;height:1.5rem;display:grid;place-items:center;
 font:700 .8rem/1 var(--mono);border:1.5px solid var(--text);box-sizing:border-box}
.landing .flow li:first-child::before{background:var(--text);color:var(--ground)}

/* Verify it yourself */
.landing .cmd pre{margin:0;padding:1.25rem clamp(1rem,3vw,1.75rem);background:var(--raised);font:400 .875rem/1.65 var(--mono);white-space:pre-wrap;overflow-wrap:anywhere}
.landing .cmd pre code{font-size:1em}
.landing .cmd .c{color:var(--dim)}
.landing .copy{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin:.9rem 0 0}
.landing #copied{color:var(--dim);font-size:.9375rem}

.landing .foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem 3rem;margin-top:clamp(4rem,9vw,7rem);padding-top:1.5rem;border-top:1px solid var(--rule);font-size:.9rem}
.landing .foot p{max-width:40rem;margin:0}
.landing .foot ul{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;list-style:none;margin:0;padding:0}

@media (prefers-color-scheme:light){.landing .board.judged .seq>li.on .lamp{box-shadow:none}}
@media (prefers-reduced-motion:reduce){.landing *,.landing *::after{transition:none!important;animation:none!important}}
@media (max-width:860px){
 .landing .console,.landing .limits,.landing .how-grid{grid-template-columns:minmax(0,1fr)}
 .landing .console{gap:1.25rem}
}
@media (max-width:560px){
 .landing .pad img{width:64px;height:64px;margin-right:0}
 .landing .pad::before{height:4px}
 .landing .threats a{grid-template-columns:minmax(0,1fr);gap:.2rem}
 .dia .sub{display:none}
 .dia .name{font-size:20px;font-stretch:100%}
 .dia .tag{font-size:19px}
 .dia .badges>*{transform-box:fill-box;transform-origin:center;transform:scale(1.4)}
}
