:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --link: #0b57d0;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container { max-width: 980px; margin: 0 auto; padding: 0 20px; }

.site-header { border-bottom: 1px solid var(--border); background: #fafafa; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.site-title { font-size: 20px; margin: 0; font-weight: 700; }
.site-nav a { margin-left: 16px; text-decoration: none; color: var(--text); font-weight: 600; }
.site-nav a:hover { color: var(--link); }

.intro { padding: 24px 0; }
.intro-grid { display: grid; grid-template-columns: 160px 1fr fit-content(360px); gap: 24px; align-items: center; }
.intro-photo { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; background: #f3f4f6; }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; }
.intro-info p { margin: 4px 0; }
.intro-name { font-size: 34px; line-height: 1.1; margin-bottom: 6px; }
.intro-contact { justify-self: end; text-align: right; }
.intro-contact p { margin: 4px 0; }
.intro-info { min-width: 0; }
.intro-info p { overflow-wrap: anywhere; }
.intro-info a { color: var(--link); text-decoration: none; }
.intro-info a:hover { text-decoration: underline; }

.section-block { padding: 8px 0 16px; border-top: 1px solid var(--border); margin-top: 16px; }
.section-block h2 { margin: 16px 0 8px; font-size: 18px; }
.list { padding-left: 20px; margin: 0; }
.list li { margin: 6px 0; }

.entries { display: grid; row-gap: 12px; margin: 0; }
.entry { padding: 12px 0; border-top: 1px dashed var(--border); }
.entry:first-child { border-top: none; }
.entry-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.entry-institution, .entry-title { font-weight: 600; }
.entry-dates { color: var(--muted); font-size: 14px; white-space: nowrap; }
.entry-role { margin-top: 4px; }
.entry-bullets { margin: 6px 0 0 18px; }
.entry-bullets li { margin: 3px 0; }
.entry-thumb { margin: 8px 0; }
.entry-thumb img { width: 200px; height: 120px; object-fit: cover; border: 1px solid var(--border); border-radius: 4px; }

.pub { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-top: 1px dashed var(--border); }
.pub:first-child { border-top: none; }
.pub-thumb { width: 140px; height: 90px; background: #eee; border: 1px solid var(--border); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pub-info p { margin: 4px 0; }
.coauthor { color: var(--muted); }
.pub-authors { margin-bottom: 2px; }
.pub-venue { color: var(--text); font-weight: 400; }

.site-footer { border-top: 1px solid var(--border); margin-top: 24px; padding: 16px 0; color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  .intro-grid { grid-template-columns: 100px 1fr; gap: 16px; }
  .intro-photo { width: 100px; height: 100px; }
  .intro-info { grid-column: 2; grid-row: 1; }
  .intro-contact { grid-column: 2; grid-row: 2; text-align: left; justify-self: start; }
  .pub { grid-template-columns: 1fr; }
  .site-nav a { margin-left: 10px; }
}


