:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0e;
    --text: #ededed;
    --muted: #8a8a8a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  max-width: 620px;
  margin: 0 auto;
  padding: 15vh 24px 10vh;
}

h1 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 1.6em;
}

p {
  margin: 0 0 1.4em;
}

em {
  font-style: italic;
}

nav {
  margin: 2.4em 0 0;
}

nav a + a {
  margin-left: 1.6em;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.6;
}

footer {
  margin-top: 4em;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 640px) {
  main {
    padding: 12vh 20px 10vh;
  }
}
