/* The one place the product's colours, type and shapes are defined. The app (src/renderer) and the site (web-src) both load this file. */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Space Grotesk Variable';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  /* brand */
  --violet: #5b3df5; /* the brand colour: primary buttons, links, selection */
  --violet-deep: #4527d6; /* hover / pressed */
  --violet-soft: #efecff; /* tinted surfaces */
  --lime: #c6f432; /* the "changed" highlight; only on ink or violet, never as text on white */
  --ink: #14122b; /* sidebar, hero, headings */
  --ink-2: #221f45; /* raised surface on ink */
  --ink-line: #34305e;

  /* surfaces and text */
  --bg: #f6f5fb;
  --panel: #ffffff;
  --line: #e4e1f0;
  --line-strong: #cdc8e3;
  --text: #1b1933;
  --muted: #625e80;
  --on-ink: #f3f1ff;
  --on-ink-muted: #a9a4cf;

  /* states (never the brand colour, so a status is never mistaken for decoration) */
  --ok: #12805c;
  --ok-bg: #dcf5ea;
  --warn: #8a5300;
  --warn-bg: #fff3d6;
  --warn-line: #f2cf7a;
  --error: #c02b3a;
  --error-bg: #fde8ea;
  --added: #0d6b3f;
  --added-bg: #d3f4de;
  --removed: #a8232f;
  --removed-bg: #fbdde0;

  /* type */
  --font-display: 'Space Grotesk Variable', 'Segoe UI', 'Malgun Gothic', 'Yu Gothic UI', 'Noto Sans KR', 'Noto Sans JP', system-ui, sans-serif;
  --font-body: 'Inter Variable', 'Segoe UI', 'Malgun Gothic', 'Yu Gothic UI', 'Noto Sans KR', 'Noto Sans JP', system-ui, sans-serif;
  --font-mono: 'Cascadia Mono', Consolas, 'SF Mono', Menlo, monospace;

  /* shape */
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  --shadow-1: 0 1px 2px rgba(20, 18, 43, 0.06), 0 1px 1px rgba(20, 18, 43, 0.04);
  --shadow-2: 0 10px 30px rgba(20, 18, 43, 0.12), 0 2px 6px rgba(20, 18, 43, 0.06);
}

/* Japanese: the Japanese system fonts come first, or Malgun Gothic draws kana and kanji in Korean shapes. */
:lang(ja) {
  --font-display: 'Space Grotesk Variable', 'Segoe UI', 'Yu Gothic UI', 'Meiryo', 'Noto Sans JP', system-ui, sans-serif;
  --font-body: 'Inter Variable', 'Segoe UI', 'Yu Gothic UI', 'Meiryo', 'Noto Sans JP', system-ui, sans-serif;
}
