/**
 * Variables
 */
.article__thumbnail--large, .article__thumbnail--tiny, .article__thumbnail--medium, .article__footer .footer__avatar {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.article__category, .article__footer .footer__readmore-text {
  text-transform: uppercase;
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
}

/**
 * Base settings
 */
* {
  box-sizing: border-box;
}

.project-body {
  font-family: 'Montserrat', sans-serif;
  font-size: 100%;
  font-weight: 400;
  line-height: 1.375em;
  background-color: #fbfbfb;
  color: #afafaf;
}

.project-body h1 {
  padding: 1em 0;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
  color: #000000;
}

.project-body p {
  margin: 0;
  font-size: 14px;
  color: #7f7f7f;
  font-family: 'Montserrat', sans-serif;
}

.project-body a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/**
 * Articles
 */
.article {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  width: 290px;;
  max-width: 340px;
  box-shadow: 0px 8px 29px 0px rgba(0, 0, 0, 0.13);
  transition: opacity 0.4s, box-shadow 0.4s;
}
.article--large {
  height: 320px;
}
.article--medium {
  height: 280px;
  color: #ffffff;
  overflow: hidden;
}
.article--small {
  height: 148px;
}
.article--tiny {
  height: 95px;
}
.article--small:after, .article--tiny:after {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0;
  width: 2px;
  background-color: #fd7d5f;
  content: " ";
  transition: height 0.4s;
}
.article__thumbnail--large, .article__thumbnail--tiny {
  display: block;
  
}
.article__thumbnail--large {
  position: relative;
  height: calc(100% - 148px);
  width: 100%;
}
.article__date {
  display: block;
  font-size: 10px;
  font-weight: 600;
  transition: color 0.4s;
}
.article__date--red {
  position: absolute;
  z-index: 1;
  right: 20px;
  top: 20px;
  padding: 0 1em;
  border-radius: 10px;
  background-color: #fd7d5f;
  color: #fff;
}
.article__date--green {
  position: absolute;
  z-index: 1;
  right: 20px;
  top: 20px;
  padding: 0 1em;
  border-radius: 10px;
  background-color: #5BB12F;
  color: #fff;
}

.article__body {
  position: absolute;
  z-index: 1;
  bottom: 0;
  width: 100%;
  height: 148px;
  padding: 20px;
}
.article__body--large {
  background-color: #ffffff;
  transition: all 0.4s;
  overflow: hidden;
}
.article__body--tiny {
  position: relative;
  float: right;
  height: 100%;
  padding: calc(20px / 2);
  width: calc(100% - 100px);
}
.article__category {
  display: block;
  transition: color 0.4s;
}
.article__title {
  font-family: 'Montserrat', sans-serif;
  padding-bottom: 20px;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 400;
  color: #262626;
}
.article__title > a {
  display: block;
  max-height: 44px;
  overflow: hidden;
}
.article__title--medium {
  color: #ffffff;
}
.article__title--tiny {
  font-size: 1rem;
  padding-bottom: 0;
}
.article__excerpt {
  opacity: 0;
  transition: opacity 0.4s;
}
.article__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0 20px 20px 20px;
  line-height: inherit;
  height: 42px;
  width: 100%;
}
.article__footer--large {
  background-color: #ffffff;
}
.article__footer .footer__avatar {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  vertical-align: middle;
}
.article__footer .footer__avatar > a {
  display: block;
  width: 100%;
  height: 100%;
}
.article__footer .footer__readmore {
  position: relative;
  display: block;
  height: 22px;
  float: right;
  overflow: hidden;
}
.article__footer .footer__readmore--red {
  color: #fd7d5f;
}
.article__footer .footer__readmore--green {
  color: #5BB12F;
}
.article__footer .footer__readmore--white {
  color: #ffffff;
}
.article__footer .footer__readmore-text {
  display: inline-block;
  padding-right: 5px;
  -webkit-transform: translateY(30px);
          transform: translateY(30px);
  color: inherit;
  vertical-align: middle;
  transition: all 0.4s;
}
.article__footer .footer__readmore-arrow {
  display: inline-block;
  height: 100%;
}
.article__footer .footer__readmore-arrow svg {
  transition: fill 0.4s;
}

/**
 * States
 */
.toggled {
  visibility: visible;
  opacity: 1;
}

.nav__item.active {
  color: #ffffff;
  background-color: #000000;
}

.nav__item:hover {
  color: #ffffff;
  background-color: #fd7d5f;
}

.article:hover {
  box-shadow: 0px 19px 51px 0px rgba(0, 0, 0, 0.13);
}
.article:hover .footer__readmore-text {
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

.article--large:hover .article__body--large {
  height: 300px;
}
.article--large:hover .article__excerpt {
  opacity: 1;
}
.article--large:hover .article__category {
  color: #fd7d5f;
}

.article--medium:hover .article__thumbnail--medium {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}

.article--large:hover .footer__readmore-arrow > svg,
.article--small:hover .footer__readmore-arrow > svg {
  fill: #5BB12F;
}

.article--small:hover:after,
.article--tiny:hover:after {
  height: 100%;
}
.article--small:hover .article__date,
.article--tiny:hover .article__date {
  color: #fd7d5f;
}

.paragraph::-moz-selection {
  background: #f4de4a;
}

.paragraph::selection {
  background: #f4de4a;
}

.paragraph::-moz-selection {
  background-color: #f4de4a;
}
