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

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --muted: #888;
  --accent: #7c6af7;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

/* ── Layout ─────────────────────────────────────── */

main {
  flex: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
}

/* ── Hero ────────────────────────────────────────── */

.hero {
  margin-bottom: 3.5rem;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.hero .tagline {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.hero .bio {
  font-size: 1rem;
  color: var(--text);
  max-width: 520px;
}

/* ── Links ───────────────────────────────────────── */

.links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  transition: color 0.15s, border-color 0.15s;
}

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

/* ── Section ─────────────────────────────────────── */

section {
  margin-bottom: 2.5rem;
}

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

/* ── Project cards ───────────────────────────────── */

.cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  transition: border-color 0.15s;
}

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

.card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

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

/* ── Footer ──────────────────────────────────────── */

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
