/*
 * based in HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */


/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
font-family: "OpenSans Light";
src: local("OpenSans Light"), url("../fonts/Open_Sans/OpenSans-Light.ttf") format("truetype");
}

@font-face {
font-family: "OpenSans Light Italic";
src: local("OpenSans Light Italic"), url("../fonts/Open_Sans/OpenSans-LightItalic.ttf") format("truetype");
}

@font-face {
font-family: "OpenSans Regular";
src: local("OpenSans Regular"), url("../fonts/Open_Sans/OpenSans-Regular.ttf") format("truetype");
}

@font-face {
font-family: "OpenSans Italic";
src: local("OpenSans Italic"), url("../fonts/Open_Sans/OpenSans-Italic.ttf") format("truetype");
}

@font-face {
font-family: "OpenSans Bold";
src: local("OpenSans Bold"), url("../fonts/Open_Sans/OpenSans-Bold.ttf") format("truetype");
}

/* Unused typefaces: Remove when finished
@font-face {
font-family: "OpenSans Semibold";
src: local("OpenSans Semibold"), url("../fonts/Open_Sans/OpenSans-Semibold.ttf") format("truetype");
}

@font-face {
font-family: "OpenSans Semibold Italic";
src: local("OpenSans Semibold Italic"), url("../fonts/Open_Sans/OpenSans-SemiboldItalic.ttf") format("truetype");
}
*/

@font-face {
font-family: "Neuton Regular";
src: local("Neuton Regular"), url("../fonts/Neuton/Neuton-Regular.ttf") format("truetype");
}

@font-face {
font-family: "Neuton Bold";
src: local("Neuton Bold"), url("../fonts/Neuton/Neuton-Bold.ttf") format("truetype");
}

@font-face {
font-family: "Neuton ExtraBold";
src: local("Neuton ExtraBold"), url("../fonts/Neuton/Neuton-ExtraBold.ttf") format("truetype");
}



/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, font, img, ins, kbd, q, s, samp,
small, strike, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-family: inherit;
	vertical-align: baseline;
}

html,
button,
input,
select,
textarea {
    color: #53676c;
}

body {
  	text-rendering: optimizeLegibility;
		font-family: "Neuton Regular", "Linux Libertine", Georgia, Times, serif;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b4af92;
    text-shadow: none;
}

::selection {
    background: #b4af92;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

img {
    vertical-align: middle;
		max-width: 100%;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Custom styles
   ========================================================================== */


h1, h2, h3, h4, h5, h6 {
		font-family: "Neuton Bold", "DejaVu Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

strong {
		font-family: "Neuton Bold", Georgia, Times, serif;
		font-weight: normal;
}

em {
		font-family: "Neuton Italic", Georgia, Times, serif;
		font-style: normal;
}

a {
	color: #53676c;
	text-decoration: none;
	border-bottom: 1px solid #da514f;
}

a:hover {
	color: #da514f;
}

section {
		padding: 40px 0;
}

.wrap {
		max-width: 1140px;
		margin: 0 auto;
		padding: 0 20px;
}

header {
		padding: 20px 0 0;
		text-align: center;
}

header a {
		border-bottom: 0;
}

header a.logo {
		display: block;
		margin: 0 0 10px;
}

header h1 {
	margin: 0 0 5px;
	line-height: 1;
}

header .tagline {
	margin: 20px 0 0;
}

.wrap > h2,
.wrap .tagline {
		text-align: center;
}

.wrap .tagline {
		margin-bottom: 20px;
}

.row {
		margin: 0;
		padding: 0;
		list-style: none;
}

.row > li {
		float: left;
		margin: 0 2%;
		padding: 0;
		overflow: hidden;
}

	.four-cols .row > li { width: 22%; }
	.three-cols .row > li { width: 30.6%; }
	.two-cols .row > li { width: 48%; }

.row > li.first {
		margin-left: 0;
}

	.two-cols .row > li { margin: 0 2% 0 0; }
	.two-cols .row > li.first { margin: 0 2% 0 0; }

.row > li.last {
		margin-right: 0;
}

.row .font-sample {
		display: block;
		text-align: center;
		margin: 0 0 15px;
}

.row .description {
		display: block;
		padding: 0 0 40px;
}

.row .description h3 {
		font-size: 140%;
}

.row .description h3 > em {
		font-size: 70%;
}


/*
.row .font-sample {
	float: left;
	width: 68%;
	margin-right: 2%;
}

.row .description {
	float: left;
	width: 30%;
}
*/

footer {
		font-size: 95%;
		padding: 60px 0;
		text-align: center;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 800px) {

 .four-cols .row > li {
    padding: 0 0 18px !important;
    width: 48% !important;
		margin: 0 1%;
  }

	.three-cols .row > li {
    padding: 0 0 18px !important;
    width: 100% !important;
    margin: 0 0 18px !important;
  }

	.row > li.first {
		margin-left: 0;
  }

}

@media only screen and (max-width: 550px) {

  .wrap {
    padding: 0 4%;
  }

  section {
    padding: 50px 0 40px;
  }

	.row {
		border-bottom: 1px solid rgba(224, 218, 182, 0.3);
	}
    
  .row > li,
	.four-cols .row > li,
	.three-cols .row > li,
	.structure-intro .row > li {
    padding: 0 !important;
    width: 100% !important;
    margin: 0 0 18px !important;
  }
  
  .row > li.last {
    border: 0;
    margin-bottom: 0 !important;
  }    

}



@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
