@import url(https://fonts.googleapis.com/css?family=Josefin+Sans:600|Source+Serif+Pro);


body { 
  font:0.9em/1.5 "Source Serif Pro", serif;
  color: #000;
  padding:0 40px 0 40px;
}

/* STRUCTURE */

#pagewrap {
	width: 100%;
	height:100%;
}
header {
	height: 100px;
	padding: 0 15px;
}
#content {
	width: 20%;
	float: left;
	padding: 0 30px 0 0;
}

#middle {
	width: 25%;
	float: left;
	padding: 5px 15px;
	margin: 0px 5px 5px 5px;
}

#sidebar {
	width: 25%;
	padding: 5px 15px;
	float: left;
}


a {
  color:#0d4fb2;
  text-decoration:none;
}

a:hover {
  color:#1865d8;
  text-decoration:none;
}



	h1 {
	    font:2.5em "Josefin Sans", sans-serif;
	    line-height: 1.2em;
	    font-weight:600;
	    border-bottom: 3px solid #000;
	}

	h2 {
	    font:1.7em "Josefin Sans", sans-serif;
	    line-height: 1em;
	    font-weight:600;
	    padding-top:15px;
	}

/************************************************************************************
MEDIA QUERIES
*************************************************************************************/
/* for 980px or less */
@media screen and (max-width: 980px) {
	
	#pagewrap {
		width: 94%;
	}
	#content {
		width: 41%;
		padding: 1% 4%;
	}
	#middle {
		width: 41%;
		padding: 1% 4%;
		margin: 0px 0px 5px 5px;
		float: right;
	}
	
	#sidebar {
		clear: both;
		padding: 1% 4%;
		width: auto;
		float: none;
	}

	header, footer {
		padding: 1% 4%;
	}
}

/* for 700px or less */
@media screen and (max-width: 600px) {

	#content {
		width: auto;
		float: none;
	}
	
	#middle {
		width: auto;
		float: none;
		margin-left: 0px;
	}
	
	#sidebar {
		width: auto;
		float: none;
	}

.work {
background: url(../img/work.svg) no-repeat left;
height:22px;

}

.writings {
background: url(../img/writings.svg) no-repeat left;
height:25px;

}

}

/* for 480px or less */
@media screen and (max-width: 480px) {

	header {
		height: auto;
	}
	h1 {
		font-family: 'Josefin Sans', sans-serif;
		font-size: 2.3em;
	}

}



header, #content, #middle, #sidebar {
	margin-bottom: 5px;
}
