/*
 * C1 — Portfolio Clarity & Scanability typography foundation.
 * Onest is self-hosted from reviewed Fontsource 5.3.0 subset assets.
 * Copyright 2021 The Onest Project Authors.
 * Licensed under SIL Open Font License 1.1.
 * Full license: /assets/fonts/Onest-OFL.txt
 */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../../assets/fonts/Onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-04FF, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../../assets/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 {
  --tr-font-sans: "Onest", "Segoe UI", Arial, sans-serif;
  --tr-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --tr-body-size: 1.0625rem;
  --tr-body-line-height: 1.62;
  --tr-prose-width: 70ch;
}

body,
.g-root {
  font-family: var(--tr-font-sans);
  font-size: var(--tr-body-size);
  line-height: var(--tr-body-line-height);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.g-content .yfm > :where(p, ul, ol, blockquote) {
  max-width: var(--tr-prose-width);
}

code,
pre,
kbd,
samp {
  font-family: var(--tr-font-mono);
}

@media (max-width: 767px) {
  :root {
    --tr-body-size: 1rem;
  }
}
