/* Kompi design tokens: every colour, type and glow value lives here. */

@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-latin-wdth-italic.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  color-scheme: dark;

  /* Surfaces: always opaque. */
  --bg: #05070a;
  --bg-raised: #0b0f14;
  --surface: #0b0f14;
  --surface-strong: #111820;
  --line: #1d2733;
  --line-strong: #2c3a4a;

  /* Text. Both pass WCAG AA on every surface above. */
  --text: #e8eef5;
  --text-muted: #8a97a8;

  /* Accents. Cyan and violet appear only inside the aurora. */
  --green: #39ff88;
  --blue: #3d9bff;
  --cyan: #22e3e8;
  --violet: #7a5cff;
  --on-green: #03130a;
  --green-line: #1d6b44;
  --blue-line: #1f4f86;
  --error: #ff7a8c;
  --placeholder: #ffcc66;

  --aurora: linear-gradient(100deg, var(--green) 0%, var(--cyan) 32%, var(--blue) 62%, var(--violet) 100%);
  --chrome: linear-gradient(170deg, #ffffff 0%, #dfe9f5 38%, #b8f5d6 62%, #9fd2ff 100%);

  /* Glow. */
  --glow-green: 0 0 6px rgb(57 255 136 / 0.55), 0 0 22px rgb(57 255 136 / 0.3);
  --glow-blue: 0 0 6px rgb(61 155 255 / 0.55), 0 0 22px rgb(61 155 255 / 0.3);
  --glow-mark: drop-shadow(0 0 10px rgb(57 255 136 / 0.35)) drop-shadow(0 0 18px rgb(61 155 255 / 0.25));
  --glow-inner: inset 0 0 0 1px rgb(57 255 136 / 0.22), inset 0 0 28px rgb(57 255 136 / 0.07);
  --text-glow: 0 0 18px rgb(57 255 136 / 0.35);

  /* Hero demo illustration: the simulated desktop, windows and app tiles. */
  --demo-wallpaper:
    radial-gradient(70% 55% at 12% 108%, #0c3a2a 0%, transparent 70%),
    radial-gradient(65% 60% at 95% 100%, #102a52 0%, transparent 70%),
    radial-gradient(55% 45% at 75% -5%, #1a1540 0%, transparent 70%),
    #06090d;
  --demo-chrome: #0a0e13;
  --demo-window: #0f141b;
  --demo-window-bar: #151c25;
  --demo-field: #1b2430;
  --demo-light-close: #ff5f57;
  --demo-light-min: #febc2e;
  --demo-light-max: #28c840;
  --demo-video: #d83b3b;
  --demo-thumb-1: #183b4a;
  --demo-thumb-2: #3b2350;
  --demo-thumb-3: #2d3f1f;
  --demo-thumb-4: #47301b;
  --demo-thumb-5: #1e2d55;
  --demo-thumb-6: #43203a;
  --demo-finder: linear-gradient(160deg, #5fb4ff, #2a6fd6);
  --demo-notes: linear-gradient(#f6d365 0 24%, #f4f1e6 24%);
  --demo-firefox: radial-gradient(circle at 40% 35%, #ffcf4a 0 18%, #ff7139 42%, #b0339b 78%);
  --demo-mail: linear-gradient(160deg, #6ac4ff, #1f74e6);
  --demo-terminal: #11161c;

  /* Type. */
  --font-display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --display-stretch: 125%;
  --display-weight: 900;
  --heading-weight: 800;

  /* Shape and rhythm. */
  --radius: 14px;
  --radius-small: 8px;
  --gutter: clamp(16px, 4vw, 40px);
  --page-width: 1180px;
  --section-space: clamp(72px, 11vw, 140px);
}
