* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  background: #e2e2e2;
  color: #555;
  font-family: Merriweather, sans-serif;
  font-size: 20px;
  font-weight: 300;
  height: 100%;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

.knife {
  overflow: hidden;
  padding: 0 140px;
}

.bg {
  margin: auto;
  max-width: 675px;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bg:after {
  content: '';
  z-index: -1;
  display: block;
  position: absolute;
  top: -150px;
  left: -230px;
  height: 600px;
  width: 600px;
  background-image: radial-gradient(
    circle closest-side,
    #fff 0%,
    rgba(226, 226, 226, 0) 100%
  );
}

h1,
h2,
h3,
h4 {
  color: #444;
  font-weight: 300;
}

h1 {
  font-size: 1.5em;
}

h2 {
  font-size: 1.25em;
}

a {
  color: #222;
  text-decoration: none;
}

a:hover,
a:active {
  text-decoration: underline;
}

strong {
  font-weight: 700;
}

abbr {
  text-decoration: none;
}

li {
  margin-bottom: 0.5em;
}

.tel,
.postal-code {
  white-space: nowrap;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

.slice-header {
  position: relative;
  flex: none;
  margin-top: 120px;
}

.slice-header:before {
  content: '';
  background: url('../img/rainbow-slice.png') no-repeat;
  width: 156px;
  height: 135px;
  display: block;
  position: relative;
  top: 0;
  left: 0;
  background-size: 156px;
}

footer {
  flex: none;
  padding-bottom: 70px;
  font-size: 12px;
}

footer .adr {
  margin-bottom: 0.25em;
}

@media (max-width: 992px) {
  .knife {
    padding: 0 70px;
  }
}

@media (max-width: 768px) {
  .knife {
    padding: 0 40px;
  }
  .slice-header {
    margin-top: 100px;
  }
}

@media (max-width: 568px) {
  .knife {
    padding: 0 25px;
    font-size: 15px;
  }
  .slice-header {
    margin-top: 25px;
  }
  .bg:after {
    top: -200px;
    left: -200px;
    height: 500px;
    width: 500px;
  }
}

@media (-webkit-min-device-pixel-ratio: 1.5),
  (min-device-pixel-ratio: 1.5),
  (min-resolution: 144dpi),
  (min-resolution: 1.5dppx) {
  .slice-header:before {
    background: url('../img/rainbow-slice@2x.png') no-repeat;
    background-size: 156px;
  }
}

.slice-header:before,
.slice-header h1,
main,
footer {
  opacity: 0;
}

.slice-header:before {
  animation: fadeInPrimary 800ms ease forwards;
}

.slice-header h1 {
  animation: fadeInPrimary 800ms ease 250ms forwards;
}

main,
footer {
  animation: fadeInPrimary 1600ms ease 400ms forwards;
}

@-webkit-keyframes fadeInPrimary {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInPrimary {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.job main {
  font-size: 16px;
  padding-bottom: 2em;
  color: #333;
}

.job main a {
  text-decoration: underline;
}

.job main h2 {
  margin-top: 1.5em;
  font-style: italic;
}

.job main > h2:first-child {
  margin-top: 0;
}

.job .job-list > li {
  margin-bottom: 1em;
}

.job .job-list a.job-list__link {
  display: inline-block;
  vertical-align: top;
  text-decoration: none;
}

.job .job-list a.job-list__link:hover,
.job .job-list > li > a.job-list__link:active {
  text-decoration: none;
}

.job .job-list a.job-list__link:hover .job-list__title,
.job .job-list a.job-list__link:active .job-list__title {
  text-decoration: underline;
}

.job .job-list .job-list__subtitle {
  display: block;
  color: #666;
}

.job-note-list {
  list-style-type: none;
  padding: 0;
}

.job-note-list > li > a {
  color: #eee;
  display: inline-block;
  min-width: 280px;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 6px;
  background: #444;
  color: #ddd;
}

.job-note-list > li > a:hover,
.job-note-list > li > a:active {
  color: #eee;
  text-decoration: underline;
}

.job-note {
  display: inline-block;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 6px;
  background: #444;
  color: #ccc;
}

.job-note > a {
  color: #eee;
  text-decoration: underline;
}

.job-note > a:hover,
.job-note > a:active {
  color: #fff;
}

.job-note > a:hover > strong,
.job-note > a:active > strong {
  text-decoration: underline;
  color: #eee;
}

.page-404 main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-404 h1 {
  font-size: 4rem;
}

/* Humi embed styles */

.job .humi-job-board {
  border: none;
  font-family: inherit;
}

.job .humi-job-board-content {
  padding: 2rem 0;
}

.job .humi-job-board-postings {
  padding-left: 0;
}

.job .humi-job-board-powered-by {
  display: none;
}

.job .humi-job-board-posting-details {
  text-transform: none;
  font-weight: normal;
}

.job .humi-job-board-category-header,
.job .humi-job-board-posting {
  margin-bottom: 2rem;
}
