﻿:root {
  --blue: #043361;
  --link: #3399cc;
  --link-hover: #006699;
  --text: #595959;
  --strong: #222222;
  --line: #e5e5e5;
  --soft: #f8f9fb;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  word-wrap: break-word;
}

.wrapper {
  width: 960px;
  margin: 0 auto;
}

.profile {
  width: 232px;
  float: left;
  position: fixed;
  padding-top: 4em;
  text-align: center;
  -webkit-font-smoothing: subpixel-antialiased;
}

.content {
  width: 650px;
  float: right;
  padding-top: 4em;
  padding-bottom: 50px;
}

.avatar {
  display: inline-block;
  width: 158px;
  height: 158px;
  margin-bottom: 16px;
  border-radius: 100%;
  overflow: hidden;
  background: var(--soft);
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

h1,
h2,
h3 {
  color: var(--blue);
  line-height: 1.15;
}

h1 {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 500;
}

h2 {
  margin: 2px 0 15px;
  font-size: 24px;
  font-weight: 500;
}

h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

p,
ul,
ol {
  margin: 0 0 18px;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 5px;
}

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

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

strong {
  color: var(--strong);
  font-weight: 600;
}

section {
  margin-bottom: 28px;
}

.position,
.affiliation,
.email {
  margin-bottom: 6px;
}

.email {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
}

.profile-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.icon-link {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
  color: var(--blue);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.icon-link:hover,
.icon-link:focus {
  transform: translateY(-1px);
  border-color: var(--link);
  background: #eef7fb;
  text-decoration: none;
}

.icon-link svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
}

.text-icon {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.linkedin {
  color: #0a66c2;
}

.redbook {
  color: #d71920;
}

.icon-link.disabled {
  color: #a8adb3;
  background: #f2f3f5;
  cursor: default;
}

.icon-link.disabled:hover,
.icon-link.disabled:focus {
  transform: none;
  border-color: var(--line);
  background: #f2f3f5;
}

.links a,
.links .placeholder-link {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--soft);
  font-size: 13px;
  color: var(--blue);
}

.links .placeholder-link {
  color: #a8adb3;
  cursor: default;
}

.news {
  list-style: none;
  padding-left: 0;
}

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

.date {
  display: inline-block;
  width: 88px;
  color: var(--blue);
  font-weight: 600;
}

.pub-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.pub-image {
  position: relative;
  flex: 0 0 215px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}

.pub-image a {
  display: block;
  height: 130px;
}

.pub-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(4, 51, 97, 0.9);
  color: white;
  font-size: 12px;
  line-height: 1.3;
}

.pub-info {
  flex: 1 1 auto;
}

.pub-info p {
  margin-bottom: 6px;
}

.pub-title {
  font-weight: 600;
  color: var(--strong);
}

.pub-title a {
  color: var(--blue);
}

.links {
  margin-bottom: 0;
}

.item {
  margin-bottom: 14px;
}

.item p {
  margin-bottom: 4px;
}

.item-title {
  color: var(--blue);
  font-weight: 600;
}

footer {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #777777;
  font-size: 13px;
}

@media print, screen and (max-width: 960px) {
  .wrapper {
    width: auto;
    margin: 0;
  }

  body {
    padding: 15px;
  }

  .profile,
  .content {
    float: none;
    position: static;
    width: auto;
  }

  .profile {
    padding-top: 0;
    padding-bottom: 20px;
  }

  .content {
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
}

@media print, screen and (max-width: 560px) {
  body {
    font-size: 14px;
  }

  .pub-row {
    display: block;
  }

  .pub-image {
    width: 100%;
    max-width: 360px;
    margin-bottom: 10px;
  }

  .date {
    display: block;
    width: auto;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #3eb7f0;
    --link: #3eb7f0;
    --link-hover: #8fd8ff;
    --text: #dadbdf;
    --strong: #eeeff0;
    --line: #373946;
    --soft: #282a35;
    --paper: #20212b;
  }

  .badge {
    background: rgba(62, 183, 240, 0.9);
    color: #10131a;
  }

  .icon-link:hover,
  .icon-link:focus {
    background: #28384a;
  }

  .icon-link.disabled,
  .icon-link.disabled:hover,
  .icon-link.disabled:focus {
    color: #6f7482;
    background: #282a35;
  }
}
