*,
*:before,
*:after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: 16px;
}

body,
html,
h3 {
  margin: 0;
  padding: 0;
}

body {
  font-family: EditorialNew, serif;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 93.3333333333333%;
  max-width: 720px;
  margin: auto;
  position: relative;
}

.container.header {
  margin-bottom: 2em;
}

.divider.footer {
  border-bottom: 1px solid #000000;
  margin-bottom: 2em;
}

h1 {
  display: block;
  font-family: EditorialNew, serif;
  font-size: 2rem;
  margin-top: 0.8em;
  margin-bottom: 0.1em;
  font-weight: 400;
}

h1 span {
  display: inline-block;
  word-spacing: 0;
}

.card {
  border: 1px solid #000;
  width: 100%;
  margin-bottom: 2em;
  background-color: #ffffff;
  z-index: 999;
  font-family: NeueBit, monospace;
}

.card .header-grid {
  display: flex;
  flex-direction: column;
}

.card .grid-header {
  /* flex: 0 0 50%; */
  border-bottom: 1px solid #000;
  padding: 1em;
  display: flex;
  height: 4rem;
  align-items: center;
  box-sizing: border-box;
  position: relative;
}

.card .grid-header .new-badge {
  position: absolute;
  fill: #f44336;
  top: -20px;
  left: -20px;
  visibility: hidden;
}

.card .grid-footer-section {
  padding: 1em;
  height: 4rem;
  font-size: 1.4em;
  display: flex;
  align-items: center;
}

.card .grid-footer-section span,
.card .grid-footer-section date {
  margin: 0;
  font-size: 1em;
  width: 100%;
  text-align: center;
}

.grid-footer-section.date {
  display: none;
}

/* .card .grid-footer-section.date {
  flex: 0 0 33.33333333333%;
} */

/* .card .grid-footer-section.reading-time {
  flex: 0 0 %;
} */

.card .grid-footer-section.description {
  box-sizing: border-box;
  letter-spacing: 0.012em;
}

.card .grid-footer-section.description span {
  text-align: left;
}

/* .card .grid-footer-section.date {
  background-color: #8b1ee6;
  color: #ffffff;
}

.card .grid-footer-section.reading-time {
  background-color: #444480;
  color: #ffffff;
} */

.card .grid-footer-section.type {
  background-color: #1e88e5;
  flex-grow: 1;
  color: #ffffff;
}

.card .grid-footer-section.type.tutorial {
  background-color: #f4511e;
}

.card .grid-footer-section:not(:last-child) {
  border-right: 1px solid #000;
  flex-grow: 0;
}

.card .footer-grid {
  display: flex;
  flex-direction: row;
  width: 100%;
  flex: 0 0 50%;
}

.card a.title {
  margin: 0;
  font-size: 1.6em;
  text-align: center;
  margin: auto;
  /* text-decoration: none; */
  color: #000;
}

.card a.title:hover {
  text-decoration: underline;
  color: #1e88e5;
}

.end {
  text-align: center;
  color: #00000050;
}

.background-badge-1 {
  position: absolute;
  top: 10em;
  left: -6em;
  width: 20rem;
  height: 20rem;
  z-index: -1;
  visibility: visible !important;
}

.background-badge-2 {
  position: absolute;
  top: -10em;
  right: -6em;
  width: 24rem;
  height: 24rem;
  z-index: -1;
  visibility: visible !important;
}

/* modifiers */

.no-border {
  border: none !important;
}

@media (min-width: 840px) {
  .card .grid-header .new-badge {
    visibility: initial;
  }
}

@media (min-width: 480px) {
  html {
    font-size: 18px;
  }

  .grid-footer-section.date {
    display: inherit;
  }

  /* .card .grid-footer-section.date {
    flex: 0 0 25%;
  } */
}

@media (min-width: 960px) {
  html {
    font-size: 20px;
  }
}
