/* Shared visual system. This site has no build step. */
:root {
  --paper: #faf9f6;
  --ink: #25343a;
  --navy: #203c4c;
  --link: #285e75;
  --muted: #5f6c70;
  --rule: #d8dedb;
  --wash: #f0f2ed;
  --width: 1080px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 18px/1.75 var(--serif); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: #143a4b; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, video:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
button, input { font: inherit; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
figure { margin: 0; }
figcaption { margin-top: 1.1rem; color: var(--muted); font: 13px/1.7 var(--sans); }
figcaption a { color: inherit; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 400; line-height: 1.17; }
h1 { font-size: clamp(2rem, 3vw, 2.5rem); margin: 0 0 1.5rem; }
h2 { font-size: clamp(1.5rem, 2vw, 1.85rem); margin: 0 0 1.25rem; }
h3 { font-size: 1.3rem; margin: 0 0 .8rem; }
p { margin: 0 0 1.25rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .6rem; }
strong { font-weight: 600; }
.wrap { width: min(var(--width), calc(100% - 100px)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { padding: 31px 0 24px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.site-name { text-decoration: none; color: var(--navy); font-size: 22px; line-height: 1.4; }
.site-nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; font: 13px/1.5 var(--sans); }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--navy); border-bottom-color: var(--navy); }
.home-introduction { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 48px; align-items: start; padding: 42px 0 35px; }
.intro-portrait { margin-top: 8px; }
.intro-portrait img { width: 100%; border-radius: 2px; }
.text-links { display: flex; gap: 25px; flex-wrap: wrap; font: 13px/1.7 var(--sans); margin-top: 26px; }
.text-links a { text-decoration: none; border-bottom: 1px solid #a9bcc2; }
.section { padding: 35px 0 40px; border-top: 1px solid var(--rule); }
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 65px; align-items: start; }
.feature h2 { max-width: 410px; }
.feature p { font-size: 17px; }
.feature figure { padding-top: 5px; }
.feature figure img { background: white; }
.research-row { display: grid; grid-template-columns: 250px minmax(0, 1fr) 140px; gap: 30px; padding: 22px 0; border-top: 1px solid var(--rule); align-items: center; }
.research-row h3 { font-size: 1.3rem; line-height: 1.4; margin: 0; }
.research-row h3 a { color: var(--navy); text-decoration: none; }
.research-row h3 a:hover { text-decoration: underline; }
.research-row p { margin: 0; font-size: 16px; line-height: 1.7; }
.research-thumbnail { display: block; }
.research-thumbnail img { width: 100%; height: 115px; object-fit: contain; }
.section-top { display: flex; justify-content: space-between; gap: 25px; align-items: baseline; margin-bottom: 25px; }
.section-top h2 { margin-bottom: 0; }
.small-link { font: 13px/1.6 var(--sans); white-space: nowrap; }
.paper { padding: 23px 0; border-top: 1px solid var(--rule); }
.paper h3 { font-size: 1.34rem; line-height: 1.35; margin: 0 0 9px; max-width: 900px; }
.paper h3 a { text-decoration: none; color: var(--navy); }
.paper h3 a:hover { text-decoration: underline; }
.paper .authors { color: var(--muted); font: 13px/1.7 var(--sans); margin-bottom: 4px; }
.paper .venue { color: var(--muted); font: 12px/1.7 var(--sans); margin-bottom: 8px; }
.paper .annotation { max-width: 820px; font-size: 16px; line-height: 1.65; margin: 9px 0 0; }
.paper .paper-links { font: 12px/1.6 var(--sans); display: flex; gap: 18px; margin-top: 10px; }
.home-about { display: grid; grid-template-columns: 150px 1fr; gap: 42px; align-items: start; max-width: 850px; }
.portrait { width: 150px; border-radius: 2px; }
.home-about p { font-size: 17px; }
.site-footer { border-top: 1px solid var(--rule); display: flex; gap: 25px; justify-content: space-between; padding: 30px 0 37px; color: var(--muted); font: 12px/1.8 var(--sans); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.email-reveal { border: 0; padding: 0; background: transparent; color: var(--link); font: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; cursor: pointer; }
.email-reveal:hover { color: #143a4b; }
.page-head { padding: 42px 0 24px; max-width: 900px; }
.page-head h1 { max-width: 870px; }
.page-head .context { color: var(--muted); font: 13px/1.8 var(--sans); }
.research-section > .page-head h1 { font-size: 2.75rem; }
.research-overview { padding-bottom: 45px; }
.research-introduction { max-width: 760px; margin-bottom: 35px; }
.research-directions { margin-left: 24px; padding-left: 32px; border-left: 1px solid var(--rule); }
.research-direction { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 42px; align-items: center; padding: 32px 0; border-top: 1px solid var(--rule); }
.research-direction:first-child { border-top: 0; padding-top: 0; }
.research-direction h2 { font-size: 1.5rem; line-height: 1.3; margin-bottom: 16px; }
.research-direction h2 a { color: var(--navy); text-decoration: none; }
.research-direction h2 a:hover { text-decoration: underline; }
.research-direction p { font-size: 17px; }
.project-animation { max-width: 500px; margin: 32px auto; }
.project-animation video { display: block; width: 100%; height: auto; background: white; }
.direction-media { width: 100%; margin: 0; }
.direction-media video { max-height: 300px; object-fit: contain; }
.project-animation figcaption { margin-top: 12px; }
.project-animation.wide-animation { max-width: none; width: 100%; }
.project-introduction { max-width: 900px; margin-bottom: 35px; }
.pixel-animation video, .pixel-animation img { image-rendering: pixelated; }
.breadcrumbs { font: 12px/1.6 var(--sans); color: var(--muted); margin-bottom: 30px; }
.breadcrumbs a { text-decoration: none; }
.article-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); column-gap: 65px; align-items: start; padding-bottom: 65px; }
.toc { position: sticky; top: 30px; border-top: 1px solid var(--rule); padding-top: 20px; font: 12px/1.6 var(--sans); }
.toc strong { display: block; font-weight: 600; margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.toc a { display: block; text-decoration: none; color: var(--muted); margin-bottom: 13px; }
.toc a:hover { color: var(--navy); }
.prose { min-width: 0; max-width: 800px; }
.prose section { border-top: 1px solid var(--rule); padding-top: 30px; margin-top: 42px; }
.prose section:first-child { margin-top: 0; }
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8rem; }
.prose h4 { font-size: 1.13rem; line-height: 1.4; margin: 1.6rem 0 .8rem; }
.prose p, .prose li { font-size: 17px; }
.prose figure { margin: 32px 0; }
.prose .project-animation { margin-inline: auto; }
.animated-exposition { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .65fr); gap: 28px; align-items: start; }
.animation-text { min-width: 0; }
.prose .animated-exposition > .project-animation { width: 100%; margin: 0; }
.prose figure img { width: 100%; }
.prose .figure-medium { max-width: 660px; margin-inline: auto; }
.prose .figure-medium img { mix-blend-mode: multiply; }
.math-block { overflow-x: auto; overflow-y: hidden; max-width: 100%; padding: 12px 0; margin: 18px 0; font-size: .92em; }
.math-block mjx-container { min-width: max-content; }
.theorem { background: var(--wash); border-left: 2px solid #839a96; padding: 24px 28px 16px; margin: 28px 0; }
.theorem .theorem-label { display: block; font: 600 13px/1.5 var(--sans); color: var(--muted); margin-bottom: 12px; }
.scope-note { color: var(--muted); font: 13px/1.8 var(--sans); border-left: 2px solid var(--rule); padding-left: 18px; margin: 25px 0; }
.scope-note p { font: inherit; margin-bottom: .7rem; }
.table-scroll { overflow-x: auto; margin: 25px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
th { text-align: left; font: 600 12px/1.6 var(--sans); color: var(--muted); padding: 12px 15px 12px 0; border-bottom: 1px solid #a9b5b3; }
td { padding: 16px 18px 16px 0; vertical-align: top; border-bottom: 1px solid var(--rule); }
td:first-child { min-width: 130px; color: var(--navy); }
.reading-list { padding: 0; list-style: none; }
.reading-list li { padding: 17px 0; border-top: 1px solid var(--rule); }
.reading-list small { display: block; font: 12px/1.8 var(--sans); color: var(--muted); margin-top: 5px; }
.publication-nav { display: flex; gap: 25px; flex-wrap: wrap; border-block: 1px solid var(--rule); padding: 17px 0; font: 12px/1.7 var(--sans); }
.pub-controls { margin: 28px 0; font: 13px/1.7 var(--sans); }
.pub-controls label { display: block; color: var(--muted); margin-bottom: 8px; }
.pub-controls input { width: min(100%, 590px); padding: 12px 14px; border: 1px solid #b9c5c3; border-radius: 0; background: transparent; color: var(--ink); font: 15px var(--sans); }
.pub-count { color: var(--muted); font: 12px var(--sans); margin: 12px 0 0; }
.publication-section { margin: 46px 0; }
.publication-section > h2 { font-size: 1.7rem; margin-bottom: 22px; }
.publication-section .paper { padding-block: 20px; }
.bio-layout { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 55px; }
.bio-layout .portrait { width: 200px; }
.timeline { margin: 30px 0; }
.timeline-item { display: grid; grid-template-columns: 115px 1fr; gap: 25px; padding: 18px 0; border-top: 1px solid var(--rule); }
.timeline-item .date { font: 12px/1.8 var(--sans); color: var(--muted); }
.timeline-item h3 { margin: 0 0 5px; font-size: 1.2rem; }
.timeline-item p { font-size: 15px; margin: 0; }
.talk { display: grid; grid-template-columns: 65px 1fr; gap: 25px; padding: 22px 0; border-top: 1px solid var(--rule); }
.talk time { font: 12px/1.7 var(--sans); color: var(--muted); }
.talk h3 { font-size: 1.25rem; margin: 0 0 5px; }
.talk p { font: 13px/1.8 var(--sans); color: var(--muted); margin-bottom: 0; }
[hidden] { display: none !important; }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .site-header { align-items: flex-start; }
  .site-nav { gap: 16px; max-width: 450px; justify-content: flex-end; }
  .home-introduction { gap: 30px; }
  .research-row { grid-template-columns: 220px minmax(0, 1fr) 110px; gap: 20px; }
  .research-direction { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
  .article-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 38px; }
  .feature { gap: 35px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 40px); }
  .site-header { flex-direction: column; gap: 20px; padding-top: 24px; padding-bottom: 20px; }
  .site-name { font-size: 22px; }
  .site-nav { max-width: none; justify-content: flex-start; gap: 10px 21px; font-size: 12px; }
  .home-introduction { grid-template-columns: minmax(0, 1fr) 180px; padding: 30px 0; gap: 24px; }
  .feature { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 35px 0 40px; }
  .feature h2 { max-width: none; }
  .research-row { grid-template-columns: 1fr; gap: 8px; }
  .research-thumbnail { width: 150px; margin-top: 10px; }
  .research-thumbnail img { height: 130px; }
  .research-section > .page-head h1 { font-size: 2.25rem; }
  .research-directions { margin-left: 0; padding-left: 16px; }
  .research-direction { grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; }
  .research-direction h2 { font-size: 1.4rem; }
  .section-top { flex-direction: column; gap: 12px; }
  .home-about { grid-template-columns: 85px 1fr; gap: 22px; }
  .portrait { width: 85px; }
  .home-about h2 { font-size: 1.7rem; }
  .home-about p { font-size: 16px; }
  .site-footer { flex-direction: column; gap: 15px; padding-block: 25px; }
  .page-head { padding: 30px 0 20px; }
  .page-head h1 { font-size: 2rem; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .toc { position: static; padding: 16px 0 4px; border-block: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 0 20px; }
  .toc strong { width: 100%; margin-bottom: 12px; }
  .toc a { margin-bottom: 12px; }
  .prose section:first-child { border-top: 0; padding-top: 0; }
  .prose h2 { font-size: 1.6rem; }
  .prose p, .prose li { font-size: 17px; }
  .theorem { padding: 20px 18px 12px; }
  .bio-layout { grid-template-columns: 1fr; gap: 25px; }
  .bio-layout > figure { grid-row: 1; }
  .bio-layout .portrait { width: 130px; }
  .timeline-item { grid-template-columns: 90px 1fr; gap: 18px; }
  .talk { grid-template-columns: 44px 1fr; gap: 15px; }
  .publication-nav { gap: 12px 20px; }
}
@media (max-width: 600px) {
  .home-introduction { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .intro-portrait { max-width: 180px; margin-top: 0; }
  .research-direction, .animated-exposition { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .direction-media, .prose .animated-exposition > .project-animation { max-width: 320px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; color: black; font-size: 11pt; }
  .site-nav, .toc, .pub-controls, .skip-link { display: none !important; }
  .wrap { width: 100%; }
  .article-layout { display: block; }
  .prose { max-width: none; }
  h1 { font-size: 28pt; }
  h2 { break-after: avoid; }
  figure, .paper, .theorem { break-inside: avoid; }
}
