@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/SpaceGrotesk-Variable.ttf") format("truetype");
}
:root {
  color-scheme: light;
  --page: #f8faf9;
  --surface: #ffffff;
  --ink: #202f2b;
  --text: #50605a;
  --muted: #68776f;
  --accent: #246950;
  --accent-hover: #164631;
  --line: #dfe6e1;
  --wash: #edf3ef;
  --badge-border: #bed7c8;
  --badge-bg: #eaf3ed;
  --header: #f8faf9f2;
  --focus: #327eb7;
  --heading-font: "Space Grotesk", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #151d1a;
    --surface: #1c2722;
    --ink: #e7eee8;
    --text: #b9c6bd;
    --muted: #9baea1;
    --accent: #99d0af;
    --accent-hover: #c7e8d3;
    --line: #314238;
    --wash: #20372b;
    --badge-border: #42634e;
    --badge-bg: #21382b;
    --header: #151d1af2;
    --focus: #83b9e1;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #151d1a;
  --surface: #1c2722;
  --ink: #e7eee8;
  --text: #b9c6bd;
  --muted: #9baea1;
  --accent: #99d0af;
  --accent-hover: #c7e8d3;
  --line: #314238;
  --wash: #20372b;
  --badge-border: #42634e;
  --badge-bg: #21382b;
  --header: #151d1af2;
  --focus: #83b9e1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; border-top: 3px solid var(--accent); background: var(--page); color: var(--text); font: 16px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 3px; }
button { font: inherit; }
button[hidden] { display: none; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); font-family: var(--heading-font); }
h1, h2 { line-height: 1.2; }
strong { color: var(--ink); font-weight: 650; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(980px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 20; padding: 10px 18px; background: var(--surface); }
.skip-link:focus { top: 15px; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header); backdrop-filter: blur(14px); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 68px; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font: 700 16px/1.2 var(--heading-font); letter-spacing: -.4px; }
.wordmark span { color: var(--accent); }
.wordmark:hover { text-decoration: none; }
.header-actions, nav { display: flex; align-items: center; }
.header-actions { gap: 24px; }
nav { gap: 25px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 600; padding-block: 12px; }
.theme-toggle { display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 6px 12px; min-height: 36px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.theme-toggle:hover { border-color: var(--badge-border); color: var(--accent); }
.sun-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 54px; align-items: center; padding: 60px 0 54px; border-bottom: 1px solid var(--line); }
h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-bottom: 22px; font-size: 52px; font-weight: 650; letter-spacing: -2px; }
h1 span { color: var(--muted); font: 400 22px/1.5 system-ui, sans-serif; letter-spacing: .8px; white-space: nowrap; }
.bio { margin-top: 13px; line-height: 1.8; }
.bio a { font-weight: 600; }
.contact-line { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 15px; }
.contact-line svg { flex-shrink: 0; color: var(--muted); }
.contact-line a { overflow-wrap: anywhere; }
.profile-photo { align-self: start; margin-top: 12px; }
.profile-photo img { width: 190px; aspect-ratio: 1/1.12; object-fit: cover; object-position: 50% 35%; border-radius: 12px; border: 1px solid var(--line); }
.profile-photo figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }
.profile-links, .paper-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.profile-links { margin-top: 15px; }
.button-link { display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 4px 12px; min-height: 31px; border: 1px solid var(--line); border-radius: 18px; color: var(--text); background: var(--surface); font-size: 13px; font-weight: 600; line-height: 1.4; }
.profile-links .button-link { min-height: 35px; font-size: 14px; }
a.button-link:hover { border-color: var(--badge-border); color: var(--accent); background: var(--wash); text-decoration: none; }
.pending-link { color: var(--muted); background: transparent; }
.orcid-icon { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: var(--surface); text-align: center; font-size: 10px; line-height: 16px; }
.section-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { flex-shrink: 0; font-size: 24px; letter-spacing: -.5px; font-weight: 650; }
.heading-rule { height: 1px; flex: 1; background: var(--line); }
.publications { padding-top: 43px; }
.publication { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 28px; padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.publication:first-child { padding-top: 0; }
.publication:last-child { border-bottom: 0; padding-bottom: 0; }
.publication-image { display: block; position: relative; width: 100%; aspect-ratio: 1/1; align-self: start; overflow: hidden; margin-top: 4px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.publication-image > img, .publication-image > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; overflow: hidden; }
.scalenav-cover { background: #e2eef6; }
.split4d-cover > svg { inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); }
.publication-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.venue { display: inline-block; padding: 2px 9px; border: 1px solid var(--badge-border); border-radius: 6px; background: var(--badge-bg); color: var(--accent); font-size: 12px; font-weight: 650; line-height: 1.5; }
.year { color: var(--muted); font-size: 13px; font-weight: 600; padding-inline: 2px; }
.publication h3 { font-size: 19px; font-weight: 650; line-height: 1.43; letter-spacing: -.25px; }
.publication h3 a { color: var(--ink); }
.publication h3 a:hover { color: var(--accent); }
.authors { font-size: 14px; line-height: 1.8; margin-top: 9px; }
.paper-summary { font-size: 15px; line-height: 1.7; margin-top: 9px; }
.paper-links { margin-top: 13px; }
.background { padding-top: 54px; }
.background + .background { padding-top: 28px; }
.background .section-heading { margin-bottom: 15px; }
.background-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.background-row:last-child { border-bottom: 0; }
.institution-mark { display: grid; place-items: center; width: 64px; height: 64px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.institution-mark > svg, .institution-mark > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.li-auto-mark { padding: 7px; }
.background-copy h3 { font-size: 17px; line-height: 1.45; font-weight: 650; letter-spacing: -.2px; }
.background-copy h3 a { color: var(--ink); }
.background-copy p { margin-top: 3px; font-size: 15px; }
.background-copy .background-detail { font-size: 14px; color: var(--muted); margin-top: 4px; }
.background-date { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; align-self: start; padding-top: 4px; }
footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 40px; padding: 25px 0 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
footer p:first-child { font-size: 14px; color: var(--text); }
footer p:first-child span { font-size: 12px; margin-left: 6px; color: var(--muted); }
footer a { color: var(--muted); }
.footer-separator { padding-inline: 8px; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 48px); }
  .about { grid-template-columns: minmax(0, 1fr) 155px; gap: 30px; padding-top: 45px; }
  h1 { font-size: 43px; letter-spacing: -1.5px; }
  h1 span { font-size: 19px; }
  .profile-photo img { width: 155px; }
  .publication { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
  .header-actions { gap: 17px; }
  nav { gap: 19px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 112px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { position: relative; flex-wrap: wrap; gap: 0; padding-top: 18px; }
  .wordmark { font-size: 17px; padding-bottom: 2px; }
  .header-actions { flex-basis: 100%; justify-content: space-between; }
  nav { width: 100%; justify-content: space-between; gap: 8px; }
  nav a { font-size: 13px; padding-block: 12px; }
  .theme-toggle { position: absolute; right: 0; top: 12px; min-height: 30px; padding: 4px 10px; }
  .about { grid-template-columns: minmax(0, 1fr) 92px; gap: 0 18px; padding: 33px 0 34px; align-items: start; }
  .about-copy { display: contents; }
  h1 { display: block; grid-column: 1; grid-row: 1; align-self: center; font-size: 38px; margin-bottom: 0; letter-spacing: -1.3px; line-height: 1.15; }
  h1 span { display: block; font-size: 18px; margin-top: 8px; }
  .profile-photo { grid-column: 2; grid-row: 1; margin-top: 0; }
  .profile-photo img { width: 92px; aspect-ratio: 1/1; border-radius: 9px; }
  .profile-photo figcaption { display: none; }
  .bio { grid-column: 1/-1; font-size: 15px; line-height: 1.8; margin-top: 13px; }
  .bio:first-of-type { margin-top: 23px; }
  .contact-line { grid-column: 1/-1; }
  .profile-links { grid-column: 1/-1; margin-top: 15px; gap: 7px; }
  .profile-links .button-link { font-size: 13px; padding-inline: 11px; }
  .publications { padding-top: 30px; }
  .section-heading { gap: 14px; margin-bottom: 23px; }
  .section-heading h2 { font-size: 22px; }
  .publication { grid-template-columns: 1fr; gap: 18px; padding-block: 25px; }
  .publication-image { width: 100%; margin-top: 0; }
  .publication h3 { font-size: 20px; line-height: 1.4; }
  .authors { font-size: 14px; }
  .paper-links .button-link { min-height: 34px; }
  .background { padding-top: 38px; }
  .background-row { grid-template-columns: 50px minmax(0, 1fr); gap: 5px 15px; padding-block: 21px; }
  .institution-mark { width: 48px; height: 48px; align-self: start; margin-top: 2px; grid-row: span 2; }
  .background-copy h3 { font-size: 16px; }
  .background-copy p { font-size: 14px; }
  .background-date { grid-column: 2; text-align: left; padding-top: 0; }
  footer { align-items: flex-start; flex-direction: column; gap: 7px; margin-top: 25px; padding-top: 20px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .about { grid-template-columns: minmax(0, 1fr) 78px; column-gap: 12px; }
  h1 { font-size: 32px; }
  .profile-photo img { width: 78px; }
  .section-heading h2 { font-size: 20px; }
  nav { gap: 6px; }
  nav a { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .skip-link, .theme-toggle, .profile-photo figcaption, footer { display: none; }
  :root, :root[data-theme] { --page: white; --ink: black; --text: #333; --muted: #555; --accent: #164631; --line: #ddd; --wash: #f4f4f4; --surface: white; --badge-bg: white; --badge-border: #bbb; }
  .wrap { width: 100%; }
  body { font-size: 12px; border-top: 0; }
  .about { padding-top: 0; }
  .publication, .background-row { break-inside: avoid; }
}
