@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --text: #252a31;
  --muted: #68717d;
  --light: #f6f7f9;
  --line: #e7e9ed;
  --accent: #1769aa;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.72;
}

.page {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 64px 0 48px;
  display: flex;
  flex-direction: column;
}

.profile-photo {
  width: 154px;
  height: 154px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-bottom: 25px;
}

.profile h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  margin: 0 0 8px;
}

.title {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.school {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.contact {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 2;
}

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

a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-direction: column;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.social-links a {
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.social-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.social-links .disabled {
  color: #9aa1a9;
  cursor: default;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
}

.sidebar-bottom a {
  color: var(--muted);
}

.content {
  min-width: 0;
  padding: 64px 0 55px;
}

section {
  padding: 0 0 43px;
  margin-bottom: 39px;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 19px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  font-weight: 600;
}

.content p {
  max-width: 790px;
}

#about p {
  margin: 0 0 13px;
}

.news-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 6px 0;
}

.date {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.publication {
  margin: 0 0 29px;
}

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

.publication h3 {
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1.52;
  font-weight: 600;
}

.publication h3 a {
  color: var(--text);
}

.publication h3 a:hover {
  color: var(--accent);
}

.authors {
  color: #505964;
  margin: 0 0 2px;
  font-size: 14px;
}

.venue {
  color: var(--muted);
  margin: 0 0 4px;
  font-size: 14px;
}

.paper-links {
  display: flex;
  gap: 15px;
  font-size: 13px;
}

.paper-links a {
  font-weight: 500;
}

.placeholder {
  color: var(--muted);
  font-style: italic;
}

footer {
  color: #9299a2;
  font-size: 12px;
  padding-bottom: 20px;
}

footer p { margin: 0; }

@media (max-width: 820px) {
  .page {
    width: min(700px, calc(100% - 40px));
    display: block;
  }

  .sidebar {
    position: static;
    min-height: auto;
    padding: 38px 0 30px;
  }

  .profile-photo {
    width: 125px;
    height: 125px;
  }

  .sidebar-bottom {
    display: none;
  }

  .content {
    padding: 0 0 40px;
  }
}

@media (max-width: 520px) {
  .page {
    width: calc(100% - 30px);
  }

  .news-item {
    grid-template-columns: 62px 1fr;
    gap: 12px;
  }

  .publication h3 {
    font-size: 15px;
  }
}

#services ul {
  list-style-type: disc;
  margin: 6px 0 14px 20px;
  padding: 0;
}

#services li {
  margin-bottom: 4px;
  color: var(--text);
}


.contact div {
  word-break: break-word;
}
