:root {
  --foreground: #111;
  --background: #f8f8f8;
  --masthead-colour: #ccc;
  --masthead-background: #111;
  --masthead-link: #fff;
  --masthead-small:orange;
  --masthead-button-colour:#fff;
  --header-background: #eee;
  --header-background-shadow: #ccc;
  --nav-icons:#e2712e;
  --nav-links: #003f4e;
  --nav-icons-hover:#8f4a38;
  --nav-focus: #000;
  --footer-colour: #333;
  --footer-link: #000;
  --code-border: silver;
  --skip-background: #000;
  --skip-bottom-colour: #fff;
  --skip-colour: #eee;
  --h1: #006881;
  --h2: #333;
  --promoh2: #000;
  --h3: #3AB4DC;
  --headerlink: #b74c0d;
  --contentlink: #b74c0d;
  --promolink: #369;
  --blockquote: #666;
  --blockquote-after: #ccc;
  --postmeta: #999;  
  --postmeta-link: #666;  
  --postmeta-small: rgb(102, 102, 102);
  --tweet-background: #003f4e;
  --tweet: #fff;
}

@media (prefers-color-scheme: dark) {

:root {
  --foreground: #ddd;
  --background: #111;
  --masthead-colour: #ccc;
  --masthead-background: #222;
  --masthead-link: #fff;
  --masthead-small:orange;
  --masthead-button-colour:#fff;
  --header-background: #000;
  --header-background-shadow: #000;
  --nav-icons:#e2712e;
  --nav-links: #35b3e3;
  --nav-icons-hover:#fdf058;
  --nav-focus: #fff;
  --footer-colour: #ccc;
  --footer-background: #000;
  --footer-link: #eee;
  --code-border: silver;
  --skip-background: #000;
  --skip-bottom-colour: #fff;
  --skip-colour: #eee;
  --h1: #62a5b5;
  --h2: skyblue;
  --promoh2: #fff;
  --h3: #3AB4DC;
  --headerlink: #a8ce72;
  --contentlink: #58e87b;
  --promolink: #999;
  --blockquote: #999;
  --blockquote-after: #777;
  --postmeta: #999;  
  --postmeta-link: #999;  
  --postmeta-small: rgb(138 136 136);
  --tweet-background: #003f4e;
  --tweet: #fff;
}
}

body {
/*   font-family: "Open Sans", "segoe ui", helvetica, arial, sans-serif; */
 font-family: Avenir, 'Avenir Next LT Pro', Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
	font-size: 24px;
  font-size: calc(1em + 1vw);
  /* ^ this is the bollocks! Thanks @vasilis */
  margin: 0;
  padding: 0;
  min-width: 330px;
	background: var(--background);
	color: var(--foreground);
}
#masthead label {
	color: var(--masthead-colour);
padding-right: 1em;
}
#masthead form {
  display: flex;
  align-items: flex-start;
  flex: 0 1 auto;
  color: var(--masthead-color);
}
#masthead {
  font-size: 60%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background:var(--masthead-background);
  padding: 1vh 1vw;
}
#masthead a {
  color: var(--masthead-link);
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  flex: 0 1 auto;
}
#masthead small {
  color: var(--masthead-small);
}
#masthead button {
  padding: 0 0 0 0;
  margin: 0 0 0 1em;
  border: none;
  background: transparent;
  color: var(--masthead-button-colour);
}
header {
  clear: both;
  display: block;
  background:var(--header-background);
  padding: 0 1vw;
  margin: 0;
  min-height: 150px;
  overflow: auto;
  font-size: 70%;
}
#sitenav img {
  width: 200px;
  display: block;
}
#sitenav {
  font-size: 85%;
  min-height: 120px;
  align-content: center;
  align-items: end;
  overflow: hidden;
  margin: 0;
  padding:0 1em;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  list-style: none;
  gap: 1em;
}
#sitenav li {
  padding: 0 10ps;
  text-align: center;
  display: inline-block;
  display: flex;
  flex: 0 1 auto;
}
#sitenav svg {
  display: block;
  margin: 5px auto;
  color: var(--nav-icons);
}
#sitenav a {
  text-decoration: none;
  color: var(--nav-links);
}
#sitenav a:hover svg, #sitenav a:focus svg {
  transition: 400ms;
  color:var(--nav-icons-hover);
  transform: scale(1.2);
}
#sitenav a:hover, #sitenav a:focus {
  transition: 400ms;
  border-color:var(--nav-focus);
  color:var(--nav-focus);
}
#sitenav li:first-child a {
  transition: 400ms;
}
#sitenav li:first-child a:hover, #sitenav li:first-child a:focus {
  transition: 400ms;
  border-color: transparent;
  color:var(--nav-focus);
  transform: translateY(10px) scale(0.9);
	opacity: 0.8;
}
#sitenav li:first-child {flex: 10;}
#sociallinks {
	padding: .5em 1em;
	position: absolute;
	top: 30px;
	right: 0;
}
#sociallinks a {
	  color: var(--nav-links);
}
#sociallinks ul {
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: flex-end;
	gap: 1em;
}
#sociallinks li {
	margin: 0;
	list-style-type: none;
	padding: 0;
}
#sociallinks a:hover svg, #sociallinks a:focus svg {
  transition: 400ms;
  color:var(--nav-icons-hover);
  transform: scale(1.2);
}

footer {
    clear: both;
    padding: 20px;
    display: block;
    font-size: 50%;
    color:var(--footer-colour);
    background:var(--footer-background);
}
/* footer::before {
    content:'';
	display:block;
	background: url(https://christianheilmann.com/wp-content/uploads/2020/10/ms3tk.png) no-repeat #ccc;
    background-size: contain;
    background-position: 0 0;
    width:100%;
    height:80px;
} */
footer a {
  color: var(--footer-link);
}
section {
  max-width: 45em;
  margin: 0 auto;
  clear: both;
  font-size: 70%;
  display: block;
  padding: 2vh 4vw;
}
h1 {
/*   font-family: "Raleway", helvetica, sans-serif; */
  font-weight: 400;
  color:var(--h1);
  
}
h2 {
/*   font-family: "Raleway", helvetica, sans-serif;  font-weight: normal; */
  color:var(--h2);
	font-weight: 400;
}
h3 {
/*   font-family: "Raleway", helvetica, sans-serif;  font-weight: normal; */
  color: var(--h3);
	font-weight: 400;
}
section h1 a , 
section h2 a, 
section h3 a{
  text-decoration: none;
  color: var(--headerlink);
}

section a {
  color: var(--contentlink);
}
section p, section li {
  line-height: 1.5em;
}
section img {
  margin: 0 auto;
  display: block;
  width: 100%;
  height: auto;
}
section img.small {
  margin: 10px;
  display: block;
  width: 30%;
  float: right;
  height: auto;
}

section img.smaller {
  margin: 10px;
  display: block;
  width: 30%;
  min-width: 250px;
  height: auto;
}
section img.med {
  margin: 10px;
  display: block;
  width: 60%;
  min-width: 250px;
  height: auto;
}
section img.nozoom {
	width: auto;
}

section img.hero, section img.notop {
  max-width: 100%;
}
section li {
  padding-bottom: .5em;
}
section ul li {
  list-style: square;
}
.vignette {
  float: left;
  margin-right: 5px;
  margin-bottom: 10px;
  width: 20%;
}

blockquote {
  clear: both;
  position: relative;
  margin-left: 0;
  padding-left: 40px;
  color: var(--blockquote);
}
blockquote:after {
  content: '”';
  font-size: 400%;
  position: absolute;
  top: -30px;
  left: 0; 
  color: var(--blockquote-after);
}
.archives li {
  display: inline;
  padding-right: 1em;
}
.ads {
  text-align: center;
  clear: both;
  margin: 1em;
  width: calc(100% - 2em);
}
.postmetadata {
  color: var(--postmeta);
  font-size: 90%;
}
.postmetadata a{
  color:var(--postmeta-link);
}
.post small {
  color:var(--postmeta-small);
  font-style: italic;
}

.navigation {
  padding: 1vh 1vw;
  overflow: auto;
  margin: 0;
}
.navigation li {
  width: 50%;
  padding: 0;
  margin: 0;
  list-style: none;
}
.navigation .alignleft {
  float: left;
}
.navigation .alignright {
  float: right;
  text-align: right;
}
.navigation a {
  text-decoration: none;
}
/* ^ previous, next shizzle */


.tweetthis {
  float: right;
  text-align: center;
  margin: 2vh auto;
}
.tweetthis a {
  background:var(--tweet-background);
  text-decoration: none;
  color: var(--tweet);
  display: block;
  padding: 5px 10px;
  line-height: 32px;
  transition: 400ms;
}
.tweetthis svg {
  float: left;
  color: lightgoldenrodyellow;
  margin-right: 10px;
}
.tweetthis a:hover {
  background: #369;
}
/* ^ social media masterplan */

div.wp_syntax {
  width: calc(100% - 20px);
  margin: 5px;
  padding: 5px;
/*   overflow: hidden; */
  border: 1px solid var(--code-border);

  font-size: 0.8em;
}

/* ^ darn code, you */

@media all and (max-width: 766px) {
  header {
    min-height: 0;
    padding: 1vh;
  }
  #sitenav {
    padding: 25px 0 5px 0;
    display: block;
    min-height: 0;
  }
  #sitenav li:first-child {
    order: 0;
  }
  #sitenav img {
    width: 100px;
    margin: -25px 10px 0 0;
  }
  #sitenav li {
    text-align: center;
    padding:0 0 0 5px;
  }
  #sitenav li:first-child {
    padding-top: 0px;
    text-align: center;
  }
  #sitenav li svg {
    display: none;
  }
  section {
    font-size: 90%;
    display: block;
    padding: 2vh 4vw;
  }
}

.skip {
    font-size: 70%;
    color:var(--skip-colour);
    position: absolute;
    top: 6vh;
    left: -50%;
    text-decoration: none;
    padding: 0.5em 1em;
}
figure {
  display: block;
  margin: 0.5em 0;
}
figcaption {
  font-size: 80%;
  display: block;
  padding: .5em 0;
}
.bottom {
  top: auto;
  color: var(--skip-bottom-colour);
  position: relative;
}
.skip:focus {
    left: 0;
    background:var(--skip-background);
    color: var(--skip-colour);
}
.amplink {
  float: right;
}
@media print {
  header {
    display: none;
  }
  a {
    text-decoration: none;
  }
}
@media all and (min-width: 950px) {
	section img {
		max-width: 100%;
	}
}
@media all and (max-width: 600px) {
  section iframe {
    display: none;
  }
  section  .embed-container iframe {
    display: block;
  }
  section img {
	  width: 100%;
  }
}
/* Older videos bork it up, newer ones work */

/*
#carbonads {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
  Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#carbonads {
  display: flex;
  max-width: 330px;
  background-color: hsl(0, 0%, 98%);
  box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, .1);
}

#carbonads a {
  color: inherit;
  text-decoration: none;
}

#carbonads a:hover {
  color: inherit;
}

#carbonads span {
  position: relative;
  display: block;
  overflow: hidden;
}

#carbonads .carbon-wrap {
  display: flex;
}

.carbon-img {
  display: block;
  margin: 0;
  line-height: 1;
}

.carbon-img img {
  display: block;
}

.carbon-text {
  font-size: 13px;
  padding: 10px;
  line-height: 1.5;
  text-align: left;
}
 
.carbon-poweredby {
  display: block;
  padding: 8px 10px;
  background: repeating-linear-gradient(-45deg, transparent, transparent 5px, hsla(0, 0%, 0%, .025) 5px, hsla(0, 0%, 0%, .025) 10px) hsla(203, 11%, 95%, .4);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
  font-size: 9px;
  line-height: 1;
}
.postheader {
	min-height: 125px;
	padding-right: 340px;
	position: relative;
}
 #carbonads {
		position: static;
		margin: 10px auto;
	}
.postheader #carbonads {
	position: absolute;
	top: 0;
	right: 0;
}
@media all and (max-width: 700px) {
	.postheader #carbonads {
		position: static;
		margin: 10px auto;
	}
	.postheader {padding:0};
}
*/
@media all and (min-width: 600px) {
#twocol {
	display: flex;
	flex-wrap: wrap;
	gap: 2em;
}
#maincontent { flex: 5; }
#promo { flex: 3; }
}
#promo {
	clear: both;
}
#twocol #promo {
	border-left: 1px solid var(--foreground);
	padding-left: 1em;
}

#twocol #promo ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
#twocol #promo li {
	list-style: none;
	margin: 0;
	padding: 0;
}
#twocol #promo li a {
	display: block;
	margin: 1em 0;
}
#twocol #promo li img {
	display: block;
	margin: .5em 0 0 0;
}
#promo h2 {
	color:var(--promoh2);
}
#promo a{
	color:var(--promolink);	
}
#twocol #promo a{
	text-decoration: none;	
}
.youtube, .embedtool {position: relative;height: 0;padding-top: 56%;overflow: hidden;max-width: 100%;} .embedtool iframe, .embedtool object, .embedtool embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .embedtool .fluid-vids {position: initial !important}

