:root {
  color-scheme: dark;
  font-family: "IBM Plex Serif", Georgia, serif;
  background: #000;
  color: #fff;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  background: #000;
}

main {
  padding: 2rem;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

p {
  margin: 0.75rem 0 2.5rem;
  color: #999;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-style: italic;
  font-weight: 300;
}

a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem;
  color: #999;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 150ms ease;
}

a svg {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  fill: currentColor;
}

a span {
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transform: translateX(-0.5rem);
  transition: max-width 250ms ease, margin-left 250ms ease,
    opacity 200ms ease, transform 250ms ease;
}

a:hover,
a:focus-visible {
  color: #fff;
}

a:hover span,
a:focus-visible span {
  max-width: 10rem;
  margin-left: 0.65rem;
  opacity: 1;
  transform: translateX(0);
}

a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  a,
  a span {
    transition: none;
  }
}
