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

:root {
  --bg: #0d0d0d;
  --fg: #e8e8e8;
  --accent: #6ee7b7;
  --muted: #555;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

/* Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid #1e1e1e;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  color: var(--fg);
}

/* Sections */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

#hero {
  padding-top: 10rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

.tagline {
  color: var(--muted);
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

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