:root {
  color-scheme: dark;
  --background: #191c20;
  --foreground: #e3e6eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: system-ui, sans-serif;
}

main {
  min-block-size: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.profile { display: grid; justify-items: center; gap: 28px; }

.avatar {
  display: block;
  inline-size: 144px;
  block-size: 144px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}

nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

a {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: 48px;
  block-size: 48px;
  border-radius: 50%;
  color: var(--foreground);
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

a > svg, a > img {
  display: block;
  inline-size: 20px;
  block-size: 20px;
  object-fit: contain;
}
a:hover { background: #ffffff0d; transform: translateY(-2px); }
a:focus-visible { outline: 2px solid #a9c9ff; outline-offset: 4px; }

a::after {
  content: attr(data-label);
  position: absolute;
  inset-block-start: calc(100% + 8px);
  padding: 5px 9px;
  border-radius: 6px;
  background: #2a2f36;
  font-size: 0.875rem;
  opacity: 0;
  pointer-events: none;
}

a:hover::after, a:focus-visible::after { opacity: 1; }

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