/* ———————————————————————————— 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 */

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

body {
	font-size: 1em;
	line-height: 1.36;
	font-family: 'DM Sans', sans-serif;
	color: #000;
	background: #fff;
}

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 —————————————————————————————————————————————————————————————————*/
:root {
	--colour-one: #3c3940;
	--colour-two: #b5838d;
	--colour-three: #e5989b;
	--colour-four: #ffb4a2;
	--colour-five: #f08080;
}

a, a:link, a:visited {
	color: var(--colour-one);
}

a:hover, a:focus, a:active {
	color: var(--colour-five);
}

input, textarea {
	padding: 2px;
	border: 1px solid #333;
}

.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 var(--colour-one);
}


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: var(--colour-one);
}

del {
	text-decoration: line-through;
	color: var(--colour-one);
}/*—————————————————————————————————————————————————————————————————HEADINGS —————————————————————————————————————————————————————————————————*/

h1, h2, h3, h4, h5, h6 {
	display: block;
	font-family: 'DM Serif Display', serif;
	font-size: 1.4em;
	line-height: 1.6;
	margin: 0 0 .6em 0;
	color: var(--colour-five);
}

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;
}
section h3 {
	color: var(--colour-one);
	font-weight: 400;
	font-style: italic;
}

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;
}

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

header {
	padding: 2em 0;
	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;
	padding: 0;
}

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

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

nav .toggle {
	display: block;
	padding: .2em 10vw;
	font-size: 1.1em;
	font-weight: 400;
	color: #000;
	background: var(--colour-four);
}

nav .toggle:before {
	content: ' \25B2 ';
	font-weight: 600;
	margin: .2em .6em 0 0;
	font-size: .9em;
	line-height: 1;
	color: var(--colour-one);
	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: #666;
	color: #fff;
	cursor: pointer;
}

nav #menu-toggle:checked + .toggle + ul {
	/* display list on toggle checked */
	display: block;
	background-color: var(--colour-four);
	border-top: var(--colour-one) solid 1.5px;
}
/* menu link styling */

nav ul {
	list-style: none;
	margin: 0;
	/* hide on page load for small screens */
	display: none;
	background-color: var(--colour-four);
}

nav ul li {
	margin: 0;
	padding: 5px;
}

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

/* 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: #000;
	text-decoration: underline;
}

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: #D8D8C2;
	color: #000;
}
/*article post nav */
#post-nav a {
	display: block;
	margin-top: 15px;
  }
/*—————————————————————————————————————————————————————————————————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: none;
	border: 2px solid #D8D8C2;
	font-size: 1.2em;
	color: #000;
	background: rgba(255,255,255,.6);
}
form#searchform	input:hover,form#searchform	input:active, form#searchform	input:focus {
	border-color: #333;
	background: rgba(255,255,255,1);
}
form#searchform input#searchsubmit {
	display: block;
	padding: 6px;
	border: none;
	border-radius: 0;
	border-bottom: 2px solid #9A895E;
	color: #9A895E;
}
form#searchform input#searchsubmit:hover, form#searchform input#searchsubmit:active, form#searchform input#searchsubmit:focus {
	color: #000;
	border-color: #333;
	background: #fff;
	cursor: pointer;
}


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

#content {
	margin: 0 10vw;
}

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;
}
/* home */
.home #content {
	background-color: #ffefeb;
	border-radius: 10px;
  }
  .home article {
	border: 2px solid var(--colour-one);
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 0;
  }
  .home article figure {
	margin-top: 30px;
	margin-bottom: 30px;
  }
  .home #content article h2 {
	position: absolute;
	margin-top: 8px;
    font-size: 32px;
  }
.home article h2,
.home article h3,
.home article h4 {
	color: var(--colour-one);
}
/*Category*/
.category main > p {
	margin-bottom: 3em;
  }
.category #content section {
	border-radius: 10px;
	background-color: var(--colour-four);
	padding: 0;
	margin: 0;
  }
  .category #content section div {
	padding: 30px;
	text-align: center;
  }
.category #content section img {
	border-radius: 10px 10px 0 0;
  }
.category #content section a {
	padding: 10px;
	background-color: var(--colour-one);
	width: 100%;
	display: block;
	color: #fff !important;
	border-radius: 5px;
	text-decoration: none;
	text-align: center;
	transition: .8s;
  }
  .category #content section a:hover {
	background-color: var(--colour-five);
	transition: .8s;
	color: #000!important;
  }
  .category #content section h3 {
	font-style: inherit;
	color: #000;
  }
  .category-learning-journal #content section {
	background-color: var(--colour-one);
  }
  .category-learning-journal #content section h3,
  .category-learning-journal #content section p {
	color: #fff;
  }
  .category-learning-journal #content section a {
	background-color: var(--colour-four);
	color: #000 !important;
  }
  .category-learning-journal #content section div {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
  }

/* ———————————————————————————— 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;
}

/* 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;
	margin-top: 3em;
}

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;
	}
	footer {
		margin-top: 3em;
	}
	header {
		padding: 32px 0 16px 0;
	}
	nav {
		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;
	}
	.category #content section {
		width: calc(50% - 25px);
	  }
	.category #content section img {
		height: 450px;
		width: 100%;
		object-fit: cover;
		margin: 0;
	  }
	.category #content main > div {
		display: flex;
		flex-wrap: wrap;
		gap: 25px;
	  }
	
	/* 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%;			
		}
		.category #content {
			grid-area: 3 / 1 / 5 / 6;		
		}
		/* single post single column */
		.single #content {
			width: 80%;
			margin: 0 auto;
			grid-area: 3 / 1 / 5 / 6;
		}
		.single #main {
			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: 100%;
		margin: 0 auto;
	}
	.single #main {
		width: 90%;
		margin: 0 auto;
	  }
	
	/* general alignments */
	#content h1, #content h2 {
		padding: 16px 0;
	}
	#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;
	}
}