/* The shared design tokens of the product sites.
   A product sets only --accent and --accent-2 (in its own small rule after this file). */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: optional;
  font-weight: 100 900;
  src: url("fonts/onest-cyrillic-wght.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: optional;
  font-weight: 100 900;
  src: url("fonts/onest-latin-wght.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: "Site Mono"; /* JetBrains Mono, OFL */
  font-style: normal;
  font-display: optional;
  font-weight: 100 800;
  src: url("fonts/jetbrains-mono-cyrillic-wght.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Site Mono"; /* JetBrains Mono, OFL */
  font-style: normal;
  font-display: optional;
  font-weight: 100 800;
  src: url("fonts/jetbrains-mono-latin-wght.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 {
  /* the product's colours (overridden per product) */
  --accent: #3ee6a8;
  --accent-2: #7c9cff;
  --accent-ink: #05150f;          /* text on the accent */
  --accent-deep: #12805a;         /* the accent on paper (contrast 4.5+) */
  --accent-wash: #eafaf3;         /* a tint of the accent on paper */

  /* dark */
  --bg: #0b0d12;
  --bg-2: #0f1218;
  --surface: #13161d;
  --surface-2: #1a1f2a;
  --line: #232834;
  --line-2: #2c3342;
  --text: #e6e8ee;
  --muted: #c3c9d4;               /* 11.7:1 on --bg */
  --faint: #a3aab8;               /* 8.3:1 on --bg, labels */
  --code-key: var(--accent-2);
  --code-str: var(--accent);
  --code-num: #f7c66b;
  --del-bg: rgba(229, 55, 43, .16);
  --del-ink: #ff9c94;

  /* light */
  --paper: #fafaf7;
  --paper-2: #f3f3ee;
  --ink: #111318;
  --ink-muted: #3f4450;           /* 9.3:1 on --paper */
  --paper-line: #e4e4e0;
  --warn-ink: #8a5f00;
  --warn-bg: #fff4d6;

  /* type */
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Site Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 21px;
  --fs-h2: clamp(30px, 4.2vw, 50px);
  --fs-h1: clamp(38px, 6.4vw, 76px);
  --lh-tight: 1.03;
  --lh-text: 1.55;
  --track-tight: -.035em;
  --track-caps: .12em;

  /* space (4 px steps) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-24: 96px;
  --s-28: 112px;
  --wrap: 1160px;
  --gutter: 28px;

  /* shape */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-pill: 999px;
  --shadow-field: 0 0 0 6px rgba(124, 156, 255, .06), 0 20px 60px rgba(0, 0, 0, .5), 0 0 80px rgba(124, 156, 255, .14);
  --shadow-field-on: 0 0 0 6px rgba(62, 230, 168, .09), 0 20px 60px rgba(0, 0, 0, .5), 0 0 90px rgba(62, 230, 168, .18);
  --shadow-pop: 0 18px 50px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
