@charset "UTF-8";

/*
Theme Name: Craig Jamieson 2021
Theme URI: https://craigjamieson.com/wp-content/themes/CJ2021
Author: Craig Jamieson
Author URI: ../../../index.bin
Description: The 2021 Craig Jamieson theme for WordPress...
Version: 1.0
Text Domain: CJ2021
Tags: Responsive, Minimal, Blog, CV
*/

/* 1. GENERAL STYLING
-------------------------------------------------------------- */


:root {
  font-size: 100%;
  font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
  --transition-speed: 600ms;
}

:root {
  --background-color: #eee;
  --font-color: #222;
  --border-color: #ddd;
	--form-color: #ddd;
	--form-background-color: #ddd;
}

:root.dark{
  --background-color: #222;
  --font-color: #eee;
  --border-color: #333;
	--form-color: #333;
	--form-background-color: #333;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #222;
    --font-color: #eee;
	--border-color: #333;
	--form-color: #333;
	--form-background-color: #333;
  }

  :root.light {
    --background-color: #eee;
    --font-color: #222;
	--border-color: #ddd;
	--form-color: #ddd;
	--form-background-color: #ddd;
  }
}


html {
	scroll-behavior: smooth;
	font-display: block;
	font-size: calc(1em + 1vw);
	margin: 0;
}

html, 
html a {
  text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
}


html,
body {
  height: 100vh;
}


html {
font-size: 100%; /* the default, so the block can be
removed */
}

main p {
max-width: 48rem;
	padding: 1rem 1.5rem;
}

main h2 {
max-width: 48rem;
	padding: 1.5rem;
}

main .a-z {
max-width: 48rem;
	margin: 0 auto;
	padding: 1.5rem;
}

body {
	line-height: 1.5em;
	font-weight: 300;
	font-style: normal;
	position: relative;
 /* For scrollspy */
 	margin: 0 auto!important;
	padding: 0;
 	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

@media print {
	body > *:not(main) {
		display: none;
	}
}

img, 
object, 
embed, 
video {
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	padding: 0;
	display: block;
	vertical-align: middle;
	text-align: center;
}

img#wpstats {
	display: none;
}

/* 2. HEADER
-------------------------------------------------------------- */

.craig, 
.jamieson {
	font-style: normal;
	text-transform: uppercase;
	text-decoration:none;
}

.craig {
	font-weight: 400;
	
}

.jamieson {
	font-weight: 300;
	
}


.logo {
	display: flex;
	align-items: center;
	padding: 0 1.5rem;
	margin: 0;
	height: 85px;
	font-size: 1.6rem;
	text-decoration: none;
	width: calc(100vw - 4rem);
	flex: 100%;
}

header#top {
	display: flex;
	border-bottom: 1px solid #ddd;
    margin: 0 auto;
	flex-direction: row;
	flex: 1 auto;
}

  header {
	display: flex;
  	flex: 1 100%;
	flex-direction:column;
    position: relative;
    top: 0px;
    padding: 0;
    margin: 0;
    max-width: 100vw;
	  max-height: 100vh;
	  color: var(--text-primary);
  }
  
  /* unvisited link */
header a:link {
  text-decoration: none;
}
/* visited link */
header a:visited {
  text-decoration: none;
}
/* mouse over link */
header a:hover {
  text-decoration: none;
}
/* selected link */
header a:active {
  text-decoration: none;
}

/* 3. NAV
-------------------------------------------------------------- */

nav {
	display: flex;
	flex:1;
	flex-direction:column;
    margin:0;
    width: 100vw;
    position: fixed;
	z-index: 999;
    overflow: hidden;
	bottom: 0;
	background: #303030;
	align-items: center;
	font-size: 0.9rem;
	height: 100px;
	padding:0;
	font-weight: 400;
	border-top: 1px #343434 solid;
  }


nav:hover, 
nav:focus, 
nav:visited, 
nav a {
	text-decoration: none;
}

	nav ul {
    padding:0 1.5rem 0 1.5rem;
    display: flex;
	flex: 100%;
    justify-content: space-around;
    list-style: none;
	width: 100%;
	text-align:center;
	align-items: top;
  }

nav li a {
	margin:0;
	padding: 0 auto;
	display: flex;
	flex: 1;
}



/* 4. CONTENT
-------------------------------------------------------------- */

h1 {
  text-align: center;
  font-size: 8.5vw;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 7.5vw;
  margin: 0;
  padding: 2.5rem 1.5rem 1rem 1.5rem;
  font-style: normal;
  text-transform: uppercase;
  font-weight: 800;
}

h2 {
	font-size: 2.5rem;
	line-height: 3rem;
	text-align: start;
	padding: 1rem;
	margin: 0 auto;
	font-weight: 200;
}

h3 {
	font-size: 4rem;
	font-weight: 200;
	text-align: start;
	line-height: 1rem;
}

h4 {
	font-size: 2.4rem;
	font-weight: 300;
	text-align: center;
	line-height: 3rem;
	text-transform: uppercase;
	margin: 0 auto;
	padding: 2rem 1rem 0 1rem;
}

h5 {
	font-size: 2rem;
	font-weight: 200;
	text-align: start;
	line-height: 1rem;
}

h6 {
	font-size: 2.2rem;
	line-height: 2rem;
	text-align: start;
	padding: 1rem;
	margin: 0 auto;
	font-weight: 200;
}



p {
	font-size: 1.5rem;
	line-height: 2rem;
	text-align: start;
	padding: 0.8rem 1rem;
	margin: 0 auto;
	font-weight: normal;
}

::selection {
	background: #FF4000;
}

strong {
	margin: 0 auto;
	font-weight: 600;
}

em {
	font-style: italic;
	font-weight: 300;
}

blockquote {
  border: none;
  text-align: left;
  margin: 0 auto;
  padding: 0;
  font-size: 1.4rem;
  line-height: 2rem;
  width: 100vw;
}

.wp-block-quote {
	display: flex;
	flex:1;
  border: none;
  
}

.wp-block-quote p {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 2.5rem;
  font-weight: 200;
  font-style: italic;
  line-height: 2.2rem;
	width: 100%;
  max-width: 70rem;
}

.wp-block-code {
	max-width: 48rem;
	font-size: 1.5rem;
	margin: 0 auto;
	text-align: left;
	background: #111;
	color: #eee;
	padding: 3rem; 
}

#content{
	  display: flex;
	  min-height: calc(100vh - 300px);
	  flex-direction: column;
	  align-items: center;
	  justify-content: center;
	}

.posts-wp-prev-next {
  display: flex;
  flex: 1;
  flex-direction: row;
  width: 100vw ;
  padding: 2rem 0;
text-transform: uppercase;
	text-decoration: none;
	
}

.posts-wp-prev-next a {
	text-decoration: none;
	text-transform: uppercase;
	font-weight: 400;
	}


.posts-left {
  justify-content: flex-start;
  flex: 1;
  text-align:left;
  padding: 1rem;
}

.posts-right {
  justify-content: flex-end;
  padding: 1rem;
  flex: 1;
  text-align:right;
}
.posts-middle {
  justify-content: center;
  padding: 1rem;
  flex: none;	
}

.posts {
  padding: 20px;
  margin: 0 50px;
  border-top: 1px solid #ddd;
  width: 100vw;
}

.posts li a {
  display: block;
  text-decoration: none;
  padding: 1rem;
}

.blog {
  text-align: center;
}

.aligncenter {
  text-align: center;
}

.blog img, .blog object, .blog embed {
  display: block;
  margin: 0 auto;
  text-align: center;
}

.blog li {
  margin: 0 auto;
  padding: 2rem 1rem;
  list-style: none;
  font-size: 1.5rem;
  line-height: 2rem;
  text-align: left;
  max-width: 48rem;
  
}
.info {
	padding: 0 1rem 2rem 1rem;
	
}
.info li {
	text-align: center;
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 40rem;
	font-size: 1rem;
  line-height: 1.5rem;
	
}


.craig-photo {
	margin: 0;
	padding-right: 1rem;
}
.craig-photo img{
  border-radius: 50%;
			max-width: 100%;
	border-width: 3px;
	border-style: solid;
}

.twitter-tweet {
	margin: 0 auto;
    padding: 30px 10px 60px 10px;
}

.instagram-media {
    margin: 0 auto!important;
    text-align: center;
}

.last {
  padding: 0;
  margin: 0;
}

.wp-video {
    text-align: center;
	margin: 0;
}

.a-z ul {
	display: flex; 
	list-style: none; 
	justify-content: space-evenly;
	padding: 1rem;
	text-align: center;
	align-self: auto;
	margin: 0;
	flex-flow: row wrap;
}
.a-z li a {
	font-size: 1.6rem; 
	text-decoration: none; 
	padding: 0.5rem;
	
}

.small {
	font-size: 1rem;
	font-weight: 500;
	text-align: center;
	padding: 0 0 2rem 0;
	margin: 0  auto;
}

.widgettitle {
	font-size: 1.8rem;
	line-height: 2.1rem;
}

.wp-block-column {
    margin:0;
	padding: 0;
}

.wp-block-columns {
	max-width: 80rem;
	margin: 0 auto;
	padding: 1.25rem 0;
}

.wp-block-columns p {
	font-size: 1.5rem;
	line-height: 2.5rem;
	text-decoration: none;
}

.wp-block-columns .small {
	font-size: 1rem;
	line-height: 1.5rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 500;
	text-align: left;
	padding: 1.5rem;
	margin: 0;
}

.wp-block-columns a {
	font-size: 2.5rem;
	font-weight: 300;
	text-decoration: none;
	text-transform: uppercase;
}

.wp-block-pullquote {
	font-size: 2.5rem;
	line-height: 1.5rem;
}

.flex-container {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
}

/* GRID

------------------------------------------------------------- */


.thumb {
  border: none;
  overflow: hidden;
}

.thumb li {
  border: none;
  float: left;
  overflow: hidden;
  position: relative;
  width: 16.65%;
  box-sizing: border-box;
  transition: all .3s ease-in-out;
  margin: 0 auto;
  padding: 0;
  display: block;
}

.ie7 .thumb li {
  width: 19.9%;
}

.thumb li a {
  display: block;
}

.thumb img {
  display: block;
  height: auto;
  width: 100%;
  transition: all .3s ease-in-out;
}


@media screen and (min-width: 2001px) {
  .thumb li {
    width: 16.65%;
  }
}

@media screen and (max-width: 2000px) {
  .thumb li {
    width: 20%;
  }
}

@media screen and (max-width: 1500px) {
  .thumb li {
    width: 25%;
  }
}

@media screen and (max-width: 1200px) {
  .thumb li {
    width: 33.333%;
  }
}

@media screen and (max-width: 500px) {
  .thumb li {
    width: 50%;
  }
}

@media screen and (max-width: 250px) {
  .thumb li {
    width: 100%;
  }
}

body .thumb {
  margin: 0!important;
  padding: 0!important;
}


/* 5. LINKS
-------------------------------------------------------------- */

/* unvisited link */
a:link {
	color: #FF4000;
	transition: color 1s ease-in-out;
}
/* visited link */
a:visited {
	color: #FF4000;
}
/* mouse over link */
a:hover {
	color: #FF4000;
}
/* selected link */
a:active {
	color: #FF4000;
}
 
.button a, 
footer a, .posts a {
	text-transform: uppercase;
	text-decoration: none;
	font-weight: 300;
}


nav a {
	text-transform: uppercase;
	text-decoration: none;
	font-weight: 400;
}

/* FORMS 
--------------------------------------------------------------*/

.email {
	max-width: 500px;
	margin: 0 auto;
	padding: 1.5rem;
}

.email title {
	padding: 1rem;
	font-weight: 400;
}

.email-form {
	width: 100%;
	height: 48px;
	border: #333;
	background: var(--form-background-color);
	padding: 10px;
	font-size: 1.25rem;
	margin: 10px 0;
	border-color: var(--form-color);
}

.button {
	width: 100%;
	border-radius: 5px;
	background: #FF4000;
	color: #222;
	font-wieght: 500;
	font-size: 1rem;
	height: 48px;
	aligh-text: center;
	text-transform: uppercase;
	text-decoration: none;
	border: none;
	
}

/* 6. FOOTER
-------------------------------------------------------------- */

footer {
  border-top: 1px solid #ddd;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-direction: column-reverse;
  flex: 1 auto;
  padding: 0 0 120px 0
}

.copyright {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 0 auto;
  align-items: center;
  text-align:left;
  width: 100%;
  flex: 1;
  padding: auto;
}
  
.social-imgs {
  display: flex;
  flex-direction: row;
  justify-content: left;
  margin: 0;
  padding: 0;
  align-items: center;
  text-align:center;
}

.social {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0;
  width: 90%;
  max-width: 420px;
  align-items:center;
}

.social > div {
  flex: 1;
  padding: 10px;
}



.arrow svg {
  display: flex;
  flex-direction: row;
  justify-content: left;
  margin: 0;
  padding: 0;
  align-items: center;
  text-align:center;
}

.arrow {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0;
  width: 90%;
  max-width: 60px;
  align-items:center;
}

.arrow > div {
  flex: 1;
  padding: 10px;
}




svg {
  fill: #FF4000;
}

/* 7. TABLET
-------------------------------------------------------------- */

@media only screen and (min-width: 958px) {
	
	.flex-container {
	flex-wrap: wrap;
}
	
}


/* 8. DESKTOP
-------------------------------------------------------------- */

@media only screen and (min-width: 758px) {
	
	footer {
	display: flex;
	flex-grow: 1;
	flex-direction: row;
  	justify-content: center;
	width: 100%;
	max-height: 100px;
	margin: 0;
	padding: 0;
}
	
	h2 {
	font-size: 4rem;
	line-height: 4.4rem;
	text-align: start;
	padding: 1rem;
	margin: 0 auto;
	font-weight: 200;
}

.copyright {
	display: flex;
    flex-direction: row;
	justify-content: left;
  	align-items: flex-start;
	padding: 1rem 1.5rem;
}
	
	.flex-container {
	flex-wrap: nowrap;
	flex: 1;
}


	
	.social {

  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  margin: 0;
  padding: 0.6rem 1.5rem;
  align-items: center;
  text-align:right;
  max-width:420px;
}
	
	.social > div {
  flex: 1;
}
	

	
	header {
	display: flex;
	flex-grow: 1;	
	width: 100%;
	height: 85px;
	margin: 0;
	padding: 0;
	
}
	
	#content{
  display: flex;
  min-height: calc(100vh - 170px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
	
	.posts {
  padding: 20px;
  margin: 0 50px;
  border-top: 1px solid #ddd;
  width: calc(100vw - 100px);
}
	
	
	.portfolio {
		display: flex;
		flex: 1;
		background: grey;
		width: calc(100vw - 100px);
	}
	
	.portfolio-left {
		flex: 1;
	}
	
	.portfolio-right {
		flex: 1;
	}
	
	
	
	/* FORMS 
--------------------------------------------------------------*/

.email {
	background: pink;
	max-width: 60rem;
}


.email title {
	padding: 1rem;
	font-weight: 400;
	width: 100%;
}

.email-form {
	height: 48px;
	border: #333;
	background: var(--form-background-color);
	padding: 10px;
	font-size: 1.25rem;
	margin: 10px 0;
	border-color: var(--form-color);
	vertical-align: middle;

}

.button {
	width: 10rem;
	border-radius: 5px;
	background: #FF4000;
	color: #222;
	font-wieght: 500;
	font-size: 1rem;
	height: 48px;
	aligh-text: center;
	text-transform: uppercase;
	text-decoration: none;
	border: none;
	
}
	
	
	
	
	.a-z ul {
	display: flex; 
	flex: 100%;
	list-style: none; 
	justify-content: space-evenly;
	padding: 1rem;
	text-align: center;
	align-self: auto;
		flex-wrap: nowrap;
}
.a-z li a {
	font-size: 1.6rem; 
	text-decoration: none;
	padding: 0;
	
}
	
	.wp-block-columns .small {
	padding: 0 1.5rem;
}
	
	
	
	  body {
    padding: 0 50px;
  }
	  .posts-wp-prev-next {
		display: flex;
		flex: 1;
		flex-direction: row;
		width: 100vw ;
		max-width: calc(100vw - 100px);
		padding: 2rem 0;
	  }
	
	.posts-left {
		padding-left: 1.5rem;
	  }
	
	.posts-right {
		padding-right: 1.5rem;
	  }
	nav {
		display: flex;
		flex-direction: row;
		justify-content: flex-end;
		background: none;
		padding-right: 1rem;
		position: relative;
		top: 0;
		align-items: center;
		margin: 0;
  		padding: 0;
		/*width:300px;*/
		height:85px;
		font-size: 1rem;
		color: var(--text-primary);
		border-top: none;
	}	
	
	nav > ul {
		display: flex;
  list-style: none;
		justify-content:flex-end;
}
	
	nav li {
		padding: 1rem;
	}
	
	.logo {
	width: calc(100vw - 35rem);
}
	
	header a, nav ul li a {
		color: var(--text-primary);
	}	

	.home-btn {
		visibility: hidden;
	  }
}

* {
  box-sizing: border-box;
}

.wp-block-column {
	margin:0;
}

body {
    background: var(--background-color);
    color: var(--font-color);
	border-color: var(--border-color);
    
}

h1,h2,h3,h4,h5,h6,.copyright,.info,
p {
  color: var(--font-color);
}

header#top, footer, .posts, .craig-photo img {
  border-color: var(--border-color);
}
.craig-photo img {
  background: #FF4000;
}

.toggle-switch {
    display: block;
}

#toggle-input {
    display: none;
}

.toggle-switch__control {
    width: 40px;
    height: 20px;
    border-radius: 10px;
    position: relative;
    
    background: #FF4000;
    
    cursor: pointer;
    
    margin: 2rem 1.5rem 0 0;
}

.toggle-switch__control::after {
    content: '';
    display: block;
    
    width: 16px;
    height: 16px;
    border-radius: 10px;
    
    position: absolute;
    left: 2px;
    top: 2px;
    
    background: var(--background-color);
    
    transition: left 0.25s;
}

#toggle-input:checked + .toggle-switch__control::after {
    left: 21px;
}



body {
border-top: #FF4000 5px solid;	
}