:root {
  --text: #222222;
  --muted: #555555;
  --line: #d8d8d8;
  --link: #2b5f9e;
  --link-hover: #17416f;
  --page: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.55;
}

.page {
  width: min(920px, calc(100% - 32px));
  margin: 40px auto 72px;
}

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

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

.profile {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.portrait {
  width: 170px;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  object-fit: cover;
  object-position: center top;
  background: #f5f5f5;
}

.intro h1,
.simple-header h1 {
  margin: 0 0 14px;
  font-size: 2.1rem;
  line-height: 1.1;
  font-weight: 600;
}

.details {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}

p {
  margin: 0 0 10px;
}

.contact {
  min-width: 250px;
}

.section {
  padding-top: 22px;
}

h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 600;
}

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

li {
  margin: 0 0 8px;
}

.top-nav {
  margin-bottom: 28px;
}

.simple-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.simple-header p {
  color: var(--muted);
}

.papers li {
  margin-bottom: 18px;
}

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

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

  .portrait {
    width: 150px;
  }

  .details {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact {
    min-width: 0;
  }

  .intro h1,
  .simple-header h1 {
    font-size: 1.8rem;
  }
}
