body {
  color: #243040;
  background: #f7f8fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.wrapper.site-shell {
  width: 1040px;
  margin: 0 auto;
}

.site-header {
  float: left;
  position: fixed;
  width: 275px;
  padding: 34px 0 0;
}

.site-title {
  margin-bottom: 10px;
}

.site-title a {
  color: #152033;
  font-weight: 700;
  text-decoration: none;
}

.site-description {
  color: #5d697b;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 24px;
}

.site-nav,
.contact-links {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.site-nav a,
.contact-links a {
  align-items: center;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  color: #243040;
  display: inline-flex;
  font-size: 14px;
  gap: 9px;
  padding: 9px 11px;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.contact-links a:hover,
.site-nav a:focus,
.contact-links a:focus {
  border-color: #2866d6;
  color: #174ea6;
  font-weight: normal;
  transform: translateY(-1px);
}

.site-content {
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(25, 38, 59, 0.08);
  float: right;
  padding: 44px;
  width: 640px;
}

.site-footer {
  bottom: 30px;
  color: #7d8796;
  font-size: 12px;
  position: fixed;
  width: 275px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 170px;
  margin-bottom: 34px;
}

.role-label {
  color: #2866d6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.hero h1 {
  color: #152033;
  font-size: 34px;
  line-height: 1.12;
  margin: 0 0 14px;
}

.hero-summary {
  color: #4f5d70;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  gap: 8px;
  line-height: 1;
  padding: 11px 13px;
  text-decoration: none;
}

.button.primary {
  background: #1f5fbf;
  color: #ffffff;
}

.button.secondary {
  background: #eef4ff;
  color: #174ea6;
}

.button:hover,
.button:focus {
  font-weight: normal;
  text-decoration: none;
}

.profile-photo-wrap {
  justify-self: end;
}

.profile-photo {
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(25, 38, 59, 0.18);
  display: block;
  height: 190px;
  object-fit: cover;
  width: 170px;
}

.site-content img:not(.profile-photo) {
  border-radius: 8px;
  display: block;
  height: auto;
  margin: 18px 0;
  max-width: 100%;
}

h2 {
  border-top: 1px solid #e9edf4;
  color: #152033;
  margin-top: 34px;
  padding-top: 28px;
}

h2:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

h3 {
  color: #152033;
}

h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

p,
li {
  line-height: 1.65;
}

a {
  color: #1f5fbf;
}

.skill-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 26px;
}

.skill-grid div {
  background: #f7f9fc;
  border: 1px solid #e3e9f2;
  border-radius: 8px;
  padding: 14px;
}

.skill-grid strong,
.skill-grid span {
  display: block;
}

.skill-grid span {
  color: #5d697b;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 5px;
}

.item-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.item-list article,
.publication-list p {
  background: #f7f9fc;
  border: 1px solid #e3e9f2;
  border-radius: 8px;
  margin: 0;
  padding: 16px;
}

.item-list h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

.item-list p {
  color: #5d697b;
  margin: 0;
}

.publication-list {
  display: grid;
  gap: 12px;
}

.paper-figure {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  margin: 18px 0;
}

.fas.fa-external-link-alt {
  font-size: 0.45em;
  vertical-align: middle;
}

@media print, screen and (max-width: 960px) {
  .wrapper.site-shell {
    width: auto;
    margin: 0;
    padding: 24px;
  }

  .site-header,
  .site-content,
  .site-footer {
    float: none;
    position: static;
    width: auto;
  }

  .site-header {
    padding: 0 0 24px;
  }

  .site-content {
    padding: 34px;
  }

  .site-nav,
  .contact-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media print, screen and (max-width: 650px) {
  .wrapper.site-shell {
    padding: 16px;
  }

  .site-content {
    border-radius: 8px;
    padding: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .profile-photo-wrap {
    justify-self: start;
  }

  .hero h1 {
    font-size: 28px;
  }

  .site-nav,
  .contact-links,
  .skill-grid {
    grid-template-columns: 1fr;
  }
}
