/*
 * Broder type: Inter only, as on the landing (broder-landing-page src/styles/global.css:
 * Inter Variable, font-feature-settings 'ss01' 'cv11', antialiased). Loaded right after
 * broder_nova_tokens.css by every layout of the product:
 *   body.nv-shell  the signed-in app frame (layouts/robin, layouts/application for robin users);
 *   body.nv-type   /start onboarding and the login page (layouts/broder_start).
 *
 * It works at the token level: every older font token (Cooper BT display, Geist, Lexend,
 * Source Sans, Tabler's) points at --nv-font on <body>, so any rule written as
 * `font: 500 24px var(--bc-display)` or `font-family: var(--font-display)` renders Inter
 * without being touched. Headings that were drawn in Cooper BT at 500 get Inter's title
 * weight instead (a one-class rule, so any screen rule still decides its own weight).
 */
:root body:is(.nv-shell, .nv-type) {
  --font-body: var(--nv-font);
  --font-display: var(--nv-font);
  --bc-font: var(--nv-font);
  --bc-display: var(--nv-font);
  --tblr-font-sans-serif: var(--nv-font);
  --tblr-body-font-family: var(--nv-font);
  --tblr-font-monospace: ui-monospace, 'SF Mono', Menlo, monospace;
  font-family: var(--nv-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* The landing's glyphs (ss01 open digits, cv11 single-storey a) on every element: rules
   written with the `font` shorthand reset font-feature-settings, so this one is !important.
   Numbers that need tabular figures use font-variant-numeric, which still combines. */
body:is(.nv-shell, .nv-type),
body:is(.nv-shell, .nv-type) *,
body:is(.nv-shell, .nv-type) *::before,
body:is(.nv-shell, .nv-type) *::after { font-feature-settings: var(--nv-font-features) !important; }
body:is(.nv-shell, .nv-type) :is(button, input, select, textarea) { font-family: inherit; }

/* Headings: Cooper BT's 500 reads like Inter's 650-680. Specificity (0,1,1) on purpose: it
   beats broder.css's `body :is(h1, h2, .page-title, .card-title)` and the one-class display
   rules (.bc-team-title, .bs-title …), and loses to every screen rule (#robin-main …). */
body:where(.nv-shell, .nv-type) :is(h1, h2, .page-title, .card-title) { font-family: var(--nv-font); font-weight: 650; letter-spacing: -.025em; }
body:where(.nv-shell, .nv-type) :is(h3, h4, h5, h6) { font-family: var(--nv-font); letter-spacing: -.01em; }

/* /start and login: the Cooper titles at the landing's title weight. */
body.nv-type :is(.bs-title, .bs-intro-copy h1, .bs-sheet h2, .bs-aside-copy p, .broder-login-greeting) { font-weight: var(--nv-fw-title); letter-spacing: var(--nv-ls-title); }
body.nv-type .bs-rhythm-option strong { font-weight: 700; letter-spacing: -.04em; }
body.nv-type .bs-brand { font-weight: 650; letter-spacing: -.03em; }
