@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/instrument-serif-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Caveat';
  src: url('assets/font-preview/caveat-normal-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #f8f7ef;
  --paper: #2f4038;
  --muted: #68756c;
  --green: #467562;
  --pink: #966476;
  --rose-background: #EAB2B6;
  --selection-background: #B9D5C2;
  --gold: #a9823c;
  --line: rgba(169, 130, 60, .24);
  --serif: 'Caveat', 'Segoe Print', cursive;
  --sans: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}
/* More visible mint and rose, blending softly along the original diagonal. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(143, 211, 183, .22), transparent 65%),
    radial-gradient(ellipse at 100% 100%, rgba(234, 178, 182, .22), transparent 65%),
    linear-gradient(125deg, #c5e8d1 0%, #d5ebd9 30%, #f1eee1 51%, #eed0cc 72%, var(--rose-background) 100%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.55' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
img { display: block; max-width: 100%; height: auto; }
/* A milky green selection in the same family as the mint background. */
::selection { background: var(--selection-background); color: #294238; }
.skip-link { position: fixed; z-index: 20; top: -70px; left: 20px; padding: 12px 20px; background: var(--background); border: 1px solid var(--gold); }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(28px, 5vw, 84px);
  border-bottom: 1px solid rgba(169, 130, 60, .2);
  background: rgba(250, 249, 240, .46);
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  transition: background .25s, height .25s;
}
.site-header.scrolled { height: 68px; background: rgba(250, 249, 240, .28); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.wordmark { display: flex; gap: 12px; align-items: center; font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: .3px; }
.brand-icon { width: 32px; height: 32px; border: 1px solid #b89a5e; border-radius: 50%; object-fit: cover; }
.monogram { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #b89a5e; border-radius: 50%; color: var(--gold); font-family: var(--serif); font-size: 25px; line-height: 1; padding-bottom: 3px; background: linear-gradient(125deg, #8fd3b724, #daa5b41a); }
.site-header nav { display: flex; align-items: center; gap: 32px; font-size: 14px; letter-spacing: .3px; color: #54635a; }
.site-header nav > a { padding: 7px 0; transition: color .2s; }
.site-header nav > a:hover, .site-header nav > a[aria-current] { color: var(--gold); }

.academic-layout {
  --profile-width: 320px;
  --content-top: clamp(96px, 16dvh, 148px);
  --profile-gap: clamp(8px, 1.6dvh, 15px);
  display: grid;
  grid-template-columns: minmax(0, var(--profile-width)) minmax(0, 1fr);
  align-items: start;
  gap: 100px;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--content-top) 36px 74px;
  scroll-margin-top: 0;
}
.profile { min-width: 0; align-self: start; }
/* A stationary desktop profile with height-responsive spacing and no inner scroller. */
.profile-content { position: fixed; top: var(--content-top); width: var(--profile-width); }
/* The photograph stays still; only the golden point orbits around it. */
.profile-photo {
  position: relative;
  width: clamp(88px, calc(32dvh - 72px), 220px);
  aspect-ratio: 1;
  padding: 10px;
  margin: 0 0 clamp(10px, 2dvh, 20px);
  border: 1px solid rgba(169, 130, 60, .72);
  border-radius: 50%;
  background: rgba(255, 250, 234, .24);
  box-shadow: 0 10px 35px rgba(96, 112, 82, .08);
}
.profile-photo::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(169, 130, 60, .21);
  border-radius: 50%;
  pointer-events: none;
}
.portrait-crop { width: 100%; height: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 39%; transform: scale(1.22); transform-origin: 47% 41%; }
.portrait-orbit {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(169, 130, 60, .36);
  border-radius: 50%;
  pointer-events: none;
  animation: portrait-orbit 22s linear infinite;
}
.portrait-orbit::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  top: calc(50% - 3px);
  left: -3px;
  border-radius: 50%;
  background: #f8dea0;
  border: 1px solid #bd9247;
  box-shadow: 0 0 6px 2px rgba(215, 181, 109, .65), 0 0 17px 4px rgba(215, 181, 109, .3);
}
@keyframes portrait-orbit { to { transform: rotate(360deg); } }
.eyebrow { font-size: 9px; letter-spacing: 2.2px; font-weight: 400; color: #8f784e; line-height: 1.6; margin-bottom: 12px; }
.profile-eyebrow { font-size: 8px; letter-spacing: 1.8px; color: #647868; margin-bottom: 9px; }
.profile h1 { font-family: var(--serif); font-size: clamp(30px, 4.8dvh, 42px); font-weight: 400; line-height: 1.1; letter-spacing: -.5px; }
.title-dot { color: var(--gold); }
.profile-role { margin-top: 12px; font-size: 10px; letter-spacing: .5px; color: #607463; }
.profile-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: clamp(8px, 1.2dvh, 12px); font-size: 13px; color: var(--gold); }
.profile-links a { border-bottom: 1px solid #a9823c50; padding-bottom: 2px; white-space: nowrap; }
.profile-links span { margin-left: 7px; font-size: 10px; }
.profile-links a:hover { color: var(--paper); border-color: var(--paper); }
.profile-bio { margin-top: 24px; font-size: 16px; line-height: 1.95; color: #516057; }
.profile-bio p + p { margin-top: 13px; }
.personal-aspirations { margin-top: 13px; padding-left: 1.25em; }
.personal-aspirations li + li { margin-top: 4px; }
.personal-aspirations li::marker { color: var(--gold); font-size: .75em; }
.profile-bio a { color: #435a4c; text-decoration: underline; text-decoration-color: #b99b686b; text-underline-offset: 4px; }
.profile-bio a:hover { color: #7c602e; text-decoration-color: #a9823c; }
.profile-interest { margin-top: var(--profile-gap); }
.profile-interest h2 { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: clamp(20px, 2.9dvh, 24px); line-height: 1.2; letter-spacing: 0; margin-bottom: 4px; }
.profile-interest h2 > span { font-size: 15px; line-height: 1; font-weight: 400; }
.profile-interest p { font-size: 14px; line-height: 1.6; color: #536c5b; }
.research-interest h2 { color: var(--green); }
.art-interest h2 { color: var(--pink); }
.art-interest p { color: #816874; }
.art-interest .favourite-music { margin-top: 6px; }
.friend-links { padding-top: var(--profile-gap); margin-top: var(--profile-gap); border-top: 1px solid var(--line); }
.friend-links h2 { color: #647463; }
.friend-links a { color: #84642e; border-bottom: 1px solid #a9823c50; padding-bottom: 3px; }
.friend-links a:hover { color: var(--paper); border-color: var(--gold); }
.friend-links a span { margin-left: 8px; font-size: 12px; }

.academic-main { min-width: 0; }
.about-section { padding-bottom: 35px; margin-bottom: 39px; border-bottom: 1px solid var(--line); }
.about-section .profile-bio { line-height: 1.95; }
.profile-interest:first-of-type { margin-top: var(--profile-gap); }
.section-title { font-family: var(--serif); font-size: 58px; line-height: 1.1; font-weight: 400; letter-spacing: -.7px; }
.about-section .section-title, .publications .section-title { font-family: var(--sans); font-size: 36px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 29px; }
.publication-note { font-size: 11px; color: #738073; white-space: nowrap; padding-bottom: 4px; }
.publication { padding: 27px 0 25px; border-bottom: 1px solid var(--line); }
.publication:last-child { border-bottom: 0; padding-bottom: 0; }
.publication-meta { display: flex; justify-content: space-between; align-items: center; font-size: 9px; color: #889080; margin-bottom: 12px; letter-spacing: .8px; }
.venue { font-size: 12px; font-weight: 400; color: var(--green); letter-spacing: .3px; }
.venue.review { color: var(--pink); }
.publication h3 { font-family: var(--sans); font-size: 20px; font-weight: 400; line-height: 1.5; letter-spacing: 0; color: #2e4034; }
.publication h3 a { transition: color .2s; }
.publication h3 a:hover { color: var(--gold); }
.authors { font-size: 13px; line-height: 1.95; color: #6a7569; margin-top: 10px; }
.authors strong { font-weight: 600; color: #405345; text-decoration: underline; text-decoration-color: #b99b6890; text-underline-offset: 4px; }
.paper-links { display: flex; gap: 20px; margin-top: 13px; font-size: 13px; color: #84642e; }
.paper-links a { border-bottom: 1px solid #a9823c50; padding-bottom: 2px; }
.paper-links a:hover { color: var(--gold); border-color: var(--gold); }
.paper-links span { margin-left: 7px; }

.site-footer { max-width: 1168px; margin: 0 auto; border-top: 1px solid var(--line); padding: 26px 0 32px; display: flex; align-items: center; justify-content: flex-end; gap: 20px; color: #6b796a; }
.site-footer > a:last-child { font-size: 14px; color: var(--gold); }
.site-footer > a:last-child > span { margin-left: 12px; }

body.contact-open { overflow: hidden; }
.wechat-dialog { width: min(400px, calc(100% - 40px)); max-height: calc(100dvh - 40px); margin: auto; padding: 36px 30px 20px; border: 1px solid var(--gold); border-radius: 18px; background: linear-gradient(125deg, #edf4e9, #faf5ed 55%, #f4e6eb); color: var(--paper); box-shadow: 0 24px 80px #30433530; }
.wechat-dialog::backdrop { background: #263d3440; backdrop-filter: blur(8px); }
.wechat-dialog h2 { font-size: 42px; line-height: 1.2; margin-bottom: 12px; }
.wechat-dialog > p { font-size: 15px; color: var(--muted); }
.wechat-dialog label { display: block; margin: 25px 0 7px; font-size: 12px; color: var(--muted); }
.dialog-close { position: absolute; top: 8px; right: 9px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--gold); font-family: Arial, sans-serif; font-size: 24px; cursor: pointer; }
.wechat-copy-row { display: flex; gap: 10px; }
.wechat-copy-row input { min-width: 0; width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: #ffffff50; color: var(--paper); font-size: 18px; }
.wechat-copy-row button { flex-shrink: 0; padding: 8px 14px; border: 1px solid #a9823c80; border-radius: 6px; background: #ead9b740; color: #795a27; cursor: pointer; }
.wechat-copy-row button:hover { background: #ead9b780; }
.wechat-dialog .copy-status { min-height: 2.7em; margin-top: 12px; font-size: 12px; }

@media (max-width: 1199px) {
  .academic-layout { --profile-width: 290px; --content-top: clamp(96px, 16dvh, 130px); gap: 65px; padding: var(--content-top) 45px 65px; }
  .site-footer { margin-left: 45px; margin-right: 45px; }
  .section-title { font-size: 53px; }
  .publication h3 { font-size: 19px; }
}
@media (max-width: 959px) {
  .academic-layout { --profile-width: 245px; --content-top: clamp(96px, 16dvh, 125px); gap: 43px; padding: var(--content-top) 32px 60px; }
  .profile-photo { max-width: 205px; }
  .profile-bio { font-size: 15px; }
  .profile-interest p { font-size: 14px; }
  .section-title { font-size: 47px; }
  .section-heading { gap: 10px; flex-wrap: wrap; padding-bottom: 23px; }
  .publication-note { font-size: 10px; }
  .publication h3 { font-size: 18px; }
  .publication { padding: 23px 0; }
  .authors { font-size: 12px; }
  .venue { font-size: 11px; }
  .site-footer { margin-left: 32px; margin-right: 32px; }
}
@media (max-width: 719px) {
  html { scroll-padding-top: 92px; }
  .site-header { height: 68px; padding: 0 22px; }
  .site-header.scrolled { height: 62px; }
  .wordmark { font-size: 23px; gap: 9px; }
  .monogram { width: 27px; height: 27px; font-size: 23px; }
  .site-header nav { gap: 18px; font-size: 13px; letter-spacing: .2px; }
  .academic-layout { display: flex; flex-direction: column; gap: 50px; padding: 108px 26px 48px; scroll-margin-top: 0; }
  .profile { width: 100%; }
  .profile-content { position: static; width: auto; }
  .profile-photo { width: 184px; margin-bottom: 18px; }
  
  .profile h1 { font-size: 38px; }
  .profile-role { font-size: 11px; }
  .profile-links { font-size: 13px; }
  .profile-bio { font-size: 15px; line-height: 1.9; }
  .profile-interest { margin-top: 15px; }
  .profile-interest h2 { font-size: 23px; }
  .profile-interest p { font-size: 14px; }
  .academic-main { width: 100%; }
  .section-title { font-size: 48px; }
  .about-section .section-title, .publications .section-title { font-size: 30px; }
  .section-heading { gap: 15px; flex-wrap: nowrap; padding-bottom: 24px; }
  .publication-note { font-size: 10px; }
  .publication h3 { font-size: 19px; }
  .authors { font-size: 13px; }
  .venue { font-size: 11px; }
  .paper-links { font-size: 13px; }
  .site-footer { margin: 0 26px; flex-wrap: wrap; gap: 12px; padding: 22px 0; }
  .site-footer > a:last-child { margin-left: auto; }
}
@media (max-width: 369px) {
  .site-header { padding: 0 18px; }
  .wordmark > span:last-child { display: none; }
  .site-header nav { gap: 22px; }
  .academic-layout { padding-left: 22px; padding-right: 22px; }
  .section-title { font-size: 42px; }
  .about-section .section-title, .publications .section-title { font-size: 28px; }
  .section-heading { gap: 10px; }
  .publication-note { font-size: 9px; }
  .site-footer { margin-left: 22px; margin-right: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .portrait-orbit { animation: none; transform: rotate(-35deg); }
}
@media (min-width: 720px) and (max-height: 600px) {
  .profile-interest p { font-size: 13px; line-height: 1.5; }
  .profile-links { font-size: 12px; gap: 5px 16px; }
}
@media (min-width: 720px) and (max-height: 560px) {
  .academic-layout { --profile-gap: 4px; }
  .profile-photo { width: clamp(72px, calc(32dvh - 104px), 88px); margin-bottom: 8px; }
  .profile-interest p { line-height: 1.35; }
  .art-interest .favourite-music { margin-top: 4px; }
}
@media print {
  body { background: white; color: black; }
  body::before, body::after, .site-header, .site-footer, .skip-link { display: none; }
  .academic-layout { display: grid; grid-template-columns: 28% 1fr; gap: 30px; padding: 0; }
  .profile-content { position: static; width: auto; }
  .profile-photo { width: 130px; }
  .profile-photo img { height: 100%; }
  .portrait-orbit { display: none; }
  .profile h1 { font-size: 30px; }
  .profile-bio, .profile-interest p, .profile-links { font-size: 9px; }
  .profile *, .publication *, .section-heading * { color: black !important; }
  .publication { break-inside: avoid; padding: 14px 0; }
  .publication h3 { font-size: 11px; }
  .authors { font-size: 8px; }
  .section-title, .about-section .section-title, .publications .section-title { font-size: 30px; }
}
