/* Design tokens. Dark is the default world; light mirrors every role. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-ui: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-ui: 13.5px;
  --fs-body: 15px;
  --fs-h3: 17px;
  --fs-h2: 20px;
  --fs-h1: 28px;

  --sp-1: 2px;
  --sp-2: 4px;
  --sp-3: 6px;
  --sp-4: 8px;
  --sp-5: 12px;
  --sp-6: 16px;
  --sp-7: 24px;
  --sp-8: 32px;
  --sp-9: 48px;

  --r-sm: 5px;
  --r-md: 7px;
  --r-lg: 10px;
  --r-xl: 14px;

  --rail-w: 60px;
  --side-w: 272px;
  --right-w: 288px;
  --topbar-h: 44px;
  --row-h: 28px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 120ms;
  --t-med: 220ms;
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --surface-0: #0c0e12;
  --surface-1: #121419;
  --surface-2: #16181e;
  --surface-3: #1d2028;
  --surface-4: #252933;
  --line: #242832;
  --line-strong: #323744;

  --text: #e4e6eb;
  --text-2: #b1b5bf;
  --text-3: #8b909c;
  --text-on-accent: #0c0e12;

  --accent: #8aa4ff;
  --accent-hover: #a4b8ff;
  --accent-soft: rgb(138 164 255 / 0.14);
  --accent-line: rgb(138 164 255 / 0.45);
  --select: rgb(138 164 255 / 0.18);
  --select-strong: rgb(138 164 255 / 0.28);

  --ok: #4fc28f;
  --warn: #e3c06a;
  --danger: #ef6b62;
  --danger-soft: rgb(239 107 98 / 0.14);

  --shadow-pop: 0 12px 32px -8px rgb(0 0 0 / 0.55), 0 2px 6px rgb(0 0 0 / 0.35);
  --shadow-soft: 0 4px 14px -6px rgb(0 0 0 / 0.5);

  /* icon colours (tree, rail) */
  --ic-grey: #9aa0ac;
  --ic-blue: #7aa2ff;
  --ic-green: #4fc28f;
  --ic-yellow: #e3c06a;
  --ic-orange: #ec9452;
  --ic-red: #ef6b62;
  --ic-purple: #b48bf0;
  --ic-teal: #4cc7cf;
}

[data-theme="light"] {
  color-scheme: light;
  --surface-0: #e9ebf0;
  --surface-1: #f3f4f7;
  --surface-2: #ffffff;
  --surface-3: #eef0f4;
  --surface-4: #e3e6ec;
  --line: #e1e4ea;
  --line-strong: #cdd2db;

  --text: #1a1c22;
  --text-2: #3f434d;
  --text-3: #5f6470;
  --text-on-accent: #ffffff;

  --accent: #3a5fe0;
  --accent-hover: #2b4fcf;
  --accent-soft: rgb(58 95 224 / 0.1);
  --accent-line: rgb(58 95 224 / 0.45);
  --select: rgb(58 95 224 / 0.11);
  --select-strong: rgb(58 95 224 / 0.2);

  --ok: #1d8a5a;
  --warn: #9a6b00;
  --danger: #c93a31;
  --danger-soft: rgb(201 58 49 / 0.1);

  --shadow-pop: 0 14px 34px -10px rgb(20 24 40 / 0.25), 0 2px 6px rgb(20 24 40 / 0.08);
  --shadow-soft: 0 4px 14px -8px rgb(20 24 40 / 0.2);

  --ic-grey: #6b7280;
  --ic-blue: #3563e9;
  --ic-green: #17885a;
  --ic-yellow: #a87a00;
  --ic-orange: #c35d12;
  --ic-red: #cf3a30;
  --ic-purple: #7f4fd1;
  --ic-teal: #0e8a93;
}
