:root {
  --bg: #ffffff;
  --ink: #1f2933;
  --muted: #64748b;
  --line: #d9e2ec;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --sidebar: #f8fafc;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  text-decoration: underline;
}

.page {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 28px 36px;
}

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

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

.avatar {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #f8fafc);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: #1d4ed8;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

.profile h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.role,
.location {
  margin: 0 0 8px;
  color: var(--muted);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.links a {
  color: var(--ink);
  font-weight: 600;
}

.contact {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.contact p {
  margin: 0 0 16px;
}

.content {
  min-width: 0;
}

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

.section:last-child {
  border-bottom: 0;
}

h2 {
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #111827;
  font-size: 25px;
  line-height: 1.25;
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

p {
  margin: 0 0 14px;
}

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

li {
  margin: 0 0 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #1e40af;
  font-weight: 600;
  font-size: 14px;
}

.item {
  margin-bottom: 24px;
}

.item:last-child {
  margin-bottom: 0;
}

.item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 4px;
}

.item-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}

.pub-year {
  margin: 20px 0 6px;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
}

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

.pub-list {
  margin: 0 0 12px;
}

.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px 36px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .page {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 32px;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 28px;
  }

  .profile {
    position: static;
  }

  .avatar {
    width: 132px;
    height: 132px;
    font-size: 34px;
  }

  .links {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .item-head {
    display: block;
  }

  .item-head span {
    display: block;
    margin-top: 4px;
  }
}
