/* ---------- Base ---------- */
:root {
  --accent: #05445E;
  --accent-hover: #0a6b94;
  --text: #1f2937;
  --muted: #5a5a5a;
  --soft: #f5f7fa;
  --border: #e5e7eb;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 28px 80px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-hover); text-decoration: underline; }

strong { color: #111827; font-weight: 600; }

h1, h2, h3 { color: #111827; line-height: 1.2; margin: 0 0 14px; }
h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 42px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
}
h3 { font-size: 16px; font-weight: 600; }

p { margin: 0 0 14px; }

/* ---------- Profile header ---------- */
.profile-header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 8px;
}

.profile-photo {
  flex-shrink: 0;
  width: 190px;
}
.profile-photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.profile-text { flex: 1; min-width: 0; }
.profile-text h1 {
  margin-bottom: 4px;
  color: var(--accent);
  font-weight: 700;
}
.firstname { font-weight: inherit; }

.subtitle {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 14px;
}

.bio {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 12px;
}

.profile-links {
  font-size: 14.5px;
  margin-top: 16px;
  color: var(--muted);
}
.profile-links a {
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Announcement banner ---------- */
.announcement {
  margin: 28px 0 8px;
  padding: 12px 16px;
  background: var(--soft);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 14.5px;
  color: #374151;
}

/* ---------- News ---------- */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-list li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14.5px;
}
.news-list li:last-child { border-bottom: none; }
.news-date {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent);
  font-size: 13.5px;
  padding-top: 1px;
}
.news-body { color: #374151; }

/* ---------- Publications ---------- */
.section-note {
  font-size: 13px;
  color: #888;
  margin-top: -6px;
  margin-bottom: 18px;
}

.publication-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.publication-item:last-of-type { border-bottom: none; }

.publication-thumb {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  background: var(--soft);
}
.publication-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}
.publication-thumb a { display: block; }
.publication-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.publication-content { display: flex; flex-direction: column; gap: 6px; }
.publication-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
}
.publication-title a { color: inherit; }
.publication-title a:hover { color: var(--accent); }

.publication-authors {
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.5;
}
.publication-authors strong { color: #111827; }

.publication-venue {
  font-size: 14px;
  color: #4b5563;
}
.publication-venue strong { color: #111827; }

.publication-tldr {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.55;
  padding: 10px 14px;
  background: var(--soft);
  border-radius: 6px;
  margin-top: 4px;
}
.publication-tldr strong { color: #111827; }

.publication-links {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}
.publication-links a {
  color: var(--accent);
  font-weight: 500;
}
.publication-links a + a::before {
  content: " · ";
  color: var(--muted);
  margin: 0 4px;
  font-weight: 400;
}

/* ---------- Research interests ---------- */
.interest-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 8px;
}
.interest-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: baseline;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.interest-list li:last-child { border-bottom: none; }
.interest-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--accent);
  white-space: nowrap;
  width: fit-content;
  justify-self: start;
  line-height: 1.35;
}
.interest-desc {
  font-size: 14.5px;
  color: #374151;
  line-height: 1.6;
}

/* ---------- Research prose (legacy, kept for safety) ---------- */
.research-prose {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 14px;
}

/* ---------- Work / projects / education lists ---------- */
.work-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.work-list > li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.work-list > li:last-child { border-bottom: none; }

.work-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 2px;
}
.work-org {
  font-weight: 600;
  color: #111827;
  font-size: 15px;
}
.work-when {
  color: var(--muted);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.work-role {
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.55;
}
.work-role a { color: var(--accent); }

/* ---------- Plain lists ---------- */
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plain-list li {
  font-size: 14.5px;
  color: #374151;
  padding: 5px 0;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.page-footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
}
.page-footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .container { padding: 28px 18px 60px; }

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .profile-photo { width: 160px; }
  .profile-text h1 { font-size: 26px; }

  .publication-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .publication-thumb { max-width: 100%; }

  .news-list li {
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }

  .work-row { flex-direction: column; gap: 2px; }
  .work-when { font-size: 13px; }

  .interest-list li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
  }

  h1 { font-size: 26px; }
  h2 { font-size: 18px; margin-top: 32px; }
}
