:root {
  --bg: #ffffff;
  --text: #1f2328;
  --muted: #646b73;
  --line: #d9dee3;
  --accent: #285f68;
  --accent-soft: #eef5f4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

.page {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 46px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.profile {
  position: sticky;
  top: 48px;
}

.photo {
  width: 100%;
  max-width: 320px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  background: #f4f5f6;
}

.photo img {
  width: 100%;
  height: auto;
  display: block;
}

.photo span {
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 6px;
}

.role,
.affiliation,
.meta,
.footer {
  color: var(--muted);
}

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

.email {
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.section {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.section:first-child {
  padding-top: 0;
  border-top: 0;
}

.section + .section {
  margin-top: 42px;
}

h2 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 16px;
}

.about p + p {
  margin-top: 13px;
}

.paper {
  margin-top: 24px;
}

.paper:first-of-type {
  margin-top: 0;
}

h3 {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
}

.meta {
  font-size: 16px;
  line-height: 1.45;
  margin-top: 3px;
}

.paper-links {
  align-items: baseline;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin-top: 7px;
}

.abstract-toggle {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}

.abstract-toggle:hover {
  text-decoration: underline;
}

.abstract {
  margin-top: 10px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  font-size: 16px;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .page {
    width: min(100% - 28px, 720px);
    padding-top: 34px;
    display: block;
  }

  .profile {
    position: static;
    margin-bottom: 38px;
  }

  .photo {
    max-width: 220px;
  }

  h1 {
    font-size: 29px;
  }
}
