/* veilor.css — the veilor-os design standard, as CSS custom properties.
 * Single source of truth. Framework-agnostic: import into preact, react, vanilla.
 * Aesthetic: monochrome terminal. Black, white, monospace, flat. No decoration.
 * Values extracted from login-kit/theme + 8bit-icons STYLE_GUIDE. */

:root {
  /* ---- color: a pure grayscale ramp, dark→light ---- */
  --v-bg:           #000;      /* page */
  --v-bg-1:         #0a0a0a;   /* raised surface */
  --v-bg-2:         #1a1a1a;   /* input, hover */
  --v-border:       #2a2a2a;   /* hairlines */
  --v-border-strong:#444;      /* focus ring, emphasis */
  --v-muted:        #999;      /* secondary text, also the only "danger" tint we allow */
  --v-fg:           #fff;      /* text, primary */
  --v-accent:       #fff;      /* mono: the accent IS invert (white on black / black on white) */

  /* ---- type: one family, everything mono ---- */
  --v-font: ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --v-fs-xs:  12px;
  --v-fs-sm:  14px;   /* base */
  --v-fs-md:  16px;
  --v-fs-lg:  20px;
  --v-fs-xl:  28px;
  --v-fs-2xl: 40px;
  --v-lh: 1.5;
  --v-lh-tight: 1.2;

  /* ---- space: 4px base scale ---- */
  --v-1: 4px;  --v-2: 8px;  --v-3: 12px; --v-4: 16px;
  --v-6: 24px; --v-8: 32px; --v-12: 48px;

  /* ---- radius: sharp by default, soft only for controls/cards ---- */
  --v-r-0: 0;    /* default — terminal is sharp */
  --v-r-sm: 6px; /* buttons, inputs */
  --v-r-md: 10px;/* cards */

  /* ---- motion ---- */
  --v-fast: 120ms;
  --v-base: 200ms;
  --v-ease: cubic-bezier(.2,.0,.0,1);

  /* ---- layout ---- */
  --v-measure: 420px; /* max readable column / card width */
}

/* base layer — opt-in look from one import. Keep minimal; tokens above are the contract. */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--v-bg);
  color: var(--v-fg);
  font-family: var(--v-font);
  font-size: var(--v-fs-sm);
  line-height: var(--v-lh);
}

::selection { background: var(--v-fg); color: var(--v-bg); }

:focus-visible { outline: 1px solid var(--v-border-strong); outline-offset: 2px; }

a { color: var(--v-fg); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--v-muted); }
