:root {
  color-scheme: light dark;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

header {
  margin-bottom: 2rem;
}

nav {
  line-height: 2;
}

nav a {
  margin-right: 0.8rem;
  white-space: nowrap;
}

main {
  min-width: 0;
}

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

a {
  overflow-wrap: anywhere;
}

pre,
code {
  overflow-x: auto;
}

pre {
  padding: 1rem;
}

.project-list article {
  margin-bottom: 2rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  body {
    padding: 14px;
    font-size: 16px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }
}
