/* Import font */
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i");
/* Variables */
html * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* apply a natural box layout model to all elements, but allowing components to change */
html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

/* set rem text size and styling */
html {
  font-size: 62.5%;
}

body {
  font-size: 18px;
  font-size: 1.8rem;
}

html,
body {
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  background: #fff;
  color: #323a45;
  height: 100%;
}

.cards {
  padding: 20px;
  max-width: 100vw;
}
@media (min-width: 900px) {
  .cards {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
  }
}
.cards__item {
  flex: 0 1 auto;
  display: block;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  color: #323a45;
  height: auto;
  text-align: left;
  text-decoration: none;
  border-top: 3px solid #9b59b6;
  border-right: 1px solid #e1e3e5;
  border-bottom: 1px solid #e1e3e5;
  border-left: 1px solid #e1e3e5;
  padding: 40px 50px;
  margin: 20px;
  transition: all 250ms ease-in-out;
  width: auto;
}
@media (min-width: 900px) {
  .cards__item {
    width: calc(100% / 3);
  }
}
.cards__item:hover, .cards__item:focus {
  background: #9b59b6;
  border-color: #9b59b6;
  color: #fff;
  outline: 0;
}
.cards__item:hover .cards__date, .cards__item:focus .cards__date {
  color: rgba(255, 255, 255, 0.6);
}
.cards__item:hover .cards__title, .cards__item:focus .cards__title {
  color: #fff;
}
.cards__item:hover .cards__more, .cards__item:focus .cards__more {
  color: #fff;
  border-bottom: solid 1px rgba(255, 255, 255, 0.6);
}
.cards__item:nth-of-type(2) {
  border-top: 3px solid #ff6d3a;
}
.cards__item:nth-of-type(2):hover, .cards__item:nth-of-type(2):focus {
  background: #ff6d3a;
  border-color: #ff6d3a;
}
.cards__item:nth-of-type(3) {
  border-top: 3px solid #3498db;
}
.cards__item:nth-of-type(3):hover, .cards__item:nth-of-type(3):focus {
  background: #3498db;
  border-color: #3498db;
}
.cards__date {
  display: block;
  color: #8a959e;
  text-transform: uppercase;
  font-size: 1.2rem;
  line-height: 2.4rem;
  font-weight: 700;
  transition: all 250ms ease-in-out;
}
.cards__title {
  color: #323a45;
  font-weight: 300;
  margin: 0 0 30px 0;
  transition: all 250ms ease-in-out;
  font-size: 2rem;
  line-height: 3rem;
}
@media (min-width: 1200px) {
  .cards__title {
    font-size: 2.4rem;
    line-height: 3.5rem;
  }
}
.cards__more {
  margin-top: auto;
  color: #8a959e;
  display: inline-block;
  border-bottom: 1px solid #e1e3e5;
  font-size: 1.4rem;
  line-height: 1.6rem;
  font-weight: 400;
  transition: all 250ms ease-in-out;
}