:root {
  color-scheme: light;
  --font-text: "SF Pro Text", "SF Pro", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-display: "SF Pro Display", "SF Pro", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --background: #f5f5f7;
  --surface: #fff;
  --nav-background: rgba(255, 255, 255, .88);
  --control-hover: #e8e8ed;
  --ink: #1d1d1f;
  --heading: #1d1d1f;
  --link: #0066cc;
  --link-hover: #004f9e;
  --muted: #626267;
  --line: #d2d2d7;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #000;
  --surface: #151516;
  --nav-background: rgba(21, 21, 22, .88);
  --control-hover: #2c2c2e;
  --ink: #f5f5f7;
  --heading: #f5f5f7;
  --link: #66b3ff;
  --link-hover: #a6d3ff;
  --muted: #a1a1a6;
  --line: #38383b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.015em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; text-underline-offset: 4px; }
a:hover { color: var(--link-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--link); outline-offset: 5px; border-radius: 4px; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 8px 16px; background: var(--surface); z-index: 20; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--nav-background); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.navigation { display: flex; align-items: center; justify-content: flex-end; gap: 30px; max-width: 1100px; min-height: 68px; margin: 0 auto; padding: 10px 32px; }
.navigation a { color: var(--muted); font-size: 13px; letter-spacing: -.01em; }
.navigation a[aria-current="location"] { color: var(--heading); font-weight: 600; }
.navigation a:hover { color: var(--link); text-decoration: none; }
.theme-toggle { appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; padding: 10px; border: 0; border-radius: 50%; background: var(--background); color: var(--heading); cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: var(--control-hover); }
.theme-toggle svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.theme-toggle .sun-icon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 64px; width: 100%; max-width: 1100px; margin: 0 auto; padding: 64px 32px 96px; }
.profile { position: sticky; top: 108px; text-align: center; }
.profile-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.profile-copy { min-width: 0; }
.profile-name { margin: 0 0 14px; font-family: var(--font-display); font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.03em; }
.profile-name a { color: var(--heading); }
.profile-name a:hover { text-decoration: none; }
.affiliation { margin: 0; color: var(--muted); font-family: var(--font-text); font-size: 16px; line-height: 1.5; letter-spacing: -.015em; }
.institution { display: block; margin-top: 10px; color: var(--muted); font-family: var(--font-text); font-size: 15px; letter-spacing: -.01em; }
.profile-links { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 16px; }
.profile-links a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); }
.profile-links a:hover { color: var(--link); }
.profile-links svg { width: 18px; height: 18px; }
.portrait-link { display: block; border-radius: 50%; }
.portrait { display: block; width: 180px; height: 180px; max-width: 100%; border-radius: 50%; object-fit: cover; }
.content { min-width: 0; width: 100%; }
main { min-width: 0; }
h1, h2, h3 { color: var(--heading); font-family: var(--font-display); }
.page-title { margin: 0 0 36px; font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: -.035em; }
h2 { margin: 0 0 28px; font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
p { margin: 0 0 20px; }
.biography { margin-bottom: 32px; padding: 32px; border-radius: 24px; background: var(--surface); line-height: 1.7; }
.biography p { margin-bottom: 24px; }
.biography p:last-child { margin-bottom: 0; }
.publication-section { margin-bottom: 28px; padding: 32px; border-radius: 24px; background: var(--surface); }
.publication-section h2 { margin-bottom: 34px; }
.publication-list { list-style: none; padding: 0; margin: 0; }
.publication { margin: 0; padding: 26px 0; border-top: 1px solid var(--line); }
.publication:first-child { padding-top: 0; border-top: 0; }
.publication:last-child { padding-bottom: 0; }
.publication h3 { margin: 0 0 10px; max-width: 850px; font-size: 21px; line-height: 1.3; font-weight: 500; letter-spacing: -.02em; }
.publication p { margin: 0; font-size: 15px; line-height: 1.6; letter-spacing: -.01em; }
.publication .venue { margin-top: 3px; color: var(--muted); font-style: normal; }
.publication strong { font-weight: 600; }
.publication-note { margin: 24px 4px 0; color: var(--muted); font-size: 13px; }

@media (max-width: 850px) {
  .layout { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 48px 24px 72px; }
  .portrait { width: 150px; height: 150px; }
  .profile-name { font-size: 25px; }
}
@media (max-width: 620px) {
  .navigation { min-height: 60px; gap: 22px; padding: 10px 22px; }
  .layout { display: block; max-width: 600px; padding: 36px 20px 64px; }
  .profile { position: static; margin-bottom: 40px; }
  .profile-inner { gap: 20px; }
  .portrait { width: 120px; height: 120px; }
  .profile-name { font-size: 28px; }
  .page-title { margin-bottom: 28px; font-size: 32px; }
  .biography { padding: 28px 24px; border-radius: 20px; }
  h2 { font-size: 25px; }
  .publication-section { padding: 28px 24px; border-radius: 20px; }
  .publication h3 { font-size: 19px; }
  .publication p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  :root, :root[data-theme="dark"] { color-scheme: light; --background: #fff; --surface: #fff; --ink: #1d1d1f; --heading: #1d1d1f; --link: #0066cc; --muted: #626267; --line: #d2d2d7; }
  .site-header, .skip-link { display: none; }
  .layout { display: block; padding: 0; }
  .profile { position: static; margin-bottom: 24px; }
  .profile-inner { gap: 16px; }
  .profile-name { font-size: 28px; }
  .affiliation { font-size: 18px; }
  .portrait { width: 100px; height: 100px; }
  .content { padding: 24px 0; }
  .publication-section { padding: 0; }
  .publication { break-inside: avoid; }
}
