@font-face {
  font-family: "Profile Icons";
  src: url("../fonts/fa-solid-900.woff2") format("woff2");
  font-display: block;
}

@font-face {
  font-family: "Profile Brands";
  src: url("../fonts/fa-brands-400.woff2") format("woff2");
  font-display: block;
}

:root {
  color-scheme: light;
  --ink: #25272c;
  --body: #535963;
  --muted: #626c78;
  --accent: #365f8b;
  --accent-light: #edf2f8;
  --line: #e0e4eb;
  --red: #a33b3e;
  --surface: #f3f5f8;
  --page-background: #f8f9fb;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--page-background); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), a { touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: #203653; background: #e4ebf5; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
.icon, .brand-icon { display: inline-block; font-style: normal; line-height: 1; text-rendering: auto; -webkit-font-smoothing: antialiased; }
.icon { font-family: "Profile Icons"; }
.brand-icon { font-family: "Profile Brands"; }
.icon-mail::before { content: "\f0e0"; }
.icon-scholar::before { content: "\f19d"; }
.icon-github::before { content: "\f09b"; }
.icon-external::before { content: "\f35d"; }
.icon-expand::before { content: "\f31e"; }
.icon-close::before { content: "\f00d"; }
.icon-arrow-up::before { content: "\f062"; }
.skip-link { position: fixed; z-index: 20; top: -80px; left: 20px; padding: 10px 16px; background: var(--accent); color: #fff; }
.skip-link:focus { top: 12px; }
.header-inner, .site-main, .footer-inner { width: min(1080px, calc(100% - 96px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { font: 23px/1.2 var(--serif); white-space: nowrap; }
.wordmark > span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { position: relative; padding: 27px 0 25px; color: var(--body); font-size: 14px; font-weight: 500; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; height: 2px; bottom: -1px; left: 0; right: 0; background: var(--accent); transform: scaleX(0); transition: transform .18s ease; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); }
.site-nav a[aria-current]::after { transform: scaleX(1); }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 224px; gap: 0 76px; padding: 67px 0 0; }
h1 { margin: 0 0 23px; font: 56px/1.12 var(--serif); font-weight: 400; }
.research-focus { max-width: 680px; font-size: 19px; line-height: 1.8; color: var(--body); }
.research-focus strong { color: var(--ink); font-weight: 600; }
.background { margin-top: 16px; color: var(--body); font-size: 17px; line-height: 1.8; max-width: 675px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 23px; }
.contact-links a { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; font-size: 14px; font-weight: 550; }
.contact-links .icon, .contact-links .brand-icon { color: var(--accent); font-size: 15px; width: 17px; text-align: center; }
.contact-links a:hover { color: var(--accent); }
.contact-links a:hover span { text-decoration: underline; }
.profile-art { align-self: start; }
.profile-art img { width: 224px; height: auto; aspect-ratio: 1; border-radius: 6px; object-fit: contain; }
.profile-art figcaption { margin-top: 13px; text-align: right; color: var(--muted); font-size: 12px; }
.phd-notice { grid-column: 1 / -1; display: flex; gap: 21px; align-items: baseline; margin-top: 31px; padding: 17px 17px 18px; border-left: 2px solid #b55757; background: #fdf9f8; color: var(--red); font-size: 14px; line-height: 1.8; }
.notice-label { flex-shrink: 0; font-weight: 650; }
.phd-notice strong { font-weight: 600; }
.content-section { padding-top: 60px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid #c7cdd6; }
h2 { font: 31px/1.25 var(--serif); font-weight: 400; }
.section-index { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.publication { display: grid; grid-template-columns: 360px minmax(0, 1fr); align-items: center; gap: 32px; padding: 29px 0; border-bottom: 1px solid var(--line); }
.publication:last-child { border-bottom: 0; padding-bottom: 0; }
.paper-figure { display: block; position: relative; width: 100%; padding: 4px; aspect-ratio: 16 / 9; background: transparent; border: 1px solid transparent; border-radius: 4px; cursor: zoom-in; overflow: hidden; transition: border-color .2s; }
.paper-figure:hover { border-color: var(--line); }
.paper-figure img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.figure-zoom { position: absolute; right: 7px; bottom: 7px; display: grid; place-items: center; width: 26px; height: 26px; background: rgba(255,255,255,.95); color: var(--accent); border: 1px solid var(--line); border-radius: 3px; font-size: 11px; opacity: 0; transition: opacity .15s; }
.paper-figure:hover .figure-zoom, .paper-figure:focus-visible .figure-zoom { opacity: 1; }
.paper-content { min-width: 0; }
.paper-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 28px; margin-bottom: 9px; }
.venue { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 600; }
.venue-accepted { padding: 3px 7px; background: var(--accent-light); color: var(--accent); }
.paper-link { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; color: var(--accent); font-size: 13px; font-weight: 550; }
.paper-link .icon, .paper-link .brand-icon { font-size: 10px; }
.paper-link:hover { text-decoration: underline; }
.paper-content h3 { font-size: 18px; line-height: 1.48; font-weight: 600; overflow-wrap: anywhere; }
.paper-content h3 a:hover { color: var(--accent); }
.paper-authors { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.8; text-wrap: pretty; }
.paper-authors strong { font-weight: 600; color: var(--ink); }
.experience { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.experience:last-child { border-bottom: 0; padding-bottom: 0; }
.experience-date { padding-top: 3px; color: var(--muted); font-family: var(--mono); font-size: 13px; line-height: 1.75; font-variant-numeric: tabular-nums; }
.experience-content h3 { font-size: 16px; line-height: 1.6; font-weight: 600; }
.experience-content h3 span { white-space: nowrap; }
.experience-content p { margin-top: 4px; color: var(--body); font-size: 15px; line-height: 1.85; }
.experience-content .experience-advisors { color: var(--muted); font-size: 14px; }
.experience-role span { margin-inline: 5px; color: #a3a9b3; }
.experience-advisors a { color: var(--accent); }
.experience-advisors a:hover { text-decoration: underline; }
.site-footer { margin-top: 70px; border-top: 1px solid var(--line); background: #f0f2f6; }
.footer-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.back-to-top { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.back-to-top:hover { color: var(--accent); }
.back-to-top .icon { font-size: 10px; }
.figure-dialog { width: min(1400px, calc(100% - 48px)); max-height: calc(100dvh - 48px); padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.figure-dialog::backdrop { background: rgba(21,25,32,.66); }
.figure-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px; }
.figure-dialog-header p { font-size: 14px; font-weight: 600; }
.icon-button { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.icon-button:hover { background: var(--accent-light); color: var(--accent); }
.figure-dialog-image { width: 100%; max-height: calc(100dvh - 170px); object-fit: contain; }

@media (max-width: 900px) {
  .header-inner, .site-main, .footer-inner { width: calc(100% - 64px); }
  .intro { grid-template-columns: minmax(0, 1fr) 176px; column-gap: 40px; padding-top: 48px; }
  .profile-art img { width: 176px; }
  h1 { font-size: 48px; }
  .research-focus { font-size: 18px; }
  .background { font-size: 16px; }
  .site-nav { gap: 20px; }
  .publication { grid-template-columns: 280px minmax(0, 1fr); gap: 25px; }
  .paper-content h3 { font-size: 16px; }
  .phd-notice { display: block; padding-right: 17px; }
  .notice-label { display: block; margin-bottom: 3px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 116px; }
  .header-inner, .site-main, .footer-inner { width: calc(100% - 40px); }
  .header-inner { display: block; padding-top: 16px; }
  .wordmark { display: inline-block; font-size: 22px; }
  .site-nav { justify-content: space-between; gap: 12px; margin-top: 5px; }
  .site-nav a { padding: 11px 0 13px; font-size: 13px; }
  .intro { grid-template-columns: minmax(0, 1fr) 88px; gap: 0 16px; padding-top: 36px; }
  .intro-copy { display: contents; }
  h1 { grid-column: 1; align-self: center; margin: 0 0 20px; font-size: 34px; }
  .profile-art { grid-column: 2; grid-row: 1; margin-bottom: 20px; }
  .profile-art img { width: 88px; border-radius: 4px; }
  .profile-art figcaption { margin-top: 6px; text-align: center; font-size: 10px; }
  .research-focus, .background, .contact-links { grid-column: 1 / -1; }
  .research-focus { font-size: 17px; line-height: 1.8; }
  .background { margin-top: 15px; font-size: 16px; }
  .contact-links { margin-top: 18px; gap: 22px; }
  .contact-links a { min-height: 44px; font-size: 14px; }
  .phd-notice { margin-top: 23px; padding: 13px 15px; font-size: 14px; }
  .content-section { padding-top: 39px; }
  .section-heading { padding-bottom: 16px; gap: 12px; }
  h2 { font-size: 28px; }
  .section-index { font-size: 10px; }
  .publication { grid-template-columns: 1fr; gap: 19px; padding: 25px 0; }
  .figure-zoom { opacity: 1; }
  .paper-meta { margin-bottom: 7px; }
  .paper-content h3 { font-size: 17px; line-height: 1.5; }
  .paper-authors { font-size: 14px; line-height: 1.8; }
  .experience { grid-template-columns: 1fr; gap: 7px; padding: 22px 0; }
  .experience-content h3 { font-size: 15px; }
  .experience-content p { font-size: 14px; }
  .experience-content .experience-advisors { font-size: 14px; }
  .site-footer { margin-top: 45px; }
  .footer-inner { min-height: 76px; font-size: 12px; }
  .figure-dialog { width: calc(100% - 24px); padding: 14px; }
  .figure-dialog-header { gap: 12px; margin-bottom: 14px; }
  .figure-dialog-header p { font-size: 12px; }
}

@media (max-width: 360px) {
  .intro { grid-template-columns: minmax(0, 1fr) 76px; gap: 0 12px; }
  .profile-art img { width: 76px; }
  h1 { font-size: 33px; }
  .contact-links { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .figure-zoom, .section-index, .figure-dialog { display: none; }
  .site-main { width: 100%; }
  .intro { padding-top: 0; }
  .content-section { padding-top: 30px; }
  .publication, .experience { break-inside: avoid; }
}
