:root {
  --ink: #000000;
  --muted: #000000;
  --line: #e5e7ea;
  --accent: #1772d0;
  --accent-dark: #145ca8;
  --accent-light: #c8dcf1;
  --link-hover: #f09228;
  --paper: #ffffff;
  --font: "Lato", Verdana, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

::selection { color: #fff; background: var(--accent); }
a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page-shell {
  width: min(850px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
nav { display: flex; gap: 20px; }
nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
nav a:hover { color: var(--link-hover); }

.hero {
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 24px;
}
.hero-copy { grid-column: 1; padding: 20px 0; }
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.1;
  text-align: center;
}
.role {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  text-align: center;
}
.role-emoji { font-style: normal; }
.bio { margin: 0; color: var(--ink); }
.bio:last-of-type { margin-bottom: 0; }
.bio a, .bio strong { color: var(--ink); }
.bio strong { font-weight: 700; }
.bio a { color: var(--accent); font-weight: 400; }
.bio a:hover { color: var(--link-hover); }

.social-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 14px;
}
.social-links a {
  color: var(--accent);
  font-size: inherit;
  font-weight: 400;
}
.social-links a:hover { color: var(--link-hover); }
.social-separator {
  margin: 0 8px;
  color: var(--muted);
}

.portrait-wrap {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: 150px;
  margin: 0;
  padding: 0;
  justify-self: end;
  transform: translateY(12px);
}
.portrait-backdrop { display: none; }
.portrait {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}
.portrait-wrap figcaption {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.section {
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  scroll-margin-top: 60px;
}
.section-heading { margin-bottom: 5px; }
.section-heading h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}
.section-heading::after { display: none; }

.news-list, .honor-list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}
.news-item, .honor-item {
  padding: 0 0 0 2px;
  font-size: 14px;
  line-height: 1.4;
}
.news-item::marker, .honor-item::marker { color: var(--muted); }
.news-item time, .honor-item time {
  display: inline;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}
.news-item strong { font-weight: 600; }
.news-item a { color: var(--accent); }
.news-item a:hover { color: var(--link-hover); }

.publications-section { padding-bottom: 8px; }
.contribution-note {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
}
.publication {
  padding: 10px 0;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #f1f1f1;
}
.publication:first-of-type { padding-top: 5px; }
.publication:last-of-type { padding-bottom: 5px; border-bottom: 0; }
.paper-visual {
  min-height: 100px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.paper-visual img {
  display: block;
  width: 180px;
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}
.paper-info { min-width: 0; padding: 0; }
.paper-info h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.authors {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 14px;
  font-style: normal;
}
.authors strong {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.authors sup { margin-left: 1px; color: var(--accent-dark); font-size: .7em; }
.venue-full {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
}
.publication-status { font-style: italic; }
.publication-award {
  color: #d00000;
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
}
.paper-links { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 7px; }
.paper-links a { color: var(--accent); font-size: 14px; }
.paper-links a::before { content: "["; }
.paper-links a::after { content: "]"; }
.paper-links a:hover { color: var(--link-hover); }

.visitor-widget {
  width: min(350px, 100%);
  min-height: 180px;
  margin: 5px auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.visitor-widget iframe,
.visitor-widget canvas,
.visitor-widget img { max-width: 100% !important; }

footer {
  padding: 9px 16px 12px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
}
footer p { margin: 0; }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 28px, 650px); }
  .topbar { height: 42px; }
  nav { gap: 18px; }
  .hero { padding: 16px 0; grid-template-columns: 1fr; gap: 15px; }
  .hero-copy, .portrait-wrap { grid-column: auto; grid-row: auto; padding: 0; }
  .portrait-wrap { transform: none; }
  .portrait-wrap { width: min(55%, 220px); justify-self: center; }
  .section { padding: 10px 0 12px; }
  .publication { grid-template-columns: 1fr; gap: 12px; }
  .paper-visual { width: min(100%, 360px); margin: 0 auto; justify-content: center; }
}

@media (max-width: 500px) {
  nav a:first-child { display: none; }
  h1 { font-size: 32px; }
  .social-links { justify-content: center; row-gap: 4px; }
  .section-heading h2 { font-size: 21px; }
  footer { display: block; }
  footer p + p { margin-top: 3px; }
}
