:root {
  --text: #202124;
  --muted: #5f6368;
  --line: #e4e7eb;
  --accent: #4f6f8f;
  --paper: #ffffff;
  --soft: #f7f8fa;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.97);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 19px 28px;
  display: flex;
  align-items: baseline;
  gap: 31px;
}
.brand {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .01em;
  margin-right: auto;
}
.nav a:not(.brand) {
  color: #43484d;
  font-size: 15px;
}
.nav a.active { color: var(--accent); font-weight: 600; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 28px 80px;
}

.home-grid {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.profile-photo {
  width: 100%;
  max-width: 245px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  background: var(--soft);
}

h1, h2, h3 { font-weight: 500; line-height: 1.25; }
h1 { font-size: 35px; margin: 0 0 26px; letter-spacing: -.01em; }
h2 { font-size: 25px; margin: 0 0 24px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p { margin: 0 0 18px; }
.lead { font-size: 17px; }
.muted { color: var(--muted); }

.job-market {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.job-market p { margin-bottom: 9px; }
.jmp-link { font-weight: 600; }

.contact-line { margin-top: 24px; color: var(--muted); }

.page-title { margin-bottom: 38px; }
.section { margin-top: 46px; }
.section:first-of-type { margin-top: 0; }
.section-title {
  font-size: 24px;
  font-weight: 500;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.paper { margin-bottom: 38px; }
.paper-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.paper-meta { color: var(--muted); margin-bottom: 7px; }
.paper-links { margin-bottom: 10px; }
.paper-links a { margin-right: 14px; }
.abstract { max-width: 850px; }
.abstract summary {
  cursor: pointer;
  color: var(--accent);
  margin: 7px 0 8px;
}
.abstract p { color: #3f4448; }

.cv-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 8px 0 36px;
}
.button {
  display: inline-block;
  border: 1px solid var(--accent);
  padding: 8px 14px;
  border-radius: 3px;
  font-size: 14px;
}
.button:hover { background: #f4f7fa; text-decoration: none; }

.cv-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 10px 35px;
  max-width: 820px;
}
.cv-label { color: var(--muted); font-weight: 600; }
.cv-row { display: contents; }
.cv-divider {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}

.policy-item { margin-bottom: 31px; max-width: 850px; }
.policy-title { font-weight: 600; }

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 36px;
  color: #777d82;
  font-size: 13px;
}

@media (max-width: 720px) {
  .nav { gap: 18px; flex-wrap: wrap; padding: 16px 20px; }
  .brand { width: 100%; margin-bottom: 3px; }
  .container { padding: 38px 20px 58px; }
  .home-grid { grid-template-columns: 1fr; gap: 30px; }
  .profile-photo { max-width: 210px; }
  h1 { font-size: 31px; }
  .cv-grid { grid-template-columns: 1fr; gap: 4px; }
  .cv-row { display: block; margin-bottom: 17px; }
  .cv-label { margin-bottom: 2px; }
}

.profile-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.profile-links img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.78;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-links img:hover {
  opacity: 1;
  transform: translateY(-1px);
}
