:root {
  --text: #222;
  --muted: #60646c;
  --link: #1764a6;
  --rule: #dedede;
  --soft: #f5f6f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  width: min(100% - 32px, 940px);
  margin: 0 auto;
  padding: 46px 0 32px;
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 34px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

h1 {
  margin: 0 0 4px;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 500;
}

.role {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
}

.profile p {
  margin: 0 0 12px;
}

.portrait {
  width: 190px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

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

.links a,
.paper-links a {
  font-weight: 600;
}

.research {
  padding-top: 28px;
}

h2 {
  margin: 0 0 22px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
}

.paper {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 0 0 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--rule);
}

.thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  overflow: hidden;
  padding: 8px;
}

.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.thumb.placeholder {
  background:
    linear-gradient(135deg, rgba(23, 100, 166, 0.08) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(135deg, transparent 75%, rgba(23, 100, 166, 0.08) 75%) 0 0 / 18px 18px,
    #f8f9fb;
}

.paper-text p,
.paper-text h3 {
  margin: 0;
}

.authors {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

h3 {
  margin-top: 3px;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 600;
}

h3 a {
  color: var(--text);
}

.venue {
  margin-top: 3px !important;
  color: #333;
  font-style: italic;
}

.summary {
  margin-top: 6px !important;
  color: var(--muted);
}

.paper-links {
  margin-top: 7px !important;
  font-size: 14px;
}

footer {
  color: var(--muted);
  font-size: 14px;
  padding-top: 4px;
}

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

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

  .portrait {
    grid-row: 1;
    width: 150px;
  }

  h1 {
    font-size: 32px;
  }

  .paper {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
