:root {
  --bg: #ffffff;
  --text: #1d2430;
  --muted: #697386;
  --line: #e9edf2;
  --soft: #f7f9fb;
  --accent: #245c8f;
  --accent-soft: #eaf2f8;
  --sidebar-width: 245px;
  --content-width: 810px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.64;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.page-shell {
  width: min(calc(var(--sidebar-width) + var(--content-width) + 96px), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, var(--content-width));
  gap: 72px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 46px;
  min-height: calc(100vh - 92px);
  padding: 44px 0 28px;
}

.portrait-wrap {
  width: 252px;
  height: 302.4px;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(145deg, #eaf0f5, #f6f8fa);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #6c7b8a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  letter-spacing: -1px;
}

.photo-fallback.visible {
  display: flex;
}

.identity h1 {
  margin: 0 0 5px;
  color: #3c4652;
  font-family: inherit;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.15px;
  line-height: 1.25;
}

.role {
  margin: 0;
  color: #3e4855;
  font-size: 18px;
  font-weight: 600;
}

.affiliation {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.5;
}

.sidebar-contact {
  width: 220px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  color: #566372;
  font-size: 14.5px;
  line-height: 1.35;
}

.contact-email svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: #7b8897;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-email:hover {
  color: var(--accent);
}

.contact-email:hover svg {
  stroke: var(--accent);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.social-link {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e7ec;
  border-radius: 50%;
  background: #fafbfd;
  color: #778493;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.social-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link:hover {
  color: var(--accent);
  border-color: #c6d5e1;
  background: #f5f8fb;
}

.linkedin-mark {
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.sidebar-note {
  margin-top: 14px;
  color: #9aa3ad;
  font-size: 14.5px;
}

main {
  min-width: 0;
  padding-bottom: 28px;
}

.top-nav {
  display: flex;
  justify-content: flex-end;
  gap: 25px;
  min-height: 68px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #66717e;
  font-size: 16px;
  font-weight: 600;
}

.top-nav a:hover {
  color: var(--text);
}

.section {
  padding: 46px 0 42px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.intro-section {
  padding-top: 58px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
}

.section h2 {
  margin: 0;
  color: #56616e;
  font-family: inherit;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.1px;
  font-weight: 500;
}

.intro-section h2 {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 39px;
  line-height: 1.22;
  letter-spacing: -0.45px;
  font-weight: 600;
  margin-bottom: 20px;
}

.intro {
  max-width: 745px;
  margin: 0 0 14px;
  color: #46515e;
  font-size: 20.5px;
  line-height: 1.66;
}

.section-heading {
  margin-bottom: 18px;
}

.interest-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.interest-list article {
  padding: 18px 0 17px;
  display: grid;
  grid-template-columns: 225px 1fr;
  gap: 26px;
  border-bottom: 1px solid var(--line);
}

.interest-list article:last-child {
  border-bottom: 0;
}

.interest-list h3 {
  margin: 0;
  color: #405c72;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 550;
  letter-spacing: 0.01em;
}

.timeline h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}

.interest-list p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.timeline {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 17px;
}

.timeline-marker {
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.timeline-title {
  margin: 3px 0 2px;
  color: #3e4855;
  font-size: 18px;
}

.muted {
  color: var(--muted);
  font-size: 16.5px;
  margin: 0;
}

.education-list {
  border-top: 1px solid var(--line);
}

.education-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.education-item:last-child {
  border-bottom: 0;
}

.education-date {
  color: #8b95a1;
  font-size: 16.5px;
  padding-top: 3px;
}

.education-item h3 {
  margin: 0 0 2px;
  color: #48657a;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.045em;
}

.education-degree {
  margin: 0;
  color: #4f5a67;
  font-size: 18px;
}

.publication-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.scholar-link {
  color: var(--muted);
  font-size: 16.5px;
  white-space: nowrap;
  padding-bottom: 1px;
}

.publication-group + .publication-group {
  margin-top: 12px;
}

.publication-group-title {
  margin: 0 0 6px;
  color: #596572;
  font-size: 17.5px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
}

.publication-list {
  border-top: 1px solid var(--line);
}

.publication {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 20px 0 21px;
  border-bottom: 1px solid var(--line);
}

.publication:last-child {
  border-bottom: 0;
}

.publication-label {
  padding-top: 0;
  transform: translateY(-3px);
}

.publication-label span {
  width: 96px;
  min-height: 29px;
  padding: 5px 11px 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #afbdc8;
  border-radius: 4px;
  background: #ffffff;
  color: #314f66;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: 0.035em;
}

.publications-section > .publication-group:not(:last-of-type) .publication-label span {
  font-size: 15px;
}

.publications-section > .publication-group:last-of-type .publication-label span {
  border-color: #cfd4d9;
  color: #6f7780;
}

.publication-content {
  min-width: 0;
}

.publication h3 {
  margin: 0 0 7px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 500;
}

.publication h3 a:hover {
  color: var(--accent);
}

.authors,
.publication-venue {
  margin: 0;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.5;
}

.authors {
  margin-bottom: 4px;
}

.publication-venue {
  color: #65717d;
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
}

.authors strong {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.pub-links {
  display: flex;
  gap: 8px;
  margin: 9px 0 0;
  font-size: 14.5px;
}

.pub-links a {
  padding: 2px 7px;
  border: 1px solid #d8e0e7;
  border-radius: 3px;
  color: #53697b;
  line-height: 1.45;
}

.pub-links a:hover {
  color: var(--accent);
  border-color: #b8cad8;
}

.presentation-group + .presentation-group {
  margin-top: 22px;
}

.presentation-group-title {
  margin: 0 0 7px;
  color: #596572;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

.presentation-list {
  margin: 0;
  padding: 12px 0 0 24px;
  border-top: 1px solid var(--line);
}

.presentation-list li {
  margin: 0 0 12px;
  padding-left: 3px;
  color: #56616e;
  font-size: 17.5px;
  line-height: 1.58;
}

.presentation-list li:last-child {
  margin-bottom: 0;
}

.presentation-list a {
  color: inherit;
  border-bottom: 1px solid #c4d1dc;
}

.presentation-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.presentation-list strong {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #9aa3ad;
  font-size: 14px;
  padding: 22px 0 8px;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(720px, calc(100% - 40px));
    display: block;
  }

  .sidebar {
    position: static;
    min-height: auto;
    padding: 34px 0 18px;
    display: grid;
    grid-template-columns: 120px 1fr;
    column-gap: 25px;
    align-items: start;
  }

  .portrait-wrap {
    width: 120px;
    height: 144px;
    grid-row: 1 / span 4;
    margin: 0;
  }

  .sidebar-contact {
    width: auto;
    margin-top: 12px;
    padding-top: 10px;
  }

  .sidebar-note {
    margin: 8px 0 0;
  }

  .top-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 30px, 560px);
  }

  .sidebar {
    grid-template-columns: 92px 1fr;
    column-gap: 18px;
  }

  .portrait-wrap {
    width: 92px;
    height: 112px;
  }

  .identity h1 {
    font-size: 24px;
  }

  .role {
    font-size: 16.5px;
  }

  .affiliation {
    font-size: 16px;
  }

  .contact-email {
    font-size: 14px;
  }

  .social-links {
    gap: 7px;
    margin-top: 10px;
  }

  .social-link {
    width: 28px;
    height: 28px;
  }

  .top-nav {
    gap: 18px;
    min-height: 58px;
    font-size: 15px;
  }

  .section,
  .intro-section {
    padding: 36px 0 34px;
  }

  .section h2 {
    font-size: 22px;
  }

  .intro-section h2 {
    font-size: 33px;
  }

  .intro {
    font-size: 19px;
    line-height: 1.6;
  }

  .interest-list article {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 16px 0 15px;
  }

  .interest-list h3,
  .interest-list p,
  .education-degree {
    font-size: 17px;
  }

  .education-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }

  .education-date,
  .muted {
    font-size: 15.5px;
  }

  .publication-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .publication-group-title,
  .presentation-group-title {
    font-size: 17px;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 17px 0 18px;
  }

  .publication-label {
    padding-top: 0;
  }

  .publication-label span {
    width: auto;
    min-width: 78px;
    min-height: 25px;
    font-size: 13px;
  }

  .publications-section > .publication-group:not(:last-of-type) .publication-label span {
    font-size: 13px;
  }

  .publication h3 {
    font-size: 19px;
  }

  .authors,
  .presentation-list li {
    font-size: 17px;
  }

  .publication-venue {
    font-size: 16.5px;
  }

  footer {
    flex-direction: column;
    gap: 3px;
  }
}
