:root {
  --text: #595959;
  --heading: #222;
  --muted: #777;
  --link: #267cb9;
  --link-hover: #069;
  --border: #f0f0f0;
  --rule: #e5e5e5;
  --bg: #fff;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

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

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

.page {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 54px;
  display: grid;
  grid-template-columns: 230px minmax(0, 690px);
  gap: 40px;
}

.author-profile {
  align-self: start;
  position: sticky;
  top: 28px;
  color: var(--muted);
}

.author-avatar {
  width: 152px;
  height: 152px;
  object-fit: cover;
  object-position: center 34%;
  border-radius: 50%;
  margin-bottom: 22px;
  border: 1px solid var(--rule);
}

.author-profile h1 {
  margin: 0 0 6px;
  color: var(--heading);
  font-size: 1.45rem;
  line-height: 1.15;
}

.author-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  font-size: 0.88rem;
}

.author-links span {
  display: block;
  color: var(--heading);
  font-weight: 700;
}

.page-content {
  max-width: 690px;
}

.page-section {
  padding: 0 0 24px;
  margin: 0 0 24px;
  border-bottom: 0;
}

.page-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 12px;
  color: var(--heading);
  font-size: 1.28rem;
  line-height: 1.25;
  border-bottom: 0;
  padding-bottom: 0;
}

h3 {
  margin-bottom: 3px;
  color: var(--heading);
  font-size: 1rem;
  line-height: 1.32;
}

p {
  margin-bottom: 14px;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 0;
  margin-bottom: 12px;
}

.section-title-row h2 {
  margin-bottom: 0;
  border-bottom: 0;
}

.section-title-row > a {
  flex: 0 0 auto;
  font-size: 0.9rem;
}

.plain-list {
  margin: 0;
  padding-left: 20px;
}

.plain-list li {
  margin-bottom: 7px;
}

.publication {
  padding: 0 0 12px;
  margin: 0 0 12px;
  border-bottom: 0;
}

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

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

.publication h3 a:hover,
.publication h3 a:focus-visible {
  color: var(--link-hover);
}

.publication p {
  margin-bottom: 5px;
}

.pub-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 34px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .page,
  .site-footer {
    width: min(100% - 28px, var(--max-width));
  }

  .page {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
  }

  .author-profile {
    position: static;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 0 22px;
    align-items: start;
  }

  .author-avatar {
    grid-row: span 4;
    width: 120px;
    height: 120px;
    margin-bottom: 0;
  }

  .author-links {
    grid-column: 1 / -1;
    margin-top: 18px;
  }

  .page-content {
    max-width: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .brand {
    white-space: normal;
  }

  .author-profile {
    display: block;
  }

  .author-avatar {
    width: 132px;
    height: 132px;
    margin-bottom: 18px;
  }

  .section-title-row {
    display: block;
  }

}
