* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #fff;
  --fg: #000;
}

[data-theme="dark"] {
  --bg: #000;
  --fg: #fff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000;
    --fg: #fff;
  }
}

body {
  font-family: Georgia, "Times New Roman", Times, serif;
  background: var(--bg);
  color: var(--fg);
  max-width: 650px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--fg);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1.1;
  text-align: center;
  white-space: pre;
}

.theme-toggle:hover {
  opacity: 0.7;
}

.theme-toggle .mobile {
  display: none;
}

.theme-toggle .desktop {
  display: block;
}

main {
  text-align: center;
}

.bio {
  text-align: left;
  margin: 2rem 0;
  line-height: 1.6;
}

.bio p {
  margin-bottom: 1rem;
}

.bio p:last-child {
  margin-bottom: 0;
}

pre.ascii {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.65rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  display: inline-block;
  text-align: left;
}

nav {
  font-size: 1.1rem;
}

nav a {
  margin-right: 1rem;
}

nav a:last-child {
  margin-right: 0;
}

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

a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  pre.ascii {
    font-size: 0.45rem;
  }

  body {
    padding: 1rem;
  }

  .theme-toggle {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.2rem;
  }

  .theme-toggle .mobile {
    display: block;
  }

  .theme-toggle .desktop {
    display: none;
  }
}
