:root {
  --bg: #fbfbfd;
  --ink: #171820;
  --muted: #5f6470;
  --soft: #eef0f5;
  --line: #dfe2e8;
  --accent: #5a2d82;
  --accent-soft: #f5f1f9;
  --code: #256f65;
  --surface: #ffffff;
  --max: 980px;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.52;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(90, 45, 130, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 111, 101, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px 10px;
  background: rgba(251, 251, 253, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 226, 232, 0.72);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  letter-spacing: 0;
}

.brand span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent);
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 54px;
}

.hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 40px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 48px 0 34px;
}

.hero-copy,
.intro-copy,
.publication,
.simple-list article {
  min-width: 0;
}

.cn-name {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 650;
}

.status-line {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--code);
  font-family: var(--mono);
  font-size: 12px;
}

.status-line span {
  border: 1px solid rgba(37, 111, 101, 0.16);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  padding: 4px 7px;
}

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

h1 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 64px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
}

.title {
  max-width: 540px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.tagline {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.hero-links,
.paper-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-links a,
.paper-links a,
.contact-links a {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.hero-links a:hover,
.paper-links a:hover,
.contact-links a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.portrait-frame {
  margin: 0;
  justify-self: end;
  width: 158px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  display: block;
}

.intro-grid,
.section-grid,
.contact {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr);
  gap: 42px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.compact {
  padding: 30px 0;
}

.section-kicker {
  margin-bottom: 7px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "./ ";
  color: var(--code);
}

.intro-copy {
  color: var(--muted);
  font-size: 15px;
}

.focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.focus-list li {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
}

.timeline,
.publication-list,
.simple-list {
  display: grid;
  gap: 10px;
}

.timeline-item,
.publication,
.simple-list article {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child,
.publication:first-child,
.simple-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
}

time,
.venue {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.timeline-item p,
.authors,
.section-note,
.simple-list p {
  font-size: 14px;
}

.authors,
.section-note,
.simple-list p {
  color: var(--muted);
}

.authors strong {
  color: var(--ink);
  font-weight: 750;
}

.publication h3 {
  max-width: 760px;
}

.publication .authors {
  margin-bottom: 4px;
}

.venue {
  margin-bottom: 10px;
}

.section-note a {
  color: var(--accent);
  font-weight: 700;
}

.contact {
  align-items: center;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

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

  nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 18px;
  }

  .hero,
  .intro-grid,
  .section-grid,
  .contact {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
    align-items: start;
  }

  .portrait-frame {
    justify-self: start;
    width: min(42vw, 162px);
  }
}

@media (max-width: 560px) {
  main,
  .site-header,
  footer {
    padding-left: 18px;
    padding-right: 18px;
    max-width: 390px;
  }

  h1 {
    font-size: 38px;
  }

  .tagline {
    font-size: 19px;
    max-width: 330px;
  }

  .title,
  .intro-copy {
    font-size: 16px;
    max-width: 330px;
  }

  nav {
    gap: 12px 16px;
    font-size: 13px;
    max-width: 330px;
  }

  .status-line {
    max-width: 330px;
  }

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