/* CSS reset */
*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Defaults */

body {
  font-family: 'Poppins', sans-serif;
  color: #222;
  font-size: 2em;
  text-rendering: geometricPrecision;
}

main {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

a {
  text-decoration: none;
  box-shadow: inset 0 -0.5em 0 0 rgba(255, 0, 255, 0.1);
}

a:hover {
  text-decoration: none;
  box-shadow: inset 0 -0.5em 0 0 rgba(255, 0, 255, 0.2);
}

h2 a {
  box-shadow: inset 0 -0.5em 0 0 #F2E641;
  font-style: italic;
  color: #222;
}

/* Headers */

header h1 {
  font-size: 5vw;
  font-weight: 500;
  text-align: center;
  line-height: 11vw;
  letter-spacing: -0.04em;
  margin-top: 0.5vw;
  margin-bottom: 1vw;
}

header h1 div.subtitle {
  font-size: 0.6em;
  display: inline-block;
  margin-left: -9.5vw;
  position: relative;
  top: 2.5vw;
}

header h2 {
  font-weight: 500;
  font-size: 2vw;
}

h3 {
  font-weight: 500;
  font-size: 2em;
  margin-bottom: 0.8em;
}

/* Typography classes */

.text-centered {
  text-align: center;
}

.text-smaller {
  font-size: 0.8em;
}

/* Padding classes */

.padding-y-medium {
  padding-top: 1vw;
  padding-bottom: 1vw;
}

.padding-y-large {
  padding-top: 3vw;
  padding-bottom: 3vw;
}

/* Background colors */

.background-1 {
  background-color: #7AEDF0;
}

.background-2 {
  background-color: #4A30F2;
}

.background-3 {
  background-color: #222;
}

/* Foreground colors */

.color-3 {
  color: #2411A6;
}

.color-4 {
  color: #f8f8f8;
}


/* Visual classes */
.border-top {
  border-top: 2px solid black;
}

/* Page structure */

.container>* {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

#jobs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  list-style-type: none;
  padding-bottom: 8vw;
}

#jobs-list li {
  margin: 8vw 4vw 0 4vw;
}

#jobs-list a {
  text-decoration: none;
  color: #0018B3;
}

#jobs-list .description {
  text-rendering: optimizeLegibility;
}

footer p {
  margin: 2vw;
}

/* Article */

article {
  max-width: 820px;
  padding: 4vw 10px;
  font-size: 0.6em;
}

article h1, article h2 {
  font-weight: 400;
  line-height: 1em;
  margin: 0.6em 0;
}

article h1 {
  font-size: 2.5em;
  margin-bottom: 0;
}

article h2 {
  font-size: 1.5em;
  margin-top: 1.3em;
}

article p {
  margin-bottom: 0.7em;
}

article p.introduction {
  font-size: 1.1em;
  border-bottom: 2px solid #222;
  padding: 3em 0;
  margin-bottom: 3em;
}

article p.signature {
  margin-top: 3em;
  border-top: 2px solid #222;
  padding: 3em 0;
}

article ul {
  margin-left: 1.4em;
}

/* Footer */

.twitter {
  box-shadow: none !important;
  opacity: 0.7;
}

.twitter:hover {
  opacity: 0.9;
}

.twitter svg {
  width: 96px;
  height: 96px;
}

/* Responsive (desktop first) */
@media (max-width: 900px) {
  body {
    font-size: 1.5em;
  }

  header h1 {
    font-size: 13vw;
    line-height: 9vw;
    letter-spacing: -0.04em;
    padding-right: 12vw;
    text-align: right;
    margin-top: 2vw;
    margin-bottom: 1vw;
  }

  header h1 div.subtitle {
    font-size: .7em;
    margin-left: auto;
    position: static;
  }

  header h2 {
    font-size: 1em;
  }

  #jobs-list {
    grid-template-columns: 1fr;
  } 
}

.tag-new {
  font-size: .3em;
  background-color: rgba(255, 255, 0, 0.8);
  padding: 3px;
  position: relative;
  top: -1.5em;
  left: -.3em;
}
