@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

html,body { 
	background-color: #fff;
	color: #2b272d;
	font-family: serif; 
	font-style: normal;
}

p {
	margin: 1.5em;
    font-size: max(1.1em,1vi);
}

.masthead {
    font-size: 5vi;
    letter-spacing: -.15ch;
    line-height: .75;
}

.title {
    font-size: max(1.5vi, 1.25em);
    letter-spacing: .05ch;
}

.background {
    background-image: url("../img/bg.jpg");
	background-repeat:no-repeat;
	background-position: center center;
	margin: -1.25em;
	height: max(700px,100%);
	background-size: cover;
}

/* h1 */

h1 {
	color: #6b676d;
	margin: 0.5em;
}

/* h2 */

h2 {
  position: relative;
  padding: 0;
  margin-left: 0.5em;
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  font-size: 40px;
  color: #6b676d;
  -webkit-transition: all 0.4s ease 0s;
  -o-transition: all 0.4s ease 0s;
  transition: all 0.4s ease 0s;
}

h2 span {
  display: block;
  font-size: 0.5em;
  line-height: 1.3;
}

h2 em {
  font-style: normal;
  font-weight: 600;
}

.accent h2 {
  font-size: max(1.5em,2vi);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5em;
  padding-left: 45px;
  padding-bottom: 15px;
  position: relative;
}

.accent h2:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  height: 75px;
  width: 35px;
  background-color: rgba(21,70,145,0.75);
}

.accent h2:after {
  content: "";
  position: absolute;
  left: 85px;
  bottom: 6px;
  height: 2px;
  width: 95%;
  max-width: 150px;
  background-color: rgba(21,70,145,0.5);
}

/* h3 */

h3 {
  margin: 1em;
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  font-size: max(1.25em,1.5vi);
  color: #6b676d;
}

/* main grid */

.flex-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    padding: 0;
    padding-top: 7px;
    padding-bottom: 16px;
    margin: 0;
    margin-top: 20px;
    list-style: none;
}

.flex-item {
    background-color: rgba(0,0,0,0.5);
    padding: 5px;
    width: max(300px,28%);
    height: min(575px,100%);
	margin-top: 10px;
	color: white;
	font-weight: bold;
    font-size: max(1em,1vi);
	text-align: center;
    line-height: 1.15;
	background-repeat: no-repeat;
	background-size: cover;

	&.about-mission {
		background-image: url("../img/about-mission.jpg");
	}
	&.about-sustainability {
		background-image: url("../img/about-sustainability.jpg");
	}
	&.about-beliefs {
		background-image: url("../img/about-beliefs.jpg");
	}
	&.career-early {
		background-image: url("../img/career-early.jpg");
	}
	&.career-experienced {
		background-image: url("../img/career-experienced.jpg");
	}
	&.career-support {
		background-image: url("../img/career-support.jpg");
	}
	&.people-badge, &.contact-badge {
	    font-size: max(1.4em,1.2vi);
	}
	&.people-badge:hover, &.contact-badge:hover  {
		background: rgba(21,70,145,0.5);
	}

}

/* navigation bar */

.navigation {
	display: flex;
	flex-flow: row wrap;
	justify-content: flex-end;
	list-style: none;
	margin: -0.5em; 
	padding-left: 20px;
	padding-right: 20px;
	font-family: sans-serif; 
	font-size: 1.3em;
	letter-spacing: -.1ch;

	&.spread-evenly {
	  justify-content: space-evenly;
	  letter-spacing: 0ch;
      font-size: max(0.8em,0.8vi);
	}
}

.navigation a {
	text-decoration: none;
	display: block;
	padding: 1em;
	color: #6b676d;
}

.navigation a:hover {
	background: rgba(21,70,145,0.5);
	color: #fff;
}

@media all and (max-width: 800px) {
	.navigation {
      justify-content: space-around;
	  margin-top: 0.2em; 
	}
}

@media all and (max-width: 600px) {
	.navigation {
	  zflex-flow: column wrap;
      padding: 0;
      font-size: max(1.25em,1vi);
	  margin-top: 0.5em; 
	}
	.navigation a { 
      text-align: center; 
      padding: 10px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.3); 
	}
	.navigation li:last-of-type a {
      border-bottom: none;
	}
}

/* fonts */

.dm-serif-text-regular {
	font-family: "DM Serif Text", serif;
	font-weight: 200;
	font-style: normal;
}

.dm-sans-serif-text-regular {
	font-family: "Raleway", sans-serif; 
	font-weight: 400;
	font-style: normal;
}
