:root {
  --text: #1c1c1c;
  --muted: #666;
  --border: #e4e4e4;
  --accent: #2f5fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { font-weight: 700; font-size: 1.05rem; }

.primary-nav { display: flex; gap: 1.25rem; }
.primary-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}
.primary-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
}

.fill { width: 100%; padding: 3rem 1.5rem; }
.fill.alt { background: #fafafa; }
.inner { max-width: 960px; margin: 0 auto; }

.hero h1 {
  margin: 0 0 0.25rem;
  font-size: 2rem;
  background: linear-gradient(90deg, var(--accent), #7a9bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.headline { font-size: 1.1rem; margin: 0 0 0.25rem; }
.muted { color: var(--muted); font-size: 0.9rem; }
.bio { max-width: 640px; margin-top: 1rem; }

h2 {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: #f0f3ff;
  border-radius: 4px;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.skill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-list li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.project-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem;
  background: #fff;
}
.project-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.project-card h3 a { color: var(--text); text-decoration: none; }
.project-card h3 a:hover { color: var(--accent); }
.project-card p { margin: 0 0 0.6rem; font-size: 0.9rem; }

.tech-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tech-list li {
  font-size: 0.75rem;
  color: var(--muted);
  background: #f2f2f2;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}

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

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem 1.5rem 1rem;
    display: none;
  }
  .primary-nav.open { display: flex; }
}
