* {
  box-sizing: border-box;
}

body,
p,
a,
li {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 15px;
}

body {
  margin: 0;
  color: #222;
  background: #fff;
}

a {
  color: inherit;
}

.page {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  align-items: center;
  gap: 36px;
  padding: 10px 0 16px;
}

.profile-info {
  text-align: center;
}

.name {
  margin: 0 0 28px;
  font-size: 34px;
  font-weight: 700;
  color: #1a1a1a;
}

.email-list {
  text-align: center;
  margin: 18px 0;
}

.email-list a {
  display: block;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  margin: 5px 0;
  transition: color 0.2s ease;
}

.email-list a:hover {
  color: #1772d0;
}

.profile-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.profile-link,
.paper-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background-color: #333;
  border: 1px solid #333;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.profile-link:hover,
.paper-link:hover {
  color: #333;
  background: #fff;
  transform: translateY(-1px);
}

.profile-photo {
  display: block;
}

.profile-photo img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.section {
  margin-top: 34px;
}

.section-title {
  display: inline-block;
  margin: 0 0 18px;
  padding-bottom: 4px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  border-bottom: 2px solid #111;
}

.section p {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.65;
  color: #333;
}

.interest-list {
  margin: 0;
  padding-left: 22px;
}

.interest-list li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.6;
}

.project-item {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fdfdfd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.25s ease;
}

.project-image:hover img {
  transform: scale(1.03);
}

.project-image .tag {
  position: absolute;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 10px;
  color: #fff;
  background-color: #0f3c78;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.project-info h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
  color: #1772d0;
}

.project-info p {
  margin: 5px 0;
  font-size: 15px;
  line-height: 1.55;
}

.highlight {
  color: #000;
  font-weight: 700;
}

.status {
  display: inline-block;
  margin-left: 12px;
  color: #d01818;
  font-style: italic;
}

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

@media (max-width: 720px) {
  .page {
    width: min(100% - 24px, 920px);
    padding-top: 18px;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .profile-photo {
    width: min(250px, 72vw);
    margin: 0 auto;
  }

  .name {
    font-size: 30px;
    margin-bottom: 20px;
  }

  .project-item {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .project-image {
    max-width: 360px;
    margin: 0 auto;
  }

  .status {
    display: block;
    margin: 4px 0 0;
  }
}
