:root {
  --text: #222;
  --muted: #666;
  --link: #2f5d8a;
  --rule: #e7e7e7;
  --max-width: 1440px;
  --sidebar-width: 220px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-shell {
  width: auto;
  margin: 0 44px;
  padding: 64px 0 80px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

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

.profile-box {
  width: 100%;
}

.profile-avatar {
  display: block;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.profile-name {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-bio {
  margin: 8px 0 15px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.profile-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 0.95rem;
}

.page-content {
  min-width: 0;
  max-width: none;
}

.page-content h1 {
  margin: 0 0 14px;
  padding-top: 28px;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}

.page-content h1:first-child {
  padding-top: 0;
}

.page-content p {
  margin: 0 0 16px;
}

.page-content ul {
  margin: 0;
  padding-left: 1.3rem;
}

.page-content li {
  margin-bottom: 11px;
}

.page-content strong {
  font-weight: 650;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.experience-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: 34px;
  align-items: start;
}

.experience-date {
  color: #667281;
  font-size: 0.96rem;
  line-height: 1.55;
  white-space: nowrap;
  padding-top: 1px;
}

.experience-title {
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.45;
  margin-bottom: 5px;
}

.experience-title a {
  color: var(--text);
}

.experience-title a:hover,
.experience-title a:focus {
  color: var(--link);
}

.experience-role {
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 5px;
}

.experience-description {
  color: #333;
  font-size: 0.97rem;
  line-height: 1.6;
}

@media (max-width: 500px) {
  .experience-list {
    gap: 26px;
  }

  .experience-item {
    display: block;
  }

  .experience-date {
    margin-bottom: 6px;
  }
}

.template-credit {
  margin-top: 56px !important;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: #8a8a8a;
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 36px), 680px);
    padding: 36px 0 60px;
    display: block;
  }

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

  .profile-box {
    display: grid;
    grid-template-columns: 108px 1fr;
    column-gap: 22px;
    align-items: center;
  }

  .profile-avatar {
    width: 108px;
    height: 108px;
    margin: 0;
    grid-row: 1 / span 3;
  }

  .profile-name,
  .profile-bio,
  .profile-links {
    grid-column: 2;
  }

  .profile-name {
    font-size: 1.45rem;
  }

  .profile-bio {
    margin: 4px 0 8px;
  }

  .profile-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 14px;
  }

  .page-content {
    max-width: none;
  }

  .page-content h1 {
    padding-top: 26px;
  }
}

@media (max-width: 460px) {
  .profile-box {
    display: block;
  }

  .profile-avatar {
    width: 116px;
    height: 116px;
    margin-bottom: 16px;
  }

  .profile-links {
    margin-top: 8px;
  }
}
