/* -----------------------------
   Basic settings
------------------------------ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    Helvetica,
    sans-serif;

  font-size: 16px;
  line-height: 1.7;
  color: #222;
  background: #fff;
}

a {
  color: #2c5d8a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* -----------------------------
   Header and navigation
------------------------------ */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  min-height: 88px;
  border-bottom: 1px solid #ddd;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 650;
  color: #222;
}

.site-title:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: #444;
}

.site-nav a.active {
  color: #111;
  font-weight: 600;
}


/* -----------------------------
   Homepage layout
------------------------------ */

.profile-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 70px;

  padding: 58px 0 70px;
}

.profile-sidebar {
  text-align: left;
}

.profile-photo {
  display: block;
  width: 210px;
  height: 250px;

  object-fit: cover;
  border-radius: 3px;
}

.profile-sidebar h1 {
  margin: 22px 0 4px;
  font-size: 1.7rem;
  line-height: 1.25;
}

.profile-sidebar p {
  margin: 4px 0;
}

.position {
  font-weight: 500;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;

  margin-top: 20px;
}

.main-content {
  max-width: 690px;
}

.main-content h2,
.page-content h1,
.page-content h2 {
  line-height: 1.3;
}

.main-content h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.55rem;
}

.main-content h2:not(:first-child) {
  margin-top: 38px;
}


/* -----------------------------
   Research and teaching pages
------------------------------ */

.page-content {
  max-width: 820px;
  min-height: 65vh;
  padding: 55px 0 75px;
}

.page-content > h1 {
  margin-top: 0;
  margin-bottom: 36px;
  font-size: 2rem;
}

.section-heading {
  margin-top: 45px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.paper {
  margin: 28px 0 38px;
}

.paper-title {
  margin-bottom: 6px;
  font-size: 1.15rem;
  font-weight: 650;
}

.coauthors {
  margin: 4px 0;
  color: #555;
}

.paper-links {
  margin: 9px 0;
}

.paper-links a {
  margin-right: 13px;
}

details {
  margin-top: 12px;
}

summary {
  color: #2c5d8a;
  cursor: pointer;
}

.abstract {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 3px solid #ddd;
}


/* -----------------------------
   Footer
------------------------------ */

.site-footer {
  padding: 28px 0 35px;
  border-top: 1px solid #ddd;

  font-size: 0.9rem;
  color: #666;
}


/* -----------------------------
   Mobile layout
------------------------------ */

@media (max-width: 760px) {

  body {
    padding: 0 20px;
  }

  .site-header {
    display: block;
    padding: 22px 0;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 14px;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 38px;
  }

  .profile-photo {
    width: 180px;
    height: 215px;
  }

}

/* Contact icons */

.contact-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;
  padding: 0;

  text-decoration: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.contact-icon img {
  display: block;

  width: 24px;
  height: 24px;

  max-width: 24px;
  max-height: 24px;

  object-fit: contain;
}

.contact-icon:hover {
  opacity: 0.7;
  transform: translateY(-2px);
  text-decoration: none;
}

.contact-icon:focus-visible {
  outline: 2px solid #2c5d8a;
  outline-offset: 4px;
  border-radius: 3px;
}
