/* Precision Dark: shared tokens and primitives. No external font requests. */
:root {
  color-scheme: dark;
  --bg-primary: #090a0c;
  --bg-secondary: #0d0f12;
  --bg-elevated: #121419;
  --bg-hover: #181a20;
  --border-subtle: #22252b;
  --border-strong: #343840;
  --text-primary: #f2f0ec;
  --text-secondary: #a0a1a6;
  --text-muted: #676a71;
  --text-caption: #909198;
  --accent: #c7b89e;
  --accent-light: #ded3c0;
  --accent-muted: #8f836f;
  --accent-dark: #5b5348;
  --success: #a0c5b1;
  --danger: #e0a49c;
  --warning: #d4bc8a;
  --font-sans: "Geist", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --radius: 8px;
  --radius-panel: 12px;
  --shell: 1240px;
  --muted: var(--text-secondary);
  --ink: var(--text-primary);
  --ink2: var(--text-primary);
  --line: var(--border-subtle);
  --soft: var(--bg-secondary);
  --blueD: var(--accent);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg-primary); color: var(--text-primary); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; }
p + p { margin-top: 18px; }
::selection { background: var(--accent-dark); color: var(--text-primary); }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 5px; }
.shell { width: min(var(--shell), calc(100% - 80px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 200; padding: 12px 20px; border-radius: var(--radius); background: var(--accent-light); color: var(--bg-primary); }
.skip-link:focus { top: 12px; }
.mono { font-family: var(--font-mono); }
.eyebrow, .card-label { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 500; line-height: 1.5; text-transform: uppercase; letter-spacing: .14em; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; text-decoration: none; font-size: 21px; font-weight: 500; letter-spacing: -.045em; line-height: 1.15; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-measure { position: relative; display: inline-flex; align-items: center; justify-content: space-between; width: 30px; height: 28px; color: var(--accent); transform: rotate(-35deg); }
.brand-measure::before { content: ""; position: absolute; left: 2px; right: 2px; top: 13px; border-top: 1.5px solid currentColor; }
.brand-measure i { width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 50%; background: var(--bg-primary); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 12px 21px; border: 1px solid transparent; border-radius: var(--radius); color: var(--text-primary); background: var(--bg-elevated); font-size: 14px; font-weight: 500; line-height: 1.4; text-decoration: none; transition: background .2s, border-color .2s; }
.button.primary { background: var(--accent-light); color: var(--bg-primary); }
.button.primary:hover { background: #e8dfd0; }
.button.ghost { border-color: var(--border-strong); background: transparent; }
.button.ghost:hover { background: var(--bg-hover); border-color: var(--accent-muted); }
.button.disabled { color: var(--text-secondary); background: var(--bg-hover); border-color: var(--border-subtle); }
.button.danger { color: var(--danger); background: #291c1c; border-color: #553b39; }
.button.wide { width: 100%; }
.button.small { min-height: 40px; padding: 9px 14px; }
.button.large { min-height: 54px; padding-inline: 25px; }
.arrow { display: inline-block; transition: transform .2s; }
a:hover .arrow, button:hover .arrow { transform: translateX(3px); }
.text-link { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; font-size: 14px; text-decoration: none; }
.text-link:hover { color: var(--accent-light); }
.form-stack { display: grid; gap: 18px; }
.form-stack label { display: grid; gap: 7px; font-size: 14px; }
.flash-stack { padding-top: 24px; }
.flash { padding: 14px 18px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg-elevated); font-size: 14px; }
.flash.success { background: #17221d; border-color: #354b3e; color: var(--success); }
.flash.error { background: #291c1c; border-color: #553b39; color: var(--danger); }
@media (max-width: 760px) { .shell { width: calc(100% - 40px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
