/* =========================
   Global
   ========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  color: #222;
  background: #ffffff;
  line-height: 1.7;
}


/* =========================
   Navigation
   ========================= */

nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  border-bottom: 1px solid #eeeeee;
}

nav a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

nav a:hover {
  color: #006eb6;
}


/* =========================
   Main content
   ========================= */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 40px 100px;
}


/* =========================
   Homepage profile photo
   ========================= */

main > img {
  width: 210px;
  height: 210px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 50%;
  display: block;
  margin-bottom: 30px;
}


/* =========================
   Typography
   ========================= */

h1 {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.5px;
}

h2 {
  margin-top: 55px;
  margin-bottom: 15px;
  font-size: 25px;
  font-weight: 600;
}

p {
  max-width: 760px;
  margin-top: 10px;
  margin-bottom: 18px;
  font-size: 17px;
}


/* =========================
   Affiliation
   ========================= */

.affiliation {
  margin-top: 0;
  margin-bottom: 14px;
  line-height: 1.65;
}


/* =========================
   Social and academic links
   ========================= */

.social-links {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 10px;
  margin-bottom: 35px;
}

.social-links a {
  color: #006eb6 !important;
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}

.social-links a i {
  color: #006eb6 !important;
}

.social-links a:hover {
  color: #004f83 !important;
  transform: translateY(-2px);
  text-decoration: none;
}

.social-links a:hover i {
  color: #004f83 !important;
}


/* =========================
   General links
   ========================= */

a {
  color: #006eb6;
}

main a {
  text-decoration: none;
}

main a:hover {
  text-decoration: underline;
}

.social-links a:hover {
  text-decoration: none;
}


/* =========================
   Homepage
   ========================= */

.home-section h2 {
  margin-top: 48px;
}

.home-section p {
  max-width: 760px;
}

.research-interests {
  color: #444;
  line-height: 1.9;
}


/* =========================
   Publications page
   ========================= */

.publications-page {
  max-width: 1000px;
}

.publications-page > h1 {
  margin-bottom: 50px;
}

.publication-note {
  color: #666;
  font-size: 15px;
}

.publication-year {
  margin-bottom: 65px;
}

.year-heading {
  margin: 0 0 28px;
  padding-bottom: 8px;
  font-size: 27px;
  font-weight: 650;
  color: #222;
  border-bottom: 2px solid #006eb6;
}


/* =========================
   Publication entries
   ========================= */

.publication-entry {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 25px 0 32px;
  border-bottom: 1px solid #e8e8e8;
}

.publication-entry:first-of-type {
  padding-top: 5px;
}


/* =========================
   Publication images
   ========================= */

.publication-entry > img.publication-image {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
}


/* =========================
   Publications without images
   ========================= */

.publication-entry--text {
  display: block;
  max-width: 760px;
}


/* =========================
   Publication information
   ========================= */

.publication-info {
  min-width: 0;
}

.publication-info h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 650;
  color: #222;
}

.publication-authors,
.publication-venue,
.publication-award {
  max-width: none;
  margin: 5px 0;
  font-size: 15.5px;
  line-height: 1.55;
}

.publication-venue {
  color: #555;
  font-style: italic;
}

.publication-award {
  color: #8a5a00;
  font-weight: 600;
  font-style: normal;
}


/* =========================
   Publication links
   ========================= */

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

.publication-links a {
  display: inline-block;
  padding: 4px 10px;
  color: #006eb6;
  background: #f7fafc;
  border: 1px solid #cddfea;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.15s ease,
              border-color 0.15s ease,
              color 0.15s ease;
}

.publication-links a:hover {
  color: #004f83;
  background: #edf5fa;
  border-color: #9fc4dc;
  text-decoration: none;
}


/* =========================
   Talks & Posters page
   ========================= */

.talks-page {
  max-width: 900px;
}

.talks-page > h1 {
  margin-bottom: 50px;
}

.talk-year {
  margin-bottom: 65px;
}

/* Individual presentation entries */

.talk-entry {
  display: block;
  padding: 28px 0 34px;
  border-bottom: 1px solid #d8d8d8;
}

/* First entry directly beneath each year */

.talk-entry:first-of-type {
  padding-top: 5px;
}

/* Stronger separation between consecutive entries */

.talk-entry + .talk-entry {
  margin-top: 12px;
}

/* Presentation titles */

.talk-entry h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 650;
  color: #222;
}

/* Authors, venue, and presentation type */

.talk-authors,
.talk-venue,
.talk-type {
  max-width: 760px;
  margin: 6px 0;
  font-size: 15.5px;
  line-height: 1.6;
}

.talk-venue {
  color: #555;
  font-style: italic;
}

/* Presentation type */

.talk-type {
  color: #555;
  font-size: 14.5px;
  font-weight: 500;
}

/* Invited talks */

.talk-type--invited {
  color: #8a5a00;
  font-weight: 600;
}

/* Conference paper links */

.talk-entry .publication-links {
  margin-top: 15px;
}

/* Mobile responsiveness */

@media (max-width: 650px) {

  .talks-page > h1 {
    margin-bottom: 40px;
  }

  .talk-year {
    margin-bottom: 50px;
  }

  .talk-entry {
    padding: 24px 0 30px;
  }

  .talk-entry + .talk-entry {
    margin-top: 8px;
  }

  .talk-entry h3 {
    font-size: 18px;
  }

  .talk-authors,
  .talk-venue {
    font-size: 15px;
  }

  .talk-type {
    font-size: 14px;
  }

}


/* =========================
   Academic Service page
   ========================= */

.service-page {
  max-width: 900px;
}

.service-page > h1 {
  margin-bottom: 45px;
}

.service-section h2 {
  margin-top: 0;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid #006eb6;
}

/* Introduction */

.service-intro {
  max-width: 760px;
  margin-bottom: 30px;
  color: #444;
  font-size: 17px;
  line-height: 1.8;
}

.service-intro strong {
  color: #222;
  font-weight: 650;
}

/* Journal list */

.service-list {
  max-width: 760px;
  margin: 0;
  padding-left: 25px;
  list-style-type: disc;
}

.service-list li {
  padding-left: 7px;
  margin-bottom: 14px;
  font-size: 17px;
  line-height: 1.7;
}

.service-list li::marker {
  color: #006eb6;
}

/* Review counts */

.review-count {
  color: #777;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}

/* Mobile responsiveness */

@media (max-width: 650px) {

  .service-page > h1 {
    margin-bottom: 35px;
  }

  .service-intro {
    font-size: 16px;
  }

  .service-list li {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .review-count {
    font-size: 14px;
  }

}

/* =========================
   Mobile responsiveness
   ========================= */

@media (max-width: 650px) {

  nav {
    padding: 20px 24px;
    justify-content: center;
    gap: 12px 20px;
  }

  nav a {
    font-size: 14px;
  }

  main {
    padding: 45px 24px 70px;
  }

  main > img {
    width: 170px;
    height: 170px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 23px;
  }

  p {
    font-size: 16px;
  }

  .social-links {
    gap: 15px;
  }

  .social-links a {
    font-size: 22px;
  }

  .publications-page > h1,
  .talks-page > h1 {
    margin-bottom: 40px;
  }

  .publication-year,
  .talk-year {
    margin-bottom: 50px;
  }

  .year-heading {
    font-size: 24px;
  }

  .publication-entry {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 0 30px;
  }

  .publication-entry > img.publication-image {
    width: 100%;
    max-width: 360px;
    height: auto;
    max-height: 220px;
  }

  .publication-info h3,
  .talk-entry h3 {
    font-size: 18px;
  }

  .publication-authors,
  .publication-venue,
  .publication-award,
  .talk-authors,
  .talk-venue {
    font-size: 15px;
  }

  .publication-award a {
    color: inherit;
    text-decoration: none;
  }

  .publication-award a:hover {
    text-decoration: underline;
  }

  .service-entry {
    font-size: 16px;
  }

}
