:root {
  color-scheme: light;
  --background: #fff;
  --foreground: #111;
  --muted: #444;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #000;
    --foreground: #fff;
    --muted: #c8c8c8;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: "Computer Modern Serif", "Latin Modern Roman", serif;
  transition: background-color 180ms ease, color 180ms ease;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem);
}

.name {
  color: var(--foreground);
  font-size: 1.1rem;
  text-decoration: none;
}

main {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.25rem;
  padding: 6rem 1.5rem;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

main > a {
  color: var(--foreground);
  font-size: 1.15rem;
  text-underline-offset: 0.25em;
}

main > a:hover {
  color: var(--muted);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
