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

:root {
  --accent:   #1a6faf;
  --text:     #1a1a1a;
  --muted:    #555;
  --border:   #e0e0e0;
  --bg:       #ffffff;
  --max-w:    860px;
  --font:     "Source Serif 4", "Georgia", serif;
  --sans:     "Helvetica Neue", Arial, sans-serif;
}

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  padding: 0 1rem;
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

/* ── Header / Profile ── */
.profile {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
}

.profile-photo {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

.profile-info h1 {
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}

.profile-info .affiliation {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.links a:hover { color: orange; }
.links a svg { flex-shrink: 0; }

/* ── Sections ── */
section { margin-bottom: 2.8rem; }

section h2 {
  font-family: "Inter", var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #444;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
}

section h2 i {
  margin-right: 0.4rem;
}

section p { margin-bottom: 0.75rem; }
section p:last-child { margin-bottom: 0; }

/* ── News ── */
.news-list {
  list-style: none;
}

.news-list li {
  display: flex;
  gap: 1.2rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  align-items: baseline;
}
.news-list li:last-child { border-bottom: none; }

.news-date {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
  min-width: 6rem;
  flex-shrink: 0;
}

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

.pub-item {
  display: flex;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.pub-item:first-child { border-top: 1px solid var(--border); }

.pub-thumb {
  flex-shrink: 0;
  width: 240px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
  /* border: 1px solid var(--border); */
}

.pub-thumb-placeholder {
  flex-shrink: 0;
  width: 240px;
  height: 160px;
  border-radius: 4px;
  background: #f0f0f0;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.7rem;
  color: #aaa;
}

.pub-body { flex: 1; }

.pub-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.2rem;
}

.pub-authors {
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.pub-authors strong {
  font-size: 1.01rem;
}

.pub-venue {
  font-size: 1rem;
  font-style: italic;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
}

.pub-links {
  display: flex;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
}

.pub-links a {
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0.05rem 0.45rem;
  transition: background 0.15s, color 0.15s;
}
.pub-links a:hover {
  background: #1a6faf;
  border-color: #1a6faf;
  color: #fff;
}

/* ── Misc ── */
.misc-list {
  list-style: disc;
  padding-left: 1.25rem;
}
.misc-list li {
  padding: 0.25rem 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ── Awards / Service ── */
.award-list, .service-list { list-style: none; }

.award-list li, .service-list li {
  display: flex;
  gap: 1.2rem;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.award-list li:last-child, .service-list li:last-child { border-bottom: none; }

.award-year {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
  min-width: 3.5rem;
  flex-shrink: 0;
}

/* ── Footer ── */
footer {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ── Links global ── */
a { color: var(--accent); text-decoration: none; }
a:hover { color: orange; text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .links { justify-content: center; }
  .pub-item { flex-direction: column; }
  .pub-thumb { width: 100%; height: auto; }
  .pub-thumb-placeholder { width: 100%; height: 140px; }
}
