/* Self-hosted fonts (SIL Open Font License; see fonts/OFL-*.txt). Latin subset. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* Roomier body text. */
article[role="main"] {
  line-height: 1.65;
}

/* Headings in the brand colour (a deep shade of the brand blue in light mode, for
   contrast). --ome-accent is the decorative accent for the heading underline and the
   text selection; it is set per theme in conf.py. */
h1, h2, h3, h4 {
  color: var(--color-brand-primary);
  font-weight: 500;
}
h4 {
  font-weight: 600;
}
article h1 {
  border-bottom: 3px solid var(--ome-accent);
  border-radius: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 0 0 0.25em;
}
::selection {
  background: var(--ome-accent);
  color: #000;
}

/* Code reads better without programming ligatures such as -> or !=. */
code, pre, kbd, samp {
  font-variant-ligatures: none;
}
