:root {
  --paper: #fcfcfd;
  --ink: #202832;
  --muted: #596371;
  --accent: #245993;
  --line: #dfe4eb;
  --wash: #f1f5fa;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --text-body: 1.125rem;
  --text-ui: 1.0625rem;
  --text-small: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--text-body); line-height: 1.7; -webkit-font-smoothing: antialiased; }
::selection { background: #dce9f7; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.3; }
h1 { font-size: 2.25rem; letter-spacing: -.035em; }
h2 { font-size: 1.5rem; letter-spacing: -.02em; }
h3 { font-size: 1.5rem; letter-spacing: -.015em; }
strong { font-weight: 600; }
sup { font-size: .75em; }
.container { width: min(1040px, calc(100% - 80px)); margin-inline: auto; }
main { flex: 1; }
.skip-link { position: absolute; z-index: 10; top: -100px; left: 20px; padding: 10px 18px; color: var(--paper); background: var(--accent); }
.skip-link:focus { top: 12px; color: var(--paper); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-inner-home { justify-content: flex-start; }
.site-name { font-size: 1.125rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; font-size: var(--text-ui); }
.site-navigation a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.site-navigation a:hover, .site-navigation a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.home { padding-block: 48px 80px; }
.home-layout { max-width: 780px; margin-inline: auto; }
.home-profile { display: flex; align-items: center; gap: 36px; margin-bottom: 44px; }
.home-portrait { display: block; flex: 0 0 auto; width: 280px; max-width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% center; border-radius: 2px; }
.home-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.home-identity h1 { font-size: 2rem; }
.home-links { display: inline-flex; flex: 0 0 auto; }
.home-profile-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; border-radius: 4px; text-decoration: none; }
.home-profile-link:hover { background: var(--wash); }
.home-profile-link svg { display: block; }
.research-interests { min-width: 0; }
.research-statement { line-height: 1.8; }
.research-statement h2 { margin-bottom: 14px; font-size: 1.5rem; }
.research-statement + .research-statement { margin-top: 36px; }
.home-wordcloud { max-width: 620px; margin: 36px auto 0; }
.home-wordcloud picture { display: block; }
.home-wordcloud img { display: block; width: 100%; height: auto; }
.home-wordcloud figcaption { margin-top: 14px; color: var(--muted); font-size: var(--text-small); line-height: 1.5; text-align: center; }
@media (max-width: 700px) {
  .home-wordcloud picture { max-width: 320px; margin-inline: auto; }
}
.page { padding-block: 48px 80px; }
.page-heading { margin-bottom: 36px; }
.page-heading > p { margin-top: 12px; }
.page-summary { max-width: 72ch; color: var(--muted); }
.project-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 36px; padding: 0; list-style: none; }
.project-directory li { min-width: 0; }
.project-card { display: block; color: var(--ink); text-decoration: none; border-radius: 2px; }
.project-figure { margin: 0 0 14px; }
.project-image-link { display: block; }
.project-visual { display: block; width: 100%; height: auto; aspect-ratio: 25 / 11; object-fit: contain; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 2px; }
.project-figure-caption { min-height: 24px; margin-top: 8px; }
.figure-credit { color: var(--muted); font-size: var(--text-small); line-height: 1.5; }
.figure-credit summary { cursor: pointer; font-weight: 600; }
.figure-credit-note-mobile { display: none; }
@media (max-width: 520px) {
  .project-visual { aspect-ratio: auto; padding: 10px; }
  .figure-credit-note-desktop { display: none; }
  .figure-credit-note-mobile { display: inline; }
}
.project-directory .figure-credit p { margin-top: 8px; font-size: inherit; line-height: 1.5; }
.figure-credit cite { font-style: normal; }
.project-image-link:hover .project-visual { border-color: #9ab3d0; }
.project-directory h2 { font-size: 1.5rem; line-height: 1.4; }
.project-card:hover h2, .project-card:focus-visible h2 { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.project-directory p { margin-top: 10px; color: var(--muted); line-height: 1.65; }
.breadcrumb { margin-bottom: 26px; font-size: var(--text-ui); }
.project-heading { max-width: 820px; }
.project-heading h1 { font-size: 2rem; }
.project-introduction { margin-top: 20px; }
.project-publications, .project-software { max-width: 900px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.project-publications > h2, .project-software > h2 { margin-bottom: 6px; }
.page-heading.publications-heading { margin-bottom: 24px; }
.publication-overview { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; margin-top: 12px; }
.publication-overview .author-note { margin-top: 0; }
.publication-year { margin-top: 28px; }
.publications-heading + .publication-year { margin-top: 0; }
.publication-year > h2 { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.publication-year > h2::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.publication-list, .software-list { padding: 0; list-style: none; min-width: 0; }
.publication, .software-entry { padding-block: 24px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.publication h3, .software-entry h3 { font-size: 1.5rem; line-height: 1.45; overflow-wrap: anywhere; }
.publication h3 a, .software-entry h3 a { color: var(--ink); text-decoration: none; }
.publication h3 a:hover, .software-entry h3 a:hover { color: var(--accent); text-decoration: underline; }
.software-meta { margin-top: 8px; color: var(--muted); font-size: var(--text-small); }
.authors { margin-top: 10px; color: var(--muted); font-size: var(--text-ui); }
.authors strong { color: var(--ink); }
.contribution-symbol { color: var(--ink); font-size: 1.25rem; font-weight: 700; line-height: 0; vertical-align: baseline; }
.authors .contribution-symbol { margin-left: 3px; }
.publication-venue { margin-top: 5px; font-size: var(--text-small); }
.author-note { margin-top: 4px; color: var(--muted); font-size: var(--text-small); }
.paper-description, .software-description { max-width: 76ch; margin-top: 16px; font-size: var(--text-body); }
.paper-links, .software-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 7px; font-size: var(--text-small); }
.paper-links a, .software-links a { display: inline-flex; align-items: center; min-height: 44px; }
.publication-year .publication { padding-block: 12px; border-bottom: 0; }
.publication-year h3 { font-size: 1.25rem; line-height: 1.35; }
.publication-year .authors { margin-top: 4px; line-height: 1.5; }
.publication-details { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 20px; margin-top: 3px; line-height: 1.5; }
.publication-details .publication-venue { margin-top: 0; }
.publication-details .paper-links { gap: 0 18px; margin-top: 0; }
.publication-details .paper-links a { min-height: 28px; }
.all-publications { margin-top: 24px; }
.project-method { max-width: 900px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.project-method > h2 { scroll-margin-top: 24px; }
.method-description { max-width: 76ch; margin-top: 16px; }
.method-figure { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; gap: 28px; margin: 28px 0; }
.method-figure-link { display: block; cursor: zoom-in; }
.method-visual { display: block; width: 100%; height: auto; }
.method-figure figcaption { min-width: 0; font-size: var(--text-ui); line-height: 1.6; }
.method-figure .figure-credit { margin-top: 8px; }
.method-figure .figure-credit p { margin-top: 8px; }
.method-figure-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.method-figure-actions > a { flex: 0 0 auto; font-size: var(--text-small); }
.method-resources { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 20px; margin-top: 12px; font-size: var(--text-ui); }
.method-resources > span { color: var(--muted); }
.method-resources > a { display: inline-flex; align-items: center; min-height: 44px; }
.method-reference-heading { margin-top: 20px; color: var(--muted); font-size: var(--text-small); letter-spacing: 0; }
.method-references { padding: 0; margin-top: 12px; list-style: none; font-size: var(--text-ui); line-height: 1.55; }
.method-references li + li { margin-top: 14px; }
.method-references cite { font-style: normal; }
.method-reference-meta { display: block; margin-top: 3px; color: var(--muted); font-size: var(--text-small); }
.related-projects { margin-top: 40px; }
.related-projects h2 { font-size: 1.5rem; }
.related-projects ul { padding-left: 1.25rem; margin-top: 12px; }
.related-projects li { padding-block: 4px; }
.cv-print-name { display: none; }
.background-section { max-width: 860px; }
.background-section + .background-section { margin-top: 40px; }
.background-section > h2 { padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 1.5rem; }
.history { margin-top: 22px; }
.history-entry { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 8px 32px; }
.history-entry + .history-entry { margin-top: 24px; }
.history dt { font-size: var(--text-ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.history h3 { font-size: var(--text-body); font-weight: 600; line-height: 1.7; letter-spacing: 0; }
.history dd > p { margin-top: 2px; }
.history-detail { font-size: var(--text-ui); color: var(--muted); }
.cv-section-text { margin-top: 20px; }
.site-footer { padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-small); }

@media (max-width: 960px) {
  .project-directory { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 899px) {
  .method-figure { display: block; max-width: 560px; margin-inline: auto; }
  .method-figure figcaption { margin-top: 12px; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 48px); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding-block: 16px 12px; min-height: 76px; }
  .site-navigation { gap: 4px 26px; }
  .home, .page { padding-block: 36px 64px; }
  .home-profile { gap: 26px; margin-bottom: 36px; }
  .home-portrait { width: 240px; }
  .home-identity h1 { font-size: 1.75rem; }
  .history-entry { grid-template-columns: 180px minmax(0, 1fr); gap: 10px 24px; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 40px); }
  h1 { font-size: 2rem; }
  .site-navigation { gap: 4px 18px; }
  .home-profile { flex-direction: column; align-items: flex-start; gap: 18px; }
  .home-portrait { width: min(240px, 100%); }
  .page-heading { margin-bottom: 28px; }
  .project-heading h1 { font-size: 1.75rem; overflow-wrap: anywhere; }
  .project-publications, .project-software, .project-method { margin-top: 32px; }
  .history-entry { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

@media (max-width: 359px) {
  .container { width: calc(100% - 32px); }
  .site-navigation { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 28px; }
}

@media print {
  :root { --paper: white; --ink: #111; --muted: #444; --accent: #222; }
  body { display: block; min-height: 0; }
  .container { width: 100%; }
  .site-header, .site-footer, .skip-link, .breadcrumb, .related-projects, .all-publications { display: none; }
  .home, .page { padding-block: 0; }
  .home-profile { margin-bottom: 24px; }
  .home-portrait { width: 160px; }
  h1 { font-size: 24pt; }
  h2 { font-size: 19pt; }
  .publication h3 { font-size: 14pt; }
  .publication, .software-entry, .history-entry, .project-directory li { break-inside: avoid; }
  .project-method > h2, .method-reference-heading { break-after: avoid; }
  .method-references li { break-inside: avoid; }
  .method-figure { break-inside: avoid; }
  .cv-print-name { display: block; margin: 0 0 24px; font-size: 20pt; }
  .background-section > h2 { break-after: avoid; }
  .publication-year { display: block; }
  a { color: inherit; }
}
