:root {
  --text: #111;
  --muted: #555;
  --line: #ddd;
  --link: #0645ad;
  --tag-bg: #f2f2f2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  text-decoration: underline;
}

.page {
  width: calc(100% - 36px);
  max-width: 920px;
  margin: 0 auto;
  padding: 34px 0 48px;
  overflow-x: hidden;
}

p,
li,
strong,
em {
  overflow-wrap: anywhere;
}

.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.identity {
  display: flex;
  align-items: center;
  gap: 22px;
}

.portrait-frame {
  width: 138px;
  height: 138px;
  flex: 0 0 138px;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  background: #f4f4f4;
}

.portrait {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 58% 34%;
  transform: scale(1.55) translate(-8%, 3%);
  transform-origin: 58% 34%;
}

h1 {
  margin: 0 0 4px;
  font-size: 2.1rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.subtitle,
.affiliation,
.links {
  margin: 3px 0;
}

.subtitle {
  font-weight: 600;
}

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

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  padding-top: 5px;
  font-size: 0.95rem;
}

.section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.section p {
  margin: 0 0 11px;
}

.section p:last-child {
  margin-bottom: 0;
}

.compact-list {
  margin: 0;
  padding-left: 20px;
}

.compact-list li {
  margin: 5px 0;
}

.pub-list {
  margin: 10px 0 0;
  padding-left: 24px;
}

.pub-list li {
  margin: 0 0 15px;
  padding-left: 2px;
}

.pub-list li:last-child {
  margin-bottom: 0;
}

.tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px 2px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--tag-bg);
  color: #333;
  font-size: 0.82rem;
  font-style: normal;
  white-space: nowrap;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.footer {
  padding-top: 18px;
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .page {
    width: 360px;
    max-width: calc(100vw - 28px);
    margin-left: 14px;
    margin-right: auto;
    padding-top: 24px;
  }

  .top,
  .identity,
  .two-col {
    display: block;
  }

  .portrait-frame {
    float: right;
    width: 94px;
    height: 94px;
    flex-basis: 94px;
    margin: 0 0 10px 14px;
  }

  .nav {
    justify-content: flex-start;
    margin-top: 12px;
  }

  h1 {
    font-size: 1.85rem;
  }

  .two-col > div + div {
    margin-top: 22px;
  }
}
