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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #222;
  background: #fff;
}

a { color: #2a5db0; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ──────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2.5rem;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.site-name {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #111;
  text-decoration: none;
}

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  font-size: 0.88rem;
  color: #444;
  text-decoration: none;
}
.nav-links a:hover { color: #111; }

/* ── Page layout ─────────────────────────────────── */
.page-wrap {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  gap: 4rem;
}

/* ── Sidebar ─────────────────────────────────────── */
.sidebar {
  flex: 0 0 210px;
  position: sticky;
  top: 70px;
  align-self: flex-start;
  text-align: center;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem;
  background: #ddd;
}

.sidebar-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.sidebar-title {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 0.15rem;
}

.sidebar-inst {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.1rem;
}

.sidebar-links {
  margin-top: 0.8rem;
  font-size: 0.85rem;
}

.sidebar-conferences {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: #777;
  width: 100%;
}

.sidebar-conferences h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.5rem;
  text-align: center;
}

.conf-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
}

.conf-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
}

.conf-date {
  font-size: 0.83rem;
  color: #777;
}

.sidebar-links a { color: #2a5db0; }

/* ── Main content ────────────────────────────────── */
.content { flex: 1; min-width: 0; }

section {
  margin-bottom: 3.5rem;
  padding-top: 0.5rem;
}

section h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 0.4rem;
  margin-bottom: 1.4rem;
  color: #111;
}

section h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 1.4rem 0 0.6rem;
  color: #333;
}

section p { margin-bottom: 0.9rem; color: #333; }

section ul {
  list-style: disc;
  padding-left: 1.4rem;
  color: #444;
  margin-bottom: 1rem;
}

section ul li { margin-bottom: 0.25rem; }

/* ── Education ───────────────────────────────────── */
.edu-block { display: flex; flex-direction: column; gap: 0.9rem; }

.edu-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.92rem;
}

.edu-year {
  white-space: nowrap;
  color: #888;
  font-size: 0.85rem;
  padding-top: 2px;
}

/* ── Papers ──────────────────────────────────────── */
.paper {
  padding: 0.9rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.paper:last-child { border-bottom: none; }

.paper-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #111;
  margin-bottom: 0.2rem;
}

.paper-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.15rem;
}

.paper-authors {
  font-size: 0.85rem;
  color: #888;
}

.paper-links { margin-top: 0.35rem; }
.paper-links a {
  display: inline-block;
  margin-right: 0.7rem;
  font-size: 0.82rem;
  color: #2a5db0;
  border: 1px solid #c5d8f5;
  border-radius: 3px;
  padding: 0.1rem 0.45rem;
}
.paper-links a:hover { background: #f0f6ff; text-decoration: none; }

/* ── Courses ─────────────────────────────────────── */
.course {
  padding: 0.85rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.course:last-child { border-bottom: none; }

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.95rem;
}

.course-year {
  white-space: nowrap;
  font-size: 0.85rem;
  color: #888;
  font-weight: 400;
}

.course-meta {
  font-size: 0.83rem;
  color: #888;
  margin-top: 0.15rem;
}

/* ── Footer ──────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.82rem;
  color: #aaa;
  border-top: 1px solid #eee;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 720px) {
  .page-wrap { flex-direction: column; gap: 2rem; }
  .sidebar { position: static; flex: none; }
  nav { padding: 0.75rem 1.25rem; }
  .nav-links { gap: 1rem; }
}
