/* style.css */
:root {
  --fg: #1a1a1a;
  --muted: #666;
  --accent: #2563eb;
  --bg: #fff;
}

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

body {
  font: 16px/1.6 system-ui, -apple-system, sans-serif;
  color: var(--fg);
  background: var(--bg);
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

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

.avatar {
  width: 110px;
  margin-bottom: 1rem;
}

h1 { font-size: 1.75rem; }
.tagline { color: var(--muted); }

section { margin-bottom: 2.5rem; }
h2 { font-size: 1.1rem; margin-bottom: .75rem; }


.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: center;   /* centers each card vertically within its row */
}

.card {
  margin: 1rem;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.card img {
  object-fit: cover;
}

.card h3 {
  font-size: 1rem;
  margin: .6rem 0 .25rem;
}

.card p {
  color: var(--muted);
  font-size: .9rem;
}


a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

footer {
  text-align: center;
  color: var(--muted);
  border-top: 1px solid #eee;
  padding-top: 2rem;
}

.links img {
  width: 24px;
  height: 24px;
  margin: 0 .5rem;
  vertical-align: middle;
}

@media (prefers-color-scheme: dark) {
  :root { --fg: #e5e5e5; --muted: #999; --bg: #111; }
  footer { border-color: #222; }
}
