@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/montserrat-light.ttf") format("truetype");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/montserrat-regular.ttf") format("truetype");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../assets/fonts/montserrat-semibold.ttf") format("truetype");
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/roboto-regular.ttf") format("truetype");
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../assets/fonts/roboto-bold.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --white: #ffffff;
  --paper: #f7f7f7;
  --paper-deep: #eeeeee;
  --ink: #313131;
  --muted: #666666;
  --link: #2962a8;
  --link-hover: #174a89;
  --line: #e2e4e7;
  --line-strong: #bdc2c8;
  --sage: #a8b2a0;
  --clay: #c6a293;
  --blue: #9cafb8;
  --mauve: #b8a2aa;
  --ochre: #a58a51;
  --max-width: 1200px;
  --aside-width: 320px;
  --column-gap: 64px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--ink);
  font-family: Roboto, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--link-hover); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
img { display: block; max-width: 100%; }
p, figure { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1, h2 { font-family: Montserrat, Arial, sans-serif; font-weight: 400; }
h1 { font-size: 44px; }
h2 { font-size: 34px; }
h3 { font-size: 21px; font-weight: 700; }
p + p { margin-top: 16px; }
main, section, article, aside, .stack, .section-heading { min-width: 0; }
h1, h2, h3, p, li, a { overflow-wrap: break-word; }

.site-shell {
  width: min(calc(100% - 64px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--link);
  color: var(--white);
}

.skip-link:focus { top: 12px; color: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  box-shadow: 0 2px 5px rgb(0 0 0 / 10%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 70px;
}

.brand { flex-shrink: 0; color: var(--ink); line-height: 1.2; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-name { font-size: 24px; font-weight: 700; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #3c4650;
  font-size: 16px;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--link); }
.site-nav a[aria-current="page"] { font-weight: 700; }

.about-grid, .section-grid {
  display: grid;
  grid-template-columns: var(--aside-width) minmax(0, 1fr);
  gap: var(--column-gap);
  align-items: start;
}

.about-grid { padding-block: 72px 84px; }
.profile-card { text-align: center; padding-top: 4px; }

.profile-photo {
  width: 240px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
}

.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h1 { font-size: 36px; font-weight: 300; }
.profile-role { margin-top: 12px; font-family: Montserrat, Arial, sans-serif; font-size: 19px; color: var(--muted); }
.profile-affiliation { margin-top: 5px; font-family: Montserrat, Arial, sans-serif; font-size: 21px; color: var(--link); }

.social-links, .profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.social-links { justify-content: center; margin: 26px 0 0; }
.social-links a { position: relative; display: grid; place-items: center; width: 44px; height: 44px; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.social-links .icon { width: 34px; height: 34px; }

.link-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.social-links a:hover .link-tooltip, .social-links a:focus-visible .link-tooltip { opacity: 1; visibility: visible; }
.biography > h2 { font-size: 44px; margin-bottom: 20px; }
.biography > p { font-size: 20px; line-height: 1.7; }

.bio-details {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  margin-top: 32px;
}

.bio-details h3 { font-family: Montserrat, Arial, sans-serif; font-size: 23px; font-weight: 600; margin-bottom: 16px; }
.interest-list { margin: 0; padding-left: 23px; font-size: 17px; }
.interest-list li + li { margin-top: 5px; }
.education-list { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.education-list li { display: flex; align-items: start; gap: 10px; font-size: 16px; line-height: 1.5; }
.education-list .icon { margin-top: 1px; width: 23px; height: 23px; }
.education-list div > span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

.home-section { padding-block: 80px; }
.home-section:nth-of-type(even) { background: var(--paper); }
.section-heading h2 { max-width: 320px; font-size: 40px; }
.section-heading > p { font-size: 16px; margin-top: 16px; color: var(--muted); }

.news-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.news-list li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
.list-date { padding-top: 2px; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }

.academic-awards { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.academic-awards li { display: flex; align-items: start; gap: 16px; }
.academic-awards .icon { color: var(--ochre); width: 27px; height: 27px; margin-top: 3px; }
.academic-awards strong { font-size: 20px; }
.academic-awards p { margin-top: 3px; color: var(--muted); font-size: 16px; }

.experience-list { display: grid; gap: 36px; }
.experience-row { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 22px; }
.experience-row:not(:last-child)::after { content: ""; position: absolute; top: 64px; left: 26px; bottom: -24px; width: 1px; background: #d6dadd; }
.org-mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid #ccd5e0; background: #edf1f6; color: var(--link); font-size: 22px; font-weight: 700; }
.experience-row:nth-child(2) .org-mark { color: #557c77; border-color: #c7d8d4; background: #edf3f1; }
.experience-row:nth-child(3) .org-mark { color: #98784c; border-color: #ded4c5; background: #f4f1ec; }
.experience-row:nth-child(4) .org-mark { color: #80667e; border-color: #d9cfd9; background: #f2edf2; }
.experience-row h3 { font-size: 21px; line-height: 1.4; }
.experience-meta { margin-top: 4px; margin-bottom: 12px; color: var(--muted); font-size: 15px; }
.experience-meta + p { margin-top: 0; font-size: 17px; }

.project-grid { display: grid; gap: 30px; }
.project-row h3 { font-size: 24px; margin-bottom: 8px; }
.project-row p { font-size: 17px; }
.publication-list { display: grid; gap: 28px; }
.academic-publication h3, .publication h3 { font-size: 20px; line-height: 1.45; margin-bottom: 8px; }
.academic-publication > p:not(.publication-links) { color: var(--muted); font-size: 16px; }
.academic-publication > p strong { color: var(--ink); }
.publication-venue { display: inline-block; margin-top: 7px; font-size: 16px; font-style: italic; }
.venue-highlight { color: #925b50; font-weight: 700; }
.publication-links { margin-top: 7px; font-size: 15px; }
.scholar-summary { margin-top: 32px; color: var(--muted); font-size: 15px; }
.scholar-summary dl { display: flex; gap: 24px; margin: 14px 0 6px; }
.scholar-summary dl > div { display: flex; flex-direction: column-reverse; }
.scholar-summary dd { margin: 0; color: var(--ink); font-size: 25px; line-height: 1.4; }
.scholar-summary dt, .scholar-summary small { font-size: 13px; }
.blog-preview time { color: var(--muted); font-size: 14px; }
.blog-preview h3 { margin-top: 10px; font-size: 23px; line-height: 1.5; }

.profile-links { margin: 22px 0 0; gap: 8px 22px; font-size: 16px; }
.profile-links a { display: inline-flex; align-items: center; min-height: 36px; }
.page-head { padding: 64px 0 48px; }
.page-head h1 { max-width: 850px; }
.eyebrow { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.lead { max-width: 820px; margin-top: 22px; color: var(--muted); font-size: 19px; }
.band { padding: 48px 0 72px; border-top: 1px solid var(--line); }
.two-column { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 64px; }
.toc { position: sticky; top: 102px; padding-left: 18px; border-left: 2px solid var(--line); font-size: 16px; }
.toc strong { display: block; margin-bottom: 12px; }
.toc a { display: block; padding: 6px 0; }
.stack { display: grid; gap: 48px; }
.cv-block > h2 { margin-bottom: 20px; }
.cv-block > p { margin-top: 14px; }
.cv-row { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.cv-row:first-of-type { border-top: 0; padding-top: 0; }
.cv-row .date { color: var(--muted); font-size: 15px; }
.cv-row h3 { margin-bottom: 7px; line-height: 1.4; }
.cv-row p { font-size: 17px; }
.role-note { color: var(--muted); font-size: 15px; }
.cv-row .role-note { font-size: 15px; margin-top: 9px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.pill-list li { padding-left: 12px; border-left: 3px solid var(--sage); }
.pill-list li:nth-child(3n + 2) { border-color: var(--blue); }
.pill-list li:nth-child(3n) { border-color: var(--mauve); }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.metric strong { display: block; font-size: 30px; font-weight: 400; }
.metric span { color: var(--muted); font-size: 14px; }
.publication-meta { margin-top: 6px; color: var(--muted); font-size: 16px; }
.publication-note { margin-top: 8px; font-size: 15px; }

.section-head { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; margin-bottom: 28px; }
.section-label { color: var(--muted); font-size: 16px; }
.section-head p { margin-top: 12px; color: var(--muted); }
.note-grid { display: grid; gap: 26px; }
.note-link { display: grid; gap: 8px; padding-block: 0 26px; border-bottom: 1px solid var(--line); }
.note-link:last-child { border-bottom: 0; }
.note-link:hover { text-decoration: none; }
.note-link:hover h3 { text-decoration: underline; }
.note-link h3 { line-height: 1.5; }
.note-link p { color: var(--muted); font-size: 16px; }
.note-topline { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; }
.swatch-row { display: flex; gap: 4px; }
.swatch-row span { width: 12px; height: 12px; background: var(--sage); }
.swatch-row span:nth-child(2) { background: var(--clay); }
.swatch-row span:nth-child(3) { background: var(--blue); }

.post-shell { max-width: 800px; }
.post { padding-block: 62px 80px; }
.post h1 { font-size: 40px; line-height: 1.35; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 30px; color: var(--muted); font-size: 14px; }
.post-body { border-top: 1px solid var(--line); line-height: 1.85; }
.post-body h2 { margin-top: 42px; padding: 12px 0 0; border-top: 5px solid var(--sage); font-size: 28px; }
.post-body h3 { margin-top: 30px; padding-left: 12px; border-left: 4px solid var(--clay); }
.post-body p, .post-body ul, .post-body ol, .post-body blockquote, .post-body figure, .post-body pre { margin-top: 20px; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li + li { margin-top: 6px; }
.post-body blockquote { margin-inline: 0; padding: 16px 22px; border-left: 4px solid var(--blue); background: #f2f5f6; }
.post-body blockquote p:first-child, .callout p:first-child { margin-top: 0; }
.post-body code { padding: 2px 5px; background: var(--paper); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
.post-body pre { max-width: 100%; overflow-x: auto; padding: 20px; border-radius: var(--radius); background: #292c30; color: #f3f4f5; }
.post-body pre code { padding: 0; background: transparent; color: inherit; }
.callout { margin-top: 24px; padding: 18px 22px; border-left: 4px solid var(--mauve); background: #f5f1f3; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 0.65fr); gap: 64px; align-items: center; padding: 80px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; }
.hero-visual img { width: 100%; }
.site-footer { padding: 40px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 1100px) {
  :root { --aside-width: 250px; --column-gap: 40px; }
  .profile-photo { width: 210px; }
  .profile-card h1 { font-size: 32px; }
  .profile-role { font-size: 17px; }
  .section-heading h2 { font-size: 34px; }
  .bio-details { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; }
  .biography > p { font-size: 18px; }
  .two-column, .section-head { grid-template-columns: 190px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 820px) {
  .site-shell { width: calc(100% - 40px); }
  .header-inner { gap: 22px; }
  .brand-name { font-size: 21px; }
  .site-nav { gap: 4px 16px; }
  .site-nav a { font-size: 14px; }
  .about-grid, .section-grid, .two-column, .section-head { grid-template-columns: 1fr; gap: 32px; }
  .about-grid { padding-block: 46px 54px; }
  .profile-photo { width: 190px; margin-bottom: 20px; }
  .profile-card h1 { font-size: 34px; }
  .social-links { margin-top: 16px; }
  .biography > h2 { font-size: 36px; }
  .home-section { padding-block: 54px; }
  .section-heading h2 { max-width: none; font-size: 34px; }
  .section-heading > p { margin-top: 10px; }
  .scholar-summary { margin-top: 20px; }
  .scholar-summary dl { gap: 30px; }
  .page-head { padding-block: 46px 36px; }
  .page-head h1 { font-size: 36px; }
  .toc { position: static; }
  .cv-row { grid-template-columns: 120px minmax(0, 1fr); }
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { max-width: 420px; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  html { scroll-padding-top: 125px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 3px; padding-block: 12px 6px; }
  .site-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 0 12px; }
  .site-nav a { min-height: 36px; }
  .bio-details { grid-template-columns: 1fr; gap: 28px; }
  .biography > h2 { font-size: 32px; }
  .biography > p { font-size: 17px; }
  .section-heading h2 { font-size: 32px; }
  .news-list { gap: 22px; }
  .news-list li { grid-template-columns: 1fr; gap: 3px; }
  .academic-awards strong { font-size: 18px; }
  .academic-awards p { font-size: 15px; }
  .experience-row { grid-template-columns: 42px minmax(0, 1fr); gap: 16px; }
  .org-mark { width: 42px; height: 42px; font-size: 18px; }
  .experience-row:not(:last-child)::after { left: 20px; top: 52px; }
  .experience-row h3 { font-size: 19px; }
  .experience-meta { font-size: 14px; }
  .experience-meta + p { font-size: 16px; }
  .academic-publication h3, .publication h3 { font-size: 19px; }
  .academic-publication > p:not(.publication-links) { font-size: 15px; }
  .page-head h1, .post h1 { font-size: 30px; }
  .cv-block > h2 { font-size: 28px; }
  .cv-row { grid-template-columns: 1fr; gap: 8px; }
  .metric-grid { gap: 16px; }
  .metric strong { font-size: 26px; }
  .metric span { font-size: 13px; }
  .post { padding-block: 40px 56px; }
  .post-body h2 { font-size: 25px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .skip-link, .toc { display: none; }
  .site-shell { width: 100%; }
  .two-column { display: block; }
  .page-head, .band, .home-section, .about-grid { padding-block: 20px; }
  .home-section:nth-of-type(even) { background: white; }
  .experience-row, .academic-publication, .cv-row { break-inside: avoid; }
  a { color: inherit; }
}
