/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0f1117;
  --surface:     #1a1d27;
  --border:      #2a2d3a;
  --text:        #e8eaf0;
  --muted:       #8b8fa8;
  --accent:      #6c8cff;
  --accent-glow: rgba(108, 140, 255, 0.15);
  --radius:      14px;
  --font:        system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:          #f4f6fb;
    --surface:     #ffffff;
    --border:      #e0e4ef;
    --text:        #1a1d27;
    --muted:       #5c6080;
    --accent:      #4361ee;
    --accent-glow: rgba(67, 97, 238, 0.08);
  }
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ───────────────────────────────────────────────── */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.12);
}

/* ── Avatar ───────────────────────────────────────────────── */
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: block;
}

/* photo variant */
img.avatar {
  object-fit: cover;
  border: 3px solid var(--border);
}

/* initial/fallback variant */
div.avatar {
  background: var(--accent);
  color: #fff;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 96px;
  text-align: center;
  user-select: none;
}

/* ── Typography ───────────────────────────────────────────── */
h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.tagline {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.bio {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* ── Socials ──────────────────────────────────────────────── */
.socials {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  background: transparent;
}

.social-link:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.social-link:active {
  transform: translateY(0);
}

.social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .card {
    padding: 2rem 1.5rem;
    border-radius: 10px;
  }
}
