body {
  margin: 0;
  background: #fff;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

a {
  color: #0645ad;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  width: min(900px, calc(100% - 36px));
  margin: 34px auto 44px;
}

.intro {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 30px;
}

.profile-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
}

h1 {
  margin: 0 0 5px;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 600;
}

h2 {
  margin: 30px 0 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}

p {
  margin: 0 0 8px;
}

.email {
  margin-bottom: 12px;
}

.links {
  margin-top: 12px;
}

.entry {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  margin: 0 0 18px;
}

.entry.compact {
  margin-bottom: 10px;
}

.logo {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid #ddd;
  background: #fff;
  overflow: hidden;
}

.logo img {
  display: block;
  max-width: 46px;
  max-height: 38px;
  object-fit: contain;
}

.entry-body {
  min-width: 0;
}

.date {
  float: right;
  margin-left: 14px;
  color: #444;
  white-space: nowrap;
}

.experience-item {
  margin: 0 0 26px;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 2px;
  font-size: 17px;
  line-height: 1.25;
}

.experience-date {
  flex: 0 0 auto;
  color: #111;
  white-space: nowrap;
}

.publication {
  grid-template-columns: 150px 1fr;
}

.paper-thumb {
  width: 140px;
  height: 86px;
  border: 1px solid #ddd;
  background: #fff;
  object-fit: contain;
}

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

.education-item {
  margin: 0 0 24px;
}

.education-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 2px;
}

.education-date {
  flex: 0 0 auto;
  white-space: nowrap;
}

ul {
  margin: 0;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

section p + ul {
  margin-bottom: 12px;
}

footer {
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid #ddd;
  color: #666;
  font-size: 13px;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 24px, 900px);
    margin-top: 20px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-photo {
    width: 150px;
    height: 150px;
  }

  .entry,
  .publication {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .date {
    display: block;
    float: none;
    margin: 2px 0 0;
  }

  .experience-header,
  .education-header {
    display: block;
  }

  .experience-date,
  .education-date {
    display: block;
    margin-top: 2px;
  }
}
