/* Reset */
@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap');

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{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
*, *:before, *:after { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }

/* Clearfix */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}
.hidden { display: none; }

/* Icons */
@font-face {
    font-family: 'icons';
        src: url('../fonts/icons.eot');
        src: url('../fonts/icons.eot#iefix') format('embedded-opentype'),
        url('../fonts/icons.woff') format('woff'),
        url('../fonts/icons.ttf') format('truetype'),
        url('../fonts/icons.svg#icons') format('svg');
    font-weight: normal;
    font-style: normal;
}

[class^="icon-"]:before, [class*=" icon-"]:before {
    font-family: "icons";
    font-style: normal;
    font-weight: normal;
    speak: none;
    display: inline-block;
    text-decoration: inherit;
    text-align: center;
    font-variant: normal;
    text-transform: none;
    line-height: 1em;
}
.icon-facebook:before { content: '\e802'; }
.icon-facebook-squared:before { content: '\e800'; }
.icon-twitter:before { content: '\e801'; }
.icon-twitter-1:before { content: '\e804'; }
.icon-facebook-circled:before { content: '\e805'; }
.icon-twitter-circled:before { content: '\e806'; }
.icon-facebook-rect:before { content: '\e803'; }

/* Spacing */
#post-body p,
#post-body ul,
#post-body ol,
#post-body blockquote,
#post-body pre,
#post-body table {
    margin: 0 0 20px;
}

.post h3 {
    margin-top: 15px;
}

/* Base */
html, body { height: 100%; }

:root {
    --surface-off-white: #f7f5f1;
    --surface-content: #fff;
}

body {
    font:17px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #666;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background: var(--surface-content);
}

h1 {
    font-size: 30px;
    letter-spacing: -1px;
    color: #222;
    font-weight: bold;
    font-family: "Courier New", Courier, monospace;
}

h2 {
    font: italic 19px/1.3em "Courier New", Courier, monospace;
    color: #bbb;
}

.profile {
    background: var(--surface-off-white);
}

.profile #wrapper {
    padding: 100px 40px 0px;
    max-width: 700px;
    margin: 0 auto;
    background: transparent;
}

.profile #header {
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
    padding-bottom: 40px;
    text-align: center;
    position: relative;
}

.profile #avatar {
    display: inline-block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.profile h1 {
    font-weight: 400;
    letter-spacing: 0px;
    font-size: 20px;
    color: #222;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.profile h2 {
    font-size: 20px;
    font-weight: 300;
    color: #777;
    margin-top: 10px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-style: normal;
}

nav.main-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, .92);
    z-index: 100;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

nav.main-nav .nav-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 40px 8px;
    display: flex;
    align-items: center;
    text-align: right;
    gap: 6px;
    transition: padding 0.2s ease;
}

nav.main-nav a {
    padding: 8px 12px;
    color: #f5f5f5;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    border-radius: 3px;
    transition: background-color 0.15s ease, padding 0.2s ease, font-size 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

nav.main-nav a.brand {
    margin-right: auto;
    padding: 8px 12px 8px 0;
    color: #ffb865;
    font-family: "Silkscreen", "Courier New", Courier, monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.2;
    transition: padding 0.2s ease, font-size 0.2s ease;
}

nav.main-nav.is-compact {
    background: rgba(0, 0, 0, .96);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
}

nav.main-nav.is-compact .nav-content {
    padding: 10px 40px 4px;
}

nav.main-nav.is-compact a {
    padding: 5px 10px;
    font-size: 12px;
}

nav.main-nav.is-compact a.brand {
    padding: 5px 10px 5px 0;
    font-size: 13px;
}
nav.main-nav a.cta {
    background: #5badf0;
    color: #fff;
    margin-left: 12px;
}

#wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 40px 100px 40px;
  background: var(--surface-content);
}

#wrapper.home {
    max-width: 700px;
    margin: 0 auto;
    padding: 0px 40px 20px 40px;
}

.home #avatar {
    float: right;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.home #wrapper p,
.home #wrapper ul {
    margin: 0 0 22px;
    line-height: 1.7;
}

.home #wrapper ul {
    padding-left: 22px;
    list-style-position: outside;
}

.home #wrapper li {
    margin-bottom: 6px;
}

.home #wrapper img.center {
    margin-bottom: 18px;
}

.about-content {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
}

.about-content p,
.about-content ul {
    margin: 0 0 20px;
}

.about-content ul {
    padding-left: 20px;
    list-style-position: outside;
    margin-bottom: 10px;
}

/* Tighter gap when a heading follows a list */
.about-content ul + h2 {
    margin-top: 14px;
}

.about-content li {
    margin-bottom: 6px;
}

.about-content em,
.about-content i {
    color: #f28c28;
    font-style: normal;
    font-weight: bold;
}

.about-content img.center {
    margin: 10px auto 24px;
}

/* Typography */
/*Accent color*/
a,
#title,
#post-list a:hover,
#post-list li:hover .dates,
#title:hover {
    text-decoration: none;
    color: #5badf0;
    color: #5694f1;
}

p a {
    color: #5694f1;
    text-decoration: none;
}

/*Transitions*/
a,
#post-nav a,
#post-list a    {
    -webkit-transition: all 0.15s ease;
    -moz-transition: all 0.15s ease;
    -ms-transition: all 0.15s ease;
    -o-transition: all 0.15s ease;
    transition: all 0.15s ease;
}

ul, ol {
    margin: 0;
    padding: 0 0 20px 0;
}

li {
    padding: 0 0 10px 0;
    list-style-position:inside;
}

ul li {
    list-style-type:circle;
}

/* Line Height */
#post-body, p { line-height:1.6; }

b, strong { font-weight: 500;
  color: #1E2025; }
em, i { font-style: italic; }

#title {
    display: inline-block;
    line-height: 100%;
    font-weight: 500;
    font-size: 19px;
    margin: 0;
    padding-bottom: 20px;
}

.description {
    float: right;
    font: italic 14px/1.4em Georgia,serif;
    color: #aaa;
}



.home h1 {
    font-size: 30px;
    letter-spacing: -1px;
    color: #222;
    font-weight: bold;
}

.home h2 {
    font: italic 19px/1.3em Georgia,serif;
    color: #bbb;
}

.post header {
    text-align:center;

}

.post .post-header-image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 430px;
    object-fit: cover;
    margin: 0 auto 30px;
    border-radius: 8px;
}

.post #post-body {
    max-width: 68ch;
    margin: 0 auto;
}

.post h1, h1.post-list {
    margin-bottom: 18px;
    color: #222;
    font: 300 30px/1.3em "Helvetica Neue", Helvetica,Arial,sans-serif;
}

.post h2 {
    margin: 28px 0 8px 0;
    font: 300 22px/1.4 Helvetica, Arial, sans-serif;
    color: #111;
}


.post h2.headline {
    /*font: italic 22px/1.3em Georgia,serif;*/
    font: normal 13px/1.5em "Helvetica Neue",Helvetica,Arial,sans-serif;
    margin: -5px 0 16px 0;
    color: #b2b9be;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 2px;
      /*margin-top: 15px;*/
      display: inline-block;
}

#post-list h2 {
    font: normal 17px/1.5em "Helvetica Neue",Helvetica,Arial,sans-serif;
    color: #aaa;
    max-width: 400px;
    margin-top: 2px;
}

h3, h4, h5 { color:#333; }

h3 { font-size:20px; font-weight: 400; }
h4 { font-size:16px; font-weight:bold; }
h5 { font-size:15px; font-weight: bold; }

h6 {
    font-size: 13px;
    font-weight: bold;
    color: #666;
    margin-bottom: 6px;
}

p.small {
    color: #bbb;
    font-size: 14px;
    line-height: 1.5;
    display: block;
}

blockquote {
    padding-left: 18px;
    border-left: 3px solid #eee;
    color: #555;
}

hr {
    display: block;
    border: none;
    height: 1px;
    margin: 40px auto;
    background: #eee;
}

span.code { font-family:Menlo, Monaco, Courier; background-color:#EEE; font-size:14px; }

pre {
    font-family:Menlo, Monaco, Courier;
    white-space:pre-wrap;
    /*border: 1px solid #ddd;*/
    padding:20px;
    background-color:#fdfdfd;
    /*font-size:14px;*/
    overflow:auto;
    border-radius: 3px;
    background: #272b2d;
      font-family: 'Source Code Pro',Menlo,monospace;
      font-size: 13px;
      line-height: 1.5em;
      font-weight: 500;
    color: #d0d4d7;

}

table {
    width: 100%;
    margin: 40px 0;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.5em;
}

th,td {
    text-align: left;
    padding-right: 20px;
    vertical-align: top;
}

table td,td {
    border-spacing: none;
    border-style: solid;
    padding: 10px 15px;
    border-width: 1px 0 0 0;
}

tr>td {
    border-top: 1px solid #eaeaea;
}

tr:nth-child(odd)>td {
    background: #fcfcfc;
}

thead th,th {
    text-align: left;
    padding: 10px 15px;
    height: 20px;
    font-size: 13px;
    font-weight: bold;
    color: #444;
    border-bottom: 1px solid #dadadc;
    cursor: default;
    white-space: nowrap;
}

img {
    /*
    width: 100%;
    */
    max-width: 100%;
    border-radius: 3px;
}

/* Made with Cactus Badge */
#badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    height: 48px;
    width: 48px;
}

/*=========================================
Post List
=========================================== */
#post-list,#archive-list {
    margin-top: 100px;
}

#post-list li,#archive-list li {
    list-style-type: none;
}

#post-list li:last-child {
    margin-bottom: 0;
}

#post-list li+li {
    padding-top: 18px;
    border-top: 1px solid #eee;
}

#post-list a {
    color: #333;
    display: block;
    font: bold 18px/1.65 "Helvetica Neue",helvetica,Arial,sans-serif;
}

#post-list .dates {
    float: right;
    position: relative;
    top: 1px;
    font: 300 16px/1.7 "Helvetica Neue",helvetica,Arial,sans-serif;
    color: #bbb;
}

#post-list-footer {
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding-top: 100px;
}

#archive-link {
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
    padding: 3px 10px 6px;
    box-shadow: 0 0 0 1px hsla(207,83%,80%,1);
}

#archive-link:hover {
    background: #5694f1;
    color: #fff;
    box-shadow: 0 0 0 1px #5694f1;
}

#archive-link span {
    position: relative;
    top: 0;
    font-size: 17px;
}

#footer {
    box-shadow: inset 0 1px 0 #eee;
    padding: 40px 0 0 0;
    margin-top: 100px;
}

/* Post Page */
#header {
    border-bottom: 1px solid #eee;
}

.post {
    margin: 80px 0 0 0;
}

#post-meta {
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    border-top: 1px solid #eee;
    padding-top: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    margin-top: 40px;
    color:#444;
    border-bottom: 1px solid #eee;
}

#post-meta div span {
    color: #aaa;
    font-weight: 500;
    display: block;
}

#post-meta div span.dark {
    color: #1E2025;

}

#post-meta div {
    margin: 0 25px 0 0;
    float: left;
}

#sharing {
    float: right;
    margin: -2px;
}

#sharing a {
    font-size: 20px;
    font-size: 23px;
    margin-left: 1px;
    margin-top: 4px;
    color: #d4d4d4;
    display: inline-block;
    vertical-align: middle;
}

#sharing a:hover {
    /*color: #444;*/
    opacity: 0.8;
}

/* Post Navigation */
#post-nav {
    border-top:1px solid #eee;
    text-align:center;
    padding-top:20px;
    font-size:13px;
    font-weight:500;
    margin-top: 40px;
}

#post-nav span {
    -webkit-transition: all 0.1s linear;
    -moz-transition: all 0.1s linear;
    -ms-transition: all 0.1s linear;
    -o-transition: all 0.1s linear;
    transition: all 0.1s linear;
    position: relative;
}

#post-nav span.prev {
    float: left;
}

#post-nav span.next {
    float: right;
}

#post-nav span .arrow {
    position: relative;
    padding: 1px;
}

#post-nav span.prev:hover .arrow {
    left: -4px;
}

#post-nav span.next:hover .arrow {
    right: -4px;
}

#post-nav span.prev:hover {
    left: -3px;
}

#post-nav span.next:hover {
    right: -3px;
}

/* Archive */
h1.archive {
    margin-bottom: 0px;
}

h2.month {
    width: 100%;
    font: bold 13px/1 "Helvetica Neue",helvetica,Arial,sans-serif;
    text-transform: uppercase;
    margin-top: 40px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

#archive-list li:last-child {
    margin-bottom: 0;
}

#archive-list a {
    display: block;
    font: bold 17px/1.7 "Helvetica Neue",helvetica,Arial,sans-serif;
    color: #333;
}

#archive-list .dates {
    float: right;
    position: relative;
    top: 1px;
    font: 300 17px/1.7 "Helvetica Neue",helvetica,Arial,sans-serif;
    color: #bbb;
}

#archive-list li a:hover,#archive-list li:hover .dates {
    color: #5694f1;
}

#post-meta img.avatar {
  height: 36px;
  width: 36px;
  float: left;
  border-radius: 50%;
  margin-top: 3px;
  margin-right: 20px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px #eee;
}

#post-list.archive.readmore h3{

      font: 400 20px "Helvetica Neue", Helvetica,Arial,sans-serif;
      margin-bottom: 30px;
}

#post-list.archive.readmore a{
    font: 400 16px/1.6 "Helvetica Neue",helvetica,Arial,sans-serif;
    color: #5694f1;
}

#post-list.archive.readmore a:hover{
    opacity: 0.8;
}

#post-list.archive.readmore .dates{
    font: 300 16px/1.6 "Helvetica Neue",helvetica,Arial,sans-serif;
}
#sharing a.facebook {
  background: #4361b3;
}
#sharing a.twitter {
  background: #4fafed;
}

#sharing a {
  font-size: 20px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  margin-left: 2px;
}

/* Media Queries */
@media screen and (max-width: 540px) {
    nav.main-nav .nav-content {
        padding: 10px 20px 4px;
        gap: 3px;
    }

    nav.main-nav a {
        padding: 6px 8px;
        font-size: 12px;
    }

    nav.main-nav a.brand {
        padding: 6px 6px 6px 0;
        font-size: 13px;
    }

    nav.main-nav.is-compact .nav-content {
        padding: 6px 20px 2px;
    }

    nav.main-nav.is-compact a {
        padding: 4px 7px;
        font-size: 11px;
    }

    nav.main-nav.is-compact a.brand {
        padding: 4px 6px 4px 0;
        font-size: 11px;
    }

    #wrapper { padding:20px 20px 20px 20px;}
    #header { margin-bottom: 60px; border-bottom: 1px solid #eee; }
    .post { margin: 40px 0; }
    #footer { margin-top: 60px; }

    #post-list, #archive-list { margin-top: 0; }
    #post-meta { margin-top: 60px; }

    #title { font-size: 17px; }
    #post-list .dates { display: none; }

    #post-list-footer { margin-top: 20px; padding-top: 40px; }

    h1 { font-size: 26px; }
    .post h2.headline { font-size: 13px; }
    .post h1 { font-size:24px; }
    .post h2 { font-size:20px; }
    .post .post-header-image { max-height: 280px; margin-bottom: 22px; }
}

/* petegraham.co.uk custom styles */
img.center {
    display:block;
    margin-left:auto;
    margin-right:auto;
    padding-bottom: 5px;
}

p > code {
    padding: 0px 5px 2px;
    border: 1px solid #DDD;
    border-radius: 3px;
    background-clip: padding-box;
    font-family: Monaco,"DejaVu Sans Mono","Courier New",monospace;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
}
