/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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.
 */

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

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

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

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

/*
 * A better looking default horizontal rule
 */

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

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


/****************************************
	Typography
****************************************/


html {
	font-family: 'PT Mono', monospace;
	color: white;
	text-align: center;
}
@media all and (min-width: 20em) { /* for XS screens >= 300px */
	html {
		font-size: 12px;
	}
}
@media all and (min-width: 60em) { /* for M screens >= 900px */
	html {
		font-size: 16px;
	}
}
@media all and (min-width: 120em) { /* for XL screens >= 1800px */
	html {
		font-size: 24px;
	}
}

body,
button,
input,
select,
textarea,
p,
li,
td {
	font-size: 1em;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-weight: bold;
	line-height: 1;
	margin-bottom: 1em;
}

h1 {
	font-size: 2.4em;
}
h2 {
	font-size: 1.8em;
}
h3 {
	font-size: 1.4em;
}
h4 {
	font-size: 1.2em;
}
h5 {
	font-size: 1em;
	text-transform: uppercase;
}
h6 {
	font-size: 0.8em;
	text-transform: uppercase;
}

p {
	margin-bottom: 1em;
}
p:last-child {
	margin-bottom: 0;
}

b,
strong {
	font-weight: 900;
	font-size: 1.3em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	font-size: 1.5em;
	line-height: 1.2;
	margin: 0;
	margin-bottom: 1.5em;
	padding: 0;
}

	blockquote p {
		margin-bottom: 1.5em;
	}
	
	blockquote > p:last-child {
		margin-bottom: 0;
	}

	blockquote cite,
	blockquote small {
		font-size: 1.5em;
	}
	
	blockquote em,
	blockquote i,
	blockquote cite {
		font-style: normal;
	}
	
	blockquote strong,
	blockquote b {
		font-weight: bold;
	}

address {
	font-style: italic;
	margin: 0 0 1.6em;
}

code,
kbd,
tt,
var,
samp,
pre {
	font-family: monospace;
	-webkit-hyphens: none;
	-moz-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
}

pre {
	background-color: transparent;
	background-color: rgba(0, 0, 0, 0.01);
	border: 0.1em solid #eaeaea;
	border: 0.1em solid rgba(51, 51, 51, 0.1);
	line-height: 1.2;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 0.8em;
	white-space: pre;
	white-space: pre-wrap;
	word-wrap: break-word;
}

abbr[title] {
}

mark,
ins {
}

sup,
sub {
	font-size: 70%;
	height: 0;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	bottom: 1ex;
}

sub {
	top: .5ex;
}

small,
.small {
	font-size: 66%;
}

big,
.big {
	font-size: 125%;
}

html,body {
	height: 100%;
}

a {
	text-decoration: none;
	cursor: pointer !important;
	color: red;
}
	a:hover {
		color: white;
	}



/****************************************
	Interactive (Links, Buttons)
****************************************/

a,
.fp-controlArrow {
	text-decoration: none;
	transition: all 0.3s;
}

a:hover {
}

a:focus {
	outline: 0;
}

a:hover,
a:active {
	outline: 0;
}

a img {
	border: 0;
}


a.button {
	
}







/****************************************
	Common Classes
****************************************/


.hide {
	display: none;
}
.show {
	display: block !important;
	opacity: 1 !important;
}
.clear {
	clear: both;
}

.textalign-left {
	text-align: left;
}
.textalign-center {
	text-align: center;
}
.textalign-right {
	text-align: right;
}

.bgimg {
	background-position: center !important;
	background-repeat: no-repeat;
}
.bgcontain {
	background-size: contain !important;
}
.bgcover {
	background-size: cover !important;
}


















/****************************************
	Structure
****************************************/


body {
	background: url(../img/altogether.jpg) center no-repeat #333;
	background-size: contain !important;
}

section {
}


	img#logo {
		display: block;
	}



section.theory {
	background: rgba(0,0,0,0.5);
}
section.archetypes {
	background: url(../img/altogether_light.jpg) center no-repeat #CCC;
	background-size: contain;
}
	.handwriting.goright {
		width: 20vh;
		height: 5vh;
		background: url(../img/handwriting/goright.svg) no-repeat center;
	}
section.shop {
	background: white;
}
	.handwriting.shopheader {
		background: url(../img/handwriting/shopheader.svg) no-repeat center;
	}
	.handwriting.shopcta {
		height: 5vh;
		background: url(../img/handwriting/shopcta.svg) no-repeat center;
	}
section.instagram {
	background: silver;
}
	.handwriting.instagram {
		background: url(../img/handwriting/instagram.svg) no-repeat center;
	}
section.credit {
}
	.handwriting.credit {
		margin-bottom: 30vh;
		background: url(../img/handwriting/createdby.svg) no-repeat center;
	}


.handwriting {
	font-size: 0;
	display: block;
	position: relative;
	width: 80%;
	height: 10vh;
	margin: 10vh auto;
	background-size: contain !important;
}
	a.handwriting:hover {
		opacity: 0.5;
	}











.inner {
	margin: 0 auto;
}
.padding {
	padding: 10vh 0;
}






article {
	font-size: 80%;
	color: black;
}
	article:nth-child(1) {
		color: white;
	}
	article:nth-child(2) {
		background: url(../img/renders/01.Innocent.jpg) no-repeat #CCC;
	}
	article:nth-child(3) {
		background: url(../img/renders/02.Orphan.jpg) no-repeat #CCC;
	}
	article:nth-child(4) {
		background: url(../img/renders/03.Warrior.jpg) no-repeat #CCC;
	}
	article:nth-child(5) {
		background: url(../img/renders/04.Caregiver.jpg) no-repeat #CCC;
	}
	article:nth-child(6) {
		background: url(../img/renders/05.Explorer.jpg) no-repeat #CCC;
	}
	article:nth-child(7) {
		background: url(../img/renders/06.Lover.jpg) no-repeat #CCC;
	}
	article:nth-child(8) {
		background: url(../img/renders/07.Rebel.jpg) no-repeat #CCC;
	}
	article:nth-child(9) {
		background: url(../img/renders/08.Creator.jpg) no-repeat #CCC;
	}
	article:nth-child(10) {
		background: url(../img/renders/09.Ruler.jpg) no-repeat #CCC;
	}
	article:nth-child(11) {
		background: url(../img/renders/10.Magician.jpg) no-repeat #CCC;
	}
	article:nth-child(12) {
		background: url(../img/renders/11.Sage.jpg) no-repeat #CCC;
	}
	article:nth-child(13) {
		background: url(../img/renders/12.Jester.jpg) no-repeat #CCC;
	}

article h1 {
	font-size: 0;
	background-size: contain !important;
	height: 20vh;
}
	article:nth-child(1) h1 {
		background: url(../img/id/logotype-00.svg) no-repeat center;
	}
	article:nth-child(2) h1 {
		background: url(../img/id/logotype-01.svg) no-repeat center;
	}
	article:nth-child(3) h1 {
		background: url(../img/id/logotype-02.svg) no-repeat center;
	}
	article:nth-child(4) h1 {
		background: url(../img/id/logotype-03.svg) no-repeat center;
	}
	article:nth-child(5) h1 {
		background: url(../img/id/logotype-04.svg) no-repeat center;
	}
	article:nth-child(6) h1 {
		background: url(../img/id/logotype-05.svg) no-repeat center;
	}
	article:nth-child(7) h1 {
		background: url(../img/id/logotype-06.svg) no-repeat center;
	}
	article:nth-child(8) h1 {
		background: url(../img/id/logotype-07.svg) no-repeat center;
	}
	article:nth-child(9) h1 {
		background: url(../img/id/logotype-08.svg) no-repeat center;
	}
	article:nth-child(10) h1 {
		background: url(../img/id/logotype-09.svg) no-repeat center;
	}
	article:nth-child(11) h1 {
		background: url(../img/id/logotype-10.svg) no-repeat center;
	}
	article:nth-child(12) h1 {
		background: url(../img/id/logotype-11.svg) no-repeat center;
	}
	article:nth-child(13) h1 {
		background: url(../img/id/logotype-12.svg) no-repeat center;
	}



article ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 80%;
}
	article ul li {
		margin-bottom: 0.5em;
	}
	article ul li:before {
		margin-right: 1em;
		text-transform: uppercase;
		width: 30%;
	}
	article ul li:nth-child(1):before {
		content: "Goal";
	}
	article ul li:nth-child(2):before {
		content: "Fear";
	}
	article ul li:nth-child(3):before {
		content: "Response";
	}
	article ul li:nth-child(4):before {
		content: "Task";
	}
	article ul li:nth-child(5):before {
		content: "Goal";
	}


ul.merch {
}
	ul.merch > li {
	}
		ul.merch > li > a {
			display: block;
			background-size: contain !important;
		}
			ul.merch > li:nth-child(1) > a {
				background: url(../img/shop/aldr,x2350,front-c,435,560,720,960-bg,f8f8f8.jpg) no-repeat center;
			}
			ul.merch > li:nth-child(2) > a {
				background: url(../img/shop/drawstring_bag,x1404-bg,f8f8f8.jpg) no-repeat center;
			}
			ul.merch > li:nth-child(3) > a {
				background: url(../img/shop/hj,x1000-bg,f8f8f8.jpg) no-repeat center;
			}
			ul.merch > li:nth-child(4) > a {
				background: url(../img/shop/ls,13inch,x999-bg,f8f8f8.2.jpg) no-repeat center;
			}
			ul.merch > li:nth-child(5) > a {
				background: url(../img/shop/mug,standard,x400,left-bg,ffffff.jpg) no-repeat center;
			}
			ul.merch > li:nth-child(6) > a {
				background: url(../img/shop/mwo,500x,iphone_7_snap-pad,600x1000,ffffff.jpg) no-repeat center;
			}
			ul.merch > li:nth-child(7) > a {
				background: url(../img/shop/mwo,x900,iphone_6s_wallet-bg,f8f8f8.1.jpg) no-repeat center;
			}
			ul.merch > li:nth-child(8) > a {
				background: url(../img/shop/pd,x400,macbook_air_13-bg,ffffff.jpg) no-repeat center;
			}
			ul.merch > li:nth-child(9) > a {
				background: url(../img/shop/pouch,small,1080x-pad,1400x1000,f8f8f8.jpg) no-repeat center;
			}
			ul.merch > li:nth-child(10) > a {
				background: url(../img/shop/sn,x1313-bg,ffffff.jpg) no-repeat center;
			}
			ul.merch > li:nth-child(11) > a {
				background: url(../img/shop/tb,1200x1200,flat.2.jpg) no-repeat center;
			}
			ul.merch > li:nth-child(12) > a {
				background: url(../img/shop/tp,875x875,ffffff,f.6.jpg) no-repeat center;
			}
		ul.merch > li > a:hover {
			opacity: 0.5;
		}














/* Fullpage */
.fp-controlArrow {
	visibility: hidden;
	opacity: 0.5;
	top: 50vh;
	margin-top: -1em;
}
	.fp-controlArrow:hover {
		opacity: 1;
	}
.fp-controlArrow.fp-prev {
	left: 25vw;
	border-width: 1em .8em 1em 0;
}
.fp-controlArrow.fp-next {
	right: 25vw;
	border-width: 1em 0 1em .8em;
}

.fp-slidesNav.bottom {
	bottom: 5vh;
}
#fp-nav ul li, .fp-slidesNav ul li {
	width: 1em;
	height: 1em;
	margin: 1em 0.1em;
}
#fp-nav ul li a span, .fp-slidesNav ul li a span {
	height: 0.5em;
	width: 0.5em;
	margin: -0.25em 0 0 -0.25em;
}

#fp-nav ul li a.active span, .fp-slidesNav ul li a.active span, #fp-nav ul li:hover a.active span, .fp-slidesNav ul li:hover a.active span {
	height: 1.2em;
	width: 1.2em;
	margin: -0.6em 0 0 -0.6em;
}

#fp-nav ul li a span,
.fp-slidesNav ul li a span {
	background: white;
}














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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * 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;
}

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

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

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


@media all and (orientation: portrait) {
	body,
	section.archetypes {
		background-position: center 45vh;
	} 
	img#logo {
		width: 50vw;
		margin: 15vh auto 25vh auto;
	}
	.handwriting.scroll {
		margin-top: 25vh;
	}
	ul.merch > li > a {
		height: 15vh;
	}
}
@media all and (orientation: landscape) {
	body,
	section.archetypes {
		background-position: center 20vh;
	} 
	img#logo {
		height: 30vh;
		margin: 5vh auto 45vh auto;
	}
	.handwriting.scroll {
		margin-top: 45vh;
	}
	ul.merch > li > a {
		height: 30vh;
	}
}

@media all and (min-width: 20em) { /* for M screens */

	section .inner,
	article .inner {
		width: 70vw;
		margin: 0 auto;
	}
	article {			
		background-size: 90vw !important;
	}
	article.right {
		background-position: 40vw 5vh;
	}		
	article.left {
		background-position: -25vw 10vh;
	}

	.columns {
		list-style: none;
		margin: 0;
		padding: 0;
	}
	.columns {
		overflow: auto;
	}
		.columns > li {
			float: left;
		}
		/* half */
		.columns.half > li {
			width: 50%;
		}
		.columns.half.space > li {
			width: 47.5%;
		}
		.columns.half.space > li:nth-child(1) {
			margin-right: 5%;
		}
		/* third */
		.columns.third > li {
			width: 33%;
		}
		.columns.third > li {
			width: 30%;
		}
		.columns.third.space > li {
			margin-bottom: 3.3%;
		}
		.columns.third.space > li:nth-child(3n+2) {
			margin-left: 3.3%;
			margin-right: 3.3%;
		}
		/* one third */
		.columns.onethird > li.wide {
			width: 66%;
		}
		.columns.onethird.space > li.wide {
			width: 63.3%;
		}
		.columns.onethird.space > li.wide:nth-child(1) {
			margin-right: 3.3%;
		}
		.columns.onethird.space > li.wide:nth-child(2) {
			margin-left: 3.3%;
		}
		/* quarter */
		.columns.quarter > li {
			width: 25%;
		}
		.columns.quarter.space > li {
			width: 21.25%;
		}
		.columns.quarter.space > li:nth-child(2),
		.columns.quarter.space > li:nth-child(3) {
			margin-left: 5%;
			margin-right: 5%;
		}
		/* one quarter */
		.columns.onequarter > li.wide {
			width: 75%;
		}
		.columns.onequarter.space > li.wide {
			width: 73.75%;
		}
		.columns.onequarter.space > li.wide:nth-child(1) {
			margin-right: 5%;
		}
		.columns.onequarter.space > li.wide:nth-child(2) {
			margin-left: 5%;
		}

}

@media all and (min-width: 60em) { /* for M screens */

	section .inner {
		width: 70vw;
	}
	article .inner {
		width: 50vw;
	}
	article {			
		background-size: 50vw !important;
	}
	article.right {
		background-position: 60vw 15vh;
	}		
	article.left {
		background-position: -10vw 15vh;
	}

}


/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    p:first-line,
    div:first-line,
    blockquote:first-line,
    li:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

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

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