:root {
  --bg: #fff;
  --ink: #171d1f;
  --muted: #5d6763;
  --line: #d6ddd7;
  --accent: #8a1538;
  --accent-dark: #5f0f28;
  --teal: #1f6f68;
  --tint: #f3f6f4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.62 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-dark); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px max(28px, calc((100vw - 1180px) / 2 + 28px));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.topbar-name {
  color: var(--ink);
  font: 800 19px/1 Georgia, "Times New Roman", serif;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}
.topbar-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.topbar-links a:hover { color: var(--accent); }

.site-shell {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 48px;
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 44px 0 68px;
}
.profile-panel {
  position: sticky;
  top: 76px;
  align-self: start;
  min-width: 0;
  padding: 18px 4px 18px 0;
}
.portrait {
  display: block;
  width: 152px;
  height: 152px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
}
.profile-panel h1 {
  margin: 0;
  font: 800 34px/1.05 Georgia, "Times New Roman", serif;
}
.role {
  margin: 10px 0 0;
  color: var(--accent);
  font-weight: 750;
}
.tagline {
  margin: 10px 0 20px;
  color: var(--muted);
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
}
.profile-links svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.profile-links a:hover { color: var(--accent); }

.content { min-width: 0; }
.hero {
  padding: 8px 0 34px;
  border-bottom: 1px solid var(--line);
}
.hero h2,
.section h2 {
  max-width: 800px;
  margin: 0;
  font: 700 29px/1.18 Georgia, "Times New Roman", serif;
}
.hero p,
.section p {
  max-width: 840px;
  margin: 13px 0 0;
  color: var(--muted);
}
.hero strong { color: var(--ink); }
blockquote {
  max-width: 820px;
  margin: 24px 0 0;
  padding: 15px 20px;
  border-left: 3px solid var(--teal);
  background: var(--tint);
  color: var(--muted);
  font: italic 15px/1.7 Georgia, "Times New Roman", serif;
}
.news-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 820px;
  height: 240px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.news-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--tint);
}
.news-header h3 {
  margin: 0;
  font: 700 20px/1.2 Georgia, "Times New Roman", serif;
}
.news-header span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.news-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--accent) var(--tint);
  scrollbar-gutter: stable;
}
.news-scroll:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.news-list {
  margin: 0;
  padding: 0 16px;
  list-style: none;
}
.news-list li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.news-list li:last-child { border-bottom: 0; }
.news-list time {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.news-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.news-list strong { color: var(--ink); }
.news-list a { text-decoration: none; }
.section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.section-heading { margin-bottom: 20px; }
.eyebrow {
  margin: 0 0 7px !important;
  color: var(--teal) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.interest-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
}
.interest-grid article > span {
  color: var(--accent);
  font: 800 13px Georgia, "Times New Roman", serif;
}
.interest-grid h3,
.project-card h3,
.timeline h3 {
  margin: 5px 0 0;
  font: 700 20px/1.25 Georgia, "Times New Roman", serif;
}
.interest-grid p {
  margin-top: 8px;
  font-size: 15px;
}

.publication-list {
  display: grid;
  gap: 24px;
}
.publication-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.publication-figure {
  width: 260px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}
.publication-figure a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 178px;
  padding: 10px;
  background: linear-gradient(145deg, #fff, #f3f6f4);
}
.publication-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.publication-figure figcaption {
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}
.publication-content { padding: 4px 8px 4px 24px; }
.publication-venue {
  margin: 0 0 6px !important;
  color: var(--accent) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.publication-card h3 {
  margin: 0;
  font: 700 22px/1.28 Georgia, "Times New Roman", serif;
}
.publication-card .authors {
  margin-top: 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.authors sup,
.contribution-note sup {
  color: var(--accent);
  font-weight: 800;
}
.publication-card .authors strong { color: var(--accent); }
.publication-card .authors + p { font-size: 15px; }
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.tag-row span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: var(--tint);
  color: var(--teal);
  font-size: 11px;
  font-weight: 750;
}
.publication-links { margin-top: 15px; }
.publication-links a {
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.contribution-note {
  margin-top: 14px !important;
  font-size: 12px;
}

.project-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--tint);
}
.project-logo {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  object-fit: contain;
}
.project-kicker {
  margin: 0 !important;
  color: var(--teal) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.project-card h3 {
  margin-top: 5px;
  font-size: 22px;
}
.project-card p { margin-top: 8px; }
.text-link {
  display: inline-block;
  margin-top: 13px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.timeline { display: grid; gap: 24px; }
.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 17px;
}
.timeline article:not(:last-child)::before {
  position: absolute;
  top: 14px;
  bottom: -25px;
  left: 6px;
  width: 1px;
  background: var(--line);
  content: "";
}
.timeline-marker {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-top: 7px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.timeline h3 { margin: 0; }
.timeline .organization {
  margin-top: 3px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
}
.timeline p:last-child { margin-top: 4px; }

.award-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.award-list li {
  padding: 13px 0 13px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 2px center / 7px 7px;
}
.award-list li:first-child { border-top: 1px solid var(--line); }
.contact-section { border-bottom: 0; }
.contact-section p { margin-bottom: 18px; }
.contact-button {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.contact-button:hover {
  background: var(--accent-dark);
  color: #fff;
}
.comments-panel {
  margin-top: 38px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.giscus,
.giscus-frame {
  width: 100%;
}
.giscus-frame {
  border: 0;
  color-scheme: light;
}
footer {
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
footer p { margin: 0; }

@media (max-width: 820px) {
  .topbar { align-items: flex-start; padding: 13px 20px; }
  .topbar-links { display: none; }
  .site-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    width: min(100% - 40px, 720px);
    padding-top: 28px;
  }
  .profile-panel {
    position: static;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 20px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--line);
  }
  .portrait {
    grid-row: 1 / span 4;
    width: 112px;
    height: 112px;
    margin: 0;
  }
  .profile-panel h1 { font-size: 30px; }
  .role, .tagline { margin-top: 5px; }
  .tagline { margin-bottom: 10px; }
}

@media (max-width: 700px) {
  .publication-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .publication-figure {
    width: 100%;
  }
  .publication-figure a { height: 210px; }
  .publication-content { padding: 18px 4px 4px; }
}

@media (max-width: 560px) {
  .site-shell { width: min(100% - 28px, 720px); }
  .profile-panel { grid-template-columns: 86px minmax(0, 1fr); column-gap: 16px; }
  .portrait { width: 86px; height: 86px; }
  .profile-panel h1 { font-size: 27px; }
  .tagline { font-size: 14px; }
  .hero h2, .section h2 { font-size: 25px; }
  .interest-grid, .project-card { grid-template-columns: 1fr; }
  .publication-figure a { height: 180px; padding: 8px; }
  .publication-card h3 { font-size: 20px; }
  .project-logo { width: 78px; height: 78px; margin: 0; }
  blockquote { padding: 13px 15px; }
  .news-panel { height: 260px; }
  .news-list li { grid-template-columns: 1fr; gap: 4px; }
}

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