@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/dm-sans-regular.ttf") format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/dm-sans-semibold.ttf") format("truetype");
}
/* Luyao Niu — an editorial, accessible academic site. */
:root {
  color-scheme: light;
  --paper: #f8f7f4;
  --surface: #eeede7;
  --surface-soft: #f1efea;
  --ink: #292b2a;
  --muted: #666962;
  --subtle: #666a60;
  --line: #dddcd4;
  --accent: #8b3d48;
  --accent-hover: #682e37;
  --accent-soft: #eee2e2;
  --white: #fff;
  --serif: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  --sans:
    "DM Sans", "Avenir Next", Avenir, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 6px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1c201e;
  --surface: #282d29;
  --surface-soft: #232824;
  --ink: #f0eee6;
  --muted: #b6b9b0;
  --subtle: #a2a79d;
  --line: #3a403a;
  --accent: #dfa0a5;
  --accent-hover: #f3c3c7;
  --accent-soft: #382b2e;
  --white: #1c201e;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 106px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--accent-soft);
  color: var(--accent);
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 2px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.25;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  background: none;
  border: 0;
}
a .icon {
  flex-shrink: 0;
  transition: transform 0.2s;
}
a:hover .icon {
  transform: translate(2px, -1px);
}
.icon {
  vertical-align: middle;
  flex-shrink: 0;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.container {
  width: calc(100% - 96px);
  max-width: 1184px;
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
html[data-lang="en"] [lang="zh"],
html[data-lang="zh"] [lang="en"] {
  display: none !important;
}
.accent {
  color: var(--accent);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 1.7px;
  font-weight: 500;
  color: var(--subtle);
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  background: var(--accent);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 4px;
}
.skip-link:focus {
  transform: translateY(0);
  color: var(--paper);
}
/* Quiet, persistent navigation. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 43px;
  font-weight: bold;
  letter-spacing: -4px;
  line-height: 1;
  width: 86px;
}
.wordmark-dot {
  color: var(--accent);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 31px;
  margin-left: auto;
}
.main-nav > a {
  font-size: 13px;
  padding: 31px 0 29px;
  position: relative;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted);
}
.main-nav > a:after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.main-nav > a:hover,
.main-nav > a[aria-current] {
  color: var(--accent);
}
.main-nav > a[aria-current]:after,
.main-nav > a:hover:after {
  transform: scaleX(1);
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 25px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.icon-button:hover {
  background: var(--surface);
  color: var(--accent);
}
.language-toggle {
  min-width: 44px;
  min-height: 44px;
  font-size: 12px;
  border-radius: 4px;
}
.language-toggle:hover {
  color: var(--accent);
  background: var(--surface);
}
.control-divider {
  height: 15px;
  width: 1px;
  background: var(--line);
  margin-inline: 6px;
}
.menu-toggle {
  display: none;
}
.sun-icon {
  display: none;
}
html[data-theme="dark"] .sun-icon {
  display: block;
}
html[data-theme="dark"] .moon-icon {
  display: none;
}
/* Identity: generous type, a real portrait, a human research question. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 266px;
  column-gap: 102px;
  padding: 73px 0 65px;
  align-items: center;
}
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 10px;
}
.small-rule {
  display: inline-block;
  width: 25px;
  height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--serif);
  font-size: 76px;
  font-weight: 400;
  letter-spacing: -4px;
  margin: 18px 0 14px;
  line-height: 1.08;
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}
.chinese-name {
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 24px;
  letter-spacing: 3px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 24px;
}
.hero-role {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-statement {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.5;
  letter-spacing: -0.5px;
  max-width: 650px;
  margin: 26px 0 16px;
}
.hero-statement em {
  color: var(--accent);
  font-weight: 400;
}
.hero-bio,
.hero-background {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  max-width: 640px;
}
.hero-background {
  margin-top: 10px;
}
.hero-background a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.hero-background a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.button {
  min-height: 44px;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button-primary {
  background: var(--accent);
  color: var(--paper);
}
.button-primary:hover {
  background: var(--accent-hover);
  color: var(--paper);
}
.button-secondary {
  border-color: var(--line);
}
.button-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.button-note {
  font-family: var(--mono);
  font-size: 9px;
  opacity: 0.8;
  margin-left: 5px;
}
.hero-email {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hero-portrait {
  padding-top: 17px;
  align-self: center;
  position: relative;
}
.portrait-mat {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  transform: rotate(2deg);
}
.portrait-mat:before {
  content: "";
  position: absolute;
  inset: -10px 11px 10px -10px;
  border: 1px solid var(--line);
  z-index: -1;
  transform: rotate(-5deg);
}
.portrait-mat img {
  aspect-ratio: 1/1.13;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.78);
}
.portrait-corner {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  display: block;
  text-align: right;
  padding-top: 8px;
  color: var(--muted);
}
.hero-portrait figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  padding: 23px 4px 0;
  color: var(--muted);
}
.portrait-asterisk {
  font-family: var(--serif);
  font-size: 43px;
  font-style: normal;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
}
/* Linked research themes. */
.research-section {
  padding: 25px 0 31px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}
.section-label h2 {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.label-note {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1.15px;
  color: var(--subtle);
}
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px;
}
.research-item {
  position: relative;
  padding-left: 37px;
}
.research-item + .research-item {
  border-left: 1px solid var(--line);
  padding-left: 49px;
}
.research-number {
  position: absolute;
  top: 4px;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}
.research-item + .research-item .research-number {
  display: block;
  left: 24px;
}
.research-item h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.research-item h3 .icon {
  width: 16px;
  height: 16px;
  color: var(--subtle);
}
.research-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
  margin: 9px 0;
}
.research-tags {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--subtle);
  line-height: 1.6;
}
.research-item:hover h3 .icon {
  color: var(--accent);
  transform: translate(3px, -3px);
}
/* Papers are readable records, not a wall of cards. */
.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 65px;
  margin-top: 58px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 25px;
}
.section-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 1.4px;
  margin-bottom: 8px;
}
.section-heading h2 {
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -0.8px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.text-link .icon {
  width: 16px;
  height: 16px;
}
.paper {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 115px;
}
.paper-featured {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 23px;
  padding: 24px 0;
}
.paper-featured:first-of-type {
  padding-top: 3px;
}
.paper-featured:last-of-type {
  border-bottom: 0;
}
.paper-visual {
  display: block;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.paper-visual:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.paper-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.paper-visual > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.4px;
  padding: 7px 10px;
  color: var(--muted);
}
.paper-visual > span .icon {
  width: 12px;
  height: 12px;
}
.paper-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  line-height: 1.45;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 9px;
}
.paper-meta > span:first-child {
  font-family: var(--mono);
}
.meta-separator {
  color: var(--line);
}
.venue {
  color: var(--accent);
  font-weight: 600;
}
.oral-badge,
.status-badge {
  font-size: 9px;
  line-height: 1.4;
  padding: 3px 7px;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.oral-badge {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: transparent;
}
.paper h3 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.25px;
  text-wrap: pretty;
}
.paper h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.paper-featured h3 {
  font-size: 14px;
  line-height: 1.55;
}
.paper-summary {
  margin-top: 7px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.75;
}
.paper-authors {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 10px;
}
.paper-authors strong {
  font-weight: 600;
  color: var(--ink);
}
.paper-submission {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.paper-detail {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin-top: 4px;
}
.paper-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 11px;
}
.resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 9px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  background: transparent;
}
.resource-link .icon {
  width: 13px;
  height: 13px;
}
.resource-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.copy-citation {
  display: none;
}
.js-ready .copy-citation {
  display: inline-flex;
}
.publication-list .paper h3 {
  max-width: 900px;
}
.paper:target {
  background: var(--surface-soft);
  box-shadow:
    -16px 0 0 var(--surface-soft),
    16px 0 0 var(--surface-soft);
}
/* A smaller, chronological margin column. */
.news-section .section-heading {
  align-items: center;
}
.news-section .section-heading h2 {
  font-size: 28px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-list li {
  padding: 19px 0;
  border-top: 1px solid var(--line);
}
.news-list time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.7px;
}
.news-list a {
  font-size: 12px;
  line-height: 1.9;
  display: block;
  color: var(--muted);
}
.news-list a:hover {
  color: var(--accent);
}
.news-list a .icon {
  width: 12px;
  height: 12px;
  margin-left: 5px;
}
.aside-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding: 15px 0;
  color: var(--accent);
}
.research-note {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 24px;
  margin-top: 19px;
  overflow: hidden;
}
.research-note:after {
  content: "";
  width: 110px;
  height: 110px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: absolute;
  top: -55px;
  right: -35px;
  box-shadow:
    0 0 0 14px var(--surface-soft),
    0 0 0 15px var(--line),
    0 0 0 29px var(--surface-soft),
    0 0 0 30px var(--line);
  pointer-events: none;
}
.note-mark {
  color: var(--accent);
  font-size: 25px;
}
.research-note p {
  position: relative;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  margin: 13px 0 16px;
  z-index: 1;
}
.research-note > span:last-child {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--subtle);
}
.education-section {
  margin-top: 45px;
  padding: 35px 0 43px;
  border-top: 1px solid var(--line);
}
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px;
  margin-top: 29px;
}
.education-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.school-mark {
  font-family: var(--serif);
  font-size: 14px;
  width: 45px;
  height: 45px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.education-date {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--subtle);
  margin-bottom: 6px;
}
.education-item h3 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}
.education-item div > p:last-child {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 4px;
}
/* A contact destination, with graceful long-address wrapping. */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.footer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 43px 0 45px;
}
.footer-contact h2 {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-top: 10px;
}
.contact-details {
  text-align: right;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}
.contact-email:hover {
  text-decoration-color: var(--accent);
}
.footer-socials {
  display: flex;
  justify-content: flex-end;
  gap: 21px;
  margin-top: 18px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  font-size: 10px;
  color: var(--muted);
}
.footer-socials a:hover {
  color: var(--accent);
}
.footer-socials .icon {
  width: 13px;
  height: 13px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--subtle);
  gap: 20px;
}
.footer-dot {
  margin: 0 9px;
}
.back-top {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 32px;
}
.back-top .icon {
  width: 13px;
  height: 13px;
}
/* Shared inner pages. */
.page-heading {
  padding: 42px 0 35px;
  max-width: 880px;
}
.back-link {
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 32px;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 400;
  letter-spacing: -2px;
  margin: 13px 0 16px;
}
.page-description {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}
.publications-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.publications-intro p {
  font-size: 12px;
  color: var(--muted);
}
.publication-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 0 16px;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.filter-group button {
  padding: 10px 15px;
  min-height: 44px;
  border-radius: 4px;
  font-size: 12px;
  transition:
    background 0.2s,
    color 0.2s;
}
.filter-group button:hover {
  background: var(--surface);
}
.filter-group button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 0 12px;
  border-radius: 4px;
  width: 280px;
  background: var(--surface-soft);
}
.search-field .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.search-field input {
  min-width: 0;
  width: 100%;
  height: 44px;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font-size: 11px;
}
.search-field:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.search-field input::placeholder {
  color: var(--subtle);
}
.results-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--subtle);
  min-height: 17px;
}
.content-note {
  margin: 28px 0 50px;
  font-size: 12px;
  color: var(--muted);
  max-width: 750px;
  line-height: 1.8;
}
.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.project-topics,
.section-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.project-topics {
  padding: 0 0 25px;
}
.project-topics a {
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  border-radius: 4px;
  padding: 9px 13px;
  scroll-margin-top: 120px;
}
.project-topics a:hover {
  border-color: var(--accent);
}
.project-list {
  max-width: 960px;
}
.project-detail {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  scroll-margin-top: 115px;
}
.project-index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.project-detail h2 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.45;
  max-width: 840px;
}
.project-detail p {
  font-size: 12px;
  color: var(--muted);
  margin: 13px 0;
}
.project-detail ul {
  padding-left: 20px;
  margin: 18px 0;
  max-width: 880px;
}
.project-detail li {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  padding-left: 5px;
  margin-bottom: 10px;
}
.project-detail strong {
  color: var(--ink);
  font-weight: 500;
}
.project-detail .resource-link {
  margin-top: 5px;
}
.cv-toolbar {
  display: flex;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.section-nav a {
  font-size: 12px;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.prose {
  max-width: 880px;
  padding-bottom: 35px;
}
.prose h2 {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  margin-top: 42px;
  margin-bottom: 22px;
  scroll-margin-top: 120px;
}
.prose ul {
  padding-left: 20px;
}
.prose li {
  padding-left: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 15px;
}
.prose li::marker {
  color: var(--accent);
}
.prose strong {
  font-weight: 600;
  color: var(--ink);
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.prose p {
  margin: 16px 0;
}
.talk-list {
  margin: 5px 0 55px;
}
.talk {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 35px;
  padding: 33px 0;
  border-top: 1px solid var(--line);
}
.talk-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.talk-date > span:first-child {
  font-family: var(--serif);
  font-size: 33px;
  color: var(--muted);
  line-height: 1;
}
.talk .eyebrow {
  color: var(--accent);
}
.talk h2 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.45;
  max-width: 830px;
  margin: 10px 0 14px;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 13px;
  z-index: 100;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.not-found {
  padding: 0 0 65px;
}
@media (min-width: 1400px) {
  .hero {
    column-gap: 130px;
    grid-template-columns: minmax(0, 1fr) 286px;
  }
  .hero-statement {
    font-size: 30px;
  }
  .hero {
    padding-top: 80px;
    padding-bottom: 72px;
  }
}
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 64px);
  }
  .hero {
    column-gap: 50px;
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .hero h1 {
    font-size: 66px;
  }
  .chinese-name {
    font-size: 21px;
    margin-left: 18px;
  }
  .hero-statement {
    font-size: 25px;
  }
  .home-columns {
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .paper-featured {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 18px;
  }
  .research-grid {
    gap: 24px;
  }
  .research-item h3 {
    font-size: 20px;
  }
  .education-grid {
    gap: 20px;
  }
  .education-item {
    gap: 10px;
  }
  .school-mark {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }
  .main-nav {
    gap: 23px;
  }
  .header-controls {
    margin-left: 10px;
  }
  .header-inner {
    gap: 20px;
  }
}
@media (max-width: 850px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 205px;
    column-gap: 35px;
    padding-top: 50px;
    padding-bottom: 48px;
  }
  .hero h1 {
    font-size: 55px;
    letter-spacing: -2.5px;
  }
  .chinese-name {
    font-size: 18px;
    letter-spacing: 2px;
    margin-left: 13px;
  }
  .hero-role {
    font-size: 10px;
  }
  .hero-statement {
    font-size: 24px;
  }
  .hero-bio,
  .hero-background {
    font-size: 13px;
  }
  .hero-actions {
    gap: 8px;
  }
  .button {
    font-size: 11px;
    padding-inline: 12px;
  }
  .hero-portrait figcaption {
    font-size: 13px;
  }
  .research-item {
    padding-left: 0;
  }
  .research-number {
    position: static;
    display: block;
    margin-bottom: 10px;
  }
  .research-item + .research-item .research-number {
    display: block;
  }
  .research-item + .research-item {
    padding-left: 20px;
  }
  .research-item h3 {
    font-size: 19px;
  }
  .home-columns {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .paper-featured {
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 24px;
  }
  .paper-featured h3 {
    font-size: 16px;
  }
  .paper-summary {
    font-size: 12px;
  }
  .news-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .research-note {
    display: none;
  }
  .aside-link {
    max-width: 300px;
  }
  .education-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .school-mark {
    width: 44px;
    height: 44px;
  }
  .education-item h3 {
    font-size: 14px;
  }
  .education-item div > p:last-child {
    font-size: 12px;
  }
  .education-item {
    gap: 16px;
  }
  .footer-contact h2 {
    font-size: 25px;
  }
  .contact-email {
    font-size: 18px;
    gap: 8px;
  }
  .main-nav {
    gap: 17px;
  }
  .main-nav > a {
    font-size: 12px;
  }
  .wordmark {
    width: 44px;
  }
  .header-controls {
    margin-left: 0;
  }
  .header-inner {
    gap: 15px;
  }
  .label-note {
    font-size: 7px;
  }
  .publication-tools {
    align-items: flex-start;
    flex-direction: column;
  }
  .search-field {
    width: 100%;
    max-width: 420px;
  }
  .page-heading h1 {
    font-size: 50px;
  }
}
@media (max-width: 640px) {
  html {
    scroll-padding-top: 90px;
  }
  .container {
    width: calc(100% - 40px);
  }
  .header-inner {
    height: 70px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .wordmark {
    font-size: 37px;
  }
  .header-controls {
    margin-left: auto;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    gap: 0;
    box-shadow: 0 15px 20px -20px #0004;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav > a {
    width: 50%;
    font-size: 14px;
    padding: 12px 15px;
    min-height: 46px;
  }
  .main-nav > a:after {
    bottom: 6px;
    left: 15px;
    right: auto;
    width: 22px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) 100px;
    column-gap: 20px;
    padding-top: 35px;
    padding-bottom: 33px;
    align-items: start;
  }
  .hero-copy {
    display: contents;
  }
  .hero .eyebrow {
    grid-column: 1/-1;
    font-size: 8px;
    letter-spacing: 1.25px;
    gap: 8px;
    margin-bottom: 16px;
  }
  .hero h1 {
    grid-column: 1;
    grid-row: 2;
    font-size: 48px;
    letter-spacing: -2px;
    display: block;
    line-height: 1.05;
    margin: 2px 0 0;
    white-space: normal;
  }
  .chinese-name {
    display: block;
    font-size: 17px;
    letter-spacing: 3px;
    margin: 13px 0 0;
  }
  .hero-role {
    grid-column: 1/-1;
    grid-row: 3;
    font-size: 11px;
    margin: 23px 0 0;
    align-items: flex-start;
  }
  .status-dot {
    margin-top: 6px;
  }
  .hero-statement {
    grid-column: 1/-1;
    grid-row: 4;
    font-size: 25px;
    line-height: 1.5;
    margin: 21px 0 14px;
    letter-spacing: -0.35px;
  }
  .hero-bio {
    grid-column: 1/-1;
    grid-row: 5;
    font-size: 13px;
  }
  .hero-background {
    grid-column: 1/-1;
    grid-row: 6;
    font-size: 13px;
    margin-top: 10px;
  }
  .hero-actions {
    grid-column: 1/-1;
    grid-row: 7;
    gap: 8px;
    margin-top: 23px;
  }
  .hero-portrait {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding: 0;
    align-self: center;
  }
  .portrait-mat {
    padding: 4px;
  }
  .portrait-mat img {
    aspect-ratio: 1;
  }
  .portrait-mat:before {
    inset: -5px 5px 5px -5px;
  }
  .portrait-corner,
  .hero-portrait figcaption {
    display: none;
  }
  .button {
    font-size: 10px;
    gap: 7px;
    min-height: 44px;
    padding: 10px 12px;
  }
  .button .icon {
    width: 15px;
    height: 15px;
  }
  .button-note {
    font-size: 8px;
    margin-left: 0;
  }
  .hero-email {
    width: 42px;
    height: 44px;
  }
  .section-label {
    margin-bottom: 21px;
  }
  .section-label h2 {
    font-size: 10px;
  }
  .label-note {
    display: none;
  }
  .research-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .research-item {
    padding: 16px 0 16px 33px;
  }
  .research-item + .research-item {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0 18px 33px;
  }
  .research-number,
  .research-item + .research-item .research-number {
    position: absolute;
    left: 0;
    top: 21px;
    font-size: 9px;
    margin: 0;
  }
  .research-item h3 {
    font-size: 22px;
  }
  .research-item p {
    font-size: 12px;
    margin: 7px 0;
  }
  .research-tags {
    font-size: 9px;
  }
  .research-section {
    padding-bottom: 8px;
  }
  .research-grid .research-item:first-child {
    padding-top: 0;
  }
  .research-grid .research-item:first-child .research-number {
    top: 4px;
  }
  .home-columns {
    margin-top: 37px;
    gap: 30px;
  }
  .section-heading {
    gap: 10px;
    margin-bottom: 23px;
  }
  .section-heading h2 {
    font-size: 28px;
  }
  .section-heading .eyebrow {
    font-size: 8px;
  }
  .text-link {
    font-size: 10px;
    gap: 5px;
  }
  .paper-featured {
    grid-template-columns: 91px minmax(0, 1fr);
    gap: 15px;
    padding: 24px 0;
  }
  .paper-visual > span {
    font-size: 7px;
    padding: 6px;
  }
  .paper-visual > span .icon {
    display: none;
  }
  .paper-visual img {
    aspect-ratio: 1;
    object-fit: cover;
  }
  .paper-featured h3 {
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: 0;
  }
  .paper-meta {
    font-size: 9px;
    gap: 5px;
  }
  .oral-badge,
  .status-badge {
    font-size: 8px;
    padding: 2px 5px;
  }
  .paper-summary {
    font-size: 11px;
  }
  .paper-actions {
    gap: 8px;
    margin-top: 10px;
  }
  .resource-link {
    font-size: 10px;
    min-height: 38px;
  }
  .paper-actions .text-link {
    min-height: 38px;
  }
  .news-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .news-list li {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 15px;
    padding: 16px 0;
  }
  .news-list time {
    padding-top: 3px;
    font-size: 9px;
  }
  .news-list a {
    font-size: 12px;
  }
  .aside-link {
    max-width: none;
  }
  .education-section {
    margin-top: 25px;
    padding: 28px 0;
  }
  .education-grid {
    gap: 25px;
  }
  .education-section .section-heading h2 {
    font-size: 27px;
  }
  .education-section .text-link {
    font-size: 9px;
  }
  .site-footer {
    margin-top: 15px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    padding: 30px 0;
  }
  .footer-contact h2 {
    font-size: 28px;
  }
  .contact-details {
    text-align: left;
    width: 100%;
    min-width: 0;
  }
  .contact-email {
    font-size: 19px;
    gap: 10px;
    overflow-wrap: anywhere;
  }
  .footer-socials {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 21px;
    margin-top: 14px;
  }
  .footer-socials a {
    font-size: 11px;
    min-height: 40px;
  }
  .footer-bottom {
    font-size: 9px;
    gap: 12px;
    padding-top: 12px;
  }
  .footer-dot {
    margin: 0 4px;
  }
  .footer-bottom > span {
    max-width: 230px;
  }
  .back-top {
    white-space: nowrap;
    font-size: 9px;
    gap: 3px;
    min-height: 44px;
  }
  .page-heading {
    padding: 24px 0;
  }
  .back-link {
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 42px;
    letter-spacing: -1.5px;
    margin: 11px 0 16px;
  }
  .page-description {
    font-size: 14px;
  }
  .publications-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
  }
  .publications-intro p {
    font-size: 12px;
  }
  .publication-tools {
    gap: 15px;
    margin-top: 20px;
  }
  .filter-group {
    gap: 3px;
    width: 100%;
    justify-content: space-between;
  }
  .filter-group button {
    font-size: 11px;
    padding: 9px 10px;
  }
  .search-field {
    max-width: none;
  }
  .paper {
    padding: 24px 0;
  }
  .paper h3 {
    font-size: 15px;
  }
  .paper-authors {
    font-size: 12px;
  }
  .publication-list .paper-meta {
    font-size: 10px;
  }
  .paper-submission {
    font-size: 11px;
  }
  .project-topics {
    gap: 8px;
  }
  .project-topics a {
    font-size: 10px;
    padding: 10px;
  }
  .project-detail {
    padding: 27px 0;
  }
  .project-detail h2 {
    font-size: 23px;
    line-height: 1.5;
  }
  .project-detail li {
    font-size: 13px;
  }
  .project-detail ul {
    padding-left: 16px;
  }
  .cv-toolbar {
    gap: 13px;
    align-items: flex-start;
    flex-direction: column;
  }
  .section-nav {
    gap: 22px;
  }
  .section-nav a {
    min-height: 40px;
  }
  .prose h2 {
    font-size: 25px;
    margin-top: 33px;
  }
  .prose li {
    font-size: 13px;
    padding-left: 3px;
  }
  .prose ul {
    padding-left: 17px;
  }
  .talk {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 26px 0;
  }
  .talk-date {
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
  .talk-date > span:first-child {
    font-size: 25px;
  }
  .talk h2 {
    font-size: 22px;
  }
  .talk .eyebrow {
    font-size: 9px;
  }
  .toast {
    font-size: 12px;
  }
}
@media (max-width: 360px) {
  .container {
    width: calc(100% - 32px);
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 16px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero-actions {
    gap: 6px;
  }
  .button {
    padding-inline: 9px;
    font-size: 9px;
  }
  .hero-email {
    width: 36px;
  }
  .paper-featured {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }
  .contact-email {
    font-size: 17px;
  }
  .chinese-name {
    margin-top: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
  a:hover .icon,
  .button:hover,
  .paper-visual:hover {
    transform: none;
  }
}
@media print {
  .site-header,
  .header-controls,
  .hero-actions,
  .publication-tools,
  .copy-citation,
  .toast,
  .back-top,
  .back-link,
  .footer-socials,
  .skip-link {
    display: none !important;
  }
  :root,
  html[data-theme="dark"] {
    --paper: white;
    --surface: white;
    --ink: #111;
    --muted: #444;
    --subtle: #555;
    --line: #ccc;
    --accent: #702d39;
  }
  .container {
    width: 100%;
    max-width: none;
  }
  .hero {
    padding: 25px 0;
    grid-template-columns: 1fr 180px;
    gap: 35px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .home-columns {
    grid-template-columns: 1fr;
  }
  .news-section {
    break-inside: avoid;
  }
  .paper,
  .project-detail,
  .talk,
  .education-item {
    break-inside: avoid;
  }
  .page-heading {
    padding: 0 0 20px;
  }
  .footer-contact {
    padding: 20px 0;
  }
  .portrait-mat {
    transform: none;
  }
  .paper-visual {
    max-width: 130px;
  }
  .hero-statement {
    font-size: 23px;
  }
  body {
    font-size: 12px;
  }
  .content-note {
    margin-bottom: 20px;
  }
}

/* Progressive enhancement: navigation remains usable without JavaScript. */
html:not(.js-ready) .header-controls {
  display: none;
}
@media (max-width: 640px) {
  html:not(.js-ready) .header-inner {
    height: auto;
    min-height: 70px;
    padding-block: 12px;
  }
  html:not(.js-ready) .main-nav {
    display: flex;
    position: static;
    border: 0;
    box-shadow: none;
    width: 100%;
    padding: 0;
  }
  html:not(.js-ready) .site-header {
    position: relative;
  }
}

@media (max-width: 640px) {
  .research-item + .research-item .research-number {
    left: 0;
  }
}

/* CV: one rhythm for research, education, professional work, and recognition. */
.cv-section {
  border-top: 1px solid var(--line);
  padding: 38px 0;
}
.cv-section > .eyebrow {
  color: var(--accent);
  margin-bottom: 9px;
}
.cv-section > h2 {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  margin: 0 0 20px;
  scroll-margin-top: 120px;
}
.cv-research-focus > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  max-width: 780px;
}
.research-interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 18px 0;
  padding: 0;
}
.research-interest-list li {
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
  padding: 7px 10px;
}
.cv-research-focus > .text-link {
  align-items: flex-start;
  max-width: 100%;
  white-space: normal;
}
.cv-research-focus > .text-link .icon {
  margin-top: .2em;
}
.cv-education-list,
.cv-experience-list,
.cv-activity-list {
  display: grid;
  gap: 0;
}
.cv-education-entry,
.cv-experience-entry,
.cv-activity-list article {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.cv-education-entry:first-child,
.cv-experience-entry:first-child,
.cv-activity-list article:first-child {
  border-top: 0;
  padding-top: 0;
}
.cv-education-entry {
  align-items: flex-start;
  display: flex;
  gap: 16px;
}
.cv-education-entry .school-mark {
  flex: 0 0 46px;
}
.cv-entry-heading {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}
.cv-experience-entry,
.cv-activity-list article {
  scroll-margin-top: 115px;
}
.cv-experience-entry h3,
.cv-education-entry h3,
.cv-activity-list h3,
.cv-award-group h3,
.cv-service h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  margin: 0;
}
.cv-entry-org,
.cv-education-entry div > p:last-child,
.cv-activity-list article > p:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  margin: 5px 0 0;
}
.cv-entry-date {
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .25px;
  line-height: 1.6;
  margin: 2px 0 0;
  white-space: nowrap;
}
.cv-experience-entry ul,
.cv-award-group ul {
  margin: 15px 0 0;
  max-width: 800px;
  padding-left: 20px;
}
.cv-experience-entry li,
.cv-award-group li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 7px;
  padding-left: 4px;
}
.cv-experience-entry li::marker,
.cv-award-group li::marker {
  color: var(--accent);
}
.cv-experience-entry:target {
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}
.cv-recognition-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) 245px;
}
.cv-award-group + .cv-award-group {
  border-top: 1px solid var(--line);
  margin-top: 21px;
  padding-top: 21px;
}
.cv-award-group ul {
  margin-top: 10px;
}
.cv-service {
  align-self: start;
  background: var(--surface-soft);
  border-left: 2px solid var(--accent);
  padding: 20px;
}
.cv-service .eyebrow {
  color: var(--accent);
  margin-bottom: 8px;
}
.cv-service p:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 9px 0 0;
}
.cv-activity-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.cv-activity-list article + article {
  border-top: 0;
  padding-top: 0;
}
.paper-note {
  color: var(--subtle);
  font-size: 10px;
  font-style: italic;
  margin-top: 6px;
}

@media (max-width: 640px) {
  .cv-section {
    padding: 30px 0;
  }
  .cv-section > h2 {
    font-size: 25px;
  }
  .cv-entry-heading,
  .cv-recognition-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .cv-entry-date {
    white-space: normal;
  }
  .cv-experience-entry li,
  .cv-award-group li,
  .cv-entry-org,
  .cv-education-entry div > p:last-child,
  .cv-activity-list article > p:last-child {
    font-size: 12px;
  }
  .cv-activity-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cv-activity-list article + article {
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }
}

/* Current USC research sits above the selected publication archive. */
.current-research {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 48px;
  padding: 32px;
  margin-top: 38px;
  background: var(--surface-soft);
  border-left: 2px solid var(--accent);
}
.current-research-title .eyebrow { color: var(--accent); margin-bottom: 12px; }
.current-research h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.35; text-wrap: pretty; }
.current-research-copy > p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.current-research-copy .text-link { margin-top: 12px; min-height: 44px; }
.current-project { max-width: 960px; }
.current-project .current-project-question { font-size: 16px; line-height: 1.85; margin: 20px 0 26px; max-width: 840px; }
.research-aspect { scroll-margin-top: 115px; padding: 20px 0; border-top: 1px solid var(--line); max-width: 880px; }
.research-aspect h3 { font-size: 16px; font-weight: 600; line-height: 1.5; }
.research-aspect p { font-size: 14px; line-height: 1.85; margin: 9px 0 0; }
.current-project .research-scope { border-left: 2px solid var(--line); padding-left: 18px; margin-top: 22px; font-size: 13px; max-width: 880px; }
.project-history-heading { margin: 36px 0 25px; }
@media (max-width: 850px) {
  .current-research { gap: 28px; padding: 26px; }
  .current-research h2 { font-size: 25px; }
}
@media (max-width: 640px) {
  .current-research { grid-template-columns: 1fr; gap: 16px; padding: 22px 18px; margin-top: 28px; }
  .current-research h2 { font-size: 25px; }
  .current-research-copy > p { font-size: 13px; }
  .current-project .current-project-question { font-size: 14px; }
  .research-aspect h3 { font-size: 15px; }
  .research-aspect p { font-size: 13px; }
}
@media print { .current-research { break-inside: avoid; } }

/* Long-term interests connect earlier work with future questions. */
.research-item h3 { min-height: 2.6em; align-items: flex-start; }
.research-item h3 > span { text-wrap: balance; }
.research-item h3 .icon { margin-top: 5px; }
.research-threads { max-width: 960px; margin: 15px 0 45px; }
.research-threads .section-heading h2 { font-size: 28px; line-height: 1.4; }
.research-threads-intro { color: var(--muted); font-size: 14px; line-height: 1.85; max-width: 850px; margin-bottom: 25px; }
.research-thread { padding: 24px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.research-thread h3 { display: flex; align-items: baseline; gap: 12px; font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.4; }
.thread-number { color: var(--accent); font-family: var(--mono); font-size: 10px; }
.research-thread > p { margin-top: 12px; max-width: 850px; font-size: 14px; color: var(--muted); line-height: 1.85; }
.thread-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 13px; }
.thread-links .text-link { min-height: 44px; white-space: normal; }
.thread-links-label { font-family: var(--mono); color: var(--subtle); font-size: 10px; }
.research-thread:target { border-top-color: var(--accent); }
@media (min-width: 641px) and (max-width: 850px) { .research-item h3 { min-height: 3.9em; } }
@media (max-width: 640px) {
 .research-item h3 { min-height: 0; }
 .research-threads { margin-bottom: 30px; }
 .research-threads .section-heading h2 { font-size: 25px; }
 .research-thread h3 { font-size: 22px; }
 .research-thread > p, .research-threads-intro { font-size: 13px; }
 .thread-links { gap: 4px 16px; }
 .thread-links-label { flex-basis: 100%; }
}
