/* Vesper Relay. Baseline grid: --line = 24px. Three type sizes: 12/16 caption, 16/24 body, 32/48 h1. */
:root {
  --line: 1.5rem; --pad-x: 1rem; --measure: 65ch;
  --bg: #fff; --fg: #111; --muted: #666; --hair: #ddd; --tint: #f4f4f4; --accent: #111; --warn: #9a2b00;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c0c0c; --fg: #ececec; --muted: #9a9a9a; --hair: #2a2a2a; --tint: #171717; --accent: #ececec; --warn: #ff8a5b; }
}
* { box-sizing: border-box; }
html { font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; }
code, pre, .num { font-variant-numeric: tabular-nums; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.875rem; }
pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; line-height: 1rem; background: var(--tint); padding: calc(var(--line) / 2) var(--pad-x); margin: 0 0 var(--line); overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
pre.key { user-select: all; }
h1 { font-size: 2rem; line-height: 3rem; margin: 0 0 var(--line); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 0.75rem; line-height: 1rem; margin: var(--line) 0 calc(var(--line) / 2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding-top: calc(var(--line) / 2); border-top: 1px solid var(--hair); }
p { margin: 0 0 var(--line); max-width: var(--measure); }
.lead { font-size: 1.25rem; line-height: 1.5rem; }
.label { font-size: 0.75rem; line-height: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.5rem; }
.muted { color: var(--muted); }
.small { font-size: 0.75rem; line-height: 1rem; }
.top, .foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem var(--line); padding: var(--line) var(--pad-x) 0; flex-wrap: wrap; }
.top { border-bottom: 1px solid var(--hair); padding-bottom: calc(var(--line) / 2); }
.brand { white-space: nowrap; }
.brand { font-weight: 600; text-decoration: none; letter-spacing: 0.02em; }
.nav { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.75rem; line-height: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a[aria-current="page"] { color: var(--fg); }
.page { flex: 1; padding: var(--line) var(--pad-x) calc(var(--line) * 3); width: 100%; max-width: 56rem; margin: 0 auto; }
.foot { font-size: 0.75rem; line-height: 1rem; color: var(--muted); padding-bottom: var(--line); border-top: 1px solid var(--hair); }
.foot a { color: inherit; }
.flash { margin-bottom: var(--line); }
.badge { display: inline-block; font-size: 0.75rem; line-height: 1rem; padding: 0 0.5rem; border: 1px solid var(--fg); text-transform: uppercase; letter-spacing: 0.06em; vertical-align: baseline; }
.badge-dim { border-color: var(--hair); color: var(--muted); }
.badge-warn { border-color: var(--warn); color: var(--warn); }
.btn, button.btn { display: inline-block; font: inherit; font-size: 0.75rem; line-height: calc(var(--line) - 2px); padding: 0 1rem; border: 1px solid var(--accent); background: var(--accent); color: var(--bg); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; cursor: pointer; }
.btn-ghost { background: transparent; color: var(--fg); }
.btn[disabled] { opacity: 0.4; cursor: default; }
button.link { font: inherit; background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: inherit; }
.inline { display: inline; }
.form { display: grid; gap: var(--line); max-width: 36rem; margin-bottom: var(--line); }
.form .btn { justify-self: start; }
.form.narrow { max-width: 24rem; }
.form label { display: grid; gap: 0.25rem; }
.form label span { font-size: 0.75rem; line-height: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
input, select, textarea { font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--hair); padding: calc(var(--line) / 4 - 1px) 0.75rem; line-height: var(--line); width: 100%; border-radius: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--fg); outline-offset: -1px; }
.rows { list-style: none; margin: 0 0 var(--line); padding: 0; border-top: 1px solid var(--hair); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 0 1rem; padding: calc(var(--line) / 2) 0; border-bottom: 1px solid var(--hair); line-height: var(--line); flex-wrap: wrap; }
.row > div:first-child { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.row-right { display: flex; gap: 0.75rem; align-items: baseline; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-start; margin-left: auto; }
@media (max-width: 30rem) { .row-right { width: 100%; margin-left: 0; } .row-right .num { margin-left: auto; } }
.hero { padding: calc(var(--line) * 2) 0 calc(var(--line) * 3); }
.hero h1 { font-size: 2rem; line-height: 3rem; max-width: 24ch; }
@media (min-width: 48rem) { .hero h1 { font-size: 3rem; line-height: 3rem; } :root { --pad-x: 2rem; } }
.actions { display: flex; gap: 1rem; }
.cols { display: grid; gap: var(--line); grid-template-columns: 1fr; margin-bottom: calc(var(--line) * 2); }
@media (min-width: 48rem) { .cols { grid-template-columns: repeat(3, 1fr); } }
.cols h2 { margin-top: 0; border: 0; padding: 0; }
.hero-stat { padding: 0 0 var(--line); }
.big { font-size: 3rem; line-height: 3rem; font-weight: 600; margin: 0; letter-spacing: -0.02em; }
