:root {
  color-scheme: light dark;
  --bg: #f7f4ed;
  --paper: #fffdf8;
  --text: #26241f;
  --muted: #6d685e;
  --line: #d9d1c3;
  --accent: #175f55;
  --accent-ink: #ffffff;
  --honest: #8a5a17;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171816;
    --paper: #20221f;
    --text: #eeece5;
    --muted: #b7b1a6;
    --line: #3f433d;
    --accent: #77c8b8;
    --accent-ink: #10241f;
    --honest: #e1ae65;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.62; }
a { color: var(--accent); text-underline-offset: 0.16em; }
header, main, footer { width: min(42rem, calc(100% - 2rem)); margin-inline: auto; }
header { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
header nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; justify-content: flex-end; }
.wordmark { color: var(--text); font-weight: 750; text-decoration: none; letter-spacing: -0.02em; }
main { padding-block: 3.5rem 5rem; }
footer { padding-block: 1.4rem 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -0.025em; }
h1 { font-size: clamp(2rem, 7vw, 3.3rem); margin: 0 0 1.25rem; }
h2 { margin-top: 2.7rem; }
section + section { margin-top: 3rem; }
.lead { font-size: 1.12rem; }
.honest, .notice { color: var(--honest); }
.button, button { display: inline-block; border: 0; border-radius: 0.45rem; padding: 0.72rem 1rem; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button.secondary, button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
form, .card, .verify, .result { margin-block: 1.4rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 0.65rem; background: var(--paper); }
label { display: block; font-weight: 650; margin-top: 1rem; }
label:first-child { margin-top: 0; }
input, textarea { width: 100%; margin-top: 0.35rem; padding: 0.72rem; border: 1px solid var(--line); border-radius: 0.4rem; background: var(--bg); color: var(--text); font: inherit; }
textarea { min-height: 9rem; resize: vertical; }
input[type="checkbox"] { width: auto; margin-right: 0.45rem; }
.check { font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.25rem; align-items: center; }
.copy-me, code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.copy-me, pre { overflow-wrap: anywhere; white-space: pre-wrap; padding: 0.8rem; border: 1px dashed var(--line); border-radius: 0.4rem; background: var(--bg); }
.spec { white-space: pre-wrap; }
.meta { color: var(--muted); font-size: 0.92rem; }
.tree { list-style: none; padding: 0; }
.tree li { padding-block: 0.45rem; border-bottom: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; margin-block: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--line); }
.scroll { overflow-x: auto; }
.hidden { display: none; }
.error { color: #b64034; white-space: pre-wrap; }
@media (max-width: 34rem) { header { display: block; } header nav { justify-content: flex-start; margin-top: 0.7rem; } }
