/*  
Theme Name: theme
Theme URI: elikamirzaei.uk/blog
Description: vanilla theme + menu toggle (RWD)
Version: 1.0
Author: Elika
Author URI: 
*/

/* DESIGN NOTES	

fontfamily	'Fira Sans Condensed', Calibri, Helvetica, sans-serif

61676F		dark blu/grey	= copy
3B4B5B		medium blue		= headings
CED3D8		soft blu/grey	= border
869EB7		light blue		= meta
DB5E00		rust orange		= active col

---------------------------------------------------*/
/* RESETS based on
http://meyerweb.com/eric/tools/css/reset/ 
v2.0 | 20110126
License: none (public domain)
** thank you, Eric :-)
---------------------------------------------------*/
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, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: baseline;
	font: inherit;	
	text-rendering: optimizeLegibility;			
}

/* HTML5 reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

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

/* general rules 
---------------------------------------------------*/
body {
	background: #F9F9F9 url(images/noise.png);
	color: #61676F;
	font-size: 1em;
	line-height: 1.36;	
	font-family: 'Fira Sans Condensed', Calibri, Helvetica, sans-serif;
}
div {
	margin: 0 0 1em 0;
}
h1, h2, h3, h4 {
	margin: 0 0 .2em 0;	
	font-size: 2em;
	color: #3B4B5B;
}
h1 {
	font-size: 2.2em;
	font-weight: 900;
}
h2 {
	font-size: 2em;
	font-weight: 700;
}
h3 {
	font-size: 1.6em;
	color: rgba(60,75,90,.6);
	display: block;
	border-bottom: 1px solid #282a31;
}
p {
	margin: 0 0 1.2em 0;
}
em {
	font-style: italic;
}
strong {
	font-weight: bold;
}
ul {
	margin: 0 0 1.2em 1.2em;
	list-style: square;
}
ol {
	margin: 0 0 1.2em 1.2em;
	list-style: decimal;
}
li {
	margin: 0 0 .8em 0;
}
blockquote, q {
	quotes: none;
	padding: 1em;
	margin: 0 0 0 -1em;	
	font-weight: 300;
	font-size: 1.2em;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
blockquote:before {
	content: '\201C ';
	font-family: serif;
	float: left;
	margin: -.3em 0 0 -.6em;
	font-size: 1.6em;
}
cite {
	display: block;
	margin: 0 0 2em 0;
	padding: 0 1em 1em;
	text-align: right;
}

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

del {
	text-decoration: line-through;
}

abbr[title], dfn[title] {
	border-bottom: 1px dotted #333;
	cursor: help;
}

/* tables still need cellspacing="0" in the markup */

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

th {
	font-weight: bold;
	vertical-align: bottom;
}

td {
	font-weight: normal;
	vertical-align: top;
}


input, select {
	vertical-align: middle;
	font-size: 1.2em;
}

pre {
	white-space: pre;
	white-space: pre-wrap;
	white-space: pre-line;
	word-wrap: break-word;
}

table {
	font-size: inherit;
	font: 100%;
}

td, td img {
	vertical-align: top;
}

strong, th {
	font-weight: bold;
}

/* monospaced text */

pre, code {
	font-family: monospace, sans-serif;
}

acronym {
	border-bottom: 1px dotted #61676F;
}


/* clearing floats */

.clearfix {
	zoom: 1;
}

.clearfix:before, .clearfix:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.clearfix:after {
	clear: both;
}


/* adaptive media 
---------------------------------------------------*/
img, object, embed {
	max-width: 100%;
	height: auto;
}

/* link styling
---------------------------------------------------*/
a, a:link, a:visited {
 	color: #DB5E00;
 	text-decoration: none;
 	border-bottom: 1px solid #DB5E00;
}
/* remove border on menu / headings / footer */
header a:link, nav a:link, footer a:link, h1 a:link, h2 a:link, h3 a:link {
	border: 0;
}
a:hover, a:active, a:focus {
	color: #2879ab;
}

/* HEADER 
---------------------------------------------------*/
header {
	margin: 1px 0 0 0;
	padding: 3em 0 0 0;
	text-align: center;
	background: #272a31
}
header h1 {
	color: #DB5E00;
}
header p {
	margin: 0;
	padding: 0 0 1.6em 0;
	font-size: 1.1em;
	color: #84cbfc;
}


/* SEARCH // site-wide
---------------------------------------------------*/
header form {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(0%, 0%);
    width: 50px;
    height: 50px;
    background: #db5e00;
    box-sizing: border-box;
    border-radius: 0 25px;
    border: 4px solid #db5e00;
    padding: 5px;
    -webkit-transition: width .3s ease-in-out, border-color .3s ease-in-out, border-radius .3s ease-in-out;  
    -moz-transition: width .3s ease-in-out, border-color .3s ease-in-out, border-radius .3s ease-in-out;  
    -o-transition: width .3s ease-in-out, border-color .3s ease-in-out, border-radius .3s ease-in-out;  
    transition: width .3s ease-in-out, border-color .3s ease-in-out, border-radius .3s ease-in-out;
}

/* Make the label accessible for tabbing */
header form label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* hide label */
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
    z-index: 1;
}

header form input {
    font-family: 'Fira Sans Condensed', Calibri, Helvetica, sans-serif;
    font-size: 1.2em;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 42.5px;
    line-height: 30px;
    outline: 0;
    border: 0;
    /* Initially hidden - shown on focus */
    display: none;
    font-size: 1em;
    border-radius: 20px;
    padding: 0 20px;
}

/* search box: text input */
header form input#s {
    padding-left: 45px;
}

/* search box: submit */
header form input#searchsubmit {
    display: block;
    box-sizing: border-box;
    padding: 10px;
    width: 44px;
    height: 44px;
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 200;
    border-radius: 50%;
    border: 0;
    color: #07051a;
    text-align: center;
    font-size: 1.2em;
    background: transparent url(images/search-icon-white.svg) no-repeat;
    background-size: contain;
}

/* hover + focus */
header form:hover,
header form:focus-within {
    width: 200px;
    cursor: pointer;
    border-color: #D75F1B;
    border-radius: 0 0 0 25px;
}

/* show input on hover + focus */
header form:hover input#s,
header form:focus-within input#s {
    display: block;
}

/* icon chaneg on on hover + focus  */
header form:hover input#searchsubmit,
header form:focus-within input#searchsubmit {
    background: transparent url(images/search-icon-orange.svg) no-repeat;
    background-size: contain;
}




/* NAV */
nav {
	margin: 0 0 3em 0;
}

/* menu toggle */
nav #menu-toggle {
	display: none;
}
nav .toggle {
	display: block;
	padding: .2em 10%;
	font-size: 1.1em;
	font-weight: 400;
	color: #fff;
	background: #D75F1B;
}

nav .toggle:before {
	content: ' \25B2 ';
	font-weight: 600;
	margin: .4em .6em 0 0;
	font-size: .9em;
	line-height: 1;
	color: #191a21;
	display: inline-block;
	float: left;
	transition: all 0.25s ease-out;
}
nav #menu-toggle:checked + .toggle::before {
	content: ' \25BC ';
}

nav .toggle:hover, nav .toggle:active, nav .toggle:focus {
	background: rgba(132, 203, 252, 1.000);
	color: #272a31;
	cursor: pointer;
}

nav #menu-toggle:checked + .toggle + ul {
	display: block;
}
nav ul {
	list-style: none;
	margin: 0;
	display: none;
}

nav ul li {
	margin: 0;
}
nav ul li a {
	font-size: 1.2em;
	display: block;
	padding: .2em 10%;
	text-decoration: none;
	color: #5E6E6D;
	-webkit-transition: all .3s ease-in-out;  
	-moz-transition: all .3s ease-in-out;  
	-o-transition: all .3s ease-in-out;  
	transition: all .3s ease-in-out;
}
nav ul li a:link, nav ul li a:visited {
	background: none;
}
nav ul li a:hover, nav ul li a:active, nav ul li a:focus {
	background: #DB5E00;
	color: #fff;
}

nav ul li.cur a:link, nav ul li.cur a:visited {
	color: #000;
}
nav ul li.cur a:hover, nav ul li.cur a:active, nav ul li.cur a:focus {
	background: rgba(132, 203, 252, 1.000);
	color: #000;
}




/* CONTENT 
---------------------------------------------------*/
#content {
	width: 80%;
	max-width: 126ch;
	margin: 0 auto;
	padding: 0 0 3em;
	position: relative;
}

.meta {
	display: inline-block;
	border-top: 1px solid rgba(132, 203, 252, 1.000);
	padding: 3px 0;
	font-size: .9em;

}
.meta em {
	font-style: normal;
	color: #869EB7;
}

.read a:link, .read a:visited {
	font-weight: 600;
	position: relative;
	display: inline-block;
	padding: .6ch 1ch;
	border-bottom: 1px solid #2879ab;
	border-radius: 0 2ch 2ch 0;
	color: #2879ab;
	-webkit-transition: all .3s ease-in-out;  
	-moz-transition: all .3s ease-in-out;  
	-o-transition: all .3s ease-in-out;  
	transition: all .3s ease-in-out;
}
.read a:hover, .read a:active, .read a:focus {
	background: #2879ab;
	color: #fff;
	text-indent: 2ch;
}

/* dot */
.read a:link:before {
	content: ' • ';
	color: #D75F1B;
	position: absolute;
	left: 0;
	-webkit-transition: all .3s ease-in-out;  
	-moz-transition: all .3s ease-in-out;  
	-o-transition: all .3s ease-in-out;  
	transition: all .3s ease-in-out;
}
.read a:hover:before {
	left: -3ch;
}

/* SIDEBAR 
---------------------------------------------------*/
aside {
	display: block;
	margin: 3em 0;
}


/* FOOTER 
---------------------------------------------------*/
footer {
	min-height: 6em;
	padding: 1em 0;
	background: #272a31;
	text-align: center;
	color: rgba(246, 246, 246, .8);
}
footer p {

}

footer ul {
	list-style: none;
	margin: 0;
}


footer ul li a {
	font-size: 1em;
	display:block;
	padding: .2em .6em;
	text-decoration: none;
}
footer ul li a:link, footer ul li a:visited {
	
}
footer ul li a:hover, footer ul li a:active, footer ul li a:focus {

}

/* =========================================
page specific styling						
========================================= */

/* single article page: single column 
---------------------------------------------------*/
.single article h3  {
	border-width: 2px;
	margin-top: 3ch;
}
.single article h3:first-of-type {
	margin-top: 1ch;
}



/* =========================================
MQs 						
========================================= */
@media (min-width : 562px) {
	nav #menu-toggle, nav #menu-toggle:checked, nav .toggle {
		display: none;
	}
	nav #menu-toggle + .toggle + ul, nav #menu-toggle:checked + .toggle + ul {
		display: block;
	}
	nav {
		/*padding: 0 10%;*/
		margin: 0 0 3em 0;
		text-align: center;
	}
	nav ul {
		overflow: hidden;
		max-width: 126ch;
		margin: 0 auto;
		border-bottom: 1px solid rgba(40, 42, 49, 1);
	}
	nav ul li {
		display: inline;
		/*float: left;*/
		margin: 0;
		/*border-right: 1px solid #A9C8D3;*/
	}
	/*nav ul li:last-child {
		border: none;
	}*/
	nav ul li a {
		display: inline-block;
		margin: 0;
		padding: .2em .4em;
	}
	blockquote {
		width: 60%;
		margin: 0 auto -1em auto;
		
		border-top: 1px solid #879FB6;
	}
	cite {
		width: 60%;
		margin: 0 auto 2em auto;
		border-bottom: 1px solid #879FB6;
	}
	footer ul li {
		display: inline;
	}
	footer ul li a {
		display: inline-block;
	}
}

@media (min-width : 650px) {
	nav ul li a {
		padding: .2em .8em;
	}
	/*nav ul {
		margin-left: -.8em;
	}*/
}

@media (min-width : 840px) {

	article {
		width: 60%;
		margin: 0 0 3em 0;
	}
	.page article, .single article {
		width: 100%;
	}
	aside{
		width: 32%;
		padding: 0 0 0 2%;
		position: absolute;
		top: 0;
		right: 0;
		margin: 0;
	}
	.single #content aside {
		width: 100%;
		padding: 0;
		position: relative;
	}
}