/* Locally served Latin web fonts. Copyright and SIL OFL terms: ./fonts/OFL.txt. */
@font-face {
  font-family: Inter;
  src: url("./fonts/inter-latin-v4.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Inconsolata;
  src: url("./fonts/inconsolata-latin-regular-v3.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inconsolata;
  src: url("./fonts/inconsolata-latin-bold-v3.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --hd-sans: Inter, system-ui, "Segoe UI", Arial, sans-serif;
  --hd-mono: Inconsolata, ui-monospace, "SFMono-Regular", Consolas, monospace;
}

body {
  font-family: var(--hd-sans);
  font-optical-sizing: auto;
}

button, input, select, textarea {
  font-family: inherit;
}

/* These editorial components otherwise set a separate face in a font shorthand. */
.fh-intro h1, .fh-intro h1 em, .fh-learning h2, .fh-worked-copy h2,
.fh-notebook-head h2, .fh-lesson-list h3, .fh-project summary, .fh-project h3,
.fh-demo .fh-demo-head h2, .fh-map .fh-label, .fh-caption strong, .fh-transcript strong,
.fh-controls button, .headline-story a {
  font-family: var(--hd-sans);
}

.fh-intro h1 {
  letter-spacing: -.052em;
}

.fh-intro h1 em {
  font-style: normal;
  font-size: 1em;
  font-weight: inherit;
  letter-spacing: inherit;
}

.eyebrow, .card .eyebrow, .project-card .eyebrow, .news-kicker,
.fh-kicker, .fh-pick-label, .proton-note .proton-note-label, .headline-label {
  font-family: var(--hd-sans);
  font-weight: 650;
  letter-spacing: .07em;
}

/* Evidence, timestamps and identifiers retain fixed-width characters. */
pre, code, kbd, samp, time,
.learning-article pre code, .demo-records, .project-number, .journey-number,
.readable-flow > li::before, .flow-stages button span,
.fh-demo .fh-meta, .fh-select button, .headline-meta {
  font-family: var(--hd-mono);
  font-variant-numeric: tabular-nums;
}

.headline-meta {
  font-size: .9rem;
}
