@font-face { font-family:"Source Sans 3"; font-style:normal; font-weight:400; font-display:swap; src:url("fonts/source-sans-3-regular.ttf") format("truetype"); }
@font-face { font-family:"Source Sans 3"; font-style:normal; font-weight:700; font-display:swap; src:url("fonts/source-sans-3-bold.ttf") format("truetype"); }
:root { color-scheme:light; --bg:#fff; --ink:#171717; --muted:#555; --focus:#255a8a; }
:root[data-theme="dark"] { color-scheme:dark; --bg:#191919; --ink:#eee; --muted:#bbb; --focus:#a1c9ec; }
@media(prefers-color-scheme:dark) { :root:not([data-theme="light"]) { color-scheme:dark; --bg:#191919; --ink:#eee; --muted:#bbb; --focus:#a1c9ec; } }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:"Source Sans 3",Arial,Helvetica,sans-serif; font-size:1rem; line-height:1.3; }
a { color:inherit; text-decoration:none; }
a:hover { text-decoration:none; }
#main a:is(:hover,:focus-visible) { color:var(--muted); }
:focus-visible { outline:2px solid var(--focus); outline-offset:4px; }
.shell { max-width:1280px; padding:64px 72px; margin:0 auto; }
.layout { display:grid; grid-template-columns:280px minmax(0,1fr); gap:64px; }
.profile { align-self:start; }
.portrait { width:260px; height:260px; margin:0 auto; display:block; object-fit:cover; border-radius:50%; }
h1 { font-size:1.25rem; font-weight:400; margin:16px 0; width:280px; text-align:center; }
h1 strong { display:block; white-space:nowrap; font-weight:700; }
.social { display:flex; flex-wrap:wrap; gap:8px 14px; font-size:.875rem; color:var(--muted); }
.theme-wrap { margin:0; flex:none; }
#theme { width:36px; height:36px; display:grid; place-items:center; padding:7px; margin:0; border:0; background:transparent; color:var(--muted); cursor:pointer; border-radius:50%; }
#theme:hover { color:var(--ink); }
#theme svg { width:22px; height:22px; grid-area:1 / 1; }
#theme .sun { display:none; }
#theme[data-mode="dark"] .sun { display:block; }
#theme[data-mode="dark"] .moon { display:none; }
.bio p { margin:0 0 16px; }
.bio strong { font-weight:400; }
.research { margin-top:36px; }
.group-title { font-size:1.25rem; line-height:1.3; margin:0 0 18px; font-weight:700; }
.paper-group + .paper-group { margin-top:36px; }
.paper + .paper { margin-top:24px; }
.paper h3 { font-size:1rem; font-weight:700; line-height:1.3; margin:0; }
.coauthors { margin:0; }
.paper-actions { display:flex; align-items:baseline; gap:8px; }
details { width:100%; }
summary { cursor:pointer; list-style:none; display:inline; }
summary::-webkit-details-marker { display:none; }
summary:hover { color:var(--muted); text-decoration:none; }
.abstract { margin:14px 0; line-height:1.4; }
.abstract p { margin:0 0 12px; }
.media { font-size:1rem; line-height:1.5; margin-top:8px; color:var(--muted); }
.media p { display:inline; margin:0; }
.media a { white-space:nowrap; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip { position:absolute; top:-100px; left:16px; background:var(--bg); padding:8px; }
.skip:focus { top:16px; }
@media(max-width:900px) { .shell { padding:40px 32px; } .layout { grid-template-columns:220px minmax(0,1fr); gap:40px; } .portrait { width:205px; height:205px; } h1 { width:220px; } }
@media(max-width:650px) { .shell { padding:28px 24px 44px; } .layout { display:block; } .profile { margin-bottom:36px; text-align:center; } .portrait { width:185px; height:185px; margin:0 auto; } h1 { width:auto; font-size:1.5rem; margin:18px auto; } .social { max-width:320px; justify-content:center; margin:0 auto; } #theme { margin:0 auto; } .research { margin-top:30px; } }
@media print { .theme-wrap,.social { display:none; } body { background:#fff; color:#000; } .shell { padding:0; } .layout { grid-template-columns:180px 1fr; gap:32px; } .portrait { width:180px; height:180px; } h1 { width:180px; } }
/* Simple page navigation and profile icons. */
.navigation-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:28px; }
.site-nav { display:flex; flex-wrap:wrap; align-items:center; gap:24px; margin:0; }
.site-nav a, .site-nav a:visited, .site-nav a:hover, .site-nav a:focus, .site-nav a:active, .site-nav a[aria-current="page"] { font-family:inherit; font-size:1.125rem; font-weight:400; font-style:normal; line-height:1.3; letter-spacing:normal; padding:6px 0; border-bottom:2px solid transparent; text-decoration:none; }
.site-nav a[aria-current="page"] { border-bottom-color:currentColor; text-decoration:none; }
h1 { font-size:1.5rem; line-height:1.3; }
.social { gap:6px; margin:0; justify-content:center; }
.social a { display:inline-flex; width:36px; height:36px; align-items:center; justify-content:center; }
.social a:hover { color:var(--ink); }
.social-icon { width:21px; height:21px; fill:currentColor; }
.page-title { font-size:1.5rem; line-height:1.3; margin:0 0 24px; }
.page-copy h3 { font-size:1.125rem; margin:30px 0 12px; }
.page-copy h3:first-child { margin-top:0; }
.page-copy p { margin:0 0 14px; line-height:1.45; }
.page-copy a,.document-links a { text-decoration:none; }
.document-links { margin:0 0 20px; }
.cv-viewer { display:block; width:100%; height:800px; border:0; background:white; }
@media(max-width:650px) { .site-nav { justify-content:center; } .social { margin:0 auto; } .cv-viewer { height:65vh; } }
@media print { .site-nav { display:none; } }

@media(max-width:900px) { .social { gap:0; } .site-nav { gap:16px; } }
@media(max-width:650px) { .social { gap:6px; } }

.social a[aria-label="Email"] { color:#255a8a; }
:root[data-theme="dark"] .social a[aria-label="Email"] { color:#fdb515; }
@media(prefers-color-scheme:dark) { :root:not([data-theme="light"]) .social a[aria-label="Email"] { color:#fdb515; } }
@media(max-width:650px) {
  .layout { display:flex; flex-direction:column; gap:0; }
  .content-column { display:contents; }
  .navigation-row { order:0; margin-bottom:28px; display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:0; }
  .site-nav { grid-column:2; gap:12px; flex-wrap:nowrap; }
  .theme-wrap { grid-column:3; justify-self:end; }
  .profile { order:1; align-self:stretch; }
  #main { order:2; }
}

@media(max-width:350px) { .site-nav { gap:8px; } }

.site-nav a:hover { text-decoration:none; }
.site-nav a:not([aria-current="page"]):is(:hover,:focus-visible) { color:var(--muted); }
.social { align-items:center; }
.social a { line-height:0; }
.social-icon { display:block; flex:none; }
.social a[aria-label="Email"] .social-icon { height:auto; }
.paper-actions { flex-wrap:wrap; }
.paper-toggle { appearance:none; border:0; padding:0; margin:0; background:none; color:inherit; font:inherit; cursor:pointer; }
.paper-toggle:is(:hover,:focus-visible) { color:var(--muted); text-decoration:none; }
.paper-toggle[aria-expanded="true"] { color:var(--muted); text-decoration:none; }
.slides-pending { color:var(--muted); cursor:default; }
.paper-panel[hidden] { display:none; }
.paper-panel { margin:14px 0 0; }

/* Brand accents on interaction; the email keeps its own theme-aware accent. */
.social a[aria-label="GitHub"]:is(:hover,:focus-visible) { color:var(--ink); }
.social a[aria-label="Google Scholar"]:is(:hover,:focus-visible) { color:#4285f4; }
.social a[aria-label="LinkedIn"]:is(:hover,:focus-visible) { color:#0a66c2; }
.social a[aria-label="Twitter"]:is(:hover,:focus-visible) { color:#1da1f2; }
.social a[aria-label="Bluesky"]:is(:hover,:focus-visible) { color:#0085ff; }
