@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: Lora;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-latin.woff2') format('woff2');
}
:root {
  color-scheme: light;
  --bg: #faf9f6;
  --ink: #252e2b;
  --body: #49514c;
  --muted: #69736c;
  --accent: #226253;
  --line: #dedfd7;
  --soft: #eaf0e9;
  --portrait-border: #e9e8e1;
  --header-bg: rgba(250, 249, 246, 0.96);
  --serif: Lora, Georgia, 'Times New Roman', serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #17211e;
  --ink: #edf0e9;
  --body: #c2ccc4;
  --muted: #9daea2;
  --accent: #a0d6bc;
  --line: #34413a;
  --soft: #243b31;
  --portrait-border: #445047;
  --header-bg: rgba(23, 33, 30, 0.96);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; background: var(--bg); color: var(--body); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--soft); color: var(--accent); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
button { font: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; background: var(--ink); color: var(--bg); padding: 12px 20px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--header-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { max-width: 1140px; min-height: 76px; margin: auto; display: flex; align-items: center; gap: 32px; }
.site-name { margin-right: auto; color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; letter-spacing: -0.4px; }
.site-name span { color: var(--accent); }
.site-nav { display: flex; gap: 27px; }
.site-nav a { display: flex; min-height: 44px; align-items: center; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); }
.site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 8px; }
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-sun, [data-theme='dark'] .theme-moon { display: none; }
[data-theme='dark'] .theme-sun { display: block; }
.home-grid { display: grid; grid-template-columns: 224px minmax(0, 1fr); column-gap: 88px; max-width: 1140px; margin: 68px auto 88px; }
.profile { position: sticky; top: 128px; align-self: start; }
.profile-photo { display: block; width: 184px; height: 184px; object-fit: cover; border: 1px solid var(--portrait-border); border-radius: 12px; }
.profile h1 { margin: 24px 0 9px; font: 500 38px/1.15 var(--serif); letter-spacing: -1.6px; }
.profile-role { color: var(--ink); font-size: 14px; font-weight: 500; }
.profile-university { margin-top: 5px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.profile-links { margin-top: 24px; font-size: 13px; }
.email-link { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.social-links { display: grid; gap: 1px; margin-top: 12px; }
.social-links a { display: flex; align-items: center; justify-content: space-between; max-width: 157px; min-height: 34px; color: var(--body); text-decoration: none; }
.social-links a span { color: var(--muted); font-size: 13px; }
.social-links a:hover { color: var(--accent); }
.cv-link { display: flex; justify-content: space-between; align-items: center; max-width: 184px; min-height: 44px; margin-top: 21px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; font-weight: 500; text-decoration: none; }
.cv-link:hover { background: var(--soft); text-decoration: none; border-color: var(--accent); }
.home-content { min-width: 0; }
.eyebrow { font: 600 11px/1.5 var(--sans); letter-spacing: 1.9px; text-transform: uppercase; color: var(--accent); margin: 0 0 19px; }
.intro, .background { max-width: 720px; font-size: 16px; line-height: 1.85; }
.about-section p + p { margin-top: 14px; }
.intro a, .background a { text-decoration-color: var(--line); }
.intro a:hover, .background a:hover { text-decoration-color: var(--accent); }
.content-section { margin-top: 52px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.section-heading h2 { font: 500 26px/1.3 var(--serif); letter-spacing: -0.65px; }
.section-link { flex-shrink: 0; font-size: 12px; text-decoration: none; }
.section-link span { margin-left: 4px; }
.publication { display: grid; grid-template-columns: 47px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.publication:last-child { padding-bottom: 0; border-bottom: 0; }
.publication-year, .award-year { padding-top: 4px; color: var(--muted); font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; }
.publication-featured .publication-year { color: var(--accent); }
.publication h3 { font: 600 17px/1.5 var(--sans); letter-spacing: -0.3px; text-wrap: pretty; }
.publication h3 a { color: var(--ink); text-decoration: none; }
.publication h3 a:hover { color: var(--accent); }
.publication-authors { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.85; }
.author-name { white-space: nowrap; }
strong.author-name { color: var(--body); font-weight: 600; }
.publication-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; margin-top: 10px; font-size: 12px; line-height: 1.6; }
.venue { color: var(--body); white-space: nowrap; }
.venue-highlight { color: var(--accent); font-weight: 600; }
.publication-date { color: var(--muted); padding-left: 13px; border-left: 1px solid var(--line); }
.accepted { border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; color: var(--accent); background: var(--soft); font-size: 11px; }
.paper-link { white-space: nowrap; text-decoration: none; color: var(--accent); margin-left: auto; }
.paper-link span { margin-left: 4px; }
.experience { padding: 24px 0 0; }
.experience-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 16px; }
.experience h3 { font-size: 15px; line-height: 1.6; font-weight: 600; }
.experience h3 strong { font-weight: 600; }
.experience-company { color: var(--accent); }
.experience-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.experience > p { margin-top: 9px; font-size: 13px; color: var(--muted); line-height: 1.85; }
.awards-list { list-style: none; margin: 12px 0 0; padding: 0; }
.awards-list li { display: grid; grid-template-columns: 47px minmax(0, 1fr); gap: 20px; padding: 13px 0; font-size: 13px; line-height: 1.7; }
.award-year { padding-top: 1px; }
.award-name { color: var(--body); }
.award-highlight { font-weight: 600; color: var(--ink); }
.award-detail { color: var(--muted); }
.award-detail::before { content: ' · '; padding: 0 3px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; max-width: 1140px; margin: auto; padding: 25px 0; font-size: 11px; color: var(--muted); }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }
@media (max-width: 1236px) {
  .header-inner, .home-grid, .footer-inner { margin-left: 40px; margin-right: 40px; }
  .home-grid { grid-template-columns: 200px minmax(0, 1fr); column-gap: 64px; }
}
@media (max-width: 960px) {
  .header-inner, .home-grid, .footer-inner { margin-left: 28px; margin-right: 28px; }
  .home-grid { grid-template-columns: 175px minmax(0, 1fr); gap: 40px; margin-top: 48px; }
  .profile-photo { width: 154px; height: 154px; }
  .profile h1 { font-size: 32px; }
  .publication { grid-template-columns: 37px minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 112px; }
  .header-inner { min-height: 64px; gap: 12px; flex-wrap: wrap; padding: 13px 0 8px; }
  .site-name { font-size: 14px; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; }
  .site-nav a { font-size: 12px; min-height: 38px; }
  .theme-toggle { width: 32px; height: 32px; }
  .home-grid { display: block; margin-top: 32px; margin-bottom: 52px; }
  .profile { position: static; display: grid; grid-template-columns: 108px minmax(0, 1fr); column-gap: 23px; margin-bottom: 36px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
  .profile-photo { width: 108px; height: 108px; border-radius: 8px; }
  .profile h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -1px; white-space: nowrap; }
  .profile-role { font-size: 12px; }
  .profile-university { font-size: 12px; line-height: 1.55; }
  .profile-links { grid-column: 1 / -1; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 19px; font-size: 12px; align-items: center; }
  .email-link { min-height: 34px; }
  .social-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
  .social-links a { gap: 5px; }
  .cv-link { margin: 0; min-height: 34px; padding: 2px 9px; gap: 14px; font-size: 11px; }
  .eyebrow { margin-bottom: 15px; font-size: 10px; }
  .intro, .background { font-size: 15px; }
  .content-section { margin-top: 38px; }
  .section-heading { padding-bottom: 14px; gap: 10px; }
  .section-heading h2 { font-size: 23px; }
  .section-link { font-size: 10px; }
  .publication { grid-template-columns: 34px minmax(0, 1fr); gap: 13px; padding: 23px 0; }
  .publication-year { font-size: 10px; }
  .publication h3 { font-size: 16px; line-height: 1.55; }
  .publication-authors { font-size: 13px; }
  .publication-meta { font-size: 11.5px; gap: 8px 10px; }
  .publication-date { padding-left: 10px; }
  .experience-header { display: block; }
  .experience-date { margin-top: 5px; font-size: 11px; }
  .experience h3 { font-size: 14px; }
  .awards-list li { grid-template-columns: 34px minmax(0, 1fr); gap: 13px; font-size: 12px; }
  .award-year { font-size: 10px; }
  .footer-inner { font-size: 10px; padding: 22px 0; }
  .footer-inner p:nth-child(2) { order: 3; width: 100%; }
}
@media (max-width: 380px) {
  .header-inner, .home-grid, .footer-inner { margin-left: 20px; margin-right: 20px; }
  .profile { grid-template-columns: 88px minmax(0, 1fr); column-gap: 20px; }
  .profile-photo { width: 88px; height: 88px; }
  .profile h1 { font-size: 29px; }
  .section-heading { flex-wrap: wrap; }
  .paper-link { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  :root, :root[data-theme='dark'] { --bg: #fff; --ink: #111; --body: #333; --muted: #555; --accent: #23483b; --line: #ddd; --soft: #f3f3f3; }
  html { scroll-behavior: auto; }
  .site-header, .site-footer, .section-link, .cv-link { display: none; }
  .home-grid { display: block; margin: 0; }
  .profile { position: static; display: block; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 25px; }
  .profile-photo, .profile-university, .social-links { display: none; }
  .profile h1 { margin: 0 0 5px; }
  .profile-links { margin-top: 5px; }
  .content-section { margin-top: 30px; }
  .publication, .awards-list li, .experience { break-inside: avoid; }
}
