:root {
  color-scheme: light dark;
  --fg: #1a1a1a;
  --bg: #ffffff;
  --muted: #666;
  --accent: #3b6fd6;
  --border: #e5e5e5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f0f0f0;
    --bg: #121212;
    --muted: #999;
    --accent: #7aa2f7;
    --border: #2a2a2a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 0.25rem;
  font-size: 2rem;
}

.tagline {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.bio {
  margin: 0 auto 1.5rem;
  max-width: 480px;
}

.links {
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.links a:hover {
  border-color: var(--accent);
}

.section {
  margin-top: 3rem;
}

.section h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.projects, .demo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.projects li, .demo-list li {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.projects a, .demo-list a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}

.projects a:hover, .demo-list a:hover {
  color: var(--accent);
}

.projects p {
  color: var(--muted);
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

.muted {
  color: var(--muted);
}
