@layer tokens {
  :root {
    --font-ui: Inter, "Segoe UI", Arial, sans-serif;
    --font-display: Montserrat, "Arial Black", sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --font-navbar: var(--font-ui);
    --font-namestyle: var(--font-ui);
  }
}

@layer base {
  :where(body) {
    --font-current: var(--font-ui);
    font-family: var(--font-current);
  }

  :where(button, input, select, textarea) {
    font-family: inherit;
  }

  :where(.navbar, .nav-links, .profile-dropdown) {
    --font-navbar: var(--font-ui);
    font-family: var(--font-navbar);
  }

  :where(
    [style*="--font-current"],
    [class*="txt-style--"],
    [class*="rank-name-style--"],
    .admin-news-content-field textarea,
    .bbcode-code code,
    .cat-icon-codebox,
    .color-hex-input,
    .cs-page,
    .cs-hero h1,
    .cs-section-header h2,
    .cs-section-header h3,
    .cs-resource-body h3,
    .cs-filter-panel h3,
    .forum-code-language,
    .forum-code-block code[class*="language-"],
    .forum-post-content .bbcode-code,
    .hero-title,
    .kbd,
    .lb-podium-steamid,
    .lb-steamid,
    .lb-steamid-badge,
    .link-key-box code,
    .loader-wrapper,
    .md-code,
    .md-codeblock,
    .mt-donation-page,
    .mt-footer-brand-title,
    .mt-hero-title,
    .mt-post-content .forum-code-block,
    .mt-post-content .inline-code,
    .news-preview-canvas,
    .news-page,
    .news-card,
    .news-article,
    .news-reaction-count,
    .profile-bio code,
    .reaction-picker-emoji,
    .screen,
    .screenM,
    .server-ip-value,
    .store-order-chip-ref,
    .text_404,
    kbd,
    .bbcode-var
  ) {
    font-family: var(--font-current, var(--font-ui));
  }

  :where(.mt-ns, .mt-name) {
    --font-namestyle: var(--font-current, var(--font-ui));
  }
}
