/* Xyphros theme tokens: reusable by every Xyphros application.
   Usage: <link rel="stylesheet" href="https://xyphros.net/hub/theme.css">
          <html data-theme="dark|light|system">  (see /hub/theme.js)
   Then style with var(--bg), var(--ink), var(--accent), var(--line), var(--radius), ... */

:root {
  --font: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --radius-sm: 4px;   /* badges, small controls */
  --radius: 6px;      /* buttons, inputs, nav items */
  --radius-lg: 8px;   /* cards, panels */
  --radius-xl: 12px;  /* dialogs */
  --grad: linear-gradient(105deg, #f447ce 0%, #b928ed 77%); /* brand moments only (sign-in pages) */
}

:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0c;
  --bg-glow: rgba(141, 22, 165, .12);
  --sidebar: #0c0c0f;
  --panel: #131316;
  --surface: #111114;
  --surface-2: #17171b;
  --surface-hover: #1b1b20;
  --input: #0d0d10;
  --ink: #ededf0;
  --ink-2: #c3c3cb;
  --muted: #8d8d97;
  --faint: #5f5f69;
  --line: #222228;
  --line-strong: #303037;
  --accent: #a63ddd;
  --accent-hover: #b350ea;
  --accent-ink: #c98af3;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(166, 61, 221, .14);
  --accent-line: rgba(166, 61, 221, .45);
  --success: #3ecf8e;
  --success-soft: rgba(62, 207, 142, .1);
  --warn: #e5a93b;
  --warn-soft: rgba(229, 169, 59, .1);
  --danger: #f0616d;
  --danger-soft: rgba(240, 97, 109, .1);
  --shadow: 0 16px 40px rgba(0, 0, 0, .5);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --grain-opacity: .07;
  --skeleton: rgba(255, 255, 255, .05);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafafa;
  --bg-glow: rgba(199, 33, 229, .06);
  --sidebar: #f6f6f7;
  --panel: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --surface-hover: #f0f0f2;
  --input: #ffffff;
  --ink: #0a0a0c;
  --ink-2: #3f3f46;
  --muted: #68686f;
  --faint: #a1a1aa;
  --line: #e6e6e9;
  --line-strong: #d6d6db;
  --accent: #9333d6;
  --accent-hover: #8228c4;
  --accent-ink: #7e22bd;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(147, 51, 214, .08);
  --accent-line: rgba(147, 51, 214, .32);
  --success: #15803d;
  --success-soft: rgba(21, 128, 61, .08);
  --warn: #b45309;
  --warn-soft: rgba(180, 83, 9, .08);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, .07);
  --shadow: 0 12px 32px rgba(10, 10, 12, .1), 0 1px 3px rgba(10, 10, 12, .06);
  --shadow-sm: 0 1px 2px rgba(10, 10, 12, .05);
  --grain-opacity: .03;
  --skeleton: rgba(10, 10, 12, .05);
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    color-scheme: light;
    --bg: #fafafa; --bg-glow: rgba(199, 33, 229, .06); --sidebar: #f6f6f7; --panel: #ffffff; --surface: #ffffff;
    --surface-2: #f4f4f5; --surface-hover: #f0f0f2; --input: #ffffff; --ink: #0a0a0c; --ink-2: #3f3f46; --muted: #68686f;
    --faint: #a1a1aa; --line: #e6e6e9; --line-strong: #d6d6db; --accent: #9333d6; --accent-hover: #8228c4;
    --accent-ink: #7e22bd; --accent-contrast: #ffffff; --accent-soft: rgba(147, 51, 214, .08); --accent-line: rgba(147, 51, 214, .32);
    --success: #15803d; --success-soft: rgba(21, 128, 61, .08); --warn: #b45309; --warn-soft: rgba(180, 83, 9, .08);
    --danger: #dc2626; --danger-soft: rgba(220, 38, 38, .07);
    --shadow: 0 12px 32px rgba(10, 10, 12, .1), 0 1px 3px rgba(10, 10, 12, .06); --shadow-sm: 0 1px 2px rgba(10, 10, 12, .05);
    --grain-opacity: .03; --skeleton: rgba(10, 10, 12, .05);
  }
}
