/*
Theme Name:		Blitch
Theme URI:		https://planetjon.ca/projects/blitch/
Version:		1.4
Requires PHP:	5.4
Author:			Jonathan Weatherhead
Author URI:		https://planetjon.ca
Text Domain:	blitch
Domain Path:	/locale/languages

Blitch WordPress Theme, Copyright 2020 Jonathan Weatherhead
Blitch is distributed under the terms of the GNU GPL
*/

/* General */

.anchor
{
	display: block;
	clear: both;
	overflow: hidden;
	visibility: hidden;
	width: 100%;
	height: 1px;
	margin: 0 0 -1px;
}

.float-left
{
	float: left;
}

.float-right
{
	float: right;
}

.clear-left
{
	clear: left;
}

.clear-right
{
	clear: right;
}

/* Containers */

.container
{
	position: relative;
}

#page-container > aside > .container,
#page-container > header > .container,
#page-container > main > .container,
#page-container > footer > .container
{
	padding: 8px;
}


/* Site Header */

#site-header
{
	background-image: radial-gradient( circle 987px at 99% 2%, #222 0%, #000 90% );
	color: white;
}

#site-header > .container
{
	display: flex;
	flex-direction: column;
}

#site-header .site-banner
{
	position: relative;
	text-align: center;
}

#site-header .site-banner-title
{
	margin: 0;
}

#site-header .site-banner-subtitle
{
	margin: 0;
}

#site-header .site-banner-title-text,
#site-header .site-banner-subtitle-text
{
	font-family: sans-serif;
	color: white;
}

/* Site Footer */

#site-footer > .container
{
	text-align: center;
}

#site-footer .site-attribution
{
	font-size: 0.8125em;
}

/* Navigation */

nav ul
{
	list-style-type: none;
}

nav .menu
{
	margin: 0;
	padding: 0;
}

nav .menu a
{
	font-family: inherit;
}

nav.secondary
{
	font-size: 0.8125em;
}

nav.secondary .menu-item,
nav.secondary .page_item
{
	margin: 0;
	padding: 0 1em;
}

/* Primary Navigation */

#site-header .search-and-nav
{
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#site-header .search-and-nav > nav + #searchform
{
	margin-left: 1em;
}

#site-header nav.primary
{
	position: relative;
	z-index: 99;
}

#site-header nav.primary .menu
{
	border-collapse: collapse;
}

#site-header nav.primary .menu-item
{
	display: inline-block;
	position: relative;
	margin: 0;
	color: white;
	border-radius: 2px;
}

#site-header nav.primary .menu-item a
{
	display: block;
	margin: 0;
	padding: .5em;
	text-align: center;
	white-space: nowrap;
	color: inherit;
}

#site-header nav.primary .sub-menu
{
	display: block;
	position: absolute;
	left: -9999px;
	z-index: 2;
	min-width: 125%;
	margin: 0;
	padding: 0;
	background-color: inherit;
	font-size: 0.8125em;
	box-shadow: 4px 4px 4px #222;
}

#site-header nav.primary .sub-menu .menu-item
{
	width: 100%;
	color: white;
}

#site-header nav.primary .sub-menu .menu-item a
{
	padding-left: 8px;
	padding-right: 8px;
	text-align: left;
	border-style: none;
}

#site-header nav.primary .menu-item:hover > .sub-menu
{
	left: 0;
}

#site-header nav.primary .sub-menu .sub-menu
{
	min-width: 66.67%;
	font-size: 1em;
}

#site-header nav.primary .sub-menu > .menu-item:hover > .sub-menu
{
	top: 0;
	left: 102%;
}

/* Site Content */

.content-container > .heading
{
	margin-bottom: 1em;
	text-align: center;
}

.archive > .synopsis
{
	margin: 16px auto;
}

.attachment .parent-link:before
{
	content: '\00AB';
}

.main-content
{
	position: relative;
	overflow: auto;
	margin-bottom: 16px;
	word-wrap: break-word;
}

.main-content .post-excerpt
{
	font-weight: bold;
}

.main-content header
{
	margin-bottom: 1em;
}

.main-content footer
{
	clear: left;
	margin-top: 1em;
}

.main-content p
{
	line-height: 1.5em;
}

.main-content ul,
.main-content ol
{
	margin-bottom: 1em;
}

.main-content li
{
	margin: .5em 0;
}

.main-content .post-meta-container
{
	padding: 16px;
	background: #ececec;
	border-radius: 8px;
}

.heading
{
	margin: 0;
}

.post-meta
{
	font-size: 0.8125em;
	line-height: 1.5em;
}

.post-meta .label
{
	display: block;
	font-weight: bold;
}

.post-classification .data
{
	display: inline;
	line-height: 2.5em;
}

.post-classification .data + .data
{
	margin-left: .25em;
}

.post-classification .data a
{
	padding: 4px;
	background-color: #ececec;
	border-radius: 2px;
	white-space: nowrap;
}

.post-classification .data a + a
{
	margin-left: .5em;
}

/* Blog Post */

body.single .post-feature
{
	display: block;
	margin: 1em 0;
	text-align: center;
}

body.single .post-feature .wp-post-image
{
	width: auto;
	margin: 0;
}

body.single .main-content header
{
	text-align: center;
}

body.single .main-content .post-publication
{
	margin: 1em 0;
}

body.error404 .not-found
{
	text-align: center;
}

/* Pagination */

.pagination
{
	display: flex;
	flex-wrap: wrap;
	margin: 1em 0;
	text-align: center;
	justify-content: center;
}

.pagination:empty
{
	display: none;
}

.pagination .page-numbers
{
	padding: 8px;
	margin: 2px;
	font-weight: normal;
	background-color: #ececec;
	border-radius: 2px;
	order: 1;
}

.pagination .page-numbers.current
{
	background-color: #aaa;
	color: black;
}

.pagination .page-numbers.dots
{
	color: black;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next
{
	padding: 8px 16px;
	order: 0;
}
