@font-face {
  font-family: "Wu Calligraphy";
  src: url("assets/ma-shan-zheng.woff2") format("woff2");
  font-display: swap;
}

:root {
  --paper: #f4efe3;
  --paper-deep: #e8dfca;
  --ink: #1d1a16;
  --muted: #48423b;
  --faint: #5b544b;
  --rule: #c9ba9c;
  --accent: #8b2f24;
  --accent-deep: #5d241d;
  --blue: #254f64;
  --green: #4f6139;
  --shadow: rgba(47, 34, 22, 0.11);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Gill Sans", "Gill Sans MT", "Trebuchet MS", Arial, sans-serif;
  --cjk-display: "Wu Calligraphy", "STKaiti", "Kaiti SC", KaiTi, BiauKai, STSong, "Songti SC", "Noto Serif CJK SC", serif;
  --weight-ui: 500;
  --weight-label: 600;
  --weight-label-strong: 650;
  --weight-badge: 700;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(110deg, rgba(139, 47, 36, 0.04), transparent 32%),
    linear-gradient(250deg, rgba(37, 79, 100, 0.035), transparent 28%),
    linear-gradient(90deg, rgba(78, 49, 20, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 42px 42px, auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(120, 91, 53, 0.045)),
    repeating-linear-gradient(0deg, rgba(52, 37, 20, 0.03) 0 1px, transparent 1px 5px);
  mix-blend-mode: multiply;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    radial-gradient(circle at 13% 21%, rgba(44, 32, 20, 0.15) 0 1px, transparent 1.6px),
    radial-gradient(circle at 71% 43%, rgba(44, 32, 20, 0.1) 0 1px, transparent 1.7px);
  background-size: 31px 37px, 43px 47px;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(93, 36, 29, 0.17);
  background: rgba(244, 239, 227, 0.93);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: var(--weight-label-strong);
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark img {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
}

.wordmark span {
  padding-bottom: 0.12rem;
  border-bottom: 1px solid var(--accent);
}

[lang="zh-Hans"] {
  font-family: var(--cjk-display);
}

.wordmark [lang="zh-Hans"] {
  margin-left: 0.12em;
  font-size: 1.14em;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.3rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: var(--weight-ui);
  text-transform: uppercase;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
}

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(17rem, 0.7fr);
  gap: 5.5rem;
  align-items: center;
  padding: 5.75rem 0 6.25rem;
}

.hero-copy {
  max-width: 41rem;
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: var(--weight-label-strong);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 9ch;
  margin: 1.35rem 0 0;
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 0.9;
}

h1 span,
h1 em {
  display: block;
}

h1 em {
  margin-top: 0.5rem;
  color: var(--accent-deep);
  font-family: var(--cjk-display);
  font-size: 2.45rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1;
}

.subtitle {
  max-width: 21em;
  margin: 2rem 0 0;
  color: var(--blue);
  font-size: 1.38rem;
  line-height: 1.24;
}

.lede {
  max-width: 38rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: var(--weight-ui);
  text-transform: uppercase;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.social-icon {
  display: grid;
  width: 2.35rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(139, 47, 36, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-deep);
  text-decoration: none;
}

.social-icon:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.social-icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.profile-card {
  position: relative;
  max-width: 20rem;
  justify-self: end;
  padding: 1.65rem;
  border: 1px solid var(--rule);
  background: rgba(232, 223, 202, 0.48);
  box-shadow: 0 24px 70px var(--shadow);
}

.profile-card::before {
  position: absolute;
  inset: 0.55rem;
  content: "";
  border: 1px solid rgba(139, 47, 36, 0.16);
  pointer-events: none;
}

.portrait-frame {
  position: relative;
  width: 8.5rem;
  aspect-ratio: 1;
  overflow: hidden;
  margin: 0 auto 1.65rem;
  border: 1px solid rgba(93, 36, 29, 0.38);
  border-radius: 50%;
  background: var(--paper-deep);
  box-shadow:
    0 0 0 0.4rem rgba(244, 239, 227, 0.88),
    0 0 0 0.46rem rgba(139, 47, 36, 0.2);
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  filter: saturate(0.84) contrast(1.03);
  transform: scale(1.18);
  transform-origin: 68% 48%;
}

.profile-copy {
  position: relative;
}

.profile-role {
  margin: 0;
  color: var(--green);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: var(--weight-label-strong);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-group {
  margin: 0.65rem 0 0;
  font-size: 1rem;
  line-height: 1.35;
  text-wrap: balance;
}

.profile-group a {
  color: var(--ink);
  text-decoration-color: rgba(139, 47, 36, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.profile-group a:hover {
  color: var(--accent-deep);
}

.profile-unit {
  margin: 0.42rem 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.profile-unit span {
  display: block;
}

.profile-affiliation {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.profile-programme {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(154, 142, 122, 0.42);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.profile-programme a {
  color: var(--ink);
  text-decoration-color: rgba(139, 47, 36, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.profile-programme a:hover {
  color: var(--accent-deep);
}

.profile-programme span {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.profile-identifiers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.profile-identifiers a {
  color: var(--accent-deep);
  text-decoration: none;
}

.profile-identifiers a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.section {
  padding: 6.5rem 0;
  border-top: 1px solid rgba(93, 36, 29, 0.17);
  scroll-margin-top: 5rem;
}

.section-intro {
  margin: 0 0 3.75rem;
}

h2 {
  max-width: 16em;
  margin: 0;
  color: var(--accent-deep);
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1;
}

.research-overview {
  max-width: 58rem;
}

.research-lead {
  margin: 0;
  color: var(--ink);
  font-size: 1.14rem;
  line-height: 1.8;
}

blockquote {
  margin: 0;
  padding: 0.1rem 0 0.1rem 1.35rem;
  border-left: 2px solid var(--accent);
  color: var(--accent-deep);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.65;
}

.research-areas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 3.5rem 0 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.research-areas article {
  min-width: 0;
  padding: 1.6rem 2rem 1.9rem;
}

.research-areas article + article {
  border-left: 1px solid var(--rule);
}

.research-areas span {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.1em;
}

.research-areas h3 {
  margin: 1rem 0 0;
  font-size: 1.38rem;
  font-weight: 400;
  line-height: 1.22;
}

.research-areas p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.66;
}

.project-line {
  display: block;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 3px double rgba(93, 36, 29, 0.3);
}

.project-line > span,
.publication-group > h3 {
  display: block;
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

.project-line > span {
  margin-bottom: 0.7rem;
}

.project-line strong {
  display: grid;
  gap: 0.32rem;
  font-size: 1rem;
  font-weight: 400;
}

.project-line strong a {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.4;
}

.project-funding {
  color: var(--green);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: var(--weight-label-strong);
  letter-spacing: 0.05em;
  line-height: 1.45;
  text-transform: uppercase;
}

.project-line p {
  max-width: 58rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.project-focus-title {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 1.04rem;
}

.publication-group {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.publication-group + .publication-group {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(154, 142, 122, 0.4);
}

.publication-group > h3 {
  position: sticky;
  top: 5rem;
  margin: 0.25rem 0 0;
}

.publication-list {
  display: grid;
  gap: 1.5rem;
}

.publication-card {
  position: relative;
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(154, 142, 122, 0.46);
  background: rgba(232, 223, 202, 0.34);
  box-shadow: 0 14px 40px rgba(47, 34, 22, 0.07);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.publication-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 79, 100, 0.4);
  box-shadow: 0 18px 48px rgba(47, 34, 22, 0.1);
}

.publication-card::after {
  position: absolute;
  inset: 0.4rem;
  content: "";
  border: 1px solid rgba(139, 47, 36, 0.1);
  pointer-events: none;
}

.pub-stamp {
  display: grid;
  min-height: 6.5rem;
  align-self: start;
  place-items: center;
  border: 1px solid rgba(93, 36, 29, 0.35);
  background: rgba(244, 239, 227, 0.66);
  color: var(--accent-deep);
  text-align: center;
}

.pub-stamp span {
  align-self: end;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.08em;
}

.pub-stamp small {
  align-self: start;
  margin-top: 0.25rem;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}

.pub-body {
  position: relative;
  min-width: 0;
}

.pub-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin-top: 0.7rem;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: var(--weight-ui);
}

.pub-labels span {
  line-height: 1.35;
}

.pub-labels span + span::before {
  margin-right: 0.7rem;
  color: var(--rule);
  content: "·";
}

.publication-card h4 {
  margin: 0.75rem 0 0;
  font-size: 1.32rem;
  font-weight: 400;
  line-height: 1.2;
}

.publication-card h4 a {
  color: var(--ink);
  text-decoration-color: rgba(139, 47, 36, 0.3);
}

.publication-card h4 a:hover {
  color: var(--blue);
}

.authors,
.contribution {
  color: var(--muted);
  line-height: 1.6;
}

.authors {
  margin: 0.8rem 0 0;
}

.publication-legend {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.4;
}

.contribution {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.85rem;
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(154, 142, 122, 0.36);
}

.contribution span {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: var(--weight-label-strong);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pub-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
}

.publication-links a {
  color: var(--accent-deep);
  text-decoration: none;
}

.publication-links a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.publication-card details {
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8125rem;
}

.publication-card summary {
  cursor: pointer;
  list-style: none;
  font-weight: 400;
}

.publication-card summary::before {
  margin-right: 0.35rem;
  content: "+";
}

.publication-card details[open] summary::before {
  content: "−";
}

.publication-card summary::-webkit-details-marker {
  display: none;
}

.publication-card pre {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0.85rem 0 0;
  padding: 0.85rem;
  border: 1px solid rgba(154, 142, 122, 0.38);
  background: rgba(244, 239, 227, 0.72);
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.earlier-work .publication-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.publication-card.compact {
  display: block;
}

.publication-card.compact .pub-footer {
  display: block;
}

.publication-card.compact .pub-footer details {
  margin-top: 0.9rem;
}

.publication-card.compact .pub-stamp {
  display: inline-grid;
  width: 5.75rem;
  min-height: 4.25rem;
  margin-bottom: 1.25rem;
}

.publication-card.compact h4 {
  font-size: 1.18rem;
}

.publication-card.compact .contribution {
  display: block;
}

.publication-card.compact .contribution span {
  display: block;
  margin-bottom: 0.35rem;
}

.news-list {
  max-width: 58rem;
  border-top: 1px solid var(--rule);
}

.news-item {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 2rem;
  padding: 1.55rem 0;
  border-bottom: 1px solid rgba(154, 142, 122, 0.42);
}

.news-date {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.news-item time,
.education-entry time {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.news-item h3 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.25;
}

.news-item h3 a {
  color: var(--ink);
}

.news-item p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.news-item.featured {
  padding-top: 1.25rem;
  border-top: 2px solid var(--accent);
}

.news-mark {
  display: inline-block;
  justify-self: start;
  padding: 0.2rem 0.42rem;
  border: 1px solid rgba(139, 47, 36, 0.42);
  color: var(--accent-deep);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: var(--weight-badge);
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.news-item .news-source {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: var(--weight-ui);
  text-transform: uppercase;
}

.news-source a {
  color: var(--accent-deep);
  text-decoration: none;
}

.news-source a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.news-item.compact {
  padding: 1.1rem 0;
}

.news-item.compact h3 {
  font-size: 1.15rem;
}

.section-more {
  margin: 1.35rem 0 0;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: var(--weight-ui);
  text-transform: uppercase;
}

.section-more a {
  color: var(--accent-deep);
  text-decoration: none;
}

.section-more a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.teaching-list {
  max-width: 58rem;
  border-top: 1px solid var(--rule);
}

.teaching-item {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 2rem;
  padding: 1.55rem 0;
  border-bottom: 1px solid rgba(154, 142, 122, 0.42);
}

.teaching-item time {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.teaching-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--green);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: var(--weight-label-strong);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.teaching-meta span + span::before {
  margin-right: 0.8rem;
  color: var(--rule);
  content: "/";
}

.teaching-item h3 {
  margin: 0.55rem 0 0;
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.25;
}

.teaching-item p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.elsewhere {
  display: grid;
  grid-template-columns: 10rem minmax(0, 42rem);
  gap: 3.5rem;
  align-items: start;
  padding: 3.5rem 0 4.5rem;
  border-top: 1px solid rgba(93, 36, 29, 0.17);
}

.elsewhere h2 {
  margin: 0;
  color: var(--accent-deep);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
}

.elsewhere p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.education-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.education-timeline {
  display: grid;
}

.education-entry {
  display: grid;
  grid-template-areas: "date copy logo";
  grid-template-columns: 8.5rem minmax(0, 1fr) 7rem;
  gap: 1.5rem;
  align-items: start;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(154, 142, 122, 0.42);
}

.education-entry:last-child {
  border-bottom: 1px solid rgba(154, 142, 122, 0.42);
}

.education-entry time {
  grid-area: date;
}

.education-copy {
  grid-area: copy;
}

.education-logo {
  grid-area: logo;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 6.5rem;
  height: 4.25rem;
  object-fit: contain;
  object-position: center right;
  opacity: 0.78;
}

.education-entry h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 400;
}

.education-entry h3 a {
  color: inherit;
  text-decoration-color: rgba(139, 47, 36, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.education-entry h3 a:hover {
  color: var(--accent-deep);
}

.education-entry p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.education-place {
  margin-top: 0.45rem;
}

.education-thesis {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.education-thesis span {
  color: var(--ink);
}

.education-thesis em {
  font-style: italic;
}

.education-entry p strong {
  color: var(--ink);
  font-weight: 400;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid rgba(93, 36, 29, 0.17);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.top-link {
  display: grid;
  width: 2.25rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(139, 47, 36, 0.38);
  border-radius: 50%;
  color: var(--accent-deep);
  text-decoration: none;
}

.top-link:hover {
  border-color: var(--blue);
  color: var(--blue);
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 4.5rem 0 5.5rem;
  }

  h1 {
    font-size: 3.4rem;
  }

  .profile-card {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 1.75rem;
    align-items: center;
    width: 100%;
    max-width: 31rem;
    justify-self: start;
  }

  .portrait-frame {
    width: 7.5rem;
    margin: 0;
  }

  .section {
    padding: 5.5rem 0;
  }

  .section-intro {
    margin-bottom: 3rem;
    margin-left: 0;
  }

  .research-overview,
  .news-list,
  .section-more,
  .teaching-list,
  .education-grid {
    margin-left: 0;
  }

  .research-overview {
    gap: 3rem;
  }

  .publication-group {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .publication-group > h3 {
    position: static;
  }

  .earlier-work .publication-list {
    grid-template-columns: 1fr;
  }

  .elsewhere {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .nav {
    gap: 0.7rem 0.9rem;
    font-size: 0.8125rem;
  }

  .hero {
    gap: 3.25rem;
    padding: 3.75rem 0 4.75rem;
  }

  h1 {
    font-size: 2.9rem;
  }

  h1 em {
    font-size: 1.7rem;
  }

  .subtitle {
    font-size: 1.28rem;
  }

  .lede {
    font-size: 1rem;
  }

  .profile-card {
    display: block;
    max-width: 24rem;
  }

  .portrait-frame {
    margin: 0 auto 1.5rem;
  }

  .section {
    padding: 4.75rem 0;
  }

  h2 {
    font-size: 2.2rem;
  }

  .research-overview,
  .education-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .research-lead {
    font-size: 1.05rem;
  }

  .research-areas {
    grid-template-columns: 1fr;
  }

  .research-areas article + article {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .publication-card {
    grid-template-columns: 1fr;
  }

  .pub-stamp {
    display: inline-grid;
    width: 5.75rem;
    min-height: 4.25rem;
  }

  .contribution {
    display: block;
  }

  .contribution span {
    display: block;
    margin-bottom: 0.35rem;
  }

  .pub-footer {
    display: block;
  }

  .publication-card details {
    margin-top: 0.9rem;
  }

  .news-item,
  .teaching-item {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .education-entry {
    grid-template-areas:
      "date logo"
      "copy copy";
    grid-template-columns: minmax(0, 1fr) 5.5rem;
    gap: 0.55rem 1rem;
  }

  .education-logo {
    height: 3.25rem;
  }
}

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

  .publication-card {
    transition: none;
  }

  .publication-card:hover {
    transform: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  body::before,
  .grain,
  .site-header,
  .hero-actions,
  .top-link,
  details {
    display: none;
  }

  main {
    max-width: none;
    padding: 0;
  }

  .hero,
  .section {
    padding: 2rem 0;
  }

  .profile-card,
  .publication-card {
    box-shadow: none;
  }
}
