@font-face {
  font-display: fallback;
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 200;
  src: url("../fonts/WorkSans-ExtraLight.ttf");
}

@font-face {
  font-display: fallback;
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/WorkSans-Light.ttf");
}

@font-face {
  font-display: fallback;
  font-family: "Work Sans";
  font-style: bold;
  font-weight: 700;
  src: url("../fonts/WorkSans-Bold.ttf");
}

html {
  height: 100%;
}

body {
  background: #f5f5f5;
  color: #20292c;
  font-family: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: normal;
  margin: 0;
  min-height: 100%;
}

/**
 * Colors for reference

  #014a73 (primary dark blue)
  #66a1c3 (primary light blue)
  #ffffff (white)
  #001d2e (very dark)
  #28404e (very dark blue)
  #666666 (grey)
  #014a73 (medium dark blue)
  #80a5b9 (light "dark" blue)
  #b3d0e1 (light "light" blue)
*/

h1 {
  font-size: 2em;
  font-weight: 200;
  margin: 20px 0;
}

h2 {
  font-size: 32px;
  font-weight: normal;
  margin: 1em 0 0.5em 0;
  padding-bottom: 8px;
}

h2.blue {
  border-bottom: 1px solid #014a73;
}
h2.ltblue {
  border-bottom: 1px solid #66a1c3;
}
h2.white {
  border-bottom: 1px solid #ffffff;
}
h2.grey {
  border-bottom: 1px solid #666666;
}

h3 {
  font-size: 28px;
  font-weight: normal;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
}

p,
li {
  line-height: 1.7em;
}

p a,
li a {
  color: #78a1bb;
  text-decoration: none;
  border-bottom: 1px solid #50abac;
}

p a:visited,
li a {
  color: #494e91;
  border-bottom: 1px solid currentColor;
}

img.block {
  display: block;
}

/*
 * Page header
 * (for top nav, see above)
 */

header {
  box-sizing: border-box;
  color: white;
  display: flex;
  flex-direction: column;
  font-size: 25px;
  justify-content: center;
  position: relative;
}

header h1,
header .subhead {
  margin: 0;
}

header .subhead {
  font-size: 1.75em;
}

/*
 * Blocks/sections
 */

section {
  background: #ffffff;
}

.split {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  padding: 0;
}

.split.right {
  flex-direction: column-reverse;
}

.split > * {
  flex: 1;
  /* See https://stackoverflow.com/questions/36247140/why-dont-flex-items-shrink-past-content-size */
  min-height: 0;
  min-width: 0;
}

.split h1 {
  font-size: 28px;
  margin: 0;
}

.fill {
  height: 100%;
  position: absolute;
  width: 100%;
}

.block {
  position: relative;
}

.block.ltblue {
  background: linear-gradient(45deg, #66a1c3, #b3d0e1);
  color: white;
}

.block.blue {
  background: linear-gradient(45deg, #014a73, #80a5b9);
  color: white;
}

.block.grey {
  background: linear-gradient(45deg, #666666, #757575);
  color: white;
}

section,
.padded {
  box-sizing: border-box;
  padding: 30px 20px;
}
section > :first-child,
.padded > :first-child {
  margin-top: 0;
}
section > :last-child,
.padded > :last-child {
  margin-bottom: 0;
}

.illustrationContainer {
  background: #dedede;
}

.illustration {
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
  width: 100%;
}


/*
 * Tweet button
 */

.tweetButton {
  align-items: center;
  background-color: #1b95e0;
  border-radius: 4px;
  box-sizing: border-box;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  margin: 1em 0;
  padding: 5px 10px;
  text-decoration: none;
}

.tweetButton svg {
  height: 16px;
  margin-right: 5px;
}

@media (min-width: 800px) {
  /* Desktop CSS */

  body {
    margin: 0 auto;
    max-width: 1120px;
  }


  /* Common page elements */

  h1 {
    font-size: 2.4em;
  }

  .split {
    flex-direction: row;
  }

  .split.right {
    flex-direction: inherit;
  }

  .split h1 {
    font-size: 45px;
  }

  section,
  .padded {
    padding: 45px 72px;
  }
}

/*
*
* About stuff
*
*/
.person {
  margin: 2em 0;
}

.photoContainer {
  align-self: flex-start;
  float: left;
  height: 25%;
  margin: 0 1em 1em 0;
  width: 25%;
}

.photo {
  display: block;
  height: 100%;
  width: 100%;
}

.name {
  font-size: 24px;
}

.social {
  margin-top: 6px;
}
.social a {
  display: inline-block; /* Stupid Edge/IE */
  text-decoration: none;
}
.social a + a {
  margin-left: 6px;
}

.social svg {
  height: 15px;
}

.bio {
  clear: left;
  margin-top: 1em;
}

/* Desktop */
@media screen and (min-width: 800px) {
  .person {
    display: flex;
    flex-direction: row;
    margin: 4em 0;
  }

  .photoContainer {
    float: none;
    height: 100%;
    margin-right: 2em;
  }

  .detailsAndBio {
    flex: 1;
  }

  .details {
    display: flex;
  }

  .nameAndTitle {
    flex: 1;
  }

  .social {
    margin-top: 0;
  }
  .social svg {
    height: 19px;
  }
}

/*
* Home
*/

.homeIntro {
  display: grid;
  background: linear-gradient(135deg, #666666, #757575);
  color: #ffffff;
  grid-row-gap: 20px;
}

.homeIntro img {
  width: 100%;
}

@media (min-width: 800px) {
  .homeIntro {
    grid-template-columns: 40% 60%;
    grid-column-gap: 40px;
  }

  .homeIntro p {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
 }

.gray a {
  color: #56c4c2;
  text-decoration: none;
}
.gray a:hover {
  text-decoration: underline;
}

.arrowButton {
  align-items: center;
  border-radius: 2em;
  display: flex;
  font-size: 14px;
  font-weight: bold;
  padding: 0.5em 1em 0.5em 2em;
  text-decoration: none;
  white-space: nowrap;
}

.arrowIcon {
  height: 24px;
  margin-left: 0.5em;
  width: 24px;
}
.arrowIcon.aqua {
  fill: #56c4c2;
}
.arrowIcon.orange {
  fill: #ef5b0c;
}

.blockWithArrow {
  display: flex;
  position: relative;
}

.halfBlock {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex: 1;
  padding: 38px;
  position: relative;
  z-index: 2;
}

.protrudingArrow:not(.right) {
  left: 43px;
}
.protrudingArrow.right {
  right: 43px;
}

.protrudingArrow.aqua {
  background: #4dbab9;
}

.protrudingArrow.orange {
  background: #e47900;
}

.protrudingArrow.purple {
  background: #545f93;
}
.protrudingArrow.purple.right {
  background: #434f8e;
}

.protrudingArrow.leather {
  background: #ab987a;
}
.protrudingArrow.coral {
  background: #ff533d;
}
.protrudingArrow.softblue {
  background: #78a1bb;
}

.protrudingArrow {
  bottom: -10px;
  height: 20px;
  width: 20px;
  position: absolute;
  transform: rotate(45deg);
  z-index: 1;
}

.contactus {
  margin: auto;
  width: 80%;
  border-radius: 5px;
  background: linear-gradient(135deg, #666666, #757575);
  padding: 20px;
}

/* Style inputs with type="text", type="email", select elements and textareas */
.contactform input[type=text], input[type=email], select, textarea {
  width: 100%; /* Full width */
  padding: 12px; /* Some padding */  
  border: 1px solid #ccc; /* Gray border */
  border-radius: 4px; /* Rounded borders */
  box-sizing: border-box; /* Make sure that padding and width stays in place */
  margin-top: 6px; /* Add a top margin */
  margin-bottom: 16px; /* Bottom margin */
  resize: none; /* Allow the user to vertically resize the textarea (not horizontally) */
  font-size: 14px;
}

.contactform textarea {
  min-height: 130px;
}

/* Style the submit button with a specific background color etc */
.contactform input[type=submit] {
  background-color: #28404e;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* When moving the mouse over the submit button, add a lighter color */
.contactform input[type=submit]:hover {
  background-color: #014a73;
}

/*
 * Desktop
 */
@media (min-width: 800px) {
  
  .illustrationContainer {
    min-height: 300px;
  }
  
  .rightJustify {
    align-self: center;
  }
  
  .protrudingArrow {
    bottom: -20px;
    height: 40px;
    width: 40px;
  }
  
  .protrudingArrow:not(.right) {
    left: 70px;
  }
  .protrudingArrow.right {
    right: 70px;
  }
  
  .protrudingArrow.purple {
    background: #535e93;
  }
  .protrudingArrow.purple.right {
    background: #475390;
  }

  .protrudingArrow.green {
    background: #20bf55;
  }

  .protrudingArrow.ltblue {
    background: #01baef;
  }

  .protrudingArrow.ltblue.right {
    background: #01baef;
  }
}
