:root {
  --base-font-size: 15px;
  --font-body: 'IBM Plex Mono', ui-monospace, monospace;
  --font-heading: 'Fira Code', ui-monospace, monospace;
  --font-code: 'Iosevka Etoile', ui-monospace, monospace;
  --spacing: 1rem;
}

html {
  font: 400 var(--base-font-size)/1.6 var(--font-body);
  text-rendering: optimizeLegibility;
}

body {
  color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

h2 {
  font-size: 1.15rem;
}

h3 {
  font-size: 1rem;
}

p,
ul,
ol,
blockquote,
pre {
  margin: 0 0 var(--spacing);
}

ul,
ol {
  padding-left: 1.45rem;
}

li {
  margin-bottom: 0.45rem;
  padding-left: 0.15rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a[href^="http://"],
a[href^="https://"] {
  color: var(--external-link);
}

a:hover {
  color: var(--text);
}

strong,
b,
i {
  font-style: normal;
  font-weight: 700;
}

code {
  border: 1px solid var(--code-border);
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 0.875em;
  padding: 0.08rem 0.25rem;
}

pre {
  background: var(--pre-bg);
  border-radius: 6px;
  color: var(--pre-text);
  overflow: auto;
  padding: 1rem;
}

pre code {
  border: 0;
  color: inherit;
  display: block;
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 0;
}

blockquote {
  border-left: 0.25rem solid var(--border);
  color: var(--text);
  font-weight: 700;
  margin-left: 0;
  padding-left: 1rem;
}
