@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/story/source-serif-4-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/story/source-serif-4-latin.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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/story/ibm-plex-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/story/ibm-plex-sans-latin.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-paper: oklch(96% 0.018 42);
  --color-paper-2: oklch(92% 0.026 38);
  --color-paper-3: oklch(88% 0.032 34);
  --color-ink: oklch(21% 0.034 27);
  --color-ink-2: oklch(34% 0.032 28);
  --color-muted: oklch(48% 0.028 30);
  --color-rule: oklch(75% 0.032 32);
  --color-rule-2: oklch(84% 0.025 35);
  --color-accent: oklch(55% 0.205 17);
  --color-accent-soft: oklch(91% 0.052 18);
  --color-accent-ink: oklch(97% 0.015 42);
  --color-focus: oklch(61% 0.225 18);

  --font-display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "IBM Plex Sans", "Aptos", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Sans", "Aptos", "Segoe UI", sans-serif;

  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.25rem;
  --text-lg: 1.5625rem;
  --text-xl: 1.9531rem;
  --text-2xl: 2.4414rem;
  --text-3xl: 3.0518rem;
  --text-display-s: clamp(2.75rem, 7vw, 4.5rem);
  --text-display: clamp(4.5rem, 20vw, 10rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 180ms;
  --dur-long: 420ms;

  --rule-hair: 0.0625rem;
  --rule-strong: 0.125rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.75rem;
  --size-hit: 2.75rem;
  --size-hit-coarse: 3rem;
  --measure-copy: 65ch;
  --page-gutter: clamp(var(--space-md), 4vw, var(--space-2xl));
  --page-max: 76rem;
}
