:root {
  --accent: #1a5276;
  --accent-light: #2e86c1;
  --text: #1c1c1c;
  --muted: #555;
  --border: #d5d8dc;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --tag-bg: #eaf2fb;
  --sidebar-width: 220px;
}

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent); }

/* ---- Two-column layout ---- */
.page-layout {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-inner {
  padding: 36px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 16px;
}

.sidebar-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.sidebar-title {
  font-size: 0.83rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 14px;
}

.sidebar-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.sidebar-meta a { color: var(--accent-light); }

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

.sidebar-links a {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  transition: background 0.15s, border-color 0.15s;
  text-align: center;
}

.sidebar-links a:hover {
  background: var(--tag-bg);
  border-color: var(--accent-light);
  text-decoration: none;
}

/* ---- Main content ---- */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 0 40px 60px;
}

/* ---- Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  margin: 0 -40px 36px;
  padding: 0 40px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.site-nav ul li a {
  display: block;
  padding: 11px 18px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav ul li a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* ---- Sections ---- */
.cv-section {
  margin-bottom: 40px;
  scroll-margin-top: 52px;
}

.cv-section h2 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 18px;
}

/* ---- About ---- */
.summary-text { font-size: 0.95rem; }

/* ---- Education ---- */
.edu-entry {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.edu-left .inst {
  font-weight: 700;
  font-size: 0.95rem;
}

.edu-left .degree {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.edu-right {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ---- Publications ---- */
.pub-list { list-style: none; }

.pub-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bg-alt);
}

.pub-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.pub-num {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  color: var(--accent-light);
  font-weight: 700;
  min-width: 22px;
  padding-top: 2px;
}

.pub-body .pub-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.pub-body .pub-authors {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.pub-body .pub-venue {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
}

.venue-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 3px;
  margin-right: 5px;
  letter-spacing: 0.03em;
}

.pub-pdf {
  display: inline-block;
  font-size: 0.76rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 1px 9px;
  border-radius: 3px;
  margin-top: 6px;
  transition: background 0.15s;
}

.pub-pdf:hover { background: var(--tag-bg); text-decoration: none; }

/* ---- Projects ---- */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.project-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 15px;
}

.project-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

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

/* ---- Footer ---- */
.site-footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  color: #aaa;
}

/* ---- Responsive ---- */
@media (max-width: 680px) {
  .page-layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-inner { align-items: center; text-align: center; }
  .sidebar-links { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .main-content { padding: 0 20px 40px; }
  .site-nav { margin: 0 -20px 28px; padding: 0 20px; }
  .edu-entry { flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; }
  .pub-num { display: none; }
}
