:root {
  --primary-color: #f0f5ff;
  --secondary-color: #58697d;
  --heading-font: "Montserrat", sans-serif;
  --default-font: "Raleway", sans-serif;
}

h1 {
  font-family: var(--heading-font);
  font-weight: bold;
  font-size: 96px;
}

h2 {
  font-family: var(--heading-font);
  font-weight: normal;
  font-size: 36px;
}

p {
  font-family: var(--default-font);
  font-weight: normal;
}

.hero {
  background: var(--primary-color);
  text-align: center;
  padding: 72px 20px;
}

.btn-primary {
  background: var(--secondary-color);
  border-radius: 4px;
  color: white;
  font-size: 18px;
  line-height: 27px;
  padding: 12px 20px;
}

.btn-primary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

.btn-secondary {
  background: var(--primary-color);
  border-radius: 4px;
  color: var(--secondary-color);
  font-size: 18px;
  line-height: 27px;
  padding: 12px 20px;
}

.nav {
  background-color: var(--secondary-color);
  line-height: 2;
}

.nav .main-link {
  margin: 0 2%;
}

.nav .active {
  font-weight: bold;
}

.nav .nav-link {
  color: white;
  padding: 4px;
}

.dropdown-item {
  color: var(--secondary-color);
}

.featured-project {
  margin: 5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  padding: 8px;
}

.social {
  text-align: center;
}

.social i {
  color: var(--secondary-color);
  font-size: 32px;
  margin-bottom: 30px;
}

.social a {
  margin: 0 50px;
  text-decoration: none;
}

.stack {
  border: 1px solid var(--secondary-color);
  padding: 15px;
}

.stack h2 {
  text-align: center;
}

.stack ul {
  list-style-type: none;
  padding: 15px 0;
}

.stack li {
  font-size: 16pt;
  line-height: 1.5;
  text-align: center;
}

.headshot {
  border-radius: 50%;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 1rem;
}

.education {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.portfolio {
  vertical-align: middle;
}

.portfolio img {
  max-height: 350px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 18pt;
    text-align: center;
  }

  .hero {
    padding: 50px 20px;
  }

  .nav,
  .dropdown-item {
    font-size: 9pt;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 14px;
    line-height: 27px;
    padding: 10px 15px;
    display: block;
    text-align: center;
    margin: 20px 80px;
  }

  .social i {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .social a {
    margin: 0 15px;
  }

  .education {
    font-size: 8pt;
  }

  .interests-list {
    list-style-type: none;
  }

  #teaching {
    margin-top: 20px;
  }

  .portfolio {
    text-align: center;
  }

  .portfolio a {
    font-size: 10pt;
  }

  .hide-small {
    display: none;
  }

  @media (min-width: 500px) {
    .btn-primary {
      display: inline-block;
    }
  }
}
