:root {
  --text:    #111111;
  --muted:   #555555;
  --link:    #1a6db5;
  --border:  #e5e5e5;
  --bg:      #ffffff;
  --max-w:   860px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Calibri", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.profile {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
}

.profile-photo {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #888;
  overflow: hidden;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.profile-info .position {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 2px;
}

.profile-info .affil {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 15px;
  margin-top: 14px;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  transition: color 0.15s;
}
.links a:hover { color: var(--link); text-decoration: none; }

.links svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Section ─────────────────────────────────────────────────────────── */
section { margin-bottom: 44px; }

section h2 {
  font-size: 19px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 20px;
  letter-spacing: -0.1px;
}

section p {
  color: var(--muted);
}

/* ── Publications ────────────────────────────────────────────────────── */
.pub-list { list-style: none; display: flex; flex-direction: column; gap: 28px; }

.pub {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.pub-thumb {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: #eee;
  object-fit: contain;
  border: 1px solid var(--border);
}

.pub-body { flex: 1; }

.pub-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  color: var(--text);
}

.pub-title a {
  color: inherit;
  text-decoration: none;
}

.pub-title a:hover {
  text-decoration: underline;
}

.pub-authors {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 3px;
}

.pub-authors .me { font-weight: 600; color: var(--text); text-decoration: none; }
.pub-authors .me:hover { text-decoration: underline; }

.pub-venue {
  font-size: 13.5px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 6px;
}

.pub-venue .status {
  font-style: normal;
  font-weight: 600;
  color: #b05a00;
  margin-left: 4px;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
}

.pub-links a {
  color: var(--link);
}

/* ── Footer ─────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 13px;
  color: #aaa;
  text-align: center;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 580px) {
  .profile { flex-direction: column; align-items: center; text-align: center; }
  .links   { justify-content: center; }
  .pub     { flex-direction: column; }
  .pub-thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}
