/* mi parcae, and then some — dark edition.
   Faithful port of the original Tumblr theme, palette flipped dark:
     page   #EEECEC -> #161415
     boxes  #E6E4E4 -> #232021
     text   #797979 -> #918d8d
     links  #9c9b9b -> #7c7878
*/

/* reset (stand-in for the theme's reset.css) */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, em,
img, q, strike, strong, b, i, ol, ul, li, table, tbody, tr, th, td, figure {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
table { border-collapse: collapse; border-spacing: 0; }

@font-face {
	font-family: 'Oswald';
	font-style: normal;
	font-weight: 700;
	src: url('../fonts/oswald-700-latin.woff2') format('woff2');
}
@font-face {
	font-family: 'LeagueGothicRegular';
	src: local('League Gothic Regular'), local('LeagueGothic'),
	     url('../fonts/league_gothic.ttf') format('truetype');
}

body {
	color: #918d8d;
	background: #161415 url(../img/fletch-dark.png);
	font-family: Baskerville, "Times New Roman", Times, serif;
}

a:link, a:visited {
	text-decoration: none;
	color: #7c7878;
}
a:hover {
	opacity: .9;
}

.clear {
	clear: both;
}

hr {
	border-bottom: 0;
	border-top: 0;
	margin: 12px auto;
	width: 243px;
}

#container {
	width: 772px;
	margin: 0 auto;
}

#header {
	padding-top: 90px;
}
#header ul {
	margin-bottom: 10px;
	text-align: center;
}
#header li {
	display: inline;
	margin: 0 12px;
	letter-spacing: .05em;
	font-size: 20px;
	font-family: "LeagueGothicRegular", "HelveticaNeue-CondensedBold", "Franklin Gothic Demi Cond", "Franklin Gothic Medium Cond", "Impact", sans-serif;
	text-shadow: 0 0 1px #161415;
}

h1 {
	text-align: center;
	font-size: 50px;
	font-family: "Oswald", sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0px;
}

#header p {
	width: 430px;
	margin: 10px auto;
	font-size: 20px;
	text-align: center;
	line-height: 1.09;
	font-style: italic;
	text-shadow: 0 0 1px #161415;
}
#header p a {
	color: inherit;
}

.post-meta {
	text-transform: uppercase;
	color: rgba(145, 141, 141, .5);
	text-align: center;
	font-size: 14px;
	font-weight: bold;
	letter-spacing: 1px;
	text-shadow: 0 0 1px #161415;
}
.post-meta a {
	margin: 20px;
}

.post-content {
	margin: 16px 0;
}

.photo .photo-wrapper {
	text-align: center;
}
.photo .photo-wrapper img {
	border: 8px solid #232021;
	box-shadow: 0 3px 3px rgba(0, 0, 0, .45);
	max-width: 500px;
}
.photo.captioned .photo-wrapper {
	margin: 22px;
}
.photo .body {
	padding-top: 4px;
}
.photo .body p, .photo .body blockquote {
	text-align: center;
}

.video .video-wrapper {
	width: 500px;
	margin: 0 auto;
	text-align: center;
	border: 8px solid #918d8d;
	border-left: 0;
	border-right: 0;
	box-shadow: 0 3px 3px rgba(0, 0, 0, .45);
}
.video.captioned .video-wrapper {
	float: left;
	margin: 0 22px 22px 8px;
}
.video .body {
	padding-top: 4px;
}
.video .body p, .video .body blockquote {
	text-align: left;
	max-width: 500px;
	margin: 12px auto 0;
}
.video .video-wrapper video {
	display: block;
	width: 100%;
	background: #000;
}

.quote .q-wrapper {
	width: 500px;
	margin: 0 auto 22px;
	background: #232021;
	padding: 8px;
}
.quote q {
	border: 1px solid #918d8d;
	padding: 7px 10px;
	display: block;
	font-family: "LeagueGothicRegular", "HelveticaNeue-CondensedBold", "Franklin Gothic Demi Cond", "Franklin Gothic Medium Cond", "Impact", sans-serif;
	text-transform: uppercase;
	text-shadow: 0 0 1px #232021;
	line-height: 1.1;
	text-align: justify;
}
.quote p + p {
	text-indent: 1em;
}
.quote q.short { font-size: 42px; }
.quote q.medium { font-size: 36px; }
.quote q.long { font-size: 30px; text-transform: none; }
.quote .body {
	width: 430px;
	margin: 0 auto;
}

.text h2 {
	width: 430px;
	margin: 12px auto 16px;
	text-align: center;
	font-family: "LeagueGothicRegular", "HelveticaNeue-CondensedBold", "Franklin Gothic Demi Cond", "Franklin Gothic Medium Cond", "Impact", sans-serif;
	font-size: 30px;
}
/* markdown headings inside a post body get the same look as post titles,
   not the Oswald site-title style */
.text h1, .text h3, .text h4 {
	width: 430px;
	margin: 12px auto 16px;
	text-align: center;
	font-family: "LeagueGothicRegular", "HelveticaNeue-CondensedBold", "Franklin Gothic Demi Cond", "Franklin Gothic Medium Cond", "Impact", sans-serif;
	font-weight: normal;
	text-transform: none;
	letter-spacing: 0;
}
.text h1 { font-size: 30px; }
.text h3 { font-size: 24px; }
.text h4 { font-size: 20px; }
.text .body {
	width: 430px;
	margin: 0 auto;
}

.conversation h2 {
	width: 430px;
	margin: 30px auto 16px;
	text-align: center;
	font-family: "LeagueGothicRegular", "HelveticaNeue-CondensedBold", "Franklin Gothic Demi Cond", "Franklin Gothic Medium Cond", "Impact", sans-serif;
	font-size: 36px;
}
.conversation table {
	border-radius: 10px;
	background: #232021;
	width: 430px;
	margin: 0 auto;
}
.conversation th {
	padding: 9px 0 9px 11px;
	border-top: 1px solid #161415;
	text-align: right;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: bold;
	line-height: 1.2;
}
.conversation td {
	padding: 9px;
	border-top: 1px solid #161415;
	font-size: 16px;
	line-height: 1.2;
}
.conversation tr:first-child td,
.conversation tr:first-child th {
	border-top: 0;
}

.link h2 a {
	color: #918d8d;
	text-align: center;
	font-size: 24px;
	font-family: "LeagueGothicRegular", "HelveticaNeue-CondensedBold", "Franklin Gothic Demi Cond", "Franklin Gothic Medium Cond", "Impact", sans-serif;
	text-shadow: 0 0 1px #232021;
	letter-spacing: 1px;
	background: #232021;
	display: block;
	padding: 5px 0 5px;
	margin: 30px auto 22px;
	width: 430px;
}
.link h2 a span {
	display: block;
	padding: 8px;
	border: 1px solid #161415;
	border-left: 0;
	border-right: 0;
}
.link .body {
	width: 430px;
	margin: 0 auto;
}

.body {
	font-size: 16px;
}
.body em {
	font-style: italic;
}
.body strong, .body b {
	font-weight: bold;
}
.body p, .body blockquote {
	line-height: 1.3;
	text-align: justify;
}
.body p {
	text-indent: 1em;
}
.body ul + p,
.body ol + p,
.body blockquote + p,
.body p:first-of-type {
	text-indent: 0;
}
.body ul, .body ol {
	margin: .75em 2em;
}
.body li {
	line-height: 1.2;
	margin: .35em 0;
	list-style-position: inside;
}
.body ol li {
	list-style-type: decimal;
}
.body ul li {
	list-style-type: circle;
}
.body ol ol, .body ul ul {
	margin: .75em 2em;
}
.body li ol li {
	list-style-type: lower-alpha;
}
.body li ul li {
	list-style-type: circle;
}
.body blockquote {
	padding: 0 .85em 0 .85em;
	margin: .75em 1.15em;
	border-left: 1px solid rgba(145, 141, 141, .5);
	font-style: italic;
}

#footer {
	padding-bottom: 60px;
}

#navigation {
	width: 500px;
	margin: 0 auto;
	height: 25px;
	padding: 60px 0;
}
#navigation-left,
#navigation-right {
	width: 129px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	line-height: 25px;
}
#navigation-left {
	float: left;
}
#navigation-right {
	float: right;
	text-align: right;
}

#credit {
	text-align: center;
	font-style: italic;
	font-size: 16px;
	margin-top: 18px;
}

/* small screens (the original theme was desktop-only) */
@media (max-width: 800px) {
	#container {
		width: auto;
		padding: 0 20px;
	}
	#header p, .text h1, .text h2, .text h3, .text h4, .text .body, .quote .body, .link .body,
	.link h2 a, .conversation h2, .conversation table {
		width: auto;
		max-width: 430px;
		margin-left: auto;
		margin-right: auto;
	}
	.quote .q-wrapper, .video .video-wrapper, #navigation {
		width: auto;
		max-width: 500px;
		margin-left: auto;
		margin-right: auto;
	}
	.photo .photo-wrapper img {
		max-width: min(500px, 100%);
		height: auto;
		box-sizing: border-box;
	}
}

/* phones: the title wraps here, so set it tight instead of at the font's
   loose default line height, and pull the header up */
@media (max-width: 600px) {
	#header {
		padding-top: 44px;
		padding-bottom: 28px;
	}
	#header br {
		display: none;
	}
	h1 {
		font-size: clamp(34px, 11.5vw, 50px);
		line-height: 1.02;
		letter-spacing: -0.005em;
	}
	#header p {
		margin-top: 8px;
		font-size: 17px;
	}
}
