:root {
  --ink: #17201d;
  --muted: #5f6963;
  --line: #d9ded9;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --green: #1f6f54;
  --red: #a33a36;
  --gold: #b7791f;
  --cyan: #26717c;
  --shadow: 0 18px 50px rgba(23, 32, 29, 0.12);
  --container: 980px;
  --hero-container: 1180px;
  --page-gutter: clamp(20px, 6vw, 88px);
  --container-pad: max(var(--page-gutter), calc((100vw - var(--container)) / 2));
  --hero-pad: max(var(--page-gutter), calc((100vw - var(--hero-container)) / 2));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px var(--container-pad);
  background: rgba(247, 248, 244, 0.92);
  border-bottom: 1px solid rgba(217, 222, 217, 0.85);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  white-space: nowrap;
}

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

.nav a.is-active {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  min-height: calc(67vh - 48px);
  padding: clamp(38px, 5.5vw, 72px) var(--hero-pad) clamp(28px, 4.5vw, 48px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  font-size: 12px;
}

.section-kicker {
  font-size: 18px;
  font-weight: 900;
  text-transform: none;
}

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

h1 {
  margin-bottom: 22px;
  font-size: 36px;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 30px;
  color: #33413b;
  font-size: clamp(18px, 2vw, 24px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

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

.button.secondary {
  background: transparent;
  color: var(--ink);
}

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

.hero-media {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: clamp(20px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(31, 111, 84, 0.18), transparent 36%),
    linear-gradient(315deg, rgba(163, 58, 54, 0.16), transparent 34%),
    #fdfefb;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: min(330px, 70vw);
  aspect-ratio: 1;
  border-radius: 8px;
}

.page-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 76px);
  width: calc(100% - (2 * var(--container-pad)));
}

.page-hero h1 {
  max-width: 940px;
  margin-bottom: 22px;
  font-size: 36px;
  line-height: 1.05;
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  color: #33413b;
  font-size: clamp(18px, 2vw, 23px);
}

.section {
  padding: clamp(58px, 8vw, 108px) var(--container-pad);
}

.section-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 72px);
}

.copy-block {
  color: #34443e;
  font-size: 18px;
}

.who-title {
  font-size: clamp(28px, 4vw, 42px);
}

.copy-block p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: var(--container);
  margin: 0 auto 34px;
}

.section-heading.wide {
  max-width: var(--container);
}

.section-heading p:not(.section-kicker) {
  color: var(--muted);
  font-size: 18px;
}

.section-heading.compact {
  margin: 0 0 22px;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.direction-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
}

.direction-card,
.project-card,
.advisor-list article,
.lead-card,
.highlight-card,
.post-card,
.profile-card,
.publication-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.direction-card {
  min-height: 410px;
  padding: 24px;
}

.direction-card:nth-child(1) {
  border-top: 4px solid var(--red);
}

.direction-card:nth-child(2) {
  border-top: 4px solid var(--green);
}

.direction-card:nth-child(3) {
  border-top: 4px solid var(--gold);
}

.direction-card:nth-child(4) {
  border-top: 4px solid var(--cyan);
}

.index {
  display: block;
  margin-bottom: 28px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.direction-card p,
.direction-card li,
.project-card span,
.advisor-list p,
.lead-card p,
.highlight-card p,
.news-list p,
.post-card p {
  color: var(--muted);
}

.direction-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.direction-card li + li {
  margin-top: 10px;
}

.team-overview {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  margin: 0 0 24px;
}

.lead-card {
  padding: 24px;
  min-height: 220px;
}

.lead-card h3,
.highlight-card h3,
.post-card h3,
.profile-card h3,
.publication-card h3 {
  margin-bottom: 10px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto 24px;
}

.profile-card {
  min-height: 190px;
  padding: 24px;
}

.profile-card.featured {
  border-top: 4px solid var(--red);
}

.profile-card p,
.publication-card p {
  color: var(--muted);
}

.profile-link {
  color: var(--green);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.section-table {
  max-width: var(--container);
  margin: 0 auto 24px;
}

.section-table table {
  min-width: 920px;
}

.alumni-grid {
  grid-template-columns: 1fr;
}

.team-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef3ed;
  color: #26352f;
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.project-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.project-card {
  min-height: 236px;
  padding: 22px;
}

.project-card p {
  margin-bottom: 28px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.project-list {
  display: grid;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
}

.project-entry-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-entry-card p {
  color: var(--muted);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.project-links a,
.project-links span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  color: var(--green);
  background: #eef3ed;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.roadmap {
  max-width: var(--container);
  margin: 48px auto 0;
}

.advisor-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.advisor-list article {
  min-height: 176px;
  padding: 22px;
}

.advisor-list-wide {
  grid-template-columns: 1fr;
}

.advisor-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.5fr) auto;
  align-items: center;
  gap: 22px;
}

.advisor-card p {
  margin-bottom: 0;
}

.advisor-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  color: var(--surface);
  background: var(--ink);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.highlight-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
}

.highlight-list {
  display: grid;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
}

.highlight-card,
.post-card {
  padding: 24px;
  min-height: 250px;
}

.highlight-wide {
  display: grid;
  grid-template-columns: 160px minmax(220px, 0.42fr) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  min-height: 0;
}

.highlight-wide .tag {
  margin-bottom: 0;
}

.highlight-wide h3,
.highlight-wide p {
  margin-bottom: 0;
}

.tag,
.post-meta {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}

.recruiting-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: var(--container);
  margin: 28px auto 0;
  padding: 28px;
  background: #eef3ed;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.recruiting-callout div {
  max-width: 760px;
}

.recruiting-callout p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.emphasis-link {
  color: var(--red);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.news-list {
  display: grid;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.news-list time {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-list h3 {
  margin-bottom: 6px;
}

.news-list p,
.post-card p:last-child {
  margin-bottom: 0;
}

.publication-list {
  display: grid;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
}

.paper-list {
  padding: 0;
  list-style: none;
}

.paper-list li {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.featured-paper {
  border-top: 4px solid var(--red);
}

.year-block h2 {
  margin-bottom: 22px;
}

.publication-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.publication-bullet {
  width: 8px;
  height: 8px;
  margin-top: 10px;
  flex: 0 0 auto;
  background: var(--red);
  border-radius: 50%;
}

.publication-title {
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
}

.publication-type {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 7px;
  color: var(--green);
  background: #eef3ed;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 850;
  vertical-align: middle;
}

.publication-authors,
.publication-venue {
  margin-top: 8px;
  padding-left: 20px;
  color: var(--muted);
}

.publication-venue {
  color: #34443e;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding-left: 20px;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease,
    background-color 0.18s ease;
}

.resource-link:hover,
.resource-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 111, 84, 0.36);
  background: var(--surface);
}

.resource-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.resource-link span {
  line-height: 1;
}

.publication-card {
  padding: 24px;
}

.featured-publication {
  border-top: 4px solid var(--red);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px var(--container-pad);
  color: var(--surface);
  background: var(--ink);
}

.site-footer div {
  display: grid;
  gap: 3px;
}

.site-footer span,
.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1120px) {
  .direction-grid,
  .advisor-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid,
  .highlight-grid,
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .two-column,
  .team-overview,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 260px;
  }

  .project-grid,
  .highlight-grid,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recruiting-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .highlight-wide {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

@media (max-width: 620px) {
  .brand span {
    font-size: 16px;
  }

  .direction-grid,
  .project-grid,
  .advisor-list,
  .highlight-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .direction-card,
  .project-card,
  .advisor-list article,
  .lead-card,
  .highlight-card,
  .post-card,
  .profile-card {
    min-height: auto;
  }

  .hero-actions,
  .button,
  .site-footer {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
