* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../webfonts/fa-solid-900.woff2") format("woff2");
}

@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../webfonts/fa-brands-400.woff2") format("woff2");
}

@font-face {
  font-family: "Academicons";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/academicons.woff") format("woff");
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #f8f7fa;
  background-image:
    radial-gradient(circle at 8% 6%, rgba(102, 8, 116, 0.075), transparent 30rem),
    radial-gradient(circle at 92% 18%, rgba(87, 6, 140, 0.055), transparent 32rem),
    linear-gradient(180deg, #fbfafc 0%, #f6f4f8 56%, #faf9fb 100%);
  background-repeat: no-repeat;
  color: #1f2937;
  font-family: Lato, Verdana, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #660874;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #922a9b;
  text-decoration: none;
}

strong {
  font-weight: 700;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 7px 10px;
  background: #111827;
  color: #fff;
  transform: translateY(-150%);
}

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

.page-shell,
.footer-inner {
  width: 100%;
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
}

.page-shell {
  padding: 28px 18px 36px;
}

.profile-section {
  margin: 10px 0 20px;
  border: 1px solid #e5e0e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(70, 45, 87, 0.06);
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-copy {
  flex: 1 1 auto;
  padding: 28px 20px 28px 30px;
}

.name {
  margin: 0 0 14px;
  color: #111827;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
}

.profile-copy p {
  margin: 10px 0;
  color: #334155;
  line-height: 1.55;
}

.profile-photo-cell {
  flex: 0 0 34%;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 24px 26px 24px 12px;
}

.profile-photo {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 3;
  border: 1px solid #e3dde7;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 7px 20px rgba(55, 38, 65, 0.1);
}

.personal-interests {
  margin-top: 12px !important;
  color: #526071 !important;
}

.interest-emoji {
  display: inline-block;
  margin-left: 2px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 16px !important;
  text-align: left;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  font-weight: 700;
  transition: background-color 150ms ease, color 150ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  background: rgba(102, 8, 116, 0.08);
}

.contact-icon {
  display: inline-block;
  width: 1.1em;
  text-align: center;
  font-style: normal;
  line-height: 1;
}

.contact-icon::before {
  display: block;
}

.contact-icon--email {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.contact-icon--email::before {
  content: "\f0e0";
}

.contact-icon--scholar {
  font-family: "Academicons";
  font-weight: 400;
}

.contact-icon--scholar::before {
  content: "\e9d4";
}

.contact-icon--github,
.contact-icon--linkedin {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
}

.contact-icon--github::before {
  content: "\f09b";
}

.contact-icon--linkedin::before {
  content: "\f08c";
}

.paper-links span {
  margin: 0 5px;
  color: #a49aaa;
}

.site-section {
  padding: 22px 0;
  border-top: 1px solid #dfd9e3;
  scroll-margin-top: 12px;
}

.site-section h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.news-panel {
  max-height: 148px;
  padding: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.news-item,
.award-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  padding: 7px 0 12px;
  border-bottom: 1px solid #ebe7ed;
  line-height: 1.55;
}

.news-item time,
.award-item time {
  color: #660874;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.news-item:last-child,
.award-item:last-child {
  border-bottom: 0;
}

.timeline-list {
  display: grid;
  gap: 0;
  margin-top: 6px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 7px 0 14px;
  border: 0;
  border-bottom: 1px solid #ebe7ed;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.affiliation-list {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.affiliation-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid #e4dfe7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(55, 38, 65, 0.05);
}

.affiliation-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
}

.affiliation-logo {
  display: block;
  width: 100%;
  max-height: 82px;
  object-fit: contain;
}

.affiliation-logo--nyu {
  max-height: 48px;
}

.affiliation-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}

.affiliation-institution {
  font-size: 17px;
  font-weight: 700;
}

.affiliation-heading time {
  color: #667085;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.affiliation-role {
  margin-top: 4px;
  color: #334155;
  line-height: 1.5;
}

.affiliation-body p {
  margin: 7px 0 0;
  color: #526071;
  line-height: 1.5;
}

.pending-panel,
.pending-row {
  color: #958b9c;
  font-style: italic;
}

.publication-list {
  display: grid;
  gap: 0;
  margin-top: 6px;
}

.paper-row {
  border: 0;
  border-bottom: 1px solid #e6e1e9;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.paper-row--with-media {
  display: grid;
  grid-template-columns: minmax(260px, 31%) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.paper-figure {
  display: block;
  margin: 4px 0 20px;
  overflow: hidden;
  border: 1px solid #e3dde7;
  border-radius: 6px;
  background: #fff;
}

.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.paper-content {
  padding: 4px 0 20px;
  color: #334155;
  line-height: 1.45;
}

.paper-title {
  color: #660874;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.paper-authors {
  margin-top: 8px;
}

.paper-venue {
  margin-top: 3px;
  color: #334155;
  font-style: italic;
}

.paper-links {
  margin-top: 5px;
}

.paper-summary {
  margin-top: 8px;
  color: #475569;
  line-height: 1.48;
}

.paper-summary p {
  margin: 0;
}

.site-footer {
  color: #706777;
  font-size: 12px;
}

.footer-inner {
  padding: 0 18px 32px;
  text-align: center;
}

@media (max-width: 650px) {
  .page-shell {
    padding: 12px 10px 28px;
  }

  .profile-row {
    flex-direction: column;
  }

  .profile-copy,
  .profile-photo-cell {
    width: 100%;
    max-width: 100%;
  }

  .profile-copy {
    padding: 10px 18px 22px;
  }

  .profile-photo-cell {
    order: -1;
    padding: 18px 18px 4px;
    text-align: center;
  }

  .profile-photo {
    max-width: 260px;
  }

  .name {
    text-align: center;
  }

  .contact-links {
    justify-content: center;
    text-align: center;
  }

  .site-section {
    padding: 19px 0;
  }

  .timeline-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .affiliation-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .affiliation-logo-link {
    justify-content: flex-start;
    width: 190px;
    min-height: 0;
  }

  .affiliation-heading {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .paper-row--with-media {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .paper-figure {
    max-width: 420px;
    margin-bottom: 4px;
  }

  .paper-content {
    padding: 3px 0 18px;
  }
}

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