/* SPDX-License-Identifier: MIT OR Apache-2.0 */

/* Base layer: custom properties for the light and the dark theme, and resets.
   Components add their own files; nothing here is specific to a screen. */

:root {
  color-scheme: light dark;
  --nx-bg: #ffffff;
  --nx-fg: #1b1f23;
  --nx-muted: #5c6670;
  --nx-line: #d5d8dc;
  --nx-surface: #f4f5f7;
  --nx-accent: #2563eb;
  --nx-danger: #b91c1c;
  --nx-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nx-radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --nx-bg: #16181b;
    --nx-fg: #e6e8ea;
    --nx-muted: #9aa3ab;
    --nx-line: #3a3f45;
    --nx-surface: #1f2226;
    --nx-accent: #6ea0ff;
    --nx-danger: #f87171;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { font: 15px/1.4 var(--nx-font); }

body {
  margin: 0;
  background: var(--nx-bg);
  color: var(--nx-fg);
}

a { color: var(--nx-accent); }
