@font-face {
  font-family: "WenKai";
  src: url("assets/fonts/wenkai-page.woff2?v=9") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("assets/fonts/lora-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("assets/fonts/lora-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fcfbf8;
  --ink: #303732;
  --muted: #68706a;
  --link: #426b77;
  --line: #dedfd7;
  --soft: #f0f1ea;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Lora", "WenKai", "PingFang SC", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #e0e9e6; }
a { color: var(--link); text-decoration: none; text-underline-offset: 5px; transition: color 160ms ease, background-color 160ms ease; touch-action: manipulation; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
.page { width: min(920px, calc(100% - 80px)); margin: 104px auto 0; }
.language-switch { position: absolute; top: 24px; right: max(40px, calc((100% - 920px) / 2)); display: flex; gap: 8px; font-size: 17px; }
.language-switch a { min-width: 48px; min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.language-switch a[aria-current="page"] { background: var(--soft); color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; }
.language-switch a:hover { background: var(--soft); }
.skip-link { position: fixed; top: -70px; left: 20px; padding: 8px 16px; background: var(--paper); }
.skip-link:focus { top: 12px; }
.profile { display: block; }
html[lang="en"] h1 { font-family: "Lora", serif; }
html[lang="en"] h1 span { font-family: "WenKai", serif; }
h1 { font-family: "WenKai", serif; font-size: 48px; font-weight: 400; line-height: 1.35; }
h1 span { font-family: "Lora", serif; font-size: 31px; margin-left: 12px; white-space: nowrap; }
.bio { margin-top: 19px; line-height: 1.85; }
.bio p + p { margin-top: 14px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: 17px; }
.contact-links a { overflow-wrap: anywhere; }
.section-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 24px; padding-block: 12px; border-block: 1px solid var(--line); font-size: 18px; }
.section-links a { display: inline-flex; align-items: center; min-height: 40px; }
section { margin-top: 56px; }
h2 { font-size: 28px; line-height: 1.5; font-weight: 400; margin-bottom: 24px; }
h3 { font-size: 20px; line-height: 1.65; font-weight: 400; }
.honors-list { margin: 0; padding: 0; list-style: none; }
.project-role { display: block; font-size: 18px; color: var(--muted); margin-top: 2px; }
.work-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.work-entry { padding-block: 24px; border-bottom: 1px solid var(--line); }
.work-entry:first-child { padding-top: 0; }
.work-entry:last-child { border-bottom: 0; padding-bottom: 0; }
.work-time { font-size: 17px; line-height: 1.6; color: var(--muted); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.work-entry h3 { font-size: 22px; line-height: 1.55; letter-spacing: -.015em; }
.work-entry h3 a { color: var(--ink); }
.work-entry h3 a:hover { color: var(--link); }
.authors { font-size: 18px; color: var(--muted); margin-top: 7px; line-height: 1.65; }
.authors strong { font-weight: 600; color: var(--ink); }
.venue { font-size: 18px; color: var(--link); margin-top: 3px; }
.publication-status { white-space: nowrap; }
.resource-links { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 18px; margin-top: 4px; }
.resource-links a { display: inline-flex; align-items: center; min-height: 44px; }
.publication-note { font-size: 17px; color: var(--muted); margin-top: 22px; }
.education-list { display: grid; gap: 22px; }
.education-item { display: grid; grid-template-columns: 162px 1fr; gap: 22px; }
.date { color: var(--muted); font-size: 17px; padding-top: 3px; }
.education-item h3 { font-size: 21px; }
.education-item div > p { font-size: 18px; color: var(--muted); margin-top: 3px; }
.education-item strong { font-weight: 600; color: var(--ink); }
.honors-list { display: grid; gap: 11px; font-size: 19px; }
#experience p + p { margin-top: 16px; }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 68px; padding-bottom: 38px; font-size: 16px; color: var(--muted); }
@media (max-width: 700px) {
  .page { width: calc(100% - 44px); margin-top: 84px; }
  .language-switch { top: 16px; right: 22px; }
  body { font-size: 19px; }
  h1 { font-size: 40px; }
  h1 span { display: block; font-size: 26px; margin: 4px 0 0; }
  .contact-links { font-size: 16px; gap: 8px 20px; }
  .section-links { gap: 0 20px; font-size: 17px; margin-top: 20px; }
  section { margin-top: 40px; }
  h2 { font-size: 26px; margin-bottom: 18px; }
  .project-role, .authors, .venue, .resource-links { font-size: 17px; }
  .work-entry h3 { font-size: 21px; line-height: 1.55; }
  .education-item { grid-template-columns: 1fr; gap: 3px; }
  .education-item h3 { font-size: 20px; }
  .education-item div > p { font-size: 17px; }
  .date { font-size: 16px; }
  .honors-list { font-size: 18px; gap: 12px; }
  footer { margin-top: 50px; font-size: 16px; }
}
@media (max-width: 370px) {
  .page { width: calc(100% - 36px); }
  h1 { font-size: 36px; }
  h1 span { font-size: 23px; }
  .contact-links { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a { transition: none; } }
@media print {
  body { background: white; font-size: 12pt; }
  .page { width: 100%; margin: 0; }
  h1 { font-size: 30pt; }
  h1 span { font-size: 23pt; }
  section { margin-top: 24px; }
  .work-entry, .education-item { break-inside: avoid; }
  .work-entry h3 { font-size: 14pt; }
  footer, .skip-link, .language-switch, .section-links { display: none; }
}
