/* Kannmu v2: research-led visual system */
:root {
  --ink: #0d1110;
  --ink-soft: #19201e;
  --paper: #f4f6f2;
  --surface: #ffffff;
  --surface-soft: #e9eeea;
  --text: #202624;
  --muted: #66706d;
  --line: #d4dcd7;
  --signal: #f26a3d;
  --aqua: #55d6be;
  --link: #126b62;
  --nav-bg: rgba(244, 246, 242, 0.94);
  --shadow: rgba(13, 17, 16, 0.14);
  --font-display: "Bahnschrift", "DIN Alternate", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Aptos", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --nav-height: 72px;
  --shell: 1180px;
}

[data-theme="dark"] {
  --paper: #101513;
  --surface: #171d1b;
  --surface-soft: #202825;
  --text: #edf2ee;
  --muted: #a7b0ac;
  --line: #35403c;
  --link: #75dfcd;
  --nav-bg: rgba(13, 17, 16, 0.94);
  --shadow: rgba(0, 0, 0, 0.3);
  --bg-color: var(--paper);
  --text-color: var(--text);
  --heading-color: var(--text);
  --post-container-bg: var(--surface);
  --footer-bg: var(--ink);
  --link-color: var(--link);
  --border-color: var(--line);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body,
button,
input {
  font-family: var(--font-body);
  letter-spacing: 0;
}

body.nav-open,
body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover,
a:focus {
  color: var(--signal);
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

[data-lang] {
  display: none;
}

html[data-language="zh"] [data-lang="zh"],
html[data-language="en"] [data-lang="en"] {
  display: inline;
}

.site-shell {
  width: min(calc(100% - 64px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5000;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: 4px;
  background: var(--signal);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
  color: #fff;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-band {
  padding: 112px 0;
  background: var(--paper);
}

.section-band--light {
  background: var(--surface);
}

.section-band--soft {
  background: var(--surface-soft);
}

.section-band--ink {
  background: var(--ink);
  color: #edf2ee;
}

.section-band--ink .eyebrow,
.section-band--ink p {
  color: #aeb8b3;
}

.section-band--ink h2,
.section-band--ink h3 {
  color: #f7faf7;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 64px;
}

.section-heading--row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.section-heading h2,
.profile-overview__copy h2,
.current-work__content > h2,
.awards-skills h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-index {
  flex: none;
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.inline-link,
.text-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.inline-link i,
.text-action i {
  transition: transform 180ms ease;
}

.inline-link:hover i,
.text-action:hover i {
  transform: translateX(5px);
}

.text-action--light {
  color: #fff;
}

.text-action--light:hover,
.text-action--light:focus {
  color: var(--aqua);
}

.text-action--quiet {
  color: #c7d0cc;
  font-weight: 500;
}

.icon-link {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  text-decoration: none;
}

.icon-link:hover {
  border-color: var(--signal);
  background: var(--signal);
  color: #fff;
}

/* Navigation */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--nav-height);
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  color: var(--text);
  backdrop-filter: blur(18px);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.page-home .site-nav:not(.site-nav--scrolled),
.page-about .site-nav:not(.site-nav--scrolled) {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(13, 17, 16, 0.22);
  color: #fff;
  backdrop-filter: blur(8px);
}

.site-nav--scrolled {
  box-shadow: 0 10px 30px var(--shadow);
}

.site-nav__inner {
  display: flex;
  width: min(calc(100% - 48px), 1320px);
  height: 100%;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
}

.site-nav__brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav__brand:hover,
.site-nav__brand:focus {
  color: var(--signal);
}

.site-nav__mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 14px;
}

.site-nav__panel,
.site-nav__links,
.site-nav__tools {
  display: flex;
  align-items: center;
}

.site-nav__panel {
  gap: 36px;
}

.site-nav__links {
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__links a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: inherit;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav__links a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--signal);
  content: "";
  transition: transform 180ms ease;
}

.site-nav__links a:hover,
.site-nav__links a:focus,
.site-nav__links a[aria-current="page"] {
  color: inherit;
}

.site-nav__links a:hover::after,
.site-nav__links a:focus::after,
.site-nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav__tools {
  gap: 6px;
}

.site-nav__icon,
.site-nav__language,
.site-nav__menu-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.site-nav__icon:hover,
.site-nav__language:hover,
.site-nav__menu-button:hover {
  background: rgba(128, 137, 133, 0.14);
  color: var(--signal);
}

.site-nav__language {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.site-nav__menu-button {
  display: none;
  font-size: 20px;
}

/* Home hero */
.home-hero {
  position: relative;
  display: flex;
  min-height: 640px;
  height: 84svh;
  max-height: 800px;
  overflow: hidden;
  align-items: center;
  background: var(--ink);
  color: #fff;
}

.home-hero__image,
.home-hero__veil,
.signal-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero__image {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.08);
}

.home-hero__veil {
  background: rgba(6, 10, 9, 0.63);
}

.signal-field {
  z-index: 1;
  pointer-events: none;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 32px;
}

.home-hero__eyebrow {
  color: var(--aqua);
}

.home-hero h1 {
  max-width: 860px;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 750;
  line-height: 0.94;
  letter-spacing: 0;
}

.home-hero__name,
.home-hero__name-zh {
  display: block;
}

.home-hero__name-zh {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.home-hero__statement {
  max-width: 640px;
  margin: 34px 0 0;
  color: #f0f4f1;
  font-size: 24px;
  line-height: 1.45;
}

.home-hero__actions {
  display: flex;
  margin-top: 34px;
  gap: 34px;
}

.home-hero__rail {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  min-height: 64px;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: #d8dfdb;
  font-family: var(--font-mono);
  font-size: 12px;
}

.home-hero__rail > span:nth-child(2) {
  text-align: center;
}

.home-hero__rail > span:last-child {
  text-align: right;
}

.home-hero__status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 5px rgba(85, 214, 190, 0.15);
}

.home-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 100px;
}

.home-intro .section-heading {
  margin: 0;
}

.home-intro__copy p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
}

/* Research index */
.research-index__list {
  border-top: 1px solid var(--line);
}

.research-line {
  display: grid;
  grid-template-columns: 80px minmax(220px, 0.75fr) minmax(300px, 1.25fr);
  gap: 28px;
  padding: 34px 0;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.research-line__number {
  margin: 3px 0 0;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 13px;
}

.research-line h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 650;
  line-height: 1.25;
}

.research-line > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* Featured study */
.featured-study__grid,
.current-work__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 76px;
  align-items: center;
}

.featured-study__visual,
.current-work__visual {
  margin: 0;
}

.featured-study__visual img,
.current-work__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 4px;
  background: #fff;
}

.featured-study__visual figcaption,
.current-work__visual > p {
  margin: 12px 0 0;
  color: #87928d;
  font-family: var(--font-mono);
  font-size: 12px;
}

.featured-study__journal {
  margin: 0 0 20px;
  color: var(--aqua) !important;
  font-family: var(--font-mono);
  font-size: 13px;
}

.featured-study__content h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 37px;
  font-weight: 650;
  line-height: 1.15;
}

.featured-study__content > p:not(.eyebrow):not(.featured-study__journal) {
  font-size: 17px;
  line-height: 1.75;
}

/* Publication and note lists */
.publication-preview-list,
.publication-list,
.notes-list {
  border-top: 1px solid var(--line);
}

.publication-preview {
  display: grid;
  grid-template-columns: 76px 1fr 32px;
  gap: 28px;
  padding: 30px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.publication-preview__year {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 13px;
}

.publication-preview__body {
  display: grid;
  gap: 8px;
}

.publication-preview__body strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}

.publication-preview__body > span {
  color: var(--muted);
  font-size: 14px;
}

.publication-preview > i {
  transform: rotate(45deg);
  color: var(--muted);
  transition: transform 180ms ease, color 180ms ease;
}

.publication-preview:hover > i {
  transform: rotate(45deg) translateY(-4px);
  color: var(--signal);
}

.note-row {
  display: grid;
  grid-template-columns: 130px 1fr 44px;
  gap: 32px;
  padding: 32px 0;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.note-row time,
.note-row__tags {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.note-row__tags {
  margin: 0 0 8px;
}

.note-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 650;
  line-height: 1.35;
}

.note-row h3 a {
  color: var(--text);
  text-decoration: none;
}

.note-row h3 a:hover {
  color: var(--signal);
}

.note-row__subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* About masthead */
.profile-masthead {
  position: relative;
  overflow: hidden;
  padding: 176px 0 48px;
  background: var(--ink);
  color: #edf2ee;
}

.profile-masthead::after {
  position: absolute;
  top: 112px;
  right: -90px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(85, 214, 190, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(85, 214, 190, 0.05), 0 0 0 88px rgba(242, 106, 61, 0.04);
  content: "";
}

.profile-masthead__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 80px;
  align-items: end;
}

.profile-masthead .eyebrow {
  color: var(--aqua);
}

.profile-masthead h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 78px;
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: 0;
}

.profile-masthead h1 span {
  display: block;
  margin-top: 18px;
  color: #aeb8b3;
  font-size: 25px;
  font-weight: 500;
}

.profile-masthead__role {
  margin: 30px 0 0;
  color: #d5ddd9;
  font-size: 18px;
}

.profile-masthead__statement > p {
  margin: 0 0 24px;
  color: #f1f4f2;
  font-size: 26px;
  line-height: 1.5;
}

.profile-masthead__statement > span {
  color: #8f9a95;
  font-family: var(--font-mono);
  font-size: 12px;
}

.profile-links {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 76px;
  padding-top: 24px;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.profile-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: #cdd6d2;
  font-size: 14px;
  text-decoration: none;
}

.profile-links a:hover {
  color: var(--aqua);
}

.profile-overview__grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 100px;
  align-items: start;
}

.profile-portrait {
  margin: 0;
}

.profile-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(0.78) contrast(1.06);
}

.profile-portrait figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.profile-overview__copy > p:not(.eyebrow) {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.profile-facts {
  display: grid;
  margin: 50px 0 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.profile-facts > div {
  padding: 24px 18px 0 0;
}

.profile-facts dt {
  color: var(--signal);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

.profile-facts dd {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.current-work__visual img {
  aspect-ratio: 4 / 3;
}

.current-work__content > h2 {
  color: #fff;
}

.project-list {
  margin-top: 34px;
  border-top: 1px solid #35403c;
}

.project-entry {
  padding: 26px 0;
  border-bottom: 1px solid #35403c;
}

.project-entry > p:first-child {
  margin: 0 0 8px;
  color: var(--aqua);
  font-family: var(--font-mono);
  font-size: 11px;
}

.project-entry h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.project-entry > p:last-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.publication-entry {
  display: grid;
  grid-template-columns: 76px 1fr 44px;
  gap: 28px;
  padding: 32px 0;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.publication-entry__year,
.publication-entry__meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.publication-entry__year {
  margin: 5px 0 0;
  color: var(--signal);
}

.publication-entry__meta {
  margin: 0 0 10px;
}

.publication-entry h3 {
  max-width: 900px;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.4;
}

.publication-entry__authors {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.cv-columns,
.awards-skills__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 96px;
}

.cv-column > h3 {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--text);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 4px 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-entry > p:first-child {
  grid-row: 1 / span 2;
  margin: 2px 0 0;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 11px;
}

.timeline-entry h4 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}

.timeline-entry > p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.awards-skills__grid > section > h2 {
  margin-bottom: 42px;
}

.award-list,
.skill-list {
  border-top: 1px solid var(--line);
}

.award-list > p,
.skill-list > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.award-list span,
.skill-list strong {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 12px;
}

.award-list strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
}

.skill-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Search */
.search-page {
  display: flex;
  padding: 120px 0 40px;
  align-items: flex-start;
  overflow-y: auto;
  transform: none;
  background: rgba(13, 17, 16, 0.98);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: none;
  visibility: hidden;
  z-index: 1200;
}

.search-page.search-active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  visibility: visible;
}

.search-page .search-main {
  height: auto;
  padding-top: 0;
  opacity: 1;
  transition: none;
}

.search-page .search-main .row,
.search-page .search-main .row > div {
  height: auto;
}

.search-icon-close {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #46514d;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.search-label {
  display: block;
  margin-bottom: 20px;
  color: var(--aqua);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
}

.search-page #search-input {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 2px solid #56625d;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.2;
}

.search-page #search-input:focus {
  border-color: var(--aqua);
  outline: none;
}

.search-page #search-results {
  height: auto;
  max-height: calc(100svh - 270px);
  margin-top: 42px;
  padding-bottom: 40px;
  overflow-y: auto;
}

.search-result {
  border-bottom: 1px solid #35403c;
}

.search-result a {
  display: block;
  padding: 20px 0;
  color: #fff;
  text-decoration: none;
}

.search-result h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.search-result p {
  margin: 7px 0 0;
  color: #929e99;
  font-size: 14px;
}

.search-result a:hover h2 {
  color: var(--aqua);
}

.search-empty {
  color: #929e99;
  font-size: 15px;
}

#search-results .post-title,
#search-results .post-subtitle {
  color: #fff;
}

/* Footer */
.site-footer {
  margin: 0;
  padding: 62px 0 36px;
  border: 0;
  background: var(--ink);
  color: #d7dfdb;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 64px;
}

.site-footer__name {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.site-footer__name span {
  color: var(--aqua);
}

.site-footer__note,
.site-footer__copyright {
  margin: 8px 0 0;
  color: #8e9994;
  font-size: 13px;
}

.site-footer__links {
  display: flex;
  align-items: start;
  gap: 24px;
}

.site-footer__links a {
  color: #c6cfcb;
  font-size: 13px;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--aqua);
}

.site-footer__copyright {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid #2b3431;
}

.wechat-preview {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Legacy Jekyll pages */
body:not(.page-home):not(.page-about) .intro-header {
  margin-top: 0;
}

body:not(.page-home):not(.page-about) .intro-header .header-mask {
  background: rgba(8, 12, 11, 0.5);
}

body:not(.page-home):not(.page-about) .intro-header .site-heading h1,
body:not(.page-home):not(.page-about) .intro-header .post-heading h1 {
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 0;
}

body:not(.page-home):not(.page-about) .intro-header .post-heading .subheading,
body:not(.page-home):not(.page-about) .intro-header .post-heading .meta {
  color: #f1f5f2;
}

body:not(.page-home):not(.page-about) #tag_cloud .tag-button,
body:not(.page-home):not(.page-about) #tag_cloud .tag-button--all {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
}

body:not(.page-home):not(.page-about) #tag_cloud .tag-button:hover,
body:not(.page-home):not(.page-about) #tag_cloud .tag-button--all:hover,
body:not(.page-home):not(.page-about) #tag_cloud .tag-button.focus,
body:not(.page-home):not(.page-about) #tag_cloud .tag-button--all.focus {
  border-color: var(--signal);
  background: var(--signal);
  color: #fff;
}

body:not(.page-home):not(.page-about) .post-preview > a > .post-title,
body:not(.page-home):not(.page-about) .post-preview > a > .post-subtitle {
  color: var(--text);
}

body:not(.page-home):not(.page-about) .post-preview > a > .post-title {
  font-family: var(--font-display);
  letter-spacing: 0;
}

body:not(.page-home):not(.page-about) .post-content-preview,
body:not(.page-home):not(.page-about) .post-meta {
  color: var(--muted);
}

@media (max-width: 991px) {
  :root {
    --nav-height: 64px;
  }

  .site-shell {
    width: min(calc(100% - 40px), var(--shell));
  }

  .section-band {
    padding: 84px 0;
  }

  .section-heading h2,
  .profile-overview__copy h2,
  .current-work__content > h2,
  .awards-skills h2 {
    font-size: 38px;
  }

  .site-nav__inner {
    width: calc(100% - 32px);
  }

  .site-nav__menu-button {
    display: inline-grid;
  }

  .site-nav__panel {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    left: 0;
    display: block;
    max-height: calc(100svh - var(--nav-height));
    padding: 18px 20px 26px;
    overflow-y: auto;
    transform: translateY(-12px);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    color: var(--text);
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 18px 38px var(--shadow);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .site-nav.is-open .site-nav__panel {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav__links {
    display: grid;
    gap: 0;
  }

  .site-nav__links li {
    border-bottom: 1px solid var(--line);
  }

  .site-nav__links a {
    width: 100%;
    min-height: 54px;
    font-size: 17px;
  }

  .site-nav__links a::after {
    display: none;
  }

  .site-nav__tools {
    margin-top: 16px;
  }

  .home-hero h1 {
    font-size: 72px;
  }

  .home-intro__grid,
  .featured-study__grid,
  .current-work__grid,
  .profile-masthead__grid,
  .profile-overview__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .profile-portrait {
    width: min(320px, 100%);
  }

  .profile-masthead__statement {
    max-width: 700px;
  }

  .research-line {
    grid-template-columns: 54px minmax(180px, 0.7fr) minmax(260px, 1.3fr);
    gap: 20px;
  }

  .featured-study__grid,
  .current-work__grid {
    align-items: start;
  }

  .current-work__visual img {
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .site-shell {
    width: calc(100% - 32px);
  }

  .section-band {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading--row {
    display: block;
  }

  .section-heading h2,
  .profile-overview__copy h2,
  .current-work__content > h2,
  .awards-skills h2 {
    font-size: 31px;
    line-height: 1.18;
  }

  .section-index,
  .section-heading--row > .inline-link {
    margin-top: 20px;
  }

  .site-nav__wordmark {
    font-size: 13px;
  }

  .home-hero {
    min-height: 650px;
    height: 82svh;
    max-height: 720px;
    align-items: flex-start;
  }

  .home-hero__image {
    object-position: 58% center;
  }

  .home-hero__veil {
    background: rgba(6, 10, 9, 0.67);
  }

  .home-hero__content {
    padding-top: 150px;
  }

  .home-hero h1 {
    font-size: 50px;
    line-height: 1;
  }

  .home-hero__name-zh {
    margin-top: 14px;
    font-size: 21px;
  }

  .home-hero__statement {
    margin-top: 26px;
    font-size: 20px;
  }

  .home-hero__actions {
    margin-top: 24px;
    gap: 22px;
  }

  .home-hero__rail {
    min-height: 58px;
    grid-template-columns: 1fr 1fr;
  }

  .home-hero__rail > span:nth-child(2) {
    display: none;
  }

  .home-hero__rail > span:last-child {
    text-align: right;
  }

  .home-intro__grid {
    gap: 34px;
  }

  .home-intro__copy p {
    font-size: 17px;
  }

  .research-line {
    grid-template-columns: 42px 1fr;
    gap: 8px 16px;
    padding: 28px 0;
  }

  .research-line h3 {
    font-size: 23px;
  }

  .research-line > p:last-child {
    grid-column: 2;
  }

  .featured-study__grid,
  .current-work__grid {
    gap: 42px;
  }

  .featured-study__visual img,
  .current-work__visual img {
    aspect-ratio: 4 / 3;
  }

  .featured-study__content h2 {
    font-size: 28px;
  }

  .publication-preview {
    grid-template-columns: 50px 1fr;
    gap: 16px;
    padding: 26px 0;
  }

  .publication-preview__body strong {
    font-size: 19px;
  }

  .publication-preview > i {
    display: none;
  }

  .note-row {
    grid-template-columns: 1fr 44px;
    gap: 14px;
    padding: 26px 0;
  }

  .note-row time {
    grid-column: 1 / -1;
  }

  .note-row h3 {
    font-size: 21px;
  }

  .profile-masthead {
    padding: 136px 0 38px;
  }

  .profile-masthead::after {
    top: 90px;
    right: -180px;
  }

  .profile-masthead h1 {
    font-size: 52px;
  }

  .profile-masthead__statement > p {
    font-size: 21px;
  }

  .profile-links {
    margin-top: 48px;
    gap: 10px 20px;
    flex-wrap: wrap;
  }

  .profile-links a {
    font-size: 13px;
  }

  .profile-facts {
    gap: 10px;
  }

  .profile-facts dt {
    font-size: 28px;
  }

  .profile-facts dd {
    font-size: 11px;
  }

  .publication-entry {
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 28px 0;
  }

  .publication-entry h3 {
    font-size: 19px;
  }

  .publication-entry > .icon-link {
    display: none;
  }

  .cv-columns,
  .awards-skills__grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .timeline-entry {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .timeline-entry > p:first-child {
    grid-row: auto;
    margin-bottom: 6px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__links {
    gap: 18px;
    flex-wrap: wrap;
  }

  #search-input {
    font-size: 26px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .signal-field {
    display: none;
  }
}

@media print {
  .site-nav,
  .search-page,
  .signal-field,
  .site-footer {
    display: none !important;
  }

  .section-band,
  .profile-masthead {
    padding: 36px 0;
  }

  body {
    background: #fff;
    color: #000;
  }
}
