@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #22e0a8;
  --accent-dim: rgb(34 224 168 / 0.16);
  --bg: #0a0b0d;
  --bg-glow: rgb(34 224 168 / 0.10);
  --surface: rgb(255 255 255 / 0.04);
  --surface-hover: rgb(255 255 255 / 0.07);
  --border: rgb(255 255 255 / 0.08);
  --border-hover: rgb(34 224 168 / 0.45);
  --text: #f4f5f3;
  --text-muted: #9a9ea3;
  --ring: rgb(255 255 255 / 0.10);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafaf9;
    --bg-glow: rgb(16 170 128 / 0.08);
    --surface: #ffffff;
    --surface-hover: #f2f4f3;
    --border: rgb(15 20 18 / 0.08);
    --border-hover: rgb(16 170 128 / 0.55);
    --text: #16181a;
    --text-muted: #666b6f;
    --ring: rgb(15 20 18 / 0.08);
    --accent: #0e9f78;
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark light;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(60% 42% at 50% 0%, var(--bg-glow), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ring);
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.name {
  margin: 1.25rem 0 0.15rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards;
}

.handle {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.14s forwards;
}

.links {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.links li {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.links li:nth-child(1) { animation-delay: 0.20s; }
.links li:nth-child(2) { animation-delay: 0.26s; }
.links li:nth-child(3) { animation-delay: 0.32s; }
.links li:nth-child(4) { animation-delay: 0.38s; }

.link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 0.9375rem 1.125rem;
  border-radius: 0.875rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.link:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -12px var(--accent-dim);
}

.link:active {
  transform: scale(0.98);
}

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

.link img {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.link span {
  flex: 1;
  text-align: left;
}

.link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.link:hover svg {
  transform: translateX(2px);
  color: var(--accent);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatar,
  .name,
  .handle,
  .links li {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .link,
  .link svg {
    transition: none;
  }
}
