:root {
  --scarlet: #cc0033;
  --navy: #1a1a2e;
  --text: #222;
  --text-light: #555;
  --bg: #fafafa;
  --card-bg: #fff;
  --border: #e5e5e5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  padding: 14px 0;
  color: #fff;
  font-family: "EB Garamond", serif;
  font-size: 1.15em;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}

nav.tabs { display: flex; }

nav.tabs a {
  position: relative;
  padding: 16px 15px;
  color: rgba(255, 255, 255, .65);
  font-size: .82em;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.7;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s;
}

nav.tabs a:hover { color: rgba(255, 255, 255, .92); }
nav.tabs a.active { color: #fff; }

nav.tabs a.active::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 0;
  left: 9px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--scarlet);
}

.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 46px 20px 80px;
}

.page-heading {
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.page-kicker {
  margin: 0 0 6px;
  color: var(--scarlet);
  font-size: .72em;
  font-weight: 600;
  letter-spacing: .15em;
}

.page-heading h1 {
  margin: 0;
  color: var(--navy);
  font-family: "EB Garamond", serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.page-heading > p:last-child:not(.page-kicker) {
  max-width: 680px;
  margin: 13px 0 0;
  color: var(--text-light);
  font-size: .96em;
}

.section-title {
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  color: var(--navy);
  font-family: "EB Garamond", serif;
  font-size: 1.45em;
  font-weight: 600;
}

.section-content > .section-title:first-child { margin-top: 0; }

.news-list { margin: 0; padding: 0; list-style: none; }

.news-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9em;
}

.news-list li:last-child { border-bottom: 0; }

.news-date {
  min-width: 80px;
  flex-shrink: 0;
  padding-top: 2px;
  color: var(--scarlet);
  font-size: .82em;
  font-weight: 600;
}

.news-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: .75em;
  font-weight: 600;
  vertical-align: middle;
}

.badge-paper { border: 1px solid #ffd0d0; background: #fff0f0; color: var(--scarlet); }
.badge-award { border: 1px solid #ffe082; background: #fff8e1; color: #c77700; }
.badge-career { border: 1px solid #a5d6a7; background: #e8f5e9; color: #2e7d32; }
.news-list a { color: var(--navy); text-decoration: none; }
.news-list a:hover { color: var(--scarlet); text-decoration: underline; }

.research-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  transition: box-shadow .2s;
}

.research-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .07); }

.research-card > img,
.research-card > video,
.research-media {
  width: 200px;
  flex: 0 0 200px;
  border-radius: 4px;
  overflow: hidden;
  object-fit: cover;
}

.research-media iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.research-card-body { min-width: 0; flex: 1; }
.research-card-title { margin-bottom: 6px; color: var(--navy); font-size: .92em; font-weight: 600; line-height: 1.5; }
.research-card-title a { color: var(--scarlet); text-decoration: none; }
.research-card-title a:hover { text-decoration: underline; }
.research-card-authors,
.research-card-venue { margin-bottom: 4px; color: var(--text-light); font-size: .82em; }
.research-card-venue { margin-bottom: 8px; font-style: italic; }
.research-card-desc { color: var(--text-light); font-size: .85em; line-height: 1.65; }

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.person-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  font-size: .88em;
  text-align: center;
}

.person-card .person-name { margin-bottom: 4px; color: var(--navy); font-weight: 600; }
.person-card .person-name a { color: var(--navy); text-decoration: none; }
.person-card .person-name a:hover { color: var(--scarlet); }
.person-card .person-role { color: var(--text-light); font-size: .82em; }
.person-card .person-year { margin-top: 2px; color: var(--scarlet); font-size: .78em; }

@media (max-width: 760px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  nav.tabs { width: 100%; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  nav.tabs::-webkit-scrollbar { display: none; }
  nav.tabs a { padding: 12px 4px; font-size: .64em; white-space: nowrap; }
  .page-wrap { padding-top: 32px; }
  .research-card { flex-direction: column; }
  .research-card > img,
  .research-card > video,
  .research-media { width: 100%; flex-basis: auto; }
}

@media (max-width: 520px) {
  .news-list li { flex-direction: column; gap: 4px; }
  .news-date { min-width: 0; }
}
