/*
	(c) publicself
	base LAYOUT
*/

html {
	background: #888;
}

body {
	margin: 0;
	padding: 0;
}

@font-face { font-family: Garamond; src: url("fonts/garamond-reg.ttf") format("opentype"); }
@font-face { font-family: Garamond; src: url("fonts/garamond-bold.ttf") format ("opentype"); font-weight: bold; }
@font-face { font-family: Garamond; src: url("fonts/garamond-italic.ttf") format ("opentype"); font-style: italic; }

@font-face { font-family: "Liberation Mono"; src: url("fonts/libmono-reg.ttf") format ("opentype"); }
@font-face { font-family: "Liberation Mono"; src: url("fonts/libmono-bold.ttf") format ("opentype"); font-weight: bold; }
@font-face { font-family: "Liberation Mono"; src: url("fonts/libmono-italic.ttf") format ("opentype"); font-style: italic; }
@font-face { font-family: "Liberation Mono"; src: url("fonts/libmono-bolditalic.ttf") format ("opentype"); font-weight: bold; font-style: italic; }

@font-face { font-family: "Raleway"; src: url("fonts/raleway-thin.ttf") format ("opentype"); }
@font-face { font-family: "Goudy Bookletter 1911"; src: url("fonts/goudybookletter1911.otf") format ("opentype"); }

/* HEADER */

body > header {
	height: 320px;
	margin: 0 auto 0 auto;
	
	font-family: 'Raleway', sans-serif;
	text-transform: lowercase;
	
	background: #fff;
}

body > header h1 {
	float: left;
	height: 48px;
	margin: 0;
	padding: 16px 0 0 132px;
	
	font-size: 180%;
	font-weight: normal;
}
body > header nav {
	display: block;
	height: 38px;
	margin: 0;
	padding: 26px 1em 0 0;
	
	font-size: 120%;
	font-weight: normal;
}

header nav ul, header nav ul li {
	display: inline;
}
header nav ul {
	padding-left: 8px;
}
header nav ul li a {
	text-decoration: none;
}
header nav ul li a:hover {
	text-decoration: underline;
}

footer {
	margin: 64px 0 0 0;
}

footer p {
	margin: -16px 0 0 0;
	padding: 0 8px 16px 127px;
	
	font-family: 'Raleway', sans-serif;
	font-size: 80%;
	text-transform: lowercase;
}
footer p a {
	text-decoration: none;
}










/* ARTICLE */

article {
	margin: 0;
	padding-bottom: 32px;
}
article h1 , article h2 , article h3, article h4 {
	margin: 0 0 0 127px;
	padding: 16px 0 8px 0;
	
	font-family: 'Raleway', sans-serif;
	font-weight: normal;
	text-transform: lowercase;
}
article h1 {
	font-size: 140%;
}
article h2 {
	font-size: 120%;
}
article h3 {
	margin-left: 151px;
}
article h4 {
	margin-left: 151px;
}
article h2, article h3, article h4 {
	font-size: 100%;
	padding: 8px 0 4px 0;
}
article h1 a {
	text-decoration: none;
}
article p, article ul, article ol {
	width: 512px;
	margin: 8px auto 8px 128px;
	padding: 8px;

	font-size: 100%;
	line-height: 120%;
	font-family: 'Garamond', serif;
	font-weight: normal;
}
article blockquote p {
	background: url('quotes.png') 0 0 no-repeat;
	
	width: 384px;
	
	margin: 4px auto 4px 127px;
	padding: 0 8px 0 42px;

	font-size: 95%;
}
article aside.date {
	float: left;
	width: 64px;
	margin: 0;
	padding: 32px 32px 8px 32px;
	
	line-height: 22px;
	font-variant: small-caps;
	font-family: 'Liberation Mono', monospace;
	text-align: center;
	text-transform: lowercase;
}
.day {
	font-size: 60px;
}
.month {
	font-size: 56px;
}
.year {
	font-size: 30px;
}
.day, .month, .year {
	display: block;
}
article aside.polaroid {
	float: left;
	position: absolute;
	margin: 0 32px 0 664px;
	padding: 8px;
	
	background: #fff;
	width: 258px;
}
article aside.polaroid img {
	border: 1px solid #000;
}
article aside p {
	width: 100%;
	margin: 0;
	padding: 0;
	
	font-size: 80%;
}

article ul, article ol {
	list-style-type: none;
}
article ul li ul, article ol li ol {
	margin: 0 auto auto 1em;
	
	background: transparent;	
}
article ul li a, article ol li a {
	text-decoration: none;
}
article ul li a:hover, article ol li a:hover {
	text-decoration: underline;
}

.reference, .reference-note {
	vertical-align: super;
	text-decoration: none;
	font-size: 50%;
}
.return {
	text-decoration: none;
	font-size: 70%;
}
.disappear {
	display: none;
}

/* MOBILE */

@media only screen and (max-device-width: 599px) {
	html, body {
		width: 100%;
	}
	
	body > header {
		height: auto;
		width: auto;
		padding: 8px 32px 8px 32px;
		
		font-size: 100%;
	}
	body > header h1 {		
		float: none;
		height: auto;
		
		margin: 0;
		padding: 0;
	}
	body > header nav {
		margin: 0;
		padding: 0;
	}
	header nav ul, header nav ul li {
		display: inline;
	}
	header nav ul {
		padding: 0 8px 0 0;
	}
	
	
	article aside.date {
		display: block;
		width: auto;
		padding: 0;
		margin: 32px 0 0 32px;
		float: none;
		
		font-size: 80%;
		font-variant: normal;
		text-align: left;
		line-height: auto;
	}
	.day, .month, .year {
		display: inline;
		font-size: 100%;
	}
	
	article h1 {
		font-size: 120%;
	}
	
	article blockquote {
		width: auto;
		
		margin: 0;
		padding: 0;
	}
	article blockquote p {
		width: auto;
		
		background: url('quotes_grey.png') 32px 0 no-repeat;
		
		margin: 0;
		padding: 8px 8px 8px 74px;

		font-size: 95%;
	}
	article aside.polaroid {
	float: none;
	position: static;
	margin: auto;
	padding: 8px;
	
	background: #fff;
	width: 258px;
}
	
	footer p {
		padding: 32px;
	}
}