:root {
  --text: #222;
  --link: #1d7484;
  --link-hover: #982c61;
  --bg: #fafafa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6e6e6;
    --link: #5fb3c3;
    --link-hover: #e28ab8;
    --bg: #181818;
  }
}

html {
  font-size: 112.5%;
}

body {
  max-width: 38rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 2rem;
}

h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.5rem;
}

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

a:hover {
  color: var(--link-hover);
  border-bottom: 2px solid currentColor;
}

ul {
  padding-left: 1.4rem;
}

li {
  margin: 0.25rem 0;
}
