/* Onest (SIL Open Font License, see fonts/OFL.txt), self-hosted. */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/onest-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/onest-latin-wght-normal.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;
}

:root {
  color-scheme: light;
  --surface-0: #f6f6fb;
  --surface-1: #ffffff;
  --border: #e4e3ee;
  --text-primary: #17142b;
  --text-secondary: #4b4863;
  --text-muted: #6e6b85;
  --accent: #5b3df5;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(91, 61, 245, 0.1);
  --series-1: #5b3df5;
  --danger: #c42b4b;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-strong: 600;
  --radius: 12px;
  --radius-small: 8px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --content-width: 1120px;
}

/* Dark theme: chosen with the theme switch (cookie "theme"). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-0: #0f0d1a;
  --surface-1: #181527;
  --border: #2a2640;
  --text-primary: #f1effa;
  --text-secondary: #c4c0d9;
  --text-muted: #9a96b3;
  --accent: #8b76ff;
  --accent-contrast: #120e24;
  --accent-soft: rgba(139, 118, 255, 0.18);
  --series-1: #8b76ff;
  --danger: #f06a84;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-0);
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  font-weight: var(--weight-strong);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--space-3);
}
