:root {
  --accent: #a90707;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --paper: #ffffff;
  --soft: #f8f9fa;
  --nav-width: 248px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-color: rgba(169, 7, 7, 0.45);
  text-underline-offset: 3px;
}

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

.site {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--nav-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 28px 24px;
  background: var(--paper);
}

.site-title {
  margin: 0 0 28px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav a {
  display: block;
  padding: 8px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

.nav a:hover,
.nav a:focus,
.nav a.active {
  color: var(--accent);
}

main {
  width: min(960px, 100%);
  padding: 56px 56px 80px;
}

.hero {
  padding: 10px 0 34px;
  text-align: center;
}

h1 {
  margin: 0;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 400;
  line-height: 1.15;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.75fr);
  gap: 42px;
  align-items: start;
  padding: 22px 0 44px;
  border-bottom: 1px solid var(--line);
}

.intro p {
  margin: 0 0 18px;
}

.label {
  font-weight: 700;
}

.portrait {
  display: block;
  width: min(100%, 240px);
  height: auto;
  justify-self: end;
  border: 1px solid var(--line);
}

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

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

h2 {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.25;
}

.subsection-title {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li + li {
  margin-top: 10px;
}

.paper-list {
  list-style: none;
  padding: 0;
}

.paper-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.paper-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.paper-title {
  font-weight: 700;
}

.paper-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

.paper-abstract {
  margin-top: 10px;
  max-width: 780px;
}

.paper-abstract-label {
  font-weight: 700;
}

.footer {
  padding-top: 34px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .site {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-title {
    margin-bottom: 10px;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 18px;
  }

  .nav a {
    padding: 4px 0;
  }

  main {
    padding: 36px 24px 56px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .portrait {
    width: min(100%, 220px);
    justify-self: start;
  }
}
