/**
 * The Letter theme for Pico CMS
 *
 * @author Guillaume Litaudon
 * @link http://www.guillaumelitaudon.fr/
 */

@charset "UTF-8";
@import url(http://fonts.googleapis.com/css?family=Alegreya);

/**
 * Reset styles
 * Based on normalize.css v3.0.3
 * MIT License | github.com/necolas/normalize.css
 */
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, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, 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-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}

html {
	font-family: sans-serif;
	-ms-text-size-adjust: 100%;	
	-webkit-text-size-adjust: 100%;
}

body {
	line-height: 1;
	color: black;
	background: white;
}

table {
	border-collapse: separate;
	border-spacing: 0;
}

caption, th, td {
	text-align: left;
	font-weight: normal;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}

blockquote, q {
	quotes: "" "";
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section,
summary {
	display: block;
}

audio, canvas, progress, video {
	display: inline-block;
	vertical-align: baseline;
}

audio:not([controls]) {
	display: none;
	height: 0;
}

svg:not(:root) {
	overflow: hidden;
}

img {
	-ms-interpolation-mode: bicubic;
	border: 0;
}

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

[hidden], template {
	display: none;
}

a {
	background-color: transparent;
}

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

code, kbd, pre, samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

figure {
	margin: 1em 40px;
}

hr {
	box-sizing: content-box;
	height: 1px;
	border: 0;
	border-top: 1px solid #ccc;
	margin: 1em 0;
	padding: 0;
}

abbr, acronym {
	cursor: help;
	border-bottom: 0.1em dotted;
}

dfn {
	font-style: italic;
}

mark {
	background: #d1940c;
	color: #000;
}

small {
	font-size: 80%;
}

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

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

td, th {
	padding: 0;
}

button, input, optgroup, select, textarea {
	color: inherit;
	font: inherit;
	margin: 0;
}

button {
	overflow: visible;
}

button, select {
	text-transform: none;
}

textarea {
	resize: vertical;
	overflow: auto;
}

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

legend {
	border: 0;
	padding: 0;
}

optgroup {
	font-weight: bold;
}

label, input[type=button], input[type=submit], button {
	cursor: pointer;
}

button, html input[type="button"], input[type="reset"],
input[type="submit"] {
	-webkit-appearance: button;
	cursor: pointer;
}

button[disabled], html input[disabled] {
	cursor: default;
}

button::-moz-focus-inner, input::-moz-focus-inner {
	border: 0;
	padding: 0;
}

button {
	width: auto;
	overflow: visible;
}

input {
	line-height: normal;
}

input[type="checkbox"], input[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

input[type="search"] {
	-webkit-appearance: textfield;
	box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}


/**
 * Main styles
 */

::-moz-selection {
		background: #AAA;
		color: #FFF;
		text-shadow: none;
}

::selection {
		background: #AAA;
		color: #FFF;
		text-shadow: none;
}

body {
	font:16px/1.5em "Helvetica Neue", Helvetica, Arial, sans-serif;
	color:#444;
	background:#E8E8E8;
}

a, a:visited {
	color:#444;
	text-decoration:underline;
	-webkit-transition: all 0.2s linear;
	-moz-transition: all 0.2s linear;
	-ms-transition: all 0.2s linear;
	-o-transition: all 0.2s linear;
	transition: all 0.2s linear;	
}

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

h1, h2, h3, h4, h5, h6 {
	color:#000;
	line-height: 1.2em;
	margin-bottom: 0.6em;
	font-family:"Alegreya", serif;
}

h1 {
	font-size: 2em;
}

h2 {
	font-size: 1.7em;
}

h3 {
	font-size: 1.5em;
	margin-top: 2em;
}

p {
	margin-bottom: 1em;
}

ol, ul {
	padding-left: 30px;
	margin-bottom: 1em;
}

i, em {
	font-style: italic;
}

b, strong {
	font-weight: bold;
	font-weight: 700;
}

u {
	text-decoration: underline;
}

code {
	font-family: "Source Code Pro", Monaco, Courier, "Courier New", Tahoma, monospace;
	background: rgba(144, 144, 144, 0.075);
	border-radius:4px;
	border: solid 1px rgba(144, 144, 144, 0.25);
	font-size: 0.9em;
	margin: 0 0.25em;
	padding: 0.25em 0.65em;
}

pre {
	-webkit-overflow-scrolling: touch;
	font-family: "Courier New", monospace;
	font-size: 0.9em;
	margin: 0 0 2em 0;
}

pre code {
	display: block;
	line-height: 1.75em;
	padding: 1em 1.5em;
	overflow-x: auto;
}

blockquote {
	font-family:"Alegreya", serif;
	border-left: solid 4px rgba(144, 144, 144, 0.25);
	font-style: italic;
	margin: 0 0 2em 0;
	padding: 0.5em 0 0.5em 2em;
}

table {
	margin: 0 0 2em 0;
	width: 100%;
}

table tbody tr {
	border: solid 1px rgba(144, 144, 144, 0.25);
	border-left: 0;
	border-right: 0;
}

table tbody tr:nth-child(2n + 1) {
	background-color: rgba(144, 144, 144, 0.075);
}

table td {
	padding: 0.75em 0.75em;
}

table th {
	font-size: 0.9em;
	font-weight: bold;
	padding: 0 0.75em 0.75em 0.75em;
	text-align: left;
}

table thead {
	border-bottom: solid 2px rgba(144, 144, 144, 0.25);
}

table tfoot {
	border-top: solid 2px rgba(144, 144, 144, 0.25);
}

/**
 * Structure styles
 */

#header {
	width:100%;
	color:#331c11;
	text-shadow: 0px -1px 1px #000, 0px 1px 1px #733E26;
	border-bottom:1px solid #26150d;
	outline:1px dashed #733E26;
	box-shadow: 0px 10px 0px #26150d;
	background: #4E2B1A;
	background: -webkit-linear-gradient(top, #663822 0%,#26150d 100%);
	background: -ms-linear-gradient(top, #663822 0%,#26150d 100%);
	background: linear-gradient(to bottom, #663822 0%,#26150d 100%);
}

#content {
	width:60%;
	margin:4em auto;
}

#content article {
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	width:100%;
	padding:2.5em 2.5em 4em 4em;
	background: #FFF;
	color:#444;
	-webkit-font-smoothing: antialiased;
	border-radius:4px;
	margin-bottom:4em;
	box-shadow: 0px 6px 12px rgba(34, 34, 34, 0.3);
}

#footer {
	background:transparent;
	width:60%;
	margin:0 auto;
	text-align: center;
}



/**
 * Header styles
 */

 #header a, #header a:visited {
	color:#331c11;
	text-decoration: none;
}

#header h1 {
	font-size:5em;
	margin:0 20px;
	padding-top:20px;
}

#header h1 a:hover, #header h1 a:focus {
	color:#26160E;
}

#header nav ul {
	text-align:right;
	margin:0px 20px 20px;
}

#header nav ul li {
	display: inline-block;
	margin:0 0.5em;
	padding:2px 10px;
	background: #C4453C;
	background: linear-gradient(45deg, #C4453C 5px, #C4453C 5px),
				linear-gradient(135deg, #C4453C 5px, #C4453C 5px),
				linear-gradient(225deg, transparent 5px, #C4453C 5px),
				linear-gradient(315deg, transparent 5px, #C4453C 5px);
	/* Since Firefox 16, we need to prefix that after */
	background: -moz-linear-gradient(45deg, #C4453C 5px, #C4453C 5px),
				-moz-linear-gradient(135deg, #C4453C 5px, #C4453C 5px),
				-moz-linear-gradient(225deg, transparent 5px, #C4453C 5px),
				-moz-linear-gradient(315deg, transparent 5px, #C4453C 5px);
	background: -webkit-linear-gradient(45deg, #C4453C 5px, #C4453C 5px),
				-webkit-linear-gradient(135deg, #C4453C 5px, #C4453C 5px),
				-webkit-linear-gradient(225deg, transparent 5px, #C4453C 5px),
				-webkit-linear-gradient(315deg, transparent 5px, #C4453C 5px);
	background-position: bottom left, bottom right, top right, top left;
	background-size: 51% 50%; /* 51% because Webkit bugs… */
	background-repeat: no-repeat;
	box-shadow: 0 -8px 5px -7px rgba(0, 0, 0, 0.5),inset 0 -10px 5px -7px rgba(0, 0, 0, 0.5);
	border-bottom:1px solid #26150d;
	position: relative;
}

#header nav ul li a, #header nav ul li a:visited {
	color:#E8E8E8 !important;
	text-shadow:0px 1px 2px #FF5B4F, 0px -1px 1px #381411;
	position:relative;
}


/* Tucked corners */
#header nav ul li:after,
#header nav ul li:before {
	content: '';
	height: 20px;
	width: 30px;
	position: absolute;
	top: -14px;
	box-shadow: 0 10px 5px -7px rgba(0, 0, 0, 0.5);	
	box-shadow: none\9; /* Hack IE9 */
}

#header nav ul li:after {
	left: -19px;
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
}

#header nav ul li:before {
	right: -19px;
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
}

#header nav ul li:hover:after,
#header nav ul li:hover:before {
	box-shadow:none;
}

#header nav ul li:hover {
	background: #C4453C;
}

#header nav ul li a:after,
#header nav ul li a:before {
	content:'';
	position:absolute;
	height:20px;
	width:20px;
	bottom:-25px;
	box-shadow: 0 10px 5px -7px rgba(0, 0, 0, 0.5);	
	box-shadow: none\9; /* Hack IE9 */
	-webkit-transform: rotate(-180deg);
	-moz-transform: rotate(-180deg);
	-ms-transform: rotate(-180deg);
	-o-transform: rotate(-180deg);
	transform: rotate(-180deg);
}

#header nav ul li a:after {
	right:-1.5em;
}

#header nav ul li a:before {
	left:-1.5em;
}

#header nav ul li a:hover,
#header nav ul li a:focus {
	color:#fff !important;
}


/**
 * Letter styles
 */

#content article header h1 a {
	text-decoration:none;
}

#content article header h1:before {
	/* For an administrative style… */
	/* content:"Object:"; */
}

#content article header p {
	text-align:right;
}

#content article footer p {
	margin-top:4em;
	text-align: right;
	font-size:1.25em;
	text-transform: capitalize;
}

.author footer p {
	font-family:"Comic Sans MS", cursive;
}

#content article footer a {

}

#content article {
	word-wrap:break-word;
}

/**
 * Footer styles
 */

#footer p, #footer a, #footer a:visited {
	color:#888;
	text-shadow: 0px 1px #fff;
}

/**
 * To Top button
 */
a#toTop {
	display:block;
	width:2em;
	height:2em;
	position:fixed;
	bottom:1em;
	right:1em;
	color:#fff;
	background:rgba(170, 170, 170, 0.5);
	border-radius:6px;
	font-size: 1.5em;
	line-height: 2em;
	text-align: center;
	text-decoration: none;
}

a#toTop:hover,
a#toTop:focus {
	background:rgba(187, 187, 187, 0.5);
}

/**
 * Typography settings
 */

h1, h2, h3 {
	-webkit-font-feature-settings: "dlig";
	-moz-font-feature-settings: "dlig";
	-ms-font-feature-settings: "dlig";
	font-feature-settings: "dlig";
}

article {
	-webkit-font-feature-settings: "liga", "kern";
	-moz-font-feature-settings: "liga", "kern";
	-ms-font-feature-settings: "liga", "kern";
	font-feature-settings: "liga", "kern";
	-webkit-font-feature-settings: "onum", "lnum" off;
	-moz-font-feature-settings: "onum", "lnum" off;
	-ms-font-feature-settings: "onum", "lnum" off;
	font-feature-settings: "onum", "lnum" off;
}

table {
	-webkit-font-feature-settings: "tnum", "pnum" off, "frac";
	-moz-font-feature-settings: "tnum", "pnum" off, "frac";
	-ms-font-feature-settings: "tnum", "pnum" off, "frac";
	font-feature-settings: "tnum", "pnum" off, "frac";
}

abbr {
	text-transform: lowercase;
	font-variant: small-caps;
}

/**
 * Mobile media-queries
 */
@media screen and (max-width: 768px) {
	#content {
		width:100%;
		margin:10px 0;
	}

	#content article {
		padding:15px 15px 30px 30px;
	}

	#header h1 {
		font-size: 3em;
	}

	/* Responsive menu */
	#header nav:before {
		content:"Menu";
		display:inline-block;
		margin-left:20px;
	}

	#header nav {
		min-height: 3.2em;
	}

	#header nav ul {
		display:block;
		width:200px;
		padding: 0;
		border-radius:4px;
	}

	#header nav ul li {
		display:none !important;
		margin:0;
	}
	
	#header nav ul li:first-child {
		display:block !important;
	}

	#header nav ul:hover li,
	#header nav ul:focus li {
		display:block !important;
		margin:0 0 5px;
	}
}

/**
 * Print styles
 * Based on HTML5 Boilerplate
 * MIT License | https://html5boilerplate.com/
 */
@page {
	size: A4 portrait;
	margin: 70pt 50pt;
}

@media print {
	*,	*:before, *:after {
		background: transparent !important;
		color: #000 !important;
		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) ")";
	}

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

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

	thead {
		display: table-header-group;
	}

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

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

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

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

	#header {
		border:none;
		outline: none;
	}

	header h1 a[href]:after {
		content:"" !important;
	}

	#header nav, #footer, footer a, a#toTop  {
		display:none !important;
	}

	#content {
		width:100%;
	}

}