html {
  --bg: #fff;
  --fg: #000;
  color-scheme: light;
  font-size: 112.5%; /* 18px base when the browser default is 16px */
  background: var(--bg);
  color: var(--fg);
}

html.dark {
  --bg: #000;
  --fg: #fff;
  color-scheme: dark;
}

body {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--fg);
  font-family: "Times New Roman", Times, serif;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

main {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.2;
}

p {
  margin: 0 0 2.5rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 2rem;
  row-gap: 0.75rem;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  opacity: 0.6;
}

a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.toggle {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: default;
  appearance: none;
}

.toggle:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  body {
    padding: 3rem 1.25rem;
  }

  nav {
    column-gap: 1.5rem;
  }
}
