:root {
  --bg: #07090e;
  --panel: #0d111a;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.2);
  --text-main: #f0f2f5;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.site-container {
  display: flex;
  width: 100%;
  max-width: 1050px;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 4rem 2rem 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
}

/* Avatar / Headshot */
.avatar {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.avatar:hover {
  border-color: var(--border-focus);
  transform: scale(1.03);
}

.name {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 0.3rem;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2rem 0;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text-main);
}

.external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.external-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-decoration: none;
  transition: color 0.15s ease;
}

.external-links a:hover {
  color: var(--accent);
}

/* Main Content */
.content {
  flex: 1;
  padding: 4rem 3rem;
  max-width: 770px;
}

.section {
  margin-bottom: 5rem;
}

.section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Publication Cards */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pub-card {
  padding: 1.25rem;
  background-color: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pub-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.pub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.pub-venue {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.pub-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.pub-link:hover {
  color: var(--text-main);
}

.pub-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

.pub-authors {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pub-summary {
  font-size: 0.85rem;
  color: #c9d1d9;
  line-height: 1.45;
  margin-bottom: 0 !important;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.4rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.timeline-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.timeline-content .role {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.site-footer {
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 800px) {
  .site-container {
    flex-direction: column;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 1.5rem 0;
  }
  .content {
    padding: 2.5rem 1.5rem;
  }
}