/*
	Rounded Corners Webcomic

	Layout © 2014, Sarah Meyers
	Licensed AGPLv3, Rock on.
*/


/*= Font Styles ============*/

@font-face {
    font-family: 'Sarah';
    src:
		url('/fonts/sarah.woff') format('woff'),
		url('/fonts/sarah.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sarah';
    src:
		url('/fonts/sarah.woff') format('woff'),
		url('/fonts/sarah.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Garamond';
    src:
		local('Garamond Premiere Pro'),
		local('EB Garamond'),
		local('EBGaramond'),
		url('/fonts/eb-garamond.woff') format('woff'),
		url('/fonts/eb-garamond.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}



/*= Base Styles ============*/

* {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

a {
	color: #000;
	text-decoration: none;
}

body {
	color: #000;
	font-family: 'Sarah', Cursive;
	font-size: 2em;
	max-width: 28em;
	margin: 0 auto;
	text-align: center;
}

footer {
	clear: both;
	color: #666;
	padding: 1em 0;
	width: 75%;
}

form:after {
	clear: both;
	content: "";
	display: block;
}

html {
	background: #dcf0f2;
}

img {
	max-width: 100%;
}

input {
	padding: .25em;
	height: 2.5em;
}

input[type="submit"] {
	background: #fff;
	-moz-transition: background-color ease .5s;
	-webkit-transition: background-color ease .5s;
	transition: background-color ease .5s;
}

input,
textarea {
	float: right;
	width: 60%;
}

label {
	clear: right;
	display: block;
	text-align: left;
	width: 100%;
}

section>h1 {
	margin-top: 0;
}



/*= Modules ================*/

.a11y-link {
	background: #fff;
	position: fixed;
	top: -10em;
}

.content {
	background: #fff;
	font-family: 'Garamond', serif;
	font-size: .8em;
	padding: 1em 1em 0 1em;
	width: 75%;
}

/* GET IT? GET IT?!? */
.content,
input,
input[type=text],
.strip img,
textarea {
	border: 2px solid #d4d4d4;
	border-radius: 1em;
}

.content-title {
	font-family: 'Sarah', Cursive;
	font-size: 1.4em;
}

.header {
	line-height: .8;
	position: relative;
	padding-bottom: 1em;
	width: 75%;
}

.nav {
	margin: 0;
	padding: 0 0 0 1em;
	position: absolute;
	right: -25%;
	top: 100%;
	width: 25%;
}

.nav-item {
	list-style: none;
	margin-bottom: 1em;
	text-align: left;
}

.nav-item a {
	text-transform: uppercase;
}

.site-title {
	margin-top: .5em;
}

.site-title:first-line {
	font-size: 2em;
}

.strip-disabled {
	color: #666;
}

.strip-nav,
.strip-nav li {
	list-style: none;
	margin: 0 0 1em 0;
	padding: 0;
}

.strip-nav li {
	display: inline-block;
}

.strip-prev {
	float: left;
}

.strip-prev:before {
	content: "< ";
}

.strip-next {
	float: right;
}

.strip-next:after {
	content: " >";
}

.submit {
	clear: both;
	padding-top: 1em;
}



/*= State ==================*/

.a11y-link:active,
.ally-link:focus {
	top: 1em;
}

input[type="submit"]:active,
input[type="submit"]:hover {
	background: #dcf0f2;
}



/*= Responsive Breakpoints =*/

@media screen and (max-width: 56em) {

	input,
	textarea {
		float: none;
		width: 100%;
	}

	.content,
	footer,
	.header {
		width: auto;
		margin: 0 1em;
	}
	
	.header {
		padding-bottom: 0;
	}

	.nav {
		margin: 1em 0 0 0;
		padding: 0;
		position: static;
		width: 100%;
	}

	.nav-item {
		display: inline-block;
		list-style: none;
		margin: 0;
		padding: 0 .3em;
		text-align: left;
	}

	.site-title:first-line {
		font-size: 1.2em;
	}
}


@media screen and (max-width: 490px) {
	
	body {
		font-size: 1.5em;
	}

	.content,
	footer,
	.header {
		margin: .25em;
	}
}
