:root {
  color-scheme: light;
  --accent: #8b3981;
  --accent-soft: #f6eff5;
  --text: #25262a;
  --muted: #73747b;
  --line: #e8e8ec;
  --width: 860px;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang TC", sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); text-decoration: none; text-underline-offset: .22em; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.35; overflow-wrap: anywhere; }
h1 { font-size: 2.65rem; letter-spacing: -.045em; font-weight: 600; margin: 0; }
h2 { font-size: 1.5rem; font-weight: 500; letter-spacing: -.025em; margin: 2.5rem 0 1.4rem; }
h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .4rem; }
p { margin: 0 0 1.25rem; }
.site-header { position: sticky; top: 0; z-index: 2; background: #fffffff5; border-bottom: 1px solid var(--line); }
.site-nav { max-width: 1100px; margin: auto; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-name { color: var(--text); font-size: .95rem; font-weight: 600; letter-spacing: -.02em; }
.nav-links { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; padding: 0; margin: 0; }
.nav-links a { display: inline-block; padding: .25rem 0; color: #64656c; font-size: .875rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.skip-link { position: fixed; left: 1rem; top: -6rem; padding: .7rem 1rem; background: #fff; z-index: 3; }
.skip-link:focus { top: .5rem; }
main { width: 100%; flex: 1; max-width: calc(var(--width) + 4rem); margin: 3.5rem auto 5rem; padding: 0 2rem; overflow-wrap: anywhere; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.page-about main { max-width: 1100px; }
.page-publications main { max-width: 1040px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: center; gap: 4rem; padding: .5rem 0 3rem; border-bottom: 1px solid var(--line); }
.home-hero h1 { font-size: clamp(2.4rem, 4vw, 3.25rem); line-height: 1.2; letter-spacing: -.045em; }
.hero-eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 1.75rem 0 .5rem; }
.hero-specialties { font-size: 1.2rem; line-height: 1.8; max-width: 640px; margin: 0 0 1.5rem; }
.hero-resume { min-height: 44px; padding: .65rem 1.2rem; }
.hero-portrait img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.hero-content .contact-links { justify-content: flex-start; gap: .75rem 1.2rem; border: 0; padding: 0; margin: 1.25rem 0 0; }
.hero-content .contact-links a { font-size: .75rem; }
.hero-content .contact-links .icon { width: 1rem; height: 1rem; }
.selected-publications { padding-top: 2.75rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: .75rem; }
.section-heading h2 { font-size: 1.6rem; margin: 0; }
.selected-publications h2 a { color: var(--text); }
.section-link { font-size: .8rem; white-space: nowrap; color: var(--muted); }
.home-about { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 3rem; border-top: 1px solid var(--line); margin-top: 2.75rem; padding-top: 2.75rem; }
.home-about h2 { font-size: 1.4rem; margin: 0; }
.about-body { max-width: 720px; line-height: 1.9; color: #55565f; }
.about-body p:last-child { margin-bottom: 0; }
.publication-list { list-style: none; padding: 0; margin: 0; }
.publication { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.publication-preview { display: block; width: 100%; height: 155px; object-fit: contain; background: #fafafb; border: 1px solid var(--line); border-radius: 7px; padding: .75rem; }
.publication-title { font-size: 1.1rem; font-weight: 600; line-height: 1.5; }
.authors { color: #686970; font-size: .875rem; line-height: 1.7; margin-bottom: .4rem; }
.authors strong { color: var(--text); font-weight: 500; }
.venue { font-size: .85rem; line-height: 1.6; margin-bottom: .5rem; color: var(--muted); }
.paper-links { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .75rem 0 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid #dedee5; border-radius: 5px; padding: .3rem .75rem; font-size: .75rem; font-weight: 500; line-height: 1.6; color: #4d4e57; background: #fff; text-decoration: none; }
.button:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.button-primary { background: var(--text); color: #fff; border-color: var(--text); padding: .65rem 1rem; font-size: .8rem; }
.button-primary:hover { background: #3b3c43; border-color: #3b3c43; color: #fff; }
.year-heading { font-size: .8rem; letter-spacing: .08em; font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: .8rem; margin: 2.75rem 0 1.75rem; color: var(--muted); }
.muted, .entry-date { color: var(--muted); }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.75rem; border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 3rem; }
.contact-links a { display: inline-flex; align-items: center; gap: .6rem; }
.contact-links a { color: #65666e; font-size: .8rem; }
.contact-links a:hover { color: var(--accent); }
.icon { width: 1.2rem; height: 1.2rem; flex-shrink: 0; }
.page-cv main { max-width: 1100px; }
.page-cv .page-heading { padding-bottom: 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
.cv-layout { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.cv-toc { position: sticky; top: 105px; font-size: .8rem; }
.cv-toc-label { color: #9999a1; text-transform: uppercase; letter-spacing: .1em; font-size: .65rem; margin-bottom: 1rem; }
.cv-toc ul { padding: 0; margin: 0; list-style: none; }
.cv-toc a { display: block; padding: .4rem 0; color: #777880; }
.cv-toc a:hover { color: var(--accent); }
.cv-section { padding: 2rem 0; border-top: 1px solid var(--line); }
.cv-section:first-child { border: 0; padding-top: 0; }
.cv-section h2 { margin: 0 0 1.5rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--muted); }
.cv-summary { font-size: 1.08rem; line-height: 1.85; margin-bottom: 1.5rem; }
.facts { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: .5rem 1.25rem; margin: 0; font-size: .875rem; }
.facts dt { color: var(--muted); font-weight: 400; }
.facts dd { margin: 0; }
.cv-entry { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 1.25rem; }
.cv-entry + .cv-entry { margin-top: 1.75rem; }
.cv-entry h3 { line-height: 1.55; font-size: .95rem; margin-bottom: .3rem; }
.cv-entry h3 a { color: var(--text); }
.cv-entry h3 a:hover { color: var(--accent); }
.cv-entry p { margin-bottom: .4rem; font-size: .875rem; }
.entry-date { font-size: .75rem !important; line-height: 2; white-space: nowrap; padding-top: .1rem; font-variant-numeric: tabular-nums; }
.entry-description { color: #6e6f77; line-height: 1.75; }
.cv-entry .venue { font-size: .8rem; }
.cv-entry .authors { font-size: .8rem; }
.abstract { margin-top: .65rem; }
.abstract summary { display: list-item; width: fit-content; color: var(--accent); font-size: .75rem; cursor: pointer; }
.abstract p { margin: .75rem 0 0; padding-left: 1rem; border-left: 2px solid var(--line); color: #686970; font-size: .85rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.skill-tags li { padding: .2rem .65rem; border-radius: 4px; background: #f5f5f7; font-size: .75rem; color: #55565f; }
.cv-skills .facts { gap: 1rem 1.25rem; }
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 2rem; text-align: center; color: #96969d; font-size: .7rem; }
@media (max-width: 960px) {
  .cv-layout { grid-template-columns: 1fr; gap: 2rem; }
  .cv-toc { position: static; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
  .cv-toc-label { display: none; }
  .cv-toc ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 130px; }
  .site-nav { align-items: flex-start; flex-direction: column; gap: .5rem; padding: .8rem 1.25rem; }
  .nav-links { gap: .25rem 1.25rem; }
  .nav-links a { font-size: .8rem; }
  main { margin: 2.5rem auto 3rem; padding: 0 1.25rem; }
  h1 { font-size: 2.1rem; }
  .page-heading { gap: 1rem; margin-bottom: 2rem; }
  .page-cv .page-heading { align-items: flex-start; flex-direction: column; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
  .home-hero { display: flex; flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 0 0 2.25rem; }
  .home-hero h1 { font-size: 2.1rem; }
  .hero-portrait { order: -1; width: 96px; }
  .hero-portrait img { border-radius: 7px; }
  .hero-eyebrow { margin-top: 1.25rem; }
  .hero-specialties { font-size: 1.05rem; line-height: 1.85; }
  .hero-content .contact-links { gap: .8rem 1rem; }
  .selected-publications { padding-top: 2rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .section-heading h2 { font-size: 1.45rem; }
  .publication { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 0; }
  .publication-preview { height: 180px; padding: 1rem; }
  .publication-title { font-size: 1.02rem; }
  .paper-links .button { min-height: 36px; padding: .35rem .85rem; }
  .home-about { grid-template-columns: 1fr; gap: 1rem; padding-top: 2rem; margin-top: 2rem; }
  .authors { font-size: .8rem; }
  .venue { font-size: .75rem; }
  .cv-layout { gap: 1.5rem; }
  .cv-toc ul { gap: .15rem 1.25rem; }
  .cv-section { padding: 1.75rem 0; }
  .cv-summary { font-size: 1rem; }
  .cv-entry { grid-template-columns: 1fr; gap: .25rem; }
  .cv-entry + .cv-entry { margin-top: 1.5rem; }
  .facts { grid-template-columns: 75px minmax(0, 1fr); gap: .5rem 1rem; }
  .cv-skills .facts { grid-template-columns: 1fr; gap: .5rem; }
  .cv-skills dd { margin-bottom: .5rem; }
  .contact-links { gap: .75rem 1.25rem; }
}
@media print {
  .site-header, .cv-toc, .skip-link, .contact-links, .button-primary { display: none; }
  main { margin: 0 auto; }
  .cv-layout, .home-about { display: block; }
  .cv-entry { break-inside: avoid; }
  .abstract p { display: block; }
}
