:root {
  --bg: #fafaf9;
  --fg: #1c1917;
  --muted: #78716c;
  --accent: #2563eb;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1917;
    --fg: #f5f5f4;
    --muted: #a8a29e;
    --accent: #60a5fa;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.tagline {
  margin: 0.5rem 0 1.5rem;
  font-size: 1.25rem;
  color: var(--accent);
}

.profile {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

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

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 1.75rem;
  font-weight: 700;
  object-fit: cover;
}

.profile-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 30rem) {
  .profile {
    flex-direction: column;
  }
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.project {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

.project + .project {
  margin-top: 0.75rem;
}

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

.project img {
  flex: none;
  width: 48px;
  height: 48px;
}

.project strong {
  display: block;
}

.project span span {
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}
