:root {
  --text-color: #e1e1e1;
  --bg-color: #1e1e1e;
  --link-color: #60a0ff;
  --visited-link-color: #df80df;
}

@media (prefers-color-scheme: light) {
  :root {
    --text-color: #282828;
    --bg-color: #e1e1e1;
    --link-color: #0000ee;
    --visited-link-color: #551a8b;
  }
}

body {
  font-family: monospace;
  color: var(--text-color);
  background-color: var(--bg-color);
}

nav {
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-direction: row;
  max-width: fit-content;
  gap: 32px;
  font-size: 22px;
}

nav h1 {
  font-size: 2em;
}

nav a, a:active {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 480px) {
  /* little bit of lerping */
  nav {
    gap: calc(32px - 16 * (480px - 100vw) / 80);
  }
  nav h1 {
    font-size: calc(2em - 8 * (480px - 100vw) / 80);
  }
}

nav menu {
  list-style: none;
  padding-inline-start: 0;
}

nav li {
  display: inline-block;
  padding: 0 12px;
}

nav .active-page {
  font-weight: bold;
  text-decoration: underline;
}

main {
  margin: 0 auto;
  min-width: 800px;
  width: 40%;
  font-size: 18px;
}

@media (max-width: 800px) {
  main {
    min-width: 0;
    width: 100%;
  }
}

main .ghost-header {
  display: none;
}

main a:link {
  color: var(--link-color);
}

main a:visited {
  color: var(--visited-link-color);
}

section {
  display: none;
}

section:target,
#home {
  display: block;
}

section:target ~ #home {
  display: none;
}

#blog .posts ul {
  list-style: none;
}

#blog .posts a, a:active {
  text-decoration: none;
}
