/* RIXI — the eutonomous family palette (indigo brand, teal accent), dark-first. */
/* Inter + JetBrains Mono, served from this origin (frontend/vendor/fonts): no Google Fonts request. */
@import url('/vendor/fonts/fonts.css');

:root {
  --brand: #4c6ef5;
  --brand-strong: #3b5bdb;
  --brand-soft: rgba(76, 110, 245, .12);
  --accent: #20c997;
  --accent-soft: rgba(32, 201, 151, .14);
  --success: #2fb344;
  --warning: #d9a406;
  --danger: #d64545;

  --bg: #f5f7f9;
  --surface: #ffffff;
  --border: #dde3ea;
  --text: #1c2733;
  --text-2: #51606f;
  --text-3: #8494a5;
  --code-bg: #0f1522;
  --code-text: #d7e2f0;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .09), 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .16);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e131b; --surface: #151c27; --border: #253043;
    --text: #e6edf5; --text-2: #a5b3c3; --text-3: #6f7f92;
    --brand-soft: rgba(76, 110, 245, .20); --accent-soft: rgba(32, 201, 151, .18);
    --shadow: 0 1px 3px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  --bg: #0e131b; --surface: #151c27; --border: #253043;
  --text: #e6edf5; --text-2: #a5b3c3; --text-3: #6f7f92;
  --brand-soft: rgba(76, 110, 245, .20); --accent-soft: rgba(32, 201, 151, .18);
  --shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--mono); }
button { font-family: inherit; }
input, select { font-family: inherit; font-size: .95rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .5rem .65rem; min-width: 0; }
input:focus, select:focus { outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft); }
