@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:wght@400;500;600&display=swap");

:root {
  --font-serif: "Cormorant Garamond";
  --font-sans: "DM Sans";
  --ink: #102c3d;
  --ink-soft: #3e5664;
  --paper: #f5f1e8;
  --paper-deep: #e9e3d7;
  --line: #c9c3b7;
  --teal: #0d6971;
  --white: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans), Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 5px;
}

.topbar {
  align-items: center;
  background: var(--ink);
  display: flex;
  justify-content: flex-end;
  min-height: 36px;
  padding: 0 clamp(24px, 5vw, 80px);
}

.site-header {
  align-items: center;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(18px, 3vw, 44px);
  grid-template-columns: 1fr auto;
  min-height: 82px;
  padding: 0 clamp(24px, 5vw, 80px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.wordmark {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
  letter-spacing: .04em;
}

.wordmark-mark {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  font-family: var(--font-serif), Georgia, serif;
  font-size: 16px;
  height: 36px;
  justify-content: center;
  letter-spacing: -.04em;
  width: 36px;
}

nav {
  display: flex;
  gap: clamp(20px, 3vw, 42px);
}

nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

nav a:hover,
footer a:hover {
  color: var(--teal);
}

.language-switch {
  align-items: center;
  border: 1px solid #526774;
  display: flex;
  font-size: 10px;
  gap: 6px;
  padding: 5px 9px;
}

.language-switch span {
  color: #526774;
}

.language-switch button {
  appearance: none;
  background: transparent;
  border: 0;
  color: #c4ced3;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 2px;
}

.language-switch button:hover,
.language-switch button.active {
  color: var(--teal);
}

.language-switch button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

main,
footer {
  margin: 0 auto;
  max-width: 1600px;
}

.hero {
  min-height: calc(100vh - 118px);
  padding: clamp(72px, 10vw, 150px) clamp(24px, 7vw, 112px) 88px;
  position: relative;
}

.hero::after {
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  inset: 0 0 auto auto;
  height: 42%;
  mask-image: linear-gradient(to bottom left, black, transparent 72%);
  opacity: .24;
  pointer-events: none;
  position: absolute;
  width: 45%;
}

.hero-kicker {
  align-items: center;
  display: flex;
  font-size: 11px;
  font-weight: 600;
  gap: 9px;
  letter-spacing: .12em;
  margin-bottom: clamp(52px, 8vw, 100px);
  text-transform: uppercase;
}

.status-dot {
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--teal) 15%, transparent);
  height: 7px;
  width: 7px;
}

.hero-grid {
  align-items: end;
  display: grid;
  gap: clamp(56px, 11vw, 170px);
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .6fr);
}

.eyebrow,
.card-label,
.info-label,
.timeline-type {
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-serif), Georgia, serif;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .92;
}

h1 {
  font-size: clamp(70px, 10.5vw, 156px);
  margin-bottom: 38px;
}

h1 span {
  color: var(--ink-soft);
  display: block;
  font-family: "Songti SC", "STSong", serif;
  font-size: .34em;
  font-weight: 400;
  letter-spacing: .15em;
  line-height: 1.5;
  margin-top: 18px;
}

.hero-copy {
  color: var(--ink-soft);
  font-family: var(--font-serif), Georgia, serif;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.35;
  margin-bottom: 42px;
  max-width: 800px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 24px;
  letter-spacing: .06em;
  padding: 14px 19px;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-primary:hover {
  background: var(--teal);
}

.button-quiet {
  border: 1px solid var(--line);
}

.button-quiet:hover {
  border-color: var(--ink);
}

.hero-card {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.card-role {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 31px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-card > p:not(.card-label, .card-role) {
  color: var(--ink-soft);
  font-size: 14px;
}

.card-rule {
  border-top: 1px solid var(--line);
  margin: 26px 0;
}

.hero-card dl {
  margin: 0;
}

.hero-card dl div {
  display: grid;
  gap: 12px;
  grid-template-columns: 90px 1fr;
  margin: 14px 0;
}

.hero-card dt {
  color: var(--ink-soft);
  font-size: 11px;
  text-transform: uppercase;
}

.hero-card dd {
  font-size: 13px;
  margin: 0;
}

.section {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1.75fr);
  padding: clamp(78px, 10vw, 140px) clamp(24px, 7vw, 112px);
}

.section-heading {
  padding-right: 40px;
}

.section-number {
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(43px, 5vw, 70px);
}

.publication {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 26px;
  grid-template-columns: 45px 1fr auto;
  padding: 30px 0 34px;
}

.publication:last-child {
  border-bottom: 1px solid var(--line);
}

.publication-number {
  color: var(--ink-soft);
  font-family: var(--font-serif), Georgia, serif;
  font-size: 14px;
}

.publication h3,
.timeline h3,
.info-block h3 {
  font-family: var(--font-serif), Georgia, serif;
  font-size: clamp(22px, 2.2vw, 31px);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 10px;
}

.publication-authors {
  font-size: 13px;
  margin-bottom: 3px;
}

.publication-venue {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 0;
}

.publication > a {
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  padding-bottom: 3px;
  text-transform: uppercase;
}

.publication > a:hover {
  color: var(--teal);
}

.timeline article {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 40px;
  grid-template-columns: 135px 1fr;
  padding: 30px 0;
}

.timeline article:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  color: var(--ink-soft);
  font-size: 12px;
}

.timeline-type {
  margin-bottom: 10px;
}

.timeline h3 {
  margin-bottom: 5px;
}

.timeline h3 + p,
.timeline-detail,
.info-block p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 7px;
}

.timeline-detail {
  margin-top: 18px;
}

.info-block {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.info-block h3 {
  font-size: 25px;
  margin-top: 28px;
}

.info-entry:first-of-type h3 {
  margin-top: 20px;
}

.site-shell[data-language="zh"] {
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", var(--font-sans), sans-serif;
}

.site-shell[data-language="zh"] h1,
.site-shell[data-language="zh"] h2,
.site-shell[data-language="zh"] .hero-copy,
.site-shell[data-language="zh"] .card-role,
.site-shell[data-language="zh"] .timeline h3,
.site-shell[data-language="zh"] .info-block h3,
.site-shell[data-language="zh"] .contact > p:not(.eyebrow) {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

.site-shell[data-language="zh"] h1 span {
  font-family: var(--font-serif), Georgia, serif;
  letter-spacing: .04em;
}

.site-shell[data-language="zh"] h2,
.site-shell[data-language="zh"] .hero-copy {
  line-height: 1.3;
}

.contact {
  background: var(--ink);
  color: var(--white);
  padding: clamp(82px, 11vw, 155px) clamp(24px, 12vw, 190px);
}

.contact .eyebrow {
  color: #7ac0bd;
}

.contact h2 {
  font-size: clamp(54px, 8vw, 116px);
  margin-bottom: 36px;
  max-width: 1000px;
}

.contact > p:not(.eyebrow) {
  color: #c4ced3;
  font-family: var(--font-serif), Georgia, serif;
  font-size: clamp(20px, 2.1vw, 29px);
  max-width: 740px;
}

.contact-links {
  border-top: 1px solid #526774;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 44px;
  margin-top: 70px;
  padding-top: 25px;
}

.contact-links a {
  border-bottom: 1px solid #7b909b;
  font-size: 13px;
  padding-bottom: 4px;
}

.contact-links a:hover {
  border-color: #7ac0bd;
  color: #7ac0bd;
}

footer {
  align-items: center;
  background: #0a222f;
  color: #9cabb2;
  display: grid;
  font-size: 11px;
  grid-template-columns: repeat(3, 1fr);
  letter-spacing: .06em;
  padding: 25px clamp(24px, 7vw, 112px);
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

footer p:nth-child(2) {
  text-align: center;
}

footer a {
  justify-self: end;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero-grid,
  .section {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: start;
  }

  .hero-card {
    border-left: 0;
    border-top: 1px solid var(--line);
    max-width: 530px;
    padding: 32px 0 0;
  }

  .section {
    gap: 52px;
  }

  .section-heading {
    padding-right: 0;
  }

  .section-heading h2 {
    margin-bottom: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 70px;
  }

  .wordmark > span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 70px;
  }

  .hero-kicker {
    margin-bottom: 65px;
  }

  h1 {
    font-size: clamp(62px, 21vw, 92px);
  }

  .publication {
    gap: 14px;
    grid-template-columns: 32px 1fr;
  }

  .publication > a {
    grid-column: 2;
    justify-self: start;
  }

  .timeline article {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .contact-links {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    gap: 10px;
    grid-template-columns: 1fr auto;
  }

  footer p:nth-child(2) {
    display: none;
  }
}

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

  * {
    transition: none !important;
  }
}
