/* ---------- Design tokens ---------- */
:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #5f6368;
  --border: #e3e3df;
  --accent: #2f6feb;
  --hover: #f0f3fa;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --card: #1a1b1e;
    --text: #ececec;
    --muted: #9aa0a6;
    --border: #2b2d31;
    --accent: #6ea0ff;
    --hover: #22252b;
  }
}

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

html { color-scheme: light dark; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 16px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

ul { list-style: none; margin: 0; padding: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px; left: 16px;
  padding: 8px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Card ---------- */
main { width: 100%; max-width: 420px; }

.card {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px 28px;
}

/* ---------- Profile header ---------- */
.profile__avatar {
  display: block;
  width: 112px; height: 112px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.profile__name {
  margin: 0 0 4px;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.profile__tagline { margin: 0 0 14px; color: var(--muted); }

/* ---------- Interests ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.tag {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .85rem;
  background: var(--hover);
  border: 1px solid var(--border);
}

/* ---------- Social links ---------- */
.social__list { display: grid; gap: 10px; }

.social__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: background .15s, border-color .15s;
}

.social__link:hover,
.social__link:focus-visible {
  background: var(--hover);
  border-color: var(--accent);
  outline: none;
}

.social__link svg {
  flex: none;
  width: 20px; height: 20px;
  fill: currentColor;
}

.social__handle {
  margin-left: auto;
  color: var(--muted);
  font-weight: 400;
  font-size: .9rem;
}

/* ---------- Footer ---------- */
.site-footer p { margin: 0; color: var(--muted); }

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