:root {
  --bg: #161616;
  --fg: #e8e8e8;
  --muted: #8c8c8c;
  --accent: #8ab4f8;
  --hover: #ffffff0f;
  --placeholder: #3d3d3d;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--mono);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 16px;
  text-align: center;
}

.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
}

div.avatar {
  border: 2px dashed var(--placeholder);
}

h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.bio {
  margin: 0;
  max-width: 40ch;
  color: var(--muted);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--fg);
  transition: color 150ms, background-color 150ms;
}

.socials a:hover {
  color: var(--accent);
  background: var(--hover);
}

.socials a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.socials svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

footer {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
}

@media (max-width: 400px) {
  .socials {
    gap: 0;
  }
}

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