:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666;
  --accent: #0066cc;
  --border: #eaeaea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --text: #e8e8e8;
    --text-muted: #999;
    --accent: #6ab0ff;
    --border: #222;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.75rem 4rem;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.location {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.bio {
  margin-bottom: 2.5rem;
}

.bio p {
  margin-bottom: 1rem;
}

.bio p:last-child {
  margin-bottom: 0;
}

section {
  margin-bottom: 2rem;
}

h2 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

a:hover {
  border-bottom-color: currentColor;
}

ul {
  list-style: none;
}

ul li {
  margin-bottom: 0.5rem;
}

ul.links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

ul.links li {
  margin-bottom: 0;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  main {
    padding: 2.5rem 1.25rem 2rem;
  }
  header {
    gap: 0.85rem;
  }
  .avatar {
    width: 112px;
    height: 112px;
  }
  h1 {
    font-size: 1.5rem;
  }
  body {
    font-size: 16px;
  }
}
