:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f7f8f7;
  --heading: #11161c;
  --text: #1f262e;
  --text-secondary: #47525d;
  --muted: #525e6a;
  --forest: #1c5442;
  --forest-hover: #133b2e;
  --forest-tint: #eef5f2;
  --forest-border: #bcd3c9;
  --slate: #1e4e79;
  --slate-hover: #143757;
  --slate-tint: #eff4f9;
  --slate-border: #c0d2e3;
  --terracotta: #9a4626;
  --terracotta-hover: #7a3419;
  --terracotta-tint: #fbf2ee;
  --terracotta-border: #e2c3b6;
  --line: #e2e6ea;
  --line-strong: #cdd4dc;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { font-family: var(--font-sans); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text); background: var(--bg); }
a { color: var(--slate); text-decoration-color: rgba(30, 78, 121, 0.36); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.15s ease, text-decoration-color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
a:hover { color: var(--slate-hover); text-decoration-color: var(--slate-hover); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--slate); outline-offset: 4px; border-radius: 2px; }
svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.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-link { position: absolute; left: 20px; top: -100px; z-index: 10; padding: 12px 18px; background: var(--bg); color: var(--forest); font-weight: 600; border: 1px solid var(--line-strong); border-radius: 4px; }
.skip-link:focus { top: 8px; }

.masthead { position: relative; border-bottom: 1px solid var(--line); background: var(--bg); }
.masthead::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--forest) 0%, var(--slate) 55%, var(--terracotta) 100%); }
.nav { max-width: 1080px; margin: 0 auto; padding: 20px 32px; display: flex; align-items: center; gap: 36px; min-height: 74px; }
.nav a { color: var(--text-secondary); text-decoration: none; font-size: 16px; font-weight: 500; line-height: 1.5; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav .site-title { font-family: var(--font-serif); font-optical-sizing: auto; font-size: 21px; font-weight: 700; color: var(--heading); letter-spacing: -0.015em; margin-right: 10px; border-bottom: none; padding: 0; }
.nav a:hover { color: var(--forest); text-decoration: none; }
.nav a[aria-current="page"]:not(.site-title) { color: var(--forest); font-weight: 600; border-bottom-color: var(--forest); }

.layout { width: 100%; max-width: 1080px; margin: 0 auto; padding: 48px 32px 80px; display: grid; grid-template-columns: 235px minmax(0, 717px); column-gap: 64px; flex: 1; align-content: start; }
.profile { font-size: 14.5px; line-height: 1.55; position: sticky; top: 36px; align-self: start; }
.portrait { display: block; width: 176px; height: 176px; border-radius: 50%; border: 2px solid #ffffff; box-shadow: 0 0 0 2px var(--forest-border), 0 6px 18px rgba(17, 22, 28, 0.08); object-fit: cover; margin: 0 0 20px; }
.profile-name { font-family: var(--font-serif); font-optical-sizing: auto; margin: 0 0 4px; font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--heading); letter-spacing: -0.015em; }
.profile-role { margin: 0; font-weight: 600; color: var(--forest); }
.profile-affiliation { margin: 2px 0 18px; color: var(--text-secondary); }
.profile-links { padding: 14px 0 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.profile-links li { margin: 0; }
.profile-links a, .profile-location { display: flex; align-items: center; gap: 10px; min-height: 34px; text-decoration: none; }
.profile-location { padding: 5px 0; color: var(--text-secondary); }
.profile-links a { padding: 5px 8px; margin: 0 -8px; border-radius: 6px; color: var(--text); font-weight: 450; }
.profile-links a:hover { background: var(--slate-tint); color: var(--slate); text-decoration: none; }
.profile-links svg { color: var(--muted); transition: color 0.15s ease; }
.profile-location svg { color: var(--terracotta); }
.profile-links a:hover svg { color: var(--slate); }
.profile-links .scholar-icon { fill: currentColor; stroke: none; }

.page { min-width: 0; font-size: 17px; line-height: 1.72; color: var(--text); }
.page p { margin: 0 0 22px; }
.page p:last-child { margin-bottom: 0; }
.home-page { padding-top: 4px; color: #000000; }
.page h1 { font-family: var(--font-serif); font-optical-sizing: auto; font-size: 30px; line-height: 1.28; margin: 0 0 28px; color: var(--heading); letter-spacing: -0.02em; }
.page h2 { font-family: var(--font-serif); font-optical-sizing: auto; font-size: 24px; font-weight: 700; line-height: 1.32; color: var(--heading); letter-spacing: -0.015em; margin: 48px 0 24px; border-bottom: 1.5px solid var(--line); padding-bottom: 10px; position: relative; }
.page h2::after { content: ""; position: absolute; left: 0; bottom: -1.5px; width: 44px; height: 2px; background: var(--forest); }
#abstracts::after { background: var(--terracotta); }
#talks::after { background: var(--slate); }
#service::after { background: var(--forest); }
.page h1 + h2, .page h2:first-child { margin-top: 0; }

.paper { margin: 0 0 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.paper:has(+ h2), .paper:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.paper h3 { font-family: var(--font-serif); font-optical-sizing: auto; font-size: 19.5px; line-height: 1.4; letter-spacing: -0.01em; margin: 0 0 8px; font-weight: 600; color: var(--heading); }
.paper h3 a { color: var(--heading); text-decoration: none; }
.paper h3 a:hover { color: var(--slate); text-decoration: underline; text-decoration-color: rgba(30, 78, 121, 0.45); }
.paper .authors { font-size: 15px; line-height: 1.62; color: var(--text-secondary); margin: 0 0 10px; }
.paper .authors strong, .talk p strong, .service-list strong { color: var(--heading); font-weight: 600; }
.paper ul { padding-left: 19px; margin: 0 0 12px; font-size: 15.5px; line-height: 1.6; color: var(--text); }
.paper ul li { margin-bottom: 4px; }
.paper ul li:last-child { margin-bottom: 0; }
.paper ul li::marker { color: var(--terracotta); }
.service-list li::marker { color: var(--forest); }
.paper-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.paper-links a { display: inline-flex; align-items: center; padding: 3px 11px; font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--slate); background: var(--bg); border: 1px solid var(--slate-border); border-radius: 5px; text-decoration: none; }
.paper-links a:hover { background: var(--slate); border-color: var(--slate); color: #ffffff; text-decoration: none; }
.paper-links a[href*="/pdf/"] { color: var(--terracotta); border-color: var(--terracotta-border); }
.paper-links a[href*="/pdf/"]:hover { background: var(--terracotta); border-color: var(--terracotta); color: #ffffff; }
.paper-links a[href*="pubmed"] { color: var(--forest); border-color: var(--forest-border); }
.paper-links a[href*="pubmed"]:hover { background: var(--forest); border-color: var(--forest); color: #ffffff; }

.section-intro { color: var(--text-secondary); font-size: 16px; }
.talk { margin-bottom: 22px; }
.talk:has(+ h2), .talk:last-child { margin-bottom: 0; }
.talk h3 { font-family: var(--font-serif); font-optical-sizing: auto; font-size: 18px; line-height: 1.45; font-weight: 600; color: var(--heading); margin: 0 0 5px; }
.talk p { font-size: 15.5px; line-height: 1.6; color: var(--text); margin: 0 0 2px; }
.talk p:last-child { color: var(--text-secondary); font-size: 14.5px; margin-bottom: 0; }
.service-list { padding-left: 19px; margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--text); }
.service-list li { margin-bottom: 12px; }
.service-list li:last-child { margin-bottom: 0; }

.footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--text-secondary); font-size: 13.5px; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 24px 32px 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 10px; }
.footer a { color: var(--text-secondary); text-decoration: none; font-weight: 500; }
.footer a:hover { color: var(--forest); text-decoration: underline; }
.footer p { margin: 0; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 205px minmax(0, 1fr); column-gap: 40px; }
  .profile-name { font-size: 20px; }
  .page { font-size: 16.5px; }
}
@media (max-width: 720px) {
  .nav { padding: 18px 22px; gap: 24px; min-height: 68px; flex-wrap: wrap; }
  .nav a { font-size: 15.5px; }
  .nav .site-title { font-size: 20px; margin-right: auto; }
  .layout { display: block; padding: 28px 22px 48px; }
  .profile { position: static; display: grid; grid-template-columns: 105px minmax(0, 1fr); column-gap: 20px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .portrait { width: 105px; height: 105px; margin: 0; grid-column: 1; grid-row: 1 / span 2; }
  .profile-text { grid-column: 2; }
  .profile-name { font-size: 20px; }
  .profile-affiliation { margin-bottom: 4px; }
  .profile-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 16px; padding-top: 14px; }
  .profile-links li:first-child { width: 100%; }
  .profile-links a { margin: 0; padding: 5px 8px; min-height: 36px; }
  .profile-location { min-height: 36px; }
  .home-page { padding-top: 0; }
  .page { font-size: 16.5px; line-height: 1.68; }
  .page h1 { font-size: 27px; margin-bottom: 24px; }
  .page h2 { font-size: 22px; margin-top: 38px; }
  .paper h3 { font-size: 18.5px; }
  .footer-inner { padding: 22px; }
}
@media (max-width: 380px) {
  .nav { gap: 18px; }
  .nav .site-title { flex-basis: 100%; }
  .profile { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .portrait { width: 88px; height: 88px; }
}
@media print {
  .masthead, .profile, .footer, .skip-link { display: none; }
  .layout { display: block; padding: 0; max-width: none; }
  .page { font-size: 11pt; color: #000000; }
  .page h2::after { display: none; }
  .paper { break-inside: avoid; border-bottom-color: #cccccc; }
  .paper-links a { border-color: #999999; color: #000000; }
  a { color: inherit; }
}
