:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: #111;
  background: #fff;
}

* {
  box-sizing: border-box;
}

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

a {
  color: #1769aa;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

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

.profile {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  margin-bottom: 52px;
}

h1 {
  margin: 0 0 26px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 500;
}

h2 {
  margin: 0 0 18px;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 500;
}

h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

li {
  margin-bottom: 5px;
}

.profile-photo {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

.profile-links {
  margin-top: 12px;
  text-align: center;
}

.profile-links span {
  margin: 0 8px;
  color: #777;
}

section {
  margin-bottom: 46px;
}

.news-list {
  padding-left: 20px;
}

.news-list li {
  margin-bottom: 7px;
}

.news-list span {
  color: #555;
}

.project,
.entry {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid #ddd;
}

.project:last-child,
.entry:last-child {
  border-bottom: 1px solid #ddd;
}

.project-year,
.entry-date {
  color: #666;
  font-size: 13px;
}

.organization {
  margin-bottom: 9px;
  color: #555;
  font-style: italic;
}

.note {
  margin-top: 9px;
  color: #666;
  font-size: 13px;
}

.entry p:last-child,
.project p:last-child,
.compact p {
  margin-bottom: 0;
}

footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid #ddd;
  color: #777;
  font-size: 12px;
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 28px, 900px);
    margin-top: 28px;
  }

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

  .profile-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }

  h1,
  .profile-links {
    text-align: center;
  }

  .project,
  .entry {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}
