/* ── Reset & base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --border: #e5e5e5;
  --accent: #111111;
  --tag-bg: #f2f2f2;
  --radius: 10px;
  --max-w: 860px;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }

/* ── Nav ────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

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

nav ul a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.15s;
}

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

/* ── Sections ───────────────────────────────────── */
section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem;
}

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

/* ── Hero ───────────────────────────────────────── */
.hero {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.hero-inner { max-width: 640px; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-bio {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;
}

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

.hero-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1.5px solid var(--text);
  padding-bottom: 1px;
  transition: opacity 0.15s;
}

.hero-links a:hover { opacity: 0.5; }

/* ── Projects grid ──────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.project-card:hover {
  border-color: #bbb;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  background: var(--tag-bg);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  align-self: flex-start;
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 0.25rem;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.project-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 0.5rem;
  transition: opacity 0.15s;
}

.project-card:hover .project-link { opacity: 0.5; }

/* ── Contact ────────────────────────────────────── */
.contact {
  border-top: 1px solid var(--border);
}

.contact p {
  font-size: 1.05rem;
  color: var(--muted);
}

.contact a {
  color: var(--text);
  border-bottom: 1.5px solid var(--text);
  transition: opacity 0.15s;
}

.contact a:hover { opacity: 0.5; }

.contact-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

.contact-links a {
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1.5px solid var(--text);
  padding-bottom: 1px;
}

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

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 600px) {
  nav { padding: 0 1.25rem; }
  nav ul { gap: 1.25rem; }
  section { padding: 4rem 1.25rem; }
  .hero { padding-top: 4rem; padding-bottom: 4rem; }
  .projects-grid { grid-template-columns: 1fr; }
}
