/* vpkit — quiet, editorial. One accent per verdict, hairlines, paper. */
:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --ink: #1c1b19;
  --ink-2: #4a463f;
  --mute: #7a746a;
  --rule: #d8d2c4;
  --yes: #2e6b4f;
  --no: #9a6b1f;
  --bad: #8c3a2f;
  --serif: "Iowan Old Style", Georgia, "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15140f;
    --paper-2: #1d1b15;
    --ink: #ebe6db;
    --ink-2: #c9c2b2;
    --mute: #8f887a;
    --rule: #33302a;
    --yes: #6fb892;
    --no: #d2a04a;
    --bad: #d47b6b;
  }
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font: 16px/1.75 var(--sans); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
main { flex: 1; width: 100%; max-width: 44rem; margin: 0 auto; padding: clamp(2rem, 7vw, 5rem) 1rem 3rem; }
header.mast { display: flex; justify-content: space-between; align-items: baseline; padding: 1.1rem 1rem; border-bottom: 1px solid var(--rule); font-size: .85rem; letter-spacing: .04em; }
header.mast .brand { font-family: var(--serif); font-size: 1.1rem; letter-spacing: .12em; text-decoration: none; }
header.mast .tag { color: var(--mute); }
footer { padding: 1.5rem 1rem 2.5rem; border-top: 1px solid var(--rule); color: var(--mute); font-size: .8rem; text-align: center; }

h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: .02em; margin: 0 0 1rem; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.3; }
h2 { font-size: 1.15rem; margin-top: 2.5rem; color: var(--ink-2); }
p { margin: 0 0 1rem; }
.lede { font-size: 1.1rem; color: var(--ink-2); }
.small { font-size: .85rem; color: var(--mute); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.btn { display: inline-block; font: inherit; font-size: 1rem; padding: .85rem 1.6rem; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none; transition: transform .15s ease, opacity .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .85; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }

dl.claims { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: 1rem 0; font-size: .95rem; }
dl.claims dt { color: var(--mute); }
dl.claims dd { margin: 0; }

/* verify page */
.stage { min-height: 22rem; }
.state { display: none; animation: rise .5s ease both; }
.state.on { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.qr-wrap { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; margin-top: 1.5rem; }
@media (min-width: 40rem) { .qr-wrap { grid-template-columns: auto 1fr; } }
.qr { width: 15.5rem; height: 15.5rem; padding: .75rem; background: #fff; border: 1px solid var(--rule); }
.qr svg { width: 100%; height: 100%; display: block; }
.countdown { font-family: var(--mono); font-size: .85rem; color: var(--mute); }
.countdown b { color: var(--ink); font-weight: 500; }

.verdict { font-family: var(--serif); font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.25; margin: .5rem 0 1rem; }
.verdict.yes { color: var(--yes); }
.verdict.no { color: var(--no); }
.verdict.bad { color: var(--bad); }
.note { border-left: 2px solid var(--rule); padding: .25rem 0 .25rem 1rem; color: var(--ink-2); font-size: .95rem; margin: 1.5rem 0; }

details { margin-top: 2rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
summary { cursor: pointer; font-family: var(--serif); font-size: 1.05rem; }
pre { font: .78rem/1.5 var(--mono); background: var(--paper-2); border: 1px solid var(--rule); padding: 1rem; overflow: auto; border-radius: 4px; white-space: pre-wrap; word-break: break-all; }
code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: .05em .35em; border-radius: 3px; }
.steps { list-style: none; padding: 0; margin: 1rem 0; font-size: .9rem; }
.steps li { display: grid; grid-template-columns: 2rem 1fr; gap: .5rem; padding: .3rem 0; border-bottom: 1px dashed var(--rule); }
.steps li .n { font-family: var(--mono); color: var(--mute); }
.steps li.ok .n::before { content: "✓ "; color: var(--yes); }
.steps li.stop { color: var(--bad); }
.steps li.stop .n::before { content: "× "; }

/* Over-disclosure: the Wallet sent more than was asked for. */
.note.warn { border-left-color: var(--no, #b5543a); }
.claims code.extra { text-decoration: underline wavy var(--no, #b5543a); }
