/* Design tokens: cool ink + cobalt. Fonts are self-hosted (CSP: no CDN). */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("fonts/martian-mono-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --canvas: #eef1f4;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --ink: #1b2230;
  --muted: #5e6878;
  --faint: #8a93a2;
  --line: #d6dce4;
  --line-strong: #c3cbd6;
  --cobalt: #2f5bff;
  --cobalt-ink: #ffffff;
  --cobalt-soft: #e7ecff;
  --signal: #0e9f6e;
  --signal-soft: #dff5ec;
  --amber: #b7791f;
  --amber-soft: #fbf0dc;
  --danger: #c8323c;
  --danger-soft: #fbe5e6;
  --overlay: rgba(15, 20, 27, 0.42);
  --shadow-pop: 0 1px 2px rgba(15, 20, 27, 0.06), 0 12px 32px rgba(15, 20, 27, 0.14);

  --font-ui: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-code: "Martian Mono", ui-monospace, "SFMono-Regular", monospace;
  --t-xs: 12px;
  --t-sm: 13px;
  --t-md: 14px;
  --t-lg: 16px;
  --t-xl: 20px;
  --t-2xl: 28px;
  --t-hero: 40px;

  --r-control: 6px;
  --r-panel: 10px;
  --r-pill: 999px;
  --sidebar-w: 232px;
  --topbar-h: 56px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 160ms;
  --dur-ui: 200ms;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --canvas: #0f141b;
  --surface: #161c25;
  --surface-2: #1b2230;
  --ink: #e6eaf0;
  --muted: #8b95a5;
  --faint: #677184;
  --line: #263040;
  --line-strong: #33405a;
  --cobalt: #7b9bff;
  --cobalt-ink: #0f141b;
  --cobalt-soft: #1d2747;
  --signal: #3dd68c;
  --signal-soft: #12302a;
  --amber: #f0b45a;
  --amber-soft: #33281a;
  --danger: #ff6b75;
  --danger-soft: #3a1d22;
  --overlay: rgba(0, 0, 0, 0.56);
  --shadow-pop: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --canvas: #0f141b;
    --surface: #161c25;
    --surface-2: #1b2230;
    --ink: #e6eaf0;
    --muted: #8b95a5;
    --faint: #677184;
    --line: #263040;
    --line-strong: #33405a;
    --cobalt: #7b9bff;
    --cobalt-ink: #0f141b;
    --cobalt-soft: #1d2747;
    --signal: #3dd68c;
    --signal-soft: #12302a;
    --amber: #f0b45a;
    --amber-soft: #33281a;
    --danger: #ff6b75;
    --danger-soft: #3a1d22;
    --overlay: rgba(0, 0, 0, 0.56);
    --shadow-pop: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
