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

:root {
  --text: #0f0f0f;
  --text-muted: #6b7280;
  --accent: #4f46e5;
  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --border: #e5e7eb;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.nav-name {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ── Layout ── */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 112px 2rem 6rem;
}

section {
  margin-bottom: 5rem;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 5rem;
}

/* ── Typography ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1.75rem;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  line-height: 1.15;
}

h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.75rem;
}

/* ── Hero ── */
.hero-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.hero-role {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.hero-bio {
  font-size: 1.0125rem;
  color: #374151;
  line-height: 1.8;
  margin: 0 0 0.75rem;
}

.hero-bio:last-of-type {
  margin-bottom: 2rem;
}

/* ── Social links ── */
.social-links {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.social-link:hover {
  color: var(--text);
  border-color: #9ca3af;
  background: var(--bg-subtle);
}

/* ── Experience ── */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.exp-company {
  font-weight: 600;
  font-size: 1rem;
}

.exp-dates {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.exp-role {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.exp-desc {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

.exp-sub-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  margin-top: 0.5rem;
}

.exp-sub-item .exp-role {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

/* ── Investments ── */
.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.875rem;
}

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

.inv-card:hover {
  border-color: #9ca3af;
  background: var(--bg-subtle);
}

.inv-name {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.2rem;
}

.inv-name a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.inv-name a:hover {
  color: var(--accent);
}

.inv-stage {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
}

.inv-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ── Writing ── */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.post-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.post-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.post-title:hover {
  color: var(--accent);
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.post-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s;
}

.view-all:hover {
  opacity: 0.75;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  main { padding: 88px 1.25rem 4rem; }
  h1 { font-size: 1.75rem; }
  .inv-grid { grid-template-columns: 1fr; }
  .hero-avatar { width: 60px; height: 60px; }
}
