/* Self-hosted: the setup page loads nothing from another origin. build-site.sh copies the files into ./fonts. */
@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url("/setup/fonts/InstrumentSans-Regular.woff2") format("woff2"); }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url("/setup/fonts/InstrumentSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url("/setup/fonts/JetBrainsMono-Regular.woff2") format("woff2"); }
/* The setup page. Every colour, size and radius is a token from tokens.css (generated from lib/theme/tokens.json):
   the call-to-action colour is --primary-bg, so changing it there changes it here. */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 22px; }
.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--panel); color: var(--text); border-radius: var(--radius-field); }
.skip:focus { left: 8px; z-index: 2; }
.bar { height: 56px; display: flex; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--rule); }
.brand { color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: 0.01em; }
.col { max-width: 640px; margin: 0 auto; padding: 72px 24px 64px; display: flex; flex-direction: column; }
.lbl { margin: 0 0 14px; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--label); text-transform: uppercase; letter-spacing: 0.08em; }
h1 { margin: 0 0 12px; font-size: 28px; line-height: 34px; font-weight: 600; text-wrap: balance; overflow-wrap: anywhere; }
h1:focus { outline: none; }
.sub { margin: 40px 0 12px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text-2); }
.lead { margin: 0; color: var(--text-2); max-width: 540px; font-size: 15px; line-height: 22px; }
.note { margin: 20px 0 0; color: var(--label); font-size: 13px; line-height: 18px; max-width: 540px; }
.actions { margin-top: 32px; display: flex; gap: 12px; }
.btn { font: inherit; font-size: 14px; line-height: 20px; min-height: 44px; padding: 0 20px; border-radius: var(--radius-button); border: 1px solid transparent; cursor: pointer; }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn.primary { background: var(--primary-bg); color: var(--primary-ink); font-weight: 600; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.secondary { background: var(--hover); color: var(--text); border-color: var(--rule-strong); }
.btn.quiet { background: transparent; color: var(--text-2); border-color: var(--rule-strong); }
.cmd { margin-top: 28px; display: flex; align-items: stretch; gap: 8px; }
.cmd pre { flex: 1; min-width: 0; margin: 0; padding: 14px 16px; background: var(--code-bg); border: 1px solid var(--rule); border-radius: var(--radius-field); overflow-x: auto; }
.cmd code { font-family: var(--mono); font-size: 12px; line-height: 20px; color: var(--text); white-space: pre; }
.status { margin: 24px 0 0; display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.ring { width: 10px; height: 10px; border-radius: 999px; border: 2px solid var(--focus); border-right-color: transparent; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; border-right-color: var(--focus); } }
.words { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.words li { padding: 10px 16px; background: var(--panel); border: 1px solid var(--rule-strong); border-radius: var(--radius-field); font-family: var(--mono); font-size: 15px; line-height: 20px; }
.log { list-style: none; margin: 0; padding: 12px 16px; background: var(--code-bg); border: 1px solid var(--rule); border-radius: var(--radius-field); max-height: 320px; overflow-y: auto; }
.log li { font-family: var(--mono); font-size: 12px; line-height: 20px; color: var(--text-2); overflow-wrap: anywhere; }
@media (max-width: 719px) { .col { padding: 40px 16px 48px; } .cmd { flex-direction: column; } h1 { font-size: 22px; line-height: 28px; } }
.field { margin-top: 20px; display: flex; align-items: stretch; background: var(--panel); border: 1px solid var(--rule-strong); border-radius: var(--radius-field); }
.field:focus-within { border-color: var(--focus); }
.field .name { flex: 1; min-width: 0; min-height: 44px; padding: 0 0 0 14px; background: transparent; border: 0; color: var(--text); font-family: var(--mono); font-size: 15px; outline: none; }
.field .suffix { display: flex; align-items: center; padding: 0 14px 0 2px; font-family: var(--mono); font-size: 15px; color: var(--label); }
.hint { margin: 10px 0 0; min-height: 22px; color: var(--text-2); font-size: 13px; line-height: 18px; }
.btn[disabled] { opacity: 0.45; cursor: default; }
.warn { margin: 16px 0 0; padding: 10px 14px; border: 1px solid var(--rule-strong); border-left: 3px solid var(--beacon-ink); border-radius: var(--radius-field); color: var(--text); font-size: 13px; line-height: 18px; max-width: 540px; }
.providers { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.account { margin-top: 20px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-card); }
.row-title { margin: 0 0 6px; font-weight: 600; }
.code-line { margin: 12px 0 0; font-family: var(--mono); font-size: 20px; line-height: 28px; letter-spacing: 0.08em; }
a { color: var(--text); text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--focus); }
.ring-slot { margin: 24px 0 0; width: 280px; max-width: 100%; }
.ring-slot svg { width: 100%; height: auto; display: block; }
.qr-slot { margin: 12px 0 0; width: 220px; max-width: 100%; border-radius: var(--radius-field); overflow: hidden; }
.qr-slot svg { width: 100%; height: auto; display: block; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
