/* 主要配色：Yale Blue #00356B。这里可以集中调整颜色与字体。 */
:root {
  color-scheme: light;
  --yale-blue: #00356b;
  --background: #f5faff;
  --ink: #252b3a;
  --muted: #586c86;
  --rule: #b7cbdc;
  --font: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background: linear-gradient(180deg, #f3faff 0, #f8fcff 1100px, #ffffff 100%);
  color: var(--ink);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--yale-blue); text-decoration-thickness: 1px; text-underline-offset: .17em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--yale-blue); outline-offset: 5px; border-radius: 1px; }
p { margin: 0 0 15px; }
img { display: block; max-width: 100%; }
.page-frame { width: calc(100% - 80px); max-width: 1136px; margin-inline: auto; }
.content { width: calc(100% - 96px); max-width: 944px; margin-inline: auto; }

.skip-link { position: absolute; left: 16px; top: -90px; padding: 8px 15px; z-index: 5; background: white; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--rule); }
.navigation { min-height: 67px; display: flex; justify-content: flex-end; align-items: stretch; gap: 32px; }
.navigation a { display: flex; align-items: center; position: relative; text-decoration: none; padding-inline: 4px; }
.navigation a[aria-current="location"]::after, .navigation a:hover::after {
  content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: 12px; background: var(--yale-blue);
}
.architecture { margin-top: 20px; height: 176px; overflow: hidden; background: #d4e3ed; }
.architecture img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) 270px; column-gap: 44px; padding-block: 36px 34px; align-items: start; }
h1 { color: var(--yale-blue); font-size: clamp(48px, 5.7vw, 72px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 25px; }
.job-market { margin-top: 17px; }
.job-market strong { color: var(--yale-blue); font-weight: 700; }
.graduation-note { color: #707070; font-size: .85em; font-weight: 400; }
.portrait { margin-top: 4px; }
.portrait img { width: 270px; height: auto; border-radius: 3px; }
.contact-info { margin-top: 14px; font-size: 15px; font-style: normal; line-height: 1.5; white-space: nowrap; }
.contact-label { color: var(--muted); }
.contact-email { color: var(--yale-blue); }

.section { padding-block: 30px 36px; border-top: 1px solid var(--rule); }
.section-title { display: flex; align-items: center; gap: 23px; color: var(--yale-blue); font-size: 30px; font-weight: 600; line-height: 1.25; margin: 0 0 27px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--yale-blue); opacity: .7; }
.papers { margin: 0; padding-left: 57px; }
.papers > li { padding-left: 12px; margin-bottom: 23px; }
.papers > li::marker { color: var(--muted); font-size: 20px; }
.papers h3 { font-size: 20px; font-weight: 400; line-height: 1.4; margin: 0 0 2px; }
.paper-authors, .paper-details { font-size: 17px; color: var(--muted); margin: 0; line-height: 1.55; }
.paper-authors { font-style: italic; }
.paper-details strong { font-weight: 700; }
.paper-links { display: inline; margin-left: 8px; }
.paper-links a { display: inline-block; margin-right: 7px; white-space: nowrap; }

.talk-list { list-style: none; padding: 0; margin: 0; }
.talk-list > li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; margin-bottom: 25px; }
.talk-list > li:last-child { margin-bottom: 0; }
.talk-date { color: var(--muted); font-size: 17px; line-height: 1.55; padding-top: 1px; white-space: nowrap; }
.talk-list h3 { margin: 0 0 3px; font-size: 20px; font-weight: 400; line-height: 1.4; }
.talk-list p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }

.section-note { color: var(--muted); font-style: italic; margin: -14px 0 24px; font-size: 17px; }
.courses { list-style: none; padding: 0; margin: 0; }
.courses li { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 21px; margin-bottom: 21px; }
.term { color: var(--muted); font-size: 17px; padding-top: 1px; }
.courses h3 { margin: 0; font-size: 18px; line-height: 1.55; font-weight: 500; }
.courses p { margin: 0; font-size: 17px; color: var(--muted); font-style: italic; }
.site-footer { border-top: 1px solid var(--rule); text-align: center; padding: 19px 0 26px; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0; }

@media (max-width: 850px) {
  .page-frame { width: calc(100% - 48px); }
  .content { width: calc(100% - 64px); }
  .about { grid-template-columns: minmax(0, 1fr) 210px; gap: 30px; }
  .portrait img { width: 210px; }
  h1 { font-size: 54px; }
  body { font-size: 18px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 18px; }
  .page-frame, .content { width: calc(100% - 40px); }
  .navigation { min-height: 60px; gap: clamp(10px, 3vw, 22px); justify-content: center; font-size: 17px; }
  .navigation a { padding-inline: 1px; }
  .navigation a[aria-current="location"]::after, .navigation a:hover::after { bottom: 9px; }
  .architecture { margin-top: 15px; height: 130px; }
  .architecture img { object-position: 52% 40%; }
  .about { grid-template-columns: minmax(0, 1fr); padding-block: 26px 28px; gap: 26px; }
  h1 { font-size: clamp(42px, 11.4vw, 62px); margin-bottom: 21px; }
  .portrait { margin-top: 0; }
  .portrait img { width: 155px; }
  .section { padding-block: 27px 28px; }
  .section-title { font-size: 26px; gap: 15px; margin-bottom: 23px; }
  .papers { padding-left: 27px; }
  .papers > li { padding-left: 6px; margin-bottom: 24px; }
  .papers h3 { font-size: 18px; }
  .paper-authors, .paper-details { font-size: 16px; }
  .paper-links { margin-left: 4px; }
  .talk-list > li { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-bottom: 24px; }
  .talk-list h3 { font-size: 18px; }
  .talk-date, .talk-list p { font-size: 16px; }
  .courses li { grid-template-columns: 1fr; gap: 3px; margin-bottom: 22px; }
  .courses h3 { font-size: 17px; }
  .section-note { margin-top: -12px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; color: black; font-size: 11pt; }
  .navigation, .architecture, .portrait, .skip-link { display: none; }
  .content, .page-frame { width: 100%; max-width: none; }
  .about { display: block; padding-top: 0; }
  h1 { font-size: 32pt; }
  .papers > li, .talk-list > li, .courses li { break-inside: avoid; }
  .section-title { font-size: 19pt; }
}
