:root {
  color-scheme: light;
  --paper: #f8f9fb;
  --surface: #ffffff;
  --header: #edf0f5;
  --nav-surface: #ffffff;
  --header-hover: #dbe3ef;
  --ink: #263242;
  --muted: #566273;
  --link: #215fc4;
  --accent: #174aa0;
  --line: #cbd3de;
  --tint: #edf0f5;
  --selection: #d8e4f1;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #181818;
  --surface: #202020;
  --header: #242424;
  --nav-surface: #303030;
  --header-hover: #3b4553;
  --ink: #f2f2f0;
  --muted: #cdcdca;
  --link: #8bb8ff;
  --accent: #bdd5ff;
  --line: #414141;
  --tint: #303030;
  --selection: #3a4e69;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--sans); }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--selection); }
h1, h2, h3, h4, p { margin: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 10px; background: var(--surface); z-index: 10; }
.skip-link:focus { top: 10px; }
.site-header { max-width: 1080px; margin: auto; padding: 16px 36px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.nav-shell { display: flex; align-items: center; gap: 0; padding: 0; background: var(--nav-surface); border-radius: 8px; }
nav { display: flex; align-items: center; font-size: 13px; }
nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); transition: background-color 180ms ease; }
nav a + a::before { content: ''; position: absolute; left: 0; top: 50%; height: 16px; border-left: 1px solid var(--line); transform: translateY(-50%); opacity: .8; }
nav a:first-child { padding-left: 20px; border-radius: 8px 0 0 8px; }
nav a:last-child { padding-right: 20px; border-radius: 0 8px 8px 0; }
nav a:hover, nav a:focus-visible { color: var(--muted); text-decoration: none; background: var(--header-hover); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; color: var(--muted); background: transparent; border: 0; border-radius: 4px; padding: 0; }
.icon-button:hover { color: var(--ink); }
.icon-button svg { width: 17px; height: 17px; stroke-width: 1.4; }
.moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }
main { max-width: 1080px; padding: 0 36px; margin: auto; }
.section-shell { padding: 44px 0; }
.hero { padding: 52px 0 44px; display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 48px; align-items: start; }
h1 { font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif; font-size: clamp(40px, calc(5vw + 2px), 54px); font-weight: 400; letter-spacing: -1.5px; line-height: 1.2; margin-bottom: 12px; }
.profile-role { margin-top: 18px; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.7; }
.role-prefix, .institution { display: inline-block; white-space: nowrap; }
.role-divider { margin: 0 5px; }
.hero-detail { margin-top: 0; color: var(--muted); font-size: 17px; max-width: 640px; }
.hero-detail a { text-decoration: underline; text-underline-offset: 3px; }
.portrait { display: block; width: calc(100% - 44px); height: auto; margin-left: auto; background: var(--tint); border: 1px solid var(--line); border-radius: 4px; }
.profile-contact { margin-top: 20px; font-size: 13px; }
.profile-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0; }
.profile-links > a, .email-reveal { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; color: var(--link); white-space: nowrap; }
.profile-links > a:hover, .email-reveal:hover { color: var(--accent); }
.email-reveal { padding: 0; border: 0; background: transparent; gap: 6px; font: inherit; }
.email-reveal[aria-expanded="true"] .disclosure-icon { transform: rotate(180deg); }
.email-result { position: absolute; top: calc(100% - 2px); left: 0; z-index: 2; width: max-content; max-width: min(420px, calc(100vw - 44px)); padding-top: 4px; }
.email-link { color: var(--link); font-size: inherit; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.email-fallback { color: var(--muted); margin-top: 8px; }
.section-heading { margin-bottom: 26px; }
h2 { font-size: 25px; line-height: 1.35; letter-spacing: -.5px; font-weight: 600; }
.section-description { margin-top: 12px; max-width: none; color: var(--muted); font-weight: 500; }
.research, .publications, .education, .experience { border-top: 1px solid var(--line); }
.research-item { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); gap: 44px; padding: 28px 0; }
.research-item + .research-item { border-top: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
.research-item:first-child { border-top: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
.card-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin-bottom: 10px; }
.card-top > .tag { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.card-top > .tag .metadata-separator { margin: 0; }
.tag { font-size: 13px; font-weight: 600; color: var(--ink); }
.research-actions { display: inline-flex; align-items: baseline; gap: 10px; margin-left: 0; }
.research-actions .metadata-separator { margin: 0; }
.research-heading h3 { color: var(--ink); font-size: 19px; line-height: 1.5; font-weight: 600; }
.research-body > p { color: var(--muted); margin-bottom: 10px; }
.card-bottom { padding-top: 6px; display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.card-actions { display: flex; align-items: baseline; }
.card-actions a { position: relative; }
.card-actions > [aria-hidden="true"] { margin: 0 18px; }
.text-link { font-size: 14px; }
.blue { color: var(--link); }
.link-icon { width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-text-link { display: inline-flex; align-items: center; gap: 6px; }
.heading-with-link { display: flex; justify-content: space-between; align-items: baseline; gap: 22px; }
.publication-list { list-style: none; padding: 0; margin: 0; }
.publication { padding: 22px 0; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 30px; }
.publication + .publication { border-top: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
.publication-year { font-size: 14px; color: var(--muted); }
.publication-venue { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.publication-venue-name { color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.publication-status { color: var(--muted); font-weight: 400; letter-spacing: 0; }
.publication h3 { font-size: 17px; font-weight: 600; line-height: 1.55; }
.publication-venue span { white-space: nowrap; }
.authors { font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 7px; }
.authors strong { font-weight: 600; color: var(--ink); }
.background-sections { display: flex; flex-direction: column; gap: 40px; }
.timeline-heading { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 24px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 34px; padding-bottom: 28px; }
.timeline > li::before { content: ''; position: absolute; top: 10px; bottom: -10px; left: 154px; width: 1px; background: var(--line); }
.timeline > li:last-child::before { display: none; }
.timeline > li::after { content: ''; position: absolute; top: 9px; left: 151px; width: 7px; height: 7px; border: 1px solid var(--link); border-radius: 50%; background: var(--paper); }
.timeline > li:last-child { padding-bottom: 0; }
.timeline-date { font-size: 13px; color: var(--muted); }
.timeline-content { max-width: 700px; }
.timeline h3, .timeline h4 { font-size: 17px; line-height: 1.5; font-weight: 600; }
.timeline p { color: var(--muted); font-size: 14px; font-weight: 400; margin-top: 6px; }
.timeline p .location { white-space: nowrap; }
.organization { color: var(--ink); font-weight: 500; }
.metadata-separator { margin: 0 5px; color: var(--muted); font-weight: 400; }
.experience-timeline { display: flex; flex-direction: column; gap: 34px; }
.timeline-phase { min-width: 0; }
.subsection-label { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.5; }
.subsection-label::after { content: ''; flex: 1; border-top: 1px dashed var(--line); }
.site-footer { max-width: 1080px; padding: 24px 36px 28px; margin: auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
@media (max-width: 850px) {
  .hero { grid-template-columns: minmax(0, 1fr) 170px; gap: 30px; }
  .research-item { gap: 28px; }
}
@media (max-width: 880px) {
  .site-header { position: relative; justify-content: flex-end; padding: 12px 22px; }
  .nav-shell { position: absolute; left: 50%; max-width: calc(100% - 44px); gap: 0; padding: 0; transform: translateX(-50%); }
  nav { font-size: 11px; }
  nav a { padding: 0 7px; }
  nav a:first-child { padding-left: 11px; }
  nav a:last-child { padding-right: 11px; }
  main { padding: 0 22px; }
  .section-shell { padding: 32px 0; }
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 36px; }
  h1 { font-size: 42px; text-align: center; }
  h1::after { margin-inline: auto; }
  .profile-role { text-align: left; white-space: nowrap; font-size: clamp(10px, 3.75vw, 14px); }
  .hero-detail { font-size: 16px; }
  .portrait { width: 140px; grid-row: 1; margin-inline: auto; }

  .research-item { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .publication { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; }
  .heading-with-link { flex-wrap: wrap; gap: 10px; }
  .timeline > li { grid-template-columns: 1fr; gap: 5px; padding-left: 22px; }
  .timeline > li::before { left: 3px; }
  .timeline > li::after { left: 0; }
  .timeline-heading { margin-bottom: 20px; }
  .site-footer { padding: 20px 22px 25px; }
  .profile-contact::before { margin-inline: auto; }
  .profile-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-links > .contact-label { grid-column: 1 / -1; }
  .profile-links > a, .profile-links > .email-contact { min-width: 0; width: 100%; }
  .profile-links > a { justify-content: center; }
  .profile-links > .email-contact { display: flex; align-items: flex-start; justify-content: center; }
  .email-reveal { width: auto; }
  .profile-links > .email-contact::before { visibility: visible; }
}
@media (max-width: 420px) {
  .profile-role { letter-spacing: -.1px; }
}

h1::after { content: ''; display: block; width: 52px; border-bottom: 1px solid var(--line); margin-top: 16px; }
.profile-contact::before { content: ''; display: block; width: 52px; border-top: 1px solid var(--line); margin-bottom: 12px; }
.contact-label { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0; white-space: nowrap; }
.profile-links > * { position: relative; padding-right: 16px; padding-left: 16px; }
.profile-links > :first-child { padding-left: 0; }
.profile-links > *::before { content: ''; position: absolute; left: 0; top: 16px; height: 12px; border-left: 1px solid var(--line); }
.profile-links > :first-child::before, .profile-links > [data-row-start]::before { visibility: hidden; }
.email-contact { position: relative; min-width: 0; max-width: 100%; }
.email-result { width: max-content; max-width: min(420px, calc(100vw - 44px)); padding-bottom: 6px; }
a:hover .external-tail, a:focus-visible .external-tail { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.external-tail { display: inline-flex; align-items: baseline; gap: 6px; }
.external-indicator { display: inline-block; width: 13px; height: 13px; flex: 0 0 13px; align-self: center; }
.collaborative-work { margin-top: 18px; padding-top: 24px; }
.collaborative-work > .subsection-label { margin-bottom: 4px; }
.anchor-alias { display: block; }
.course-list, .role-details { font-size: 14px; font-weight: 400; color: var(--muted); margin: 12px 0 0; padding-left: 18px; }
.course-list li, .role-details li { margin-bottom: 5px; }
@media (max-width: 880px) {
  .profile-links > * { padding-right: 12px; padding-left: 12px; }
  .profile-links > :first-child { padding-left: 0; }
}


.advisor-line { margin-top: 4px; font-size: 14px; line-height: 1.7; color: var(--muted); }

.profile-links > .contact-label + a { padding-left: 0; }
.profile-links > .contact-label + a::before { visibility: hidden; }

/* Preserve the original opening layout while navigation stays above the page. */
html { scroll-padding-top: calc(var(--header-height, 76px) + 12px); }
.header-space { height: 76px; }
.site-header { position: fixed; inset: 0 0 auto; width: 100%; z-index: 5; background: var(--header); }
.site-header::before { content: ''; position: absolute; inset: 0 calc((1080px - 100vw) / 2) 0; background: var(--header); box-shadow: inset 0 -1px var(--line); z-index: -1; pointer-events: none; }
.header-home { position: absolute; left: 36px; padding: 0; width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; top: 16px; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font-size: 14px; font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif; }
.header-home { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(4px); transition: background-color 180ms ease, opacity 240ms ease, transform 320ms cubic-bezier(.22, 1, .36, 1), visibility 0s 240ms; }
.header-home.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
.header-home:hover, .header-home:focus-visible { color: var(--ink); text-decoration: none; background: var(--header-hover); }
.header-initials { display: inline; }
@media (max-width: 1080px) { .site-header::before { inset-inline: 0; } }
@media (max-width: 880px) {
  .header-space { height: 68px; }
  .site-header { position: fixed; height: 68px; }
  .site-header .nav-shell { transform: translate3d(-50%, 0, 0); transition: transform 480ms cubic-bezier(.4, 0, .2, 1); will-change: transform; }
  .site-header.mobile-shifted .nav-shell { transform: translate3d(calc(-50% + var(--nav-shift, 0px)), 0, 0); }
  .site-header .theme-toggle { transform: translateY(calc(-1 * var(--page-scroll, 0px))); }
  .site-header.mobile-shifted .theme-toggle { visibility: hidden; pointer-events: none; }
  .header-home { top: 12px; left: 22px; padding: 0; width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; font-size: 14px; font-weight: 400; }
  .header-initials { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .nav-shell, .header-home, nav a { transition: none; }
  .header-home { transform: none; }
}

.concurrent-role + .concurrent-role { margin-top: 18px; }
.timeline > li.shared-roles::before { display: block; bottom: auto; height: var(--shared-line-height, 0px); }

.author-name { display: inline-block; white-space: nowrap; }

.publication-code { display: inline-flex; align-items: baseline; gap: 7px; }
.publication-code .metadata-separator { margin: 0; }

.scroll-destination:focus { outline: none; }
.site-header a { -webkit-tap-highlight-color: transparent; }
.site-header a:active { background: var(--header-hover); }
