:root {
  color-scheme: light dark;
  --bg: #fbfaf8;
  --text: #1a1a1a;
  --link: #0366d6;
  --link-hover: #024ea4;
  --link-internal: #1a7f37;
  --link-internal-hover: #116329;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --text: #e8e8e8;
    --link: #58a6ff;
    --link-hover: #79b8ff;
    --link-internal: #3fb950;
    --link-internal-hover: #56d364;
  }
}

body {
  font-family: Mulish, system-ui, sans-serif;
  line-height: 1.4;
  max-width: 42rem;
  margin: 2rem auto;
  padding: 0 1rem;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
}

h2 {
  margin-top: 2.5rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 25%, transparent);
}

a:hover,
a:active {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

a.internal {
  color: var(--link-internal);
}

a.internal:hover,
a.internal:active {
  color: var(--link-internal-hover);
}

a.external {
  white-space: nowrap;
}

.external-link-icon {
  display: inline-block;
  vertical-align: text-top;
  margin-left: 0.15em;
}

.external-link-icon svg {
  width: 0.75em;
  height: 0.75em;
}

.back-link {
  margin-bottom: 1rem;
}

.back-link a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.back-link svg {
  width: 1cm;
  height: 1cm;
  min-width: 1cm;
}


/* Self-hosted Mulish (assets/fonts/Mulish → dist/assets/fonts/Mulish). */
@font-face {
  font-family: Mulish;
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/Mulish/Mulish-VariableFont_wght.ttf") format("truetype-variations");
}

@font-face {
  font-family: Mulish;
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/Mulish/Mulish-Italic-VariableFont_wght.ttf") format("truetype-variations");
}
