@media (prefers-color-scheme: dark) {
  html, body {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
  }

  /* Headings and site title */
  h1, h2, h3, h4, h5, h6,
  section.header .name,
  section.main .content .page-heading {
    color: #ffffff !important;
  }

  /* Invert black icon images so they turn white */
  section.header .icons img,
  .icons img,
  img.icon {
    filter: invert(1) brightness(1.5) !important;
  }

  /* Mobile menu & navigation icons */
  nav img,
  .nav img,
  .menu img,
  .mobile-menu img,
  button img {
    filter: invert(1) brightness(1.5) !important;
  }

  /* If mobile uses a hamburger icon made of lines/spans */
  .hamburger span,
  .menu-icon span {
    background-color: #e0e0e0 !important;
  }

  /* Markdown body text, links, and blockquotes */
  section.main .content .markdown p,
  section.main .content .markdown li {
    color: #d4d4d4 !important;
  }

  a {
    color: #7dd3fc !important;
  }

  section.main .content .markdown blockquote {
    border-left-color: #404040 !important;
    color: #a3a3a3 !important;
  }

  /* Inline code and code blocks */
  section.main .content .markdown code,
  section.main .content .markdown pre {
    background-color: #1e1e1e !important;
    color: #f8f8f2 !important;
    border-color: #333333 !important;
  }

  /* Navigation icons (SVG fills) */
  section.header .icons a svg {
    fill: #e0e0e0 !important;
  }
}
