:root {
  --ink: #222222;
  --muted: #5f5f70;
  --heading: #74718d;
  --link: #262626;
  --line: #eeeeee;
  --page: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 28px;
  color: #ffffff;
}

.site-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
}

.topbar .site-name {
  color: #ffffff;
}

.hero {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  overflow: hidden;
  background: #8fa9bd;
  color: #ffffff;
  text-align: center;
}

.hero-copy {
  width: min(900px, calc(100% - 40px));
  padding-top: 24px;
}

.hero h1 {
  margin: 0 0 26px;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 400;
  line-height: 1;
}

.hero p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.about {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 42px;
  padding: 28px 0 72px;
}

.portrait {
  display: block;
  width: 270px;
  height: 390px;
  object-fit: cover;
}

.bio {
  max-width: 820px;
  padding-top: 12px;
}

.bio h2 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
}

p {
  margin: 0 0 18px;
}

ul {
  margin: -8px 0 34px 20px;
  padding: 0;
  list-style-type: square;
}

li {
  margin: 5px 0;
}

.contact {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 30px;
  text-align: center;
}

.contact > a {
  font-weight: 700;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-links a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #292929;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.social-links .linkedin-link {
  background: #666b72;
}

.linkedin-mark {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 2px;
  background: #ffffff;
  color: #666b72;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.text-section {
  padding: 8px 0 76px;
}

.text-section h2 {
  margin: 0 0 36px;
  color: var(--heading);
  font-size: 25px;
  font-weight: 700;
  text-align: center;
}

.text-section h3 {
  width: min(760px, 100%);
  margin: 0 auto 24px;
  font-size: 18px;
  font-weight: 700;
}

.entries {
  width: min(760px, 100%);
  margin: 0 auto;
}

.entries article {
  margin-bottom: 28px;
}

.entries p {
  margin-bottom: 12px;
}

.entries strong {
  font-weight: 700;
}

.teaching-list {
  margin: 0 auto;
}

.footer {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 0 28px;
  background: #8fa9bd;
  color: #ffffff;
}

.footer .site-name {
  color: #ffffff;
}

@media (max-width: 760px) {
  .topbar {
    padding: 0 18px;
  }

  nav {
    gap: 16px;
  }

  .hero {
    min-height: 290px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portrait {
    width: min(270px, 100%);
    height: auto;
    aspect-ratio: 27 / 39;
  }

  .bio {
    padding-top: 0;
  }

  .contact {
    justify-items: start;
    text-align: left;
  }

  .text-section h2 {
    text-align: left;
  }

  .text-section h3 {
    margin-left: 0;
  }

  .entries {
    margin: 0;
  }

}
