:root {
  --text: #4a4a4a;
  --heading: #33383d;
  --muted: #777d82;
  --link: #4f8f9d;
  --border: #eeeeee;
  --white: #ffffff;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: var(--white);
  font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p, h1, h2, h3 { margin-top: 0; }
img { display: block; max-width: 100%; }
::selection { color: #fff; background: var(--link); }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 100;
  padding: 8px 14px; color: #fff; background: var(--heading);
}
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 1px solid var(--border); }
.header-inner {
  width: min(calc(100% - 40px), var(--width)); height: 62px; margin: 0 auto;
  display: flex; align-items: center;
}
.site-name { color: var(--heading); font-size: 15px; font-weight: 600; }
.site-name:hover { text-decoration: none; }

.page-layout {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 64px;
  width: min(calc(100% - 40px), var(--width)); margin: 0 auto; padding: 48px 0 80px;
}
.profile-sidebar { align-self: start; position: sticky; top: 32px; }
.profile-photo {
  width: 142px; height: 142px; object-fit: cover; object-position: center 22%;
  border-radius: 50%; border: 1px solid var(--border); background: #f7f7f7;
}
.profile-sidebar h1 { margin: 15px 0 10px; color: var(--heading); font-size: 16px; font-weight: 600; }
.profile-sidebar h1 span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.sidebar-education { margin-bottom: 14px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.sidebar-education p { margin-bottom: 8px; }
.sidebar-education strong { color: #5d6267; font-weight: 600; }
.profile-contact { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.profile-contact a, .profile-contact > span { display: grid; grid-template-columns: 17px 1fr; align-items: baseline; width: fit-content; }
.profile-contact a { max-width: 100%; overflow-wrap: anywhere; }
.profile-contact i { color: #9ca1a5; font-size: 11px; font-style: normal; text-align: center; }

.page-content { min-width: 0; max-width: 820px; }
.about-section { padding: 6px 0 28px; }
.about-section h2, .content-section > h2 {
  margin-bottom: 15px; color: var(--heading); font-size: 25px; font-weight: 600;
}
.about-section p { max-width: 760px; margin-bottom: 0; font-size: 15px; }

.content-section { padding: 26px 0; scroll-margin-top: 20px; }
.publication { display: grid; grid-template-columns: 50px 1fr; gap: 14px; }
.pub-year { padding-top: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.pub-body { position: relative; padding-left: 18px; }
.pub-body::before { content: ""; position: absolute; top: 9px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #aeb3b6; }
.pub-body h3 { margin-bottom: 3px; color: var(--heading); font-size: 15px; line-height: 1.45; font-weight: 600; }
.authors, .venue { margin-bottom: 2px; }
.venue { color: var(--muted); font-style: italic; }
.pub-summary { max-width: 760px; margin: 10px 0 4px; }
.paper-links { margin: 0; }
.paper-links a { margin-right: 9px; font-size: 12px; }

.item-list { margin-top: 2px; }
.list-item {
  position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 16px;
  padding: 13px 0 13px 18px;
}
.list-item::before { content: ""; position: absolute; top: 22px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #aeb3b6; }
.item-date { padding-top: 3px; color: var(--muted); font-size: 11px; }
.list-item h3 { margin-bottom: 2px; color: var(--heading); font-size: 15px; line-height: 1.4; font-weight: 600; }
.list-item p { max-width: 680px; margin-bottom: 4px; }
.item-role { color: var(--muted); font-size: 12px; font-style: italic; }
.project-link { font-size: 12px; }

.experience-card { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 13px 0 13px 18px; }
.experience-card::before { content: ""; position: absolute; top: 22px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #aeb3b6; }
.experience-meta p { margin-bottom: 2px; color: var(--muted); font-size: 11px; }
.experience-meta .experience-date { margin-bottom: 6px; font-style: italic; }
.experience-meta .experience-company { color: var(--heading); font-size: 13px; font-weight: 600; }
.experience-body > h3 { margin: 1px 0 5px; color: var(--heading); font-size: 15px; line-height: 1.4; font-weight: 600; }
.experience-body > p:last-child { max-width: 680px; margin-bottom: 0; }

footer {
  width: min(calc(100% - 40px), var(--width)); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 20px;
  padding: 22px 0 35px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px;
}
footer p { margin: 0; }

@media (max-width: 760px) {
  .page-layout { grid-template-columns: 155px minmax(0, 1fr); gap: 35px; }
  .profile-photo { width: 125px; height: 125px; }
  .publication, .list-item, .experience-card { grid-template-columns: 1fr; gap: 3px; }
  .pub-body { padding-left: 15px; }
}

@media (max-width: 560px) {
  .header-inner, .page-layout, footer { width: min(calc(100% - 30px), var(--width)); }
  .page-layout { display: block; padding-top: 30px; }
  .profile-sidebar { position: static; display: grid; grid-template-columns: 105px 1fr; column-gap: 20px; margin-bottom: 38px; }
  .profile-photo { grid-row: 1 / span 3; width: 105px; height: 105px; }
  .profile-sidebar h1 { margin: 4px 0 7px; }
  .sidebar-education { margin-bottom: 8px; }
  .sidebar-education p { margin-bottom: 5px; }
  .profile-contact { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; margin-top: 16px; }
  .profile-contact a[href^="mailto:"] { grid-column: 1 / -1; }
  .about-section h2, .content-section > h2 { font-size: 23px; }
  .about-section p { font-size: 14px; }
  .content-section { padding: 22px 0; }
  .list-item, .experience-card { padding-left: 15px; }
}

@media print {
  .site-header { display: none; }
  .page-layout { display: block; padding: 0; }
  .profile-sidebar { position: static; float: left; width: 170px; margin: 0 35px 25px 0; }
  .content-section, .publication, .list-item { break-inside: avoid; }
}
