/* Self-hosted from /fonts/, embedded in the binary. Metamorphous for the site
   title, Averia for the headings, Urbanist for body text, B612 Mono for code.
   Only Urbanist carries real weights — it is variable — so a bold Averia
   heading is synthesized from the single regular face. */
@font-face {
  font-family: Metamorphous;
  src: url(/fonts/Metamorphous-Regular.ttf) format("truetype");
  font-display: swap
}

@font-face {
  font-family: Averia;
  src: url(/fonts/AveriaSerifLibre-Regular.ttf) format("truetype");
  font-display: swap
}

@font-face {
  font-family: Urbanist;
  src: url(/fonts/Urbanist-VariableFont_wght.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap
}

@font-face {
  font-family: "B612 Mono";
  src: url(/fonts/B612Mono-Regular.ttf) format("truetype");
  font-weight: 400;
  font-display: swap
}

@font-face {
  font-family: "B612 Mono";
  src: url(/fonts/B612Mono-Bold.ttf) format("truetype");
  font-weight: 700;
  font-display: swap
}

body {
  font-family: Urbanist, system-ui, sans-serif;
  max-width: 640px;
  margin: 40px auto;
  padding: 0 16px;
  color: #222;
  line-height: 1.6;
  background: #fff
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Averia, Georgia, serif
}

/* The site name on the index page — the one place the display face is used. */
.site-title {
  font-family: Metamorphous, Georgia, serif
}

a {
  color: #0645ad;
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

li {
  margin: 8px 0
}

/* B612 Mono keeps code monospaced; the body font would otherwise cascade in,
   where the columns matter. Only regular and bold are shipped, so an italic
   token — rare in the highlighter — gets a synthetic slant. */
pre,
code {
  font-family: "B612 Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace
}

pre {
  background: #f4f4f4;
  padding: 12px;
  overflow-x: auto
}

code {
  background: #f4f4f4;
}

blockquote {
  margin: 16px 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid #0645ad;
  color: #555
}

blockquote > :first-child {
  margin-top: 0
}

blockquote > :last-child {
  margin-bottom: 0
}

@media (prefers-color-scheme: dark) {
  body {
    background: #1a1a1a;
    color: #ddd
  }

  a {
    color: #6db3f2
  }

  pre,
  code {
    background: #2a2a2a;
    color: #ddd
  }

  blockquote {
    border-left-color: #6db3f2;
    color: #aaa
  }
}
