:root {
  --nav: #262626;
  --ink: #353535;
  --muted: #777;
  --link: #1976a8;
  --line: #e6e6e6;
  --side-width: 235px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Lato, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: #0f5277; text-decoration: underline; }

.site-nav {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  height: 54px;
  padding: 0 max(14px, calc((100vw - 1500px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ddd;
  background: var(--nav);
  box-shadow: 0 1px 3px rgb(0 0 0 / 20%);
}
.brand { color: #fff; font-family: "Roboto Slab", Georgia, serif; font-size: 17px; }
.brand:hover { color: #fff; text-decoration: none; }
.site-nav nav { display: flex; height: 100%; align-items: center; }
.site-nav nav a { padding: 16px 14px; color: #ddd; font-size: 15px; }
.site-nav nav a:hover { color: #fff; background: #171717; text-decoration: none; }

.layout { max-width: 1500px; min-height: 100vh; margin: 0 auto; padding: 94px 14px 45px; display: grid; grid-template-columns: var(--side-width) minmax(0, 1fr); gap: 42px; }
.sidebar { padding-top: 4px; }
.portrait { width: 180px; height: 180px; object-fit: cover; border-radius: 4px; display: block; }
h1, h2, h3 { color: #2f2f2f; }
h1 { margin: 18px 0 3px; font-family: "Roboto Slab", Georgia, serif; font-size: 27px; font-weight: 400; line-height: 1.25; }
.position { margin: 0 0 18px; color: #666; font-size: 14px; }
.contact-list { padding: 0; margin: 0; list-style: none; font-size: 14px; }
.contact-list li { margin: 4px 0; }
.contact-list li:first-child { margin-bottom: 10px; color: #666; }
.contact-list a { display: inline-flex; align-items: center; gap: 8px; }
.contact-icon { width: 15px; color: #6b7780; text-align: center; font-size: 13px; }

.content { max-width: none; }
section { padding-top: 2px; margin-bottom: 43px; scroll-margin-top: 64px; }
section:first-child { padding-top: 0; }
h2 { padding-bottom: 8px; margin: 0 0 17px; border-bottom: 1px solid var(--line); font-family: "Roboto Slab", Georgia, serif; font-size: 22px; font-weight: 400; }
h3 { margin: 0 0 5px; font-size: 16px; font-weight: 700; line-height: 1.45; }
p { margin: 0 0 12px; }
.news-list, .plain-list { padding-left: 20px; margin: 0; }
.news-list li, .plain-list li { margin-bottom: 8px; padding-left: 2px; }
.news-list span { color: #555; font-weight: 700; }

.publication { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; padding: 20px 0; border-bottom: 1px solid #f0f0f0; }
.publication:first-of-type { padding-top: 0; }
.publication > div:last-child p { margin-bottom: 5px; color: #555; font-size: 15px; }
.publication > div:last-child a { margin-right: 9px; font-size: 15px; }
.publication-figure { width: 210px; height: 122px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #e3e3e3; background: #fff; }
.publication-figure img { display: block; width: 100%; height: 100%; object-fit: contain; }
.full-list { margin-top: 15px; font-size: 14px; }
.education-list li { margin-bottom: 12px; }
footer { margin-top: 65px; padding-top: 14px; border-top: 1px solid var(--line); color: #999; font-size: 12px; }

@media (max-width: 800px) {
  .site-nav { position: static; height: auto; padding: 0 18px; align-items: flex-start; flex-direction: column; }
  .brand { padding: 13px 0 5px; }
  .site-nav nav { overflow-x: auto; width: 100%; }
  .site-nav nav a { padding: 10px 9px 12px; white-space: nowrap; font-size: 13px; }
  .layout { display: block; padding: 35px 22px; }
  .sidebar { margin-bottom: 38px; }
  .portrait { width: 150px; height: 150px; }
}

@media (max-width: 600px) {
  .publication { grid-template-columns: 1fr; gap: 11px; }
  .publication-figure { width: min(100%, 420px); height: 165px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .layout { padding-right: 17px; padding-left: 17px; }
}
