@font-face {
  font-family: Roboto;
  src: url("fonts/roboto-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: only light;
  --paper: #fff;
  --ink: #202a30;
  --body: #354249;
  --muted: #5e6b72;
  --link: #246277;
  --line: #dce2e4;
  --wash: #f2f6f7;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5rem; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--body); font: 300 1rem/1.65 Roboto, sans-serif; }
a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 43%, transparent); text-underline-offset: .19em; }
a:hover { text-decoration-color: currentColor; }
button, input, summary { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button { background: none; border: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--link); outline-offset: 4px; border-radius: 2px;
}
img, picture { display: block; max-width: 100%; }
figure, ul, p { margin: 0; }
h1, h2, h3 { color: var(--ink); margin: 0; }
h1, h2, .profile-name { font-weight: 300; }
h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 1.5rem; line-height: 1.2; }
h3 { font-size: 1rem; font-weight: 400; line-height: 1.42; }
strong { font-weight: bolder; color: var(--ink); }
sup { font-size: .72em; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; top: .75rem; left: .75rem; padding: .45rem 1rem; background: var(--paper); }
.reading-progress { position: fixed; top: 0; left: 0; z-index: 5; height: 2px; width: 100%; background: var(--link); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.frame {
  max-width: 72rem; min-height: 100svh; margin-inline: auto; padding: 3.35rem 2.25rem 1rem;
  display: grid; grid-template-columns: 14.15rem minmax(0, 1fr); grid-template-rows: auto 1fr auto;
  grid-template-areas: "profile bar" "profile main" "profile footer";
  column-gap: clamp(2.25rem, 4.6vw, 4.4rem); align-items: start;
}
.profile { grid-area: profile; position: sticky; top: 2.5rem; padding-right: 2rem; border-right: 1px solid var(--line); }
.portrait { display: block; width: min(11.5rem, 100%); }
.portrait img { width: 100%; height: auto; border-radius: .32rem; }
.identity { margin-top: 1.15rem; }
.profile-name { display: inline-block; font-size: 2.5rem; line-height: 1.15; color: var(--ink); text-decoration: none; }
.profile-name b, .mobile-name b { font-weight: 700; }
.role { margin-top: .55rem; font-size: .975rem; font-weight: 500; }
.affiliation { margin-top: .13rem; font-size: .925rem; line-height: 1.6; color: var(--muted); }
.contacts { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.contact-links, .resource-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.contact-links { flex-wrap: nowrap; gap: .35rem; margin-bottom: .85rem; }
.contact-links a { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .35rem; color: var(--body); text-decoration: none; }
.contact-links a:hover, .contact-links a:focus-visible { color: var(--link); background: var(--wash); }
.cv-link { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid var(--line); border-radius: .25rem; padding: .35rem .72rem; color: var(--ink); font-size: .875rem; font-weight: 400; text-decoration: none; }
.cv-link:hover { border-color: var(--link); color: var(--link); }
.document-icon { width: .67rem; height: .82rem; border: 1px solid currentColor; border-radius: 1px; position: relative; }
.document-icon::before, .document-icon::after { content: ""; position: absolute; left: 2px; right: 2px; height: 1px; background: currentColor; }
.document-icon::before { top: 3px; } .document-icon::after { top: 6px; }
.topbar { grid-area: bar; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 3; min-height: 2.8rem; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); align-self: stretch; }
.desktop-nav a { display: flex; align-items: center; position: relative; color: var(--muted); text-decoration: none; font-size: 1rem; padding: .2rem 0 .65rem; }
.desktop-nav a[aria-current] { color: var(--ink); font-weight: 400; }
.desktop-nav a[aria-current]::after { content: ""; position: absolute; height: 2px; background: var(--link); bottom: -1px; width: 100%; }
.desktop-nav a:hover { color: var(--link); }
.mobile-name, .mobile-menu { display: none; }
main { grid-area: main; min-width: 0; width: 100%; padding-top: 2.35rem; outline: 0; }
.intro .bio { margin-top: 1.08rem; line-height: 1.65; }
.intro .bio p:first-child { font-size: 1.03rem; }
.prose p + p { margin-top: .65rem; }
.section { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.65rem; }
.home .section h2 { font-weight: 500; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section-link, .parent-link { font-size: .9rem; }
.publication, .project-entry { display: flow-root; margin: 1.1rem 0 0; }
.publication:has(.paper-figure), .project-entry:has(.project-figure) { display: grid; grid-template-columns: minmax(0, 10.7rem) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.publication:has(.paper-figure) { grid-template-areas: "figure copy"; }
.publication .entry-copy { grid-area: copy; }
.paper-figure { grid-area: figure; }
.figure-link { display: block; border-radius: .23rem; overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: zoom-in; }
.figure-link:hover { border-color: var(--link); }
.figure-link img { width: 100%; height: auto; }
.paper-figure .figure-link { padding: .32rem; }
.venue, .metadata { margin-bottom: .29rem; color: var(--muted); font-size: .79rem; }
.venue { color: var(--link); font-size: 1rem; font-style: italic; }
.author-line { margin-top: .45rem; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.author-line strong { color: var(--body); font-weight: inherit; text-decoration: underline; text-underline-offset: .16em; }
summary { color: var(--link); width: fit-content; }
.more-authors { display: inline; }
.more-authors summary { display: inline-block; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 43%, transparent); text-underline-offset: .18em; }
.more-authors summary::-webkit-details-marker { display: none; }
.author-line:has(.more-authors[open]) .author-preview { display: none; }
.more-authors[open] { display: flex; flex-direction: column-reverse; align-items: flex-start; }
.resource-links { margin-top: .6rem; gap: .22rem 0; font-size: .88rem; font-weight: 400; }
.resource-links li + li::before { content: "·"; color: var(--muted); padding-inline: .58rem; }
.dated-list { list-style: none; padding: 0; margin-top: .85rem; }
.dated-list li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: .46rem 0; }
.dated-list time, .date, .notes-section th { color: var(--muted); font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.news-date { color: var(--muted); text-decoration: none; white-space: nowrap; }
.news-date:hover { text-decoration: underline; }
.news-scroll { max-height: 17rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.quote { margin-top: 2.1rem; color: var(--muted); font-size: 1rem; }
.visitor-map-link { display: block; width: min(100%, 30rem); }
.visitor-map-link img { width: 100%; height: auto; border-radius: .25rem; }
.profile .visitor-map-link { width: min(100%, 11.5rem); margin-top: 1.6rem; }
.visitor-map-page { padding: 1rem; }
.visitor-map-page .visitor-map-link { margin-inline: auto; }
.footer { grid-area: footer; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 2.5rem; padding: .9rem 0 .5rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.footer a { color: inherit; }
:is(#projects, #honors) > h2 { font-size: 1.65rem; }
.project-entry h3 { font-size: 1.25rem; }
.project-entry + .project-entry, .more-projects .project-entry { padding-top: 1.3rem; margin-top: 1.3rem; border-top: 1px solid var(--line); }
.project-figure img { aspect-ratio: 4/3; object-fit: contain; }
.dot { padding: 0 .48rem; }
.project-details { margin-top: .45rem; font-size: .9rem; }
.project-details ul { padding-left: 1.1rem; margin-top: .35rem; }
.more-projects { margin-top: 1.35rem; }
.more-projects > summary, .interests-more > summary { font-size: .92rem; }
.when-open, .interests-more__label--open { display: none; }
details[open] > summary .when-closed, .interests-more[open] .interests-more__label--closed { display: none; }
details[open] > summary .when-open, .interests-more[open] .interests-more__label--open { display: inline; }
.honors li { grid-template-columns: 9.7rem minmax(0, 1fr); }
.honors li > span:last-child { font-weight: 400; }
.writing > section + section { margin-top: 1.7rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.writing section h2 { font-size: 1.35rem; }
.blogs-list table { border-collapse: collapse; width: 100%; margin-top: .8rem; }
.blogs-list th, .blogs-list td { text-align: left; vertical-align: baseline; padding: .48rem 0; line-height: 1.55; }
.blogs-list th { width: 7.8rem !important; padding-right: .8rem; white-space: nowrap; }
.interests-section__intro { margin: .5rem 0 .65rem; }
.interests-more__content p { margin: .75rem 0; }
.audio-player audio { width: min(100%, 30rem); }
.parent-link { display: inline-block; margin-bottom: .9rem; }
.article .prose { margin-top: 1.2rem; }
.kaili-poetry { columns: 2 14rem; column-gap: 2rem; }
.poem-card { break-inside: avoid; padding-block: .55rem 1.55rem; }
.poem-card h2 { font-size: 1rem; font-weight: 400; color: var(--link); margin-bottom: .6rem; }
.poem-lines { font-size: .98rem; line-height: 1.9; }
dialog { color: var(--body); background: var(--paper); border: 1px solid var(--line); border-radius: .45rem; padding: 1.15rem; }
dialog::backdrop { background: rgb(16 25 30 / 55%); }
body:has(dialog[open]) { overflow: hidden; }
.close { min-width: 2.25rem; min-height: 2.25rem; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.close:hover { background: var(--wash); }
.image-dialog { width: max-content; max-width: min(88rem, 94vw); max-height: 94dvh; }
.image-dialog .close { display: block; margin: -.6rem -.5rem 0 auto; }
.image-dialog img { max-height: 75dvh; width: auto; height: auto; margin: auto; object-fit: contain; }
.image-dialog figcaption { padding-top: .65rem; color: var(--muted); font-size: .9rem; }
@media (min-width: 721px) and (max-width: 890px) {
  .frame { grid-template-columns: 11.5rem minmax(0, 1fr); column-gap: 2rem; padding-inline: 1.6rem; }
  .profile { padding-right: 1rem; }
  .publication:has(.paper-figure), .project-entry:has(.project-figure) { grid-template-columns: 8rem minmax(0, 1fr); gap: .85rem; }
}
@media (min-width: 721px) and (max-height: 30rem) {
  .profile { position: static; }
}
@media (min-width: 721px) and (max-height: 38rem) {
  .home .profile { position: static; }
}
@media (max-width: 720px) {
  .frame { display: flex; flex-direction: column; padding: 0 clamp(1.1rem, 5vw, 2rem) .65rem; }
  .topbar { width: 100%; min-height: 3.45rem; }
  .desktop-nav { display: none; }
  .mobile-name { display: inline-block; font-size: 1.5rem; line-height: 1; text-decoration: none; color: var(--ink); }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { list-style: none; padding: .5rem; font-size: .92rem; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; right: 0; top: 100%; width: 11rem; padding: .4rem; border: 1px solid var(--line); border-radius: .25rem; background: var(--paper); }
  .mobile-menu a { display: block; padding: .48rem .6rem; color: var(--ink); text-decoration: none; }
  .mobile-menu a[aria-current], .mobile-menu a:hover { background: var(--wash); }
  .profile { position: static; display: grid; grid-template-columns: 6.1rem minmax(0, 1fr); gap: .9rem 1.1rem; align-items: center; width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 1.4rem 0 1.15rem; }
  .portrait { width: 100%; }
  .identity { margin: 0; }
  .profile-name { display: none; }
  .role { margin-top: 0; font-size: 1rem; }
  .affiliation { font-size: .875rem; line-height: 1.45; }
  .contacts { grid-column: 1/-1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .55rem .8rem; padding: 0; margin: 0; border: 0; }
  .contact-links { gap: .125rem; margin: 0; }
  .contact-links a { width: 2.75rem; height: 2.75rem; }
  .profile .visitor-map-link { grid-column: 1 / -1; margin-top: 0; }
  .inner .profile { display: none; }
  main { flex: 1; padding-top: 1.65rem; }
  .section { padding-top: 1.4rem; margin-top: 1.5rem; }
  .news-scroll { max-height: none; overflow: visible; }
  .footer { width: 100%; margin-top: 1.8rem; }
}
@media (max-width: 560px) {
  .publication:has(.paper-figure), .project-entry:has(.project-figure) { display: flex; flex-direction: column; gap: .62rem; }
  .paper-figure { width: min(10.8rem, 50%); }
  .project-figure { width: min(10rem, 42%); }
  .dated-list li { grid-template-columns: 5.4rem minmax(0, 1fr); gap: .65rem; }
  .dated-list time, .date, .notes-section th { font-size: .79rem; }
  .honors li { grid-template-columns: 6.85rem minmax(0, 1fr); }
  .blogs-list th { width: 5.8rem !important; padding-right: .55rem; }
  .kaili-poetry { columns: 1; }
}
