:root {
  --bg: #ffffff;
  --text: #111111;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --accent: #111111;
  --card-bg: #f9fafb;
  --card-hover: #f3f4f6;
  --tag-bg: #e5e7eb;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 680px;
  --section-gap: 5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-weight: 600;
  font-size: 0.95rem;
}

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

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

nav a:hover {
  color: var(--text);
}

/* Main layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  border-bottom: 1px solid var(--border);
}

section:last-child {
  border-bottom: none;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Hero */
#hero {
  padding-top: 6rem;
  padding-bottom: var(--section-gap);
}

.eyebrow {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

#hero h1 {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 400px;
}

.hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: background 0.15s, border-color 0.15s;
}

.hero-links a:hover {
  background: var(--card-hover);
  border-color: #d1d5db;
}

/* About */
#about p {
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

#about p:last-child {
  margin-bottom: 0;
}

/* Projects */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.project-card:hover {
  background: var(--card-hover);
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.project-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.875rem;
}

.tags {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tags li {
  background: var(--tag-bg);
  color: #374151;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* Contact */
#contact p {
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.75;
}

#contact a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#contact a:hover {
  color: var(--text-muted);
}

/* Footer */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 640px) {
  nav ul {
    gap: 1.25rem;
  }

  #hero {
    padding-top: 4rem;
  }

  .hero-links {
    gap: 0.625rem;
  }
}
