/*  
Theme Name: eyestyle 2020
Theme URI: https://eyedea.studio
Description: vanilla theme + menu toggle (RWD)
Version: 3.4
Author: Prisca Schmarsow & Erika Balode
Author URI: https://eyedea.studio
*/

/*—————————————————————————————————————————————————————————————————*/

/* ———————————————————————————— template notes ***********************
#wrap 					*all content

header 					h1, p
						blog title (h1), blog description (p)
			
nav						ul
						categories, pages
aside					ul [inc dynamicSidebars & widgets if in use]
						sidbar with search, links + additional 
						(postlists etc, see extra ids/classes)
			
#content				*all page content (+ classes assigned by WP)
						article > post on category page
						article h3 > post title (+ link) on category page
						article.pagepost > post on page
						article.pagepost h2 > post title on page
			
footer					ul

*** extras ***

form#searchform			searchbox
input#searchsubmit		submit button, searchbox

*********************** END template notes ———————————————————————————— */

/*—————————————————————————————————————————————————————————————————*/

/* ———————————————————————————— COLOURS ***********************
#000					text colour
#333					headers

*********************** END template notes ———————————————————————————— */

/*-—————————————————————————————————————————————————————————————————*/

/* thanks, Eric :-)
http://meyerweb.com/eric/tools/css/reset/ 
v2.0 | 20110126
License: none (public domain)
*/

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;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */

:root{
	color-scheme: light dark;
	--txt-color: light-dark(#1a1a1a, #fffbe9);
	--txt-accent: light-dark(#4f123e, #fffbe9);
	--accent-color1: light-dark(#4f123e, #fcfcfc);
	--accent-color2: light-dark(#6c0d10db, #f9dcd8);
	--base-color1: light-dark(#fff5f1, #4c0f3b);
	--base-color2: light-dark(#f9dcd8, #6c0d10db); 
	--code-highlight: light-dark(#d7d7d7, #000000);
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
	display: block;
}

body {
	font-size: 1em;
	line-height: 1.36;
	font-family: 'Nunito Sans', Arial, Helvetica, Verdana, sans-serif;
	color: var(--txt-color);
	background-color: var(--base-color1);
}
header, footer{
	background-color: var(--base-color2);
}
ol, ul {
	list-style: none;
}
li {
	display: block;
	margin:  0 0 .5em 0;
}
blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
	content: '';
	content: none;
}

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

* {
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
/*—————————————————————————————————————————————————————————————————
GENERAL 
—————————————————————————————————————————————————————————————————*/

a, a:link, a:active, a:visited {
	color: var(--txt-color);
	font-weight: 600;
	text-decoration-color: var(--txt-color);
	text-decoration-thickness: .125em;
	text-underline-offset: 3px;
}

a:hover, a:focus {
	text-decoration-color: var(--txt-color);
	text-decoration-thickness: .15em;
	text-underline-offset: 6px;
}

input, textarea {
	padding: 2px;
	background: #fff5f1;
	border: 2px solid #f9dcd8;
}

.clear {
	clear: both;
}

/*————————————————————————————————————————————————————————————————— 
Typography
—————————————————————————————————————————————————————————————————*/

/*————————————————————————————————————————————————————————————————— 
BODY
—————————————————————————————————————————————————————————————————*/

p {
	font-size: 1.1em;
	line-height: 1.46;
	margin: 0 0 1.86em 0;
}

blockquote, q {
	quotes: none;
	padding: 1em 12%;
	margin: 0 0 2em 0;	
	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: -.4em 0 0 -.6em;
	font-size: 3em;
}
blockquote p {
	margin: 0;
}
cite {
	display: block;
	/*margin: 0 0 2em 0;*/
	/*padding: 0 1em 1em;*/
	text-align: right;
	font-style: italic;
}

code {
	margin: 1.5em 0;
	white-space: pre;
	font: 1em 'andale mono', 'monotype.com', 'lucida console', monospace;
	line-height: 1.5;
}

abbr, acronym {
	border-bottom: 1px dotted #666;
}


address {
	margin-top: 1.5em;
	font-style: italic;
}

pre {
	margin: 1.5em 0;
	white-space: pre;
}

strong {
	font-weight: 600;
}

em {
	font-style: italic;
	color: #9A895E;
}

del {
	text-decoration: line-through;
	color: #666;
}

/*—————————————————————————————————————————————————————————————————
HEADINGS 
—————————————————————————————————————————————————————————————————*/

h1, h2, h3, h4, h5, h6 {
	display: block;
	font-family: Forum, Georgia, 'Times New Roman', Times, serif;
	font-size: 1.4em;
	line-height: 1.6;
	margin: 0 0 .6em 0;
	/*text-transform: lowercase;*/
	/* color: #9A895E; */
}

h1 {
	font-size: 2em;
	line-height: 1;
	font-weight: 400;
}

h2 {
	font-size: 1.76em;
	line-height: 1;
	font-weight: 600;
	
}

h3 {
	font-size: 1.52em;
	line-height: 1;
	font-weight: 300;
	color: #999;
}
section h3 {
	color: #9A895E;
	font-weight: 400;
	font-style: italic;
}
h3:after {
	content: '';
	display: block;
	width: 66%;
	height: 1px;
	background: #ccc;
}

h4 {
	font-size: 1.36em;
	line-height: 1.2;
	letter-spacing: -.046em;
	text-transform: none;
}

h5 {
	font-size: 1.26em;
	font-weight: bold;
}

h6 {
	font-size: 1em;
	font-weight: bold;
}

/* ———————————————————————————— wrapper ———————————————————————————— */

#wrap {
	position: relative;
	margin: 0 3vw;
	max-width: 68em;
	border-left: 1px solid #D8D8C2;
	border-right: 1px solid #D8D8C2;
}

/*—————————————————————————————————————————————————————————————————
HEADER 
—————————————————————————————————————————————————————————————————*/

header {
	padding: 2em;
	/* margin: 0 10vw;
	max-width: 68em; */
}

header h1 {
	font-size: 2em;
	margin: 0 0 .5em 0;
}

header h2 {
	font-size: 1.2em;
	margin: 0;	
	/*padding: 1em 0 0 0;*/
}

/*—————————————————————————————————————————————————————————————————
NAV 
—————————————————————————————————————————————————————————————————*/

/* NAV */

nav.sitenav {
	margin: 0 0 3em 0;
}

/* ———————————————————————— menu toggle ———————————————————————— */
/* hide checkbox */

nav #menu-toggle {
	display: none;
}
/* label as toggle */

nav .toggle {
	display: block;
	padding: .2em 2em;
	font-size: 1.1em;
	font-weight: 400;
	color: var(--txt-color);
	background: var(--base-color2);
}

nav .toggle:before {
	content: ' \25B2 ';
	font-weight: 600;
	margin: .2em .6em 0 0;
	font-size: .9em;
	line-height: 1;
	color: var(--txt-color);
	display: block;
	float: left;
	transform: rotate(-30deg);
	transition: all 0.25s ease-out;
}

nav #menu-toggle:checked + .toggle::before {
	transform: rotate(60deg);
}

nav .toggle:hover, nav .toggle:active, nav .toggle:focus {
	background: var(--accent-color1);
	color: var(--base-color1);
	text-decoration-thickness: 3px;
	cursor: pointer;
}

nav #menu-toggle:checked + .toggle + ul {
	/* display list on toggle checked */
	display: block;
	background-color: var(--base-color2);
}
/* menu link styling */

nav ul {
	list-style: none;
	margin: 0;
	/* hide on page load for small screens */
	display: none;
}

nav ul li {
	margin: 0;
}

nav ul li a {
	font-size: 1.2em;
	display: block;
	padding: .2em 10vw;
	text-decoration: none;
	border: 0;
	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: var(--accent-color1);
	color: var(--base-color1);
}

/* current link highlight */

nav ul li.current-menu-item a:link, nav ul li.current-menu-item a:visited, 
nav ul li.current-menu-parent a:link, nav ul li.current-menu-parent a:visited {
	/* color: var(--base-color1); */
	text-decoration: underline;
	text-decoration-color: var(--accent-color1);
}

nav ul li.current-menu-item a:hover, nav ul li.current-menu-item a:active, nav ul li.current-menu-item a:focus, 
nav ul li.current-menu-parent a:hover, nav ul li.current-menu-parent a:active, nav ul li.current-menu-item a:focus {
	background: var(--accent-color1);
	color: var(--base-color1);
	text-decoration-color: var(--base-color1);
}

/*—————————————————————————————————————————————————————————————————
SIDEBAR [aside used here as sidebar / secondary content] 
—————————————————————————————————————————————————————————————————*/

aside {
	margin: 3em 10vw;
}

aside ul {
	font-size: .9em;
	margin: 0 0 1em 0;
	list-style: none;
}

aside ul li {
	margin: 0 0 .3em 0;
}


/* ———————————————————————————— search ———————————————————————————— */

form#searchform{
	display: block;
	margin: 0 0 2em 0;
}

form#searchform	input{
	display: block;
	width: 80%;
	padding: 6px;
	margin: 0 0 4px 0;
	border-radius: 3px;
	background: #fff5f1;
	border: 2px solid #f9dcd8;
	font-size: 1.2em;
	color: #000;
}
form#searchform	input:hover,form#searchform	input:active, form#searchform	input:focus{
	border: 2px solid #D8D8C2;
	background: rgba(255,255,255,1);
}
form#searchform input#searchsubmit{
	display: block;
	width: 80%;
	padding: 6px;
	border: none;
	border-radius: 0;
	background-color: #f9dcd8;
}
form#searchform input#searchsubmit:hover, form#searchform input#searchsubmit:active, form#searchform input#searchsubmit:focus{
	text-decoration: underline 2px;	
	cursor: pointer;
}
.wp-block-search__button{
	background-color: #f9dcd8;
}

/*—————————————————————————————————————————————————————————————————
PAGE CONTENT
—————————————————————————————————————————————————————————————————*/

#content {
	margin: 0 2em;
}

article {
	margin: 0 0 3em 0;
}

img {
	display: block;
	width: 100%;
	height: auto;
	margin: 12px 0;
}
.category article h2:first-of-type {
	margin: 0 0 .36em 0;
}
.category article h2 + p {
	/* color: #999; */
	font-size: .9em;
	line-height: 1.6;
	/*border-top: 1px solid #ccc;*/
}
.category article h2:first-of-type + p:before {
	content: '';
	display: block;
	width: 10em;
	height: 1px;
	/* background: #D8D8C2; */
}
/* post meta */
.postmetadata {
	color: #999;
	font-size: .9em;
	line-height: 2;
	border-top: 1px solid #ccc;
}
.wp-block-separator{
	color: var(--accent-color2);
}

/* ———————————————————————————— post links ———————————————————————————— */
nav.post-navigation {
	padding: 0;
	margin: 0 0 4ch 0;
	border: 0;
}
nav.post-navigation:before {
	content: '';
	display: block;
	margin: 0 auto 4ch auto;
	width: 66%;
	height: 2px;
	background: #D8D8C2;
}


nav.post-navigation h2 {
	text-align: left;
	font-weight: 400;
	font-size: 1.2em;
	/* screenreader text */
	display: none;
}
.nav-links {
    clear: both;
	padding: 16px 0;
	text-align: left;
}	
.nav-links div {
	margin: 0 0 1vw 0;
}
.nav-links div a:link, .nav-links div a:visited {
	display: block;
	text-decoration: none;
	font-size: 1em;
	/*color: #f1f1f1;*/
	padding-right: 2ch;
	border-bottom: 1px solid #D8D8C2;
}
.nav-links div a:hover, .nav-links div a:active, .nav-links div a:link:focus {
	border-bottom-color: #000;
}

.nav-links div a:link strong, .nav-links div a:visited strong {
	display: block;
	font-style: normal;
	/*font-size: .8em;*/
	/*color: rgba(171, 166, 188, 1)!important;*/
}

/* ———————————————————————————— comments section ———————————————————————————— */

section {
	width: 100%;
	margin: 3em 0;
	padding: 3em 0;
	border-top: 1px solid #D8D8C2;
}

/* comment form */
section form#commentform {
	width: 460px;
}

section form#commentform textarea {
	width: 460px;
}

section form#commentform input#submit {
	width: 465px;
	border: none;
	border-bottom: 2px solid #333;
	background: none;
	font-size: 1.2em;
	font-weight: bold;
}


/* comments */
section cite, section cite + span {
	text-align: left;
	font-size: 1.2em;
	display: inline-block;
	color: #999;
}
.commentmetadata {
	color: #999;
	font-size: .9em;
}
section .comment-body {
	padding: 1ch;
	margin: 0 0 2ch 0;
	border-bottom: 1px dashed #D8D8C2;
}
section img.avatar {
	display: block;
	width: 64px;
	height: 64px;
	float: left;
	margin: 0 16px 8px 0;
}
section .comment-body p {
	clear: both;
	margin: 1ch 0;
	font-size: 1.2em;
}

/*—————————————————————————————————————————————————————————————————
FOOTER 
—————————————————————————————————————————————————————————————————*/

footer {
	clear: both;
	border-top: 1px solid #D8D8C2;
	padding: 16px 0;
}

footer ul {
	margin: 0 10vw;
	padding: 0;
}

footer ul li {
	display: inline;
	padding: 0 1ch 0 0;
}


/*—————————————————————————————————————————————————————————————————
MEDIA QUERIES 
—————————————————————————————————————————————————————————————————*/

@media (min-width: 420px) {
	#wrap {
		margin: 0 auto;
	}
	 
}

@media (min-width: 600px) {
	header, nav, footer  {
		display: block;
		width: 100%;
		margin: 0;
		padding: 16px;
		text-align: center;
	}
	header {
		padding: 32px 0 16px 0;
	}
	nav {
		border-top: 1px solid #D8D8C2;
		border-bottom: 1px solid #D8D8C2;
		padding: 0 16px;
	}
	
	
	nav .toggle {
		display: none;
	}
	
	nav ul {
		display: block;
	}
	
	nav ul li {
		display: inline-block;
	}
	
	nav ul li a:link {
		padding: .25ch 1ch;
	}
	/* post links */
	.nav-links {
		clear: both;
		padding: 0 0 16px 0;
		display: -webkit-box;
	    display: -ms-flexbox;
	    display: flex;
	    -ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	}
	.nav-links div {
		width: calc(50% - 2vw);
		margin: 0 16px 0 0;
	}
}

@media (min-width: 900px) {
	/* layout no grid */
	#wrap {
		margin: 0 auto;
	}
	footer {
		clear: both;
	}

	#content {
		width: 60%;
		max-width: 60%;
		float: left;
		padding: 0;
		margin: 0;
	}
	aside {
		width: 40%;
		float: left;
		padding: 0;
		margin: 0;
	}
	article, aside div {
		padding: 24px;
	}
	div > div {
		padding: 0;
	}
	
	
	
	
	/* grid layout 5x5 */
	@supports (display: grid) {
		#wrap {
			display: grid;
			grid-template-columns: repeat(5, 1fr);
			grid-template-rows: auto auto auto auto auto repeat(5, 1fr);
			grid-column-gap: 24px;
			grid-row-gap: 6px;
		}
		
		header {
			grid-area: 1 / 1 / 2 / 6;
		}
		
		nav {
			grid-area: 2 / 1 / 3 / 6;
		}
		
		#content {
			grid-area: 3 / 1 / 5 / 4;

			width: 100%;
			max-width: 100%;			
		}
		/* single post single column */
		.single #content {
			width: 80%;
			margin: 0 auto;
			grid-area: 3 / 1 / 5 / 6;
		}
		aside {
			grid-area: 3 / 4 / 5 / 6;
			width: 100%;
			max-width: 100%;
		} 
		footer {
			grid-area: 5 / 1 / 6 / 6;
		}
	}
	
	
	/* post single column */
	.single #content {
		width: 80%;
		margin: 0 auto;
	}
	
	
	/* general alignments */
	#content h1, #content h2 {
		padding: 16px 24px;
	}
	#content article h2 {
		padding: 0;
	}
	
	
	footer ul {
		text-align: center;
	}
	footer ul li {
		display: inline-block;
		padding: 0;
	}
	footer ul li:after {
		content: ' \00B7 ';
		display: inline-block;
		text-align: center;
		font-size: 1.2em;
		width: 1ch;
		margin: 0 1ch;
	}
	footer ul li:last-child:after {
		display: none;
	}
	footer ul li:last-child a:after {
		content: ' \2191 ';
	}
}