* {
  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;
  gap: 32px;
  border-bottom: 1px solid #eeeeee;
}

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

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;
  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;
}

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

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

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

.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-entry {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 30px;
  align-items: start;
  padding: 25px 0 32px;
  border-bottom: 1px solid #e8e8e8;
}

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

.publication-image {
  width: 100%;
}

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

.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 {
  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;
}

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

@media (max-width: 650px) {

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

  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 {
    margin-bottom: 40px;
  }

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

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

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

  .publication-image {
    max-width: 360px;
  }

  .publication-image img {
    height: auto;
    max-height: 220px;
  }

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

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