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

:root {
  --bg: #ffffff;
  --text: #2f2e2e;
  --muted: #5f6360;
  --accent: #18214b;
  --accent-mid: #515870;
  --border: #e8e8e8;
  --max-w: 860px;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* ── Page wrapper ── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Homepage hero ── */
.hero {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.hero-photo {
  flex-shrink: 0;
  width: 192px;
  height: 192px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-text h1 {
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-text p {
  margin-bottom: 12px;
  color: var(--text);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--accent-mid);
  text-decoration: none;
  font-size: 13px;
}

.social-link img,
.social-link svg {
  width: 18px;
  height: 18px;
  opacity: 0.6;
  flex-shrink: 0;
}

.social-link:hover {
  color: var(--accent);
}

/* ── Section headings ── */
h2.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 24px;
}

/* ── Research page ── */
.pub-list {
  list-style: none;
  margin-bottom: 36px;
}

.pub-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.65;
}

.pub-list li:last-child {
  border-bottom: none;
}

/* ── Teaching page ── */
.institution {
  margin-bottom: 28px;
}

.institution h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.institution p {
  color: var(--text);
  margin-bottom: 4px;
}

/* ── CV page ── */
.cv-download {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: background 0.15s;
}

.cv-download:hover {
  background: var(--accent-mid);
}

/* ── Responsive ── */
@media (max-width: 580px) {
  .hero { flex-direction: column; align-items: center; text-align: center; }
  .hero-photo { width: 140px; height: 140px; }
  .nav-brand { font-size: 14px; }
  .nav-links { gap: 20px; }
}
