@font-face {
  font-family: "Faber Sans";
  src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Faber Serif";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --font-display: "Faber Serif", "Times New Roman", serif;
  --font-body: "Faber Sans", "Trebuchet MS", sans-serif;

  --color-paper: oklch(96% 0.012 91);
  --color-paper-2: oklch(92% 0.014 91);
  --color-paper-3: oklch(86% 0.016 91);
  --color-surface: oklch(98% 0.008 91);
  --color-ink: oklch(19% 0.018 153);
  --color-ink-2: oklch(29% 0.021 153);
  --color-neutral: oklch(43% 0.015 112);
  --color-muted: oklch(37% 0.014 112);
  --color-rule: oklch(76% 0.015 91);
  --color-rule-strong: oklch(54% 0.021 112);
  --color-accent: oklch(38% 0.088 153);
  --color-accent-dark: oklch(29% 0.072 153);
  --color-accent-soft: oklch(89% 0.025 153);
  --color-accent-ink: oklch(97% 0.008 91);
  --color-focus: oklch(58% 0.145 142);
  --color-error: oklch(48% 0.17 28);
  --color-error-soft: oklch(93% 0.025 28);
  --color-success: oklch(40% 0.105 153);
  --color-overlay: oklch(12% 0.016 153 / 0.7);
  --color-shadow: oklch(16% 0.018 153 / 0.1);

  --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.953rem;
  --text-2xl: 2.441rem;
  --text-3xl: 3.052rem;
  --text-4xl: 3.815rem;
  --text-display: clamp(3rem, 7.1vw, 5.25rem);

  --page-gutter: clamp(1rem, 3.6vw, 4.5rem);
  --content-width: 92rem;
  --measure: 65ch;
  --control-height: 3rem;
  --rule-hair: 1px;
  --rule-heavy: 2px;
  --radius-sm: 0.125rem;
  --radius-md: 0.25rem;

  --shadow-whisper: 0 1px 2px var(--color-shadow);

  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
  --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);

  --z-base: 1;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;
}
