/* Shared design tokens and basic elements for every page.
   Look: paper and ink. A warm off-white page, near-black type and buttons, white cards with hairlines, one blue used sparingly (links, focus, the pointer).
   Typeface: Geist. No gradients, no glow, no glass, no pill labels: the owner rejected those. */
/* The fonts are shipped with the site so every device shows the same letters (SIL Open Font License, see /assets/fonts/Geist-OFL.txt). */
@font-face { font-family: "Geist"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2"); }
:root {
  --bg: #f6f5f2; --surface: #ffffff; --surface-2: #eeede9; --ink: #17181a; --muted: #5f6168; --faint: #9b9ca3; --line: #e2e0da;
  --accent: #2257e6; --accent-ink: #ffffff; --accent-soft: #e8eefc; --accent-text: #1c49c4;
  --good: #0e8a4f; --warn: #a15c00; --bad: #d1293d;
  --grad: var(--accent);
  --radius: 12px; --radius-s: 8px;
  --shadow: 0 1px 2px rgba(23, 24, 26, .04);
  --shadow-lg: 0 1px 2px rgba(23, 24, 26, .05), 0 18px 44px -16px rgba(23, 24, 26, .2);
  --font: "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --display: "Geist", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", "Cascadia Mono", Consolas, Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0f; --surface: #161618; --surface-2: #1f1f22; --ink: #f1f1ee; --muted: #a3a4aa; --faint: #6d6e75; --line: #2a2a2e;
    --accent: #5b8cff; --accent-ink: #ffffff; --accent-soft: #16233f; --accent-text: #93b4ff;
    --good: #46c98a; --warn: #e2ac45; --bad: #ff6f7d;
    --shadow: none;
    --shadow-lg: 0 18px 44px -14px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d0f; --surface: #161618; --surface-2: #1f1f22; --ink: #f1f1ee; --muted: #a3a4aa; --faint: #6d6e75; --line: #2a2a2e;
  --accent: #5b8cff; --accent-ink: #ffffff; --accent-soft: #16233f; --accent-text: #93b4ff;
  --good: #46c98a; --warn: #e2ac45; --bad: #ff6f7d;
  --shadow: none;
  --shadow-lg: 0 18px 44px -14px rgba(0, 0, 0, .7);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.028em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.label { font: 600 12.5px/1.2 var(--font); letter-spacing: 0; color: var(--muted); }
::selection { background: var(--ink); color: var(--bg); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 550 14.5px var(--font); cursor: pointer; text-decoration: none;
  box-shadow: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; }
.btn.primary, .btn.signal { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover, .btn.signal:hover { background: color-mix(in srgb, var(--ink) 82%, var(--bg)); border-color: color-mix(in srgb, var(--ink) 82%, var(--bg)); color: var(--bg); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.small { min-height: 32px; padding: 0 11px; font-size: 13px; }
.btn.large { min-height: 50px; padding: 0 22px; font-size: 15.5px; border-radius: 10px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: default; pointer-events: none; }

label.field { display: block; margin-bottom: 14px; font: 600 13px var(--font); color: var(--muted); }
label.field > input, label.field > select, label.field > textarea { display: block; width: 100%; margin-top: 7px; text-transform: none; letter-spacing: 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=date], input[type=month], select, textarea {
  min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--ink); font: 15px var(--font); }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent); outline-offset: 0; }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.error-text { color: var(--bad); font-size: 14px; min-height: 20px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; font: 600 12px var(--font); background: var(--surface-2); color: var(--muted); }
.badge.on { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.on { background: var(--good); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
