* {
  box-sizing: border-box;
}

body {
  font: normal 16px/26px system-ui, Roboto, Arial, sans-serif;
  background: #fefefe;
  color: #2a3744;
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: none;
  overflow-x: hidden;
}

header {
  background: #282828;
  position: relative;
  font-family: system-ui, Roboto, sans-serif;
  min-height: 75px;
  display: flex;
  align-items: center;
}

a {
  color: #333333;
  text-decoration: none;
  border: none;
}

.container {
  /* max-width: 1440px; */
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

main.container {
  margin-top: 32px;
}

.profile__header {
  margin-bottom: 20px;
}

.profile__title {
  margin: 16px 0;
  font: 700 43px/1.2em system-ui, Roboto, Arial, sans-serif;
}

.profile__social-links {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
  width: 100%;
}

.profile__social-link__item {
  display: inline-block;
  margin-left: 10px;
}

.profile__social-link__item:first-child {
  margin-left: 0;
}

.container__title {
  font-weight: 700;
  font-size: 14px;
  color: #8fa6b3;
}

#posts-container {
  display: flex;
  flex-wrap: wrap;
}

.post {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 600px;
  margin-right: 30px;
  margin-bottom: 40px;
  /* border: 1px solid #e1e8ed;
  border-radius: 4px; */
  margin-top: 12px;
  min-height: 300px;
  height: auto;
}

.post-title {
  font: 700 18px/1.4em system-ui, Roboto, Arial, sans-serif;
  color: #4a4a4a;
  margin-top: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 16px;
}

.post-preview {
  overflow: hidden;
  width: 100%;
  text-align: center;
  display: block;
  margin: 22px auto 0px auto;
  /* border-bottom: 1px solid #e1e8ed; */
  line-height: 0;
  height: 240px;
}

.post-tag {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 0 8px;
  color: #717171;
  border: 1px solid #9b9b9b;
  border-radius: 25px;
  white-space: nowrap;
}

.post-footer {
  text-align: right;
  margin-top: auto;
}

.post-level {
  font: 700 12px/1 system-ui, Roboto, Arial, sans-serif;
  text-transform: uppercase;
  display: inline-block;
  -webkit-font-smoothing: subpixel-antialiased;
  color: #0085b6;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  padding: 16px 0 32px;
  border-bottom: 1px solid #e4e4e4;
  margin-bottom: 16px;
}

.filter-button {
    transition: background-color 200ms, color 200ms;
    background-color: transparent;
    font: inherit;
    cursor: pointer;
    display: inline-block;
    padding: 11px 55px;
    color: #717171;
    border: 1px solid #9b9b9b;
    border-radius: 6px;
    font-size: 18px;
    margin: 0px 20px 0px 20px;
    white-space: nowrap;
}

.filter-button:hover {
  background-color: #f3f3f3;
  color: #3a3a3a;
}

.filter-button.is-active {
  background-color: #0085b6;
  border-color: #0085b6;
  color: #fff;
}