:root {
  --ink: #2d3339;
  --muted: #66727d;
  --navy: #173b5e;
  --blue: #2778ad;
  --blue-dark: #18557e;
  --blue-line: #3a91c7;
  --paper: #ffffff;
  --line: #e2ebf1;
  --soft-blue: #f4f9fd;
  --accent: #aa4938;
  --focus: #176b9d;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8edf2 100%);
}

body {
  margin: 0;
  padding: 40px 22px;
  color: var(--ink);
  font-family: Optima, Candara, Calibri, "Trebuchet MS", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  transform: translateY(-150%);
  padding: 8px 12px;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(100%, 1068px);
  margin: 0 auto;
  padding: 38px 54px 30px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 4px 32px rgba(18, 41, 61, 0.1), 0 1px 6px rgba(18, 41, 61, 0.06);
}

a,
a:visited {
  color: var(--blue);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

a:focus-visible,
.news-scroll:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

p {
  margin: 0 0 12px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(210px, 0.72fr);
  gap: 48px;
  align-items: center;
  padding: 2px 10px 28px;
}

.intro-copy {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 5px;
  color: #111820;
  font-size: clamp(28px, 3.3vw, 38px);
  line-height: 1.2;
  text-align: center;
}

h1 span {
  font-weight: 650;
}

.role {
  margin: 0 0 21px;
  color: #596673;
  font-size: 15px;
  text-align: center;
}

.bio p {
  margin-bottom: 11px;
}

.interests {
  color: #45525d;
}

.advisors {
  color: #45525d;
}

.contact {
  margin-top: 17px;
  color: #3f4a53;
  font-size: 14px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.profile-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  border: 1px solid #ccdae4;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(28, 58, 90, 0.06);
  font-size: 13px;
  font-weight: 700;
}

.profile-links a:hover,
.profile-links a:focus-visible {
  transform: translateY(-1px);
  border-color: #8eb9d4;
  background: var(--soft-blue);
  text-decoration: none;
}

.portrait {
  width: min(100%, 230px);
  margin: 0 auto;
}

.portrait img,
.portrait-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(14, 38, 58, 0.16);
}

.portrait img {
  object-fit: cover;
}

.portrait-placeholder {
  display: grid;
  place-items: center;
  background: var(--soft-blue);
  color: var(--navy);
  font-size: 48px;
  font-weight: 700;
}

section {
  margin-top: 30px;
  padding: 0 10px;
}

h2 {
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--blue-line);
  color: var(--navy);
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.heading-note {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.section-lead {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

.news-scroll {
  max-height: 230px;
  overflow-y: auto;
  padding: 10px 17px;
  border: 1px solid #d6e4f0;
  border-radius: 8px;
  background: linear-gradient(to bottom, #f9fcfe, #f1f7fc);
  scrollbar-color: #a9c8db #eef4f8;
  scrollbar-width: thin;
}

.news-list,
.publication-list,
.honors-list,
.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 7px 0;
}

.news-list li + li {
  border-top: 1px solid rgba(207, 222, 232, 0.75);
}

.news-list time {
  color: var(--blue-dark);
  font-weight: 700;
  white-space: nowrap;
}

.inline-link {
  margin-left: 6px;
  font-size: 13px;
  white-space: nowrap;
}

.publication {
  padding: 14px 4px 15px;
  border-bottom: 1px solid var(--line);
}

.publication:last-child {
  border-bottom: 0;
}

.publication-heading {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}

.publication-title {
  color: #26333e;
  line-height: 1.48;
}

.venue {
  flex: 0 0 auto;
  padding: 1px 7px;
  border-radius: 4px;
  background: #fff1ed;
  color: #9b3c2e;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.venue-journal {
  background: #edf6fb;
  color: #24648a;
}

.venue-workshop,
.venue-project {
  background: #f3f0fb;
  color: #645194;
}

.authors,
.publication-note,
.publication-links {
  margin: 2px 0;
  font-size: 14px;
  line-height: 1.55;
}

.publication-note {
  color: var(--accent);
  font-weight: 650;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.publication-links a {
  padding: 1px 8px;
  border: 1px solid #cddce7;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.publication-links a:hover,
.publication-links a:focus-visible {
  border-color: #8fb9d2;
  background: var(--soft-blue);
  text-decoration: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-item h3 {
  margin: 0 0 2px;
  color: #26333e;
  font-size: 15px;
}

.timeline-item p {
  margin: 1px 0;
  font-size: 14px;
}

.timeline-note {
  color: var(--muted);
}

.timeline-meta {
  display: grid;
  align-content: start;
  justify-items: end;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.honors-list li,
.service-list li {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 7px 4px;
  border-bottom: 1px solid var(--line);
}

.honors-list li:last-child,
.service-list li:last-child {
  border-bottom: 0;
}

.honors-list time,
.service-list li > span {
  color: var(--muted);
  white-space: nowrap;
}

footer {
  margin-top: 38px;
  padding-top: 15px;
  border-top: 1px dashed #cbd8e1;
  color: #8d99a3;
  font-size: 13px;
  text-align: center;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  body {
    padding: 0;
  }

  .site-shell {
    width: 100%;
    padding: 28px 22px 24px;
    border-radius: 0;
    box-shadow: none;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 2px 4px 24px;
  }

  .portrait {
    grid-row: 1;
    width: min(55vw, 210px);
  }

  .intro-copy {
    grid-row: 2;
  }

  section {
    padding: 0 4px;
  }

  h2 {
    font-size: 21px;
  }

  .publication-heading,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .publication-heading {
    display: block;
  }

  .venue {
    display: table;
    margin-top: 5px;
  }

  .timeline-item {
    gap: 4px;
  }

  .timeline-meta {
    justify-items: start;
  }
}

@media (max-width: 480px) {
  .site-shell {
    padding-right: 17px;
    padding-left: 17px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .news-scroll {
    max-height: none;
    overflow: visible;
  }

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

  .honors-list li,
  .service-list li {
    display: block;
  }

  .honors-list time,
  .service-list li > span {
    display: block;
    margin-top: 2px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  html,
  body {
    background: #fff;
  }

  body {
    padding: 0;
  }

  .site-shell {
    width: 100%;
    padding: 0;
    box-shadow: none;
  }

  a {
    color: inherit;
  }
}
