:root {
  --accent: #2a78d6;
  --bg: #f4f3ef;
  --card: #fcfcfb;
  --text: #0b0b0b;
  --muted: #52514e;
  --border: #e3e2dd;
  --btn-bg: #ffffff;
  --btn-hover: #f0efec;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121211;
    --card: #1a1a19;
    --text: #ffffff;
    --muted: #c3c2b7;
    --border: #2f2f2d;
    --btn-bg: #232322;
    --btn-hover: #2c2c2a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121211;
  --card: #1a1a19;
  --text: #ffffff;
  --muted: #c3c2b7;
  --border: #2f2f2d;
  --btn-bg: #232322;
  --btn-hover: #2c2c2a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px 24px;
}

.card {
  width: 100%;
  max-width: 480px;
  text-align: center;
}
.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card);
  box-shadow: 0 0 0 2px var(--accent);
}
h1 { font-size: 1.4rem; margin: 14px 0 4px; letter-spacing: -0.01em; }
.bio { color: var(--muted); margin: 0 auto 28px; max-width: 38ch; }

.links { display: flex; flex-direction: column; gap: 12px; }
.btn {
  --btn-icon: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--btn-bg);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn span { flex: 1; text-align: center; padding-right: 24px; }
.btn:hover { background: var(--btn-hover); border-color: var(--accent); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.icon { width: 24px; height: 24px; flex: none; color: var(--btn-icon); }
.btn-youtube   { --btn-icon: #e34948; }
.btn-instagram { --btn-icon: #d55181; }
.btn-linkedin  { --btn-icon: #2a78d6; }

.error { color: #e34948; }
.footer { margin-top: auto; padding-top: 40px; font-size: .8rem; color: var(--muted); }

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