:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #202938;
  --muted: #667080;
  --line: #e3e7ec;
  --accent: #2165d3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
img { max-width: 100%; display: block; }
strong { font-weight: 650; color: var(--ink); }
::selection { background: #dbe8ff; color: var(--ink); }

.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; top: -60px; left: 20px; padding: 8px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-name { text-decoration: none; font-size: 16px; font-weight: 700; white-space: nowrap; }
.site-nav { display: flex; gap: 30px; flex-wrap: nowrap; }
.site-nav a { font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); align-items: center; gap: 40px; min-height: 340px; padding-block: 46px 52px; }
.affiliation { margin: 0 0 13px; color: var(--muted); font-size: 14px; }
.intro h1 { margin: 0; font-size: clamp(42px, 4.6vw, 56px); font-weight: 650; line-height: 1.2; }
.position { margin: 15px 0 10px; font-size: 16px; font-weight: 600; }
.intro-lead { max-width: 35ch; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.scholar-link { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 18px; color: var(--accent); font-size: 14px; text-decoration: underline; text-decoration-color: #a8c0ed; text-underline-offset: 4px; }
.scholar-link:hover { text-decoration-color: currentColor; }
.intro-visual { display: flex; justify-content: flex-end; align-items: center; }
.intro-visual img { width: min(100%, 360px); height: auto; }

.content-shell { width: min(960px, calc(100% - 64px)); padding-top: 44px; border-top: 1px solid var(--line); }

.section { padding-bottom: 58px; scroll-margin-top: 30px; }
.section + .section { padding-top: 46px; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: 23px; font-weight: 650; line-height: 1.35; }
.about p { max-width: 66ch; margin: 0; font-size: 16px; line-height: 2; }
.about p + p { margin-top: 16px; }

.publication-list, .patent-list { margin: 0; padding: 0; list-style: none; }
.publication { padding: 0 0 28px; }
.publication + .publication { padding-top: 27px; border-top: 1px solid var(--line); }
.publication h3 { margin: 0 0 7px; font-size: 18px; line-height: 1.45; font-weight: 650; overflow-wrap: anywhere; }
.paper-link { display: inline-block; margin-left: 6px; color: var(--accent); font-size: .85em; font-weight: 500; text-decoration: none; white-space: nowrap; }
.paper-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.publication p { margin: 0; font-size: 15px; line-height: 1.7; }
.publication .authors { color: var(--muted); }
.publication .venue { color: var(--accent); font-weight: 500; }

.patent-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 17px 0 18px; border-top: 1px solid var(--line); }
.patent-year { padding-top: 3px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.patent-list h3 { margin: 0 0 4px; font-size: 15px; line-height: 1.65; font-weight: 550; overflow-wrap: anywhere; }
.patent-list p { margin: 0; color: var(--accent); font-size: 12px; letter-spacing: 0; font-variant-numeric: tabular-nums; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }
.footer-inner a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.footer-inner a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 36px, 520px); }
  .header-inner { min-height: 62px; }
  .site-nav { gap: 19px; }
  .site-nav a { font-size: 13px; }
  .intro { display: block; min-height: 0; padding-block: 42px 30px; }
  .affiliation { margin-bottom: 13px; font-size: 13px; }
  .intro h1 { font-size: 45px; }
  .intro-lead { font-size: 16px; }
  .intro-visual { margin-top: 15px; justify-content: center; }
  .intro-visual img { width: min(100%, 300px); }
  .content-shell { width: min(100% - 36px, 520px); padding-top: 34px; }
  .section { padding-bottom: 45px; }
  .section + .section { padding-top: 39px; }
  .section-heading { margin-bottom: 21px; }
  .section-heading h2 { font-size: 21px; }
  .about p { font-size: 15px; line-height: 1.95; }
  .publication h3 { font-size: 16px; }
  .paper-link { font-size: .85em; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; padding-block: 20px; }
}

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

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
