@charset "utf-8";

/* Our variables */
:root {
  --base-font-family: Charter, Georgia, Helvetica, Arial, sans-serif;
  --base-font-size: 14px;
  --small-font-size: 12px;
  --base-line-height: 1.7;
  --spacing-unit: 30px;
  --text-color: #111;
  --background-color: #fdfdfd;
  --brand-color: #2a7ae2;
  --grey-color: #828282;
  --grey-color-light: #d3d3d3;
  --grey-color-dark: #424242;
  --on-mobile: 500px;
  --on-laptop: 800px;
}

/* Reset some basic elements */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
hr,
dl,
dd,
ol,
ul,
figure {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Basic styling */
body {
  font-family: var(--base-font-family);
  font-size: var(--base-font-size);
  line-height: var(--base-line-height);
  font-weight: 300;
  color: var(--text-color);
  background-color: var(--background-color);
  -webkit-text-size-adjust: 100%;
}

/* Set margin-bottom to maintain vertical rhythm */
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
ul,
ol,
dl,
figure {
  margin-bottom: calc(var(--spacing-unit) / 2);
}

/* Images */
img {
  max-width: 100%;
  vertical-align: middle;
}

/* Figures */
figure > img {
  display: block;
}

figcaption {
  font-size: var(--small-font-size);
}

/* Lists */
ul,
ol {
  margin-left: var(--spacing-unit);
}

li > ul,
li > ol {
  margin-bottom: 0;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 300;
}

/* Links */
a {
  color: var(--brand-color);
  text-decoration: none;
}

a:visited {
  color: #1e5aa0;
}

a:hover {
  color: var(--text-color);
  text-decoration: underline;
}

/* Blockquotes */
blockquote {
  color: var(--grey-color);
  border-left: 4px solid var(--grey-color-light);
  padding-left: calc(var(--spacing-unit) / 2);
  font-size: 18px;
  letter-spacing: -1px;
  font-style: italic;
}

blockquote > :last-child {
  margin-bottom: 0;
}

/* Code formatting */
pre,
code {
  font-size: 15px;
  border: 1px solid var(--grey-color-light);
  border-radius: 3px;
  background-color: #eef;
}

code {
  padding: 1px 5px;
}

pre {
  padding: 8px 12px;
  overflow-x: auto;
}

pre > code {
  border: 0;
  padding-right: 0;
  padding-left: 0;
}

/* Wrapper */
.wrapper {
  max-width: calc(1000px - (var(--spacing-unit) * 2));
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--spacing-unit);
  padding-left: var(--spacing-unit);
  position: relative;
}

.wrapper:after {
  content: "";
  display: table;
  clear: both;
}

@media screen and (max-width: 800px) {
  .wrapper {
    max-width: calc(800px - var(--spacing-unit));
    padding-right: calc(var(--spacing-unit) / 2);
    padding-left: calc(var(--spacing-unit) / 2);
  }
}

/* Site header */
.site-header {
  border-top: 5px solid var(--grey-color-dark);
  border-bottom: 1px solid var(--grey-color-light);
  min-height: 56px;
  position: relative;
}

.site-title {
  font-size: 26px;
  line-height: 56px;
  letter-spacing: -1px;
  margin-bottom: 0;
  float: left;
  color: var(--grey-color-dark);
}

.site-title:visited {
  color: var(--grey-color-dark);
}

.site-nav {
  float: right;
  line-height: 56px;
}

.site-nav .menu-icon {
  display: none;
}

.site-nav .page-link {
  color: var(--text-color);
  line-height: var(--base-line-height);
}

.site-nav .page-link:not(:first-child) {
  margin-left: 20px;
}

@media screen and (max-width: 500px) {
  .site-nav {
    position: absolute;
    top: 9px;
    right: 30px;
    background-color: var(--background-color);
    border: 1px solid var(--grey-color-light);
    border-radius: 5px;
    text-align: right;
  }

  .site-nav .menu-icon {
    display: block;
    float: right;
    width: 36px;
    height: 26px;
    line-height: 0;
    padding-top: 10px;
    text-align: center;
  }

  .site-nav .menu-icon > svg {
    width: 18px;
    height: 15px;
  }

  .site-nav .menu-icon path {
    fill: var(--grey-color-dark);
  }

  .site-nav .trigger {
    clear: both;
    display: none;
  }

  .site-nav:hover .trigger {
    display: block;
    padding-bottom: 5px;
  }

  .site-nav .page-link {
    display: block;
    padding: 5px 10px;
  }
}

/* Site footer */
.site-footer {
  border-top: 1px solid var(--grey-color-light);
  padding: var(--spacing-unit) 0;
}

.footer-heading {
  font-size: 18px;
  margin-bottom: calc(var(--spacing-unit) / 2);
}

.contact-list,
.social-media-list {
  list-style: none;
  margin-left: 0;
}

.footer-col-wrapper {
  font-size: 15px;
  color: var(--grey-color);
  margin-left: calc(var(--spacing-unit) / -2);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-col-wrapper:after {
  content: "";
  display: table;
  clear: both;
}

.footer-col {
  float: left;
  margin-bottom: calc(var(--spacing-unit) / 2);
  padding-left: calc(var(--spacing-unit) / 2);
}

.footer-col-1,
.footer-col-2 {
  width: calc(50% - (var(--spacing-unit) / 2));
}

.footer-col-3 {
  width: calc(100% - (var(--spacing-unit) / 2));
}

@media screen and (max-width: 500px) {
  .footer-col {
    float: none;
    width: calc(100% - (var(--spacing-unit) / 2));
  }
}

/* Page content */
.page-content {
  padding: var(--spacing-unit) 0;
}

.page-heading {
  font-size: 20px;
}

.post-list {
  margin-left: 0;
  list-style: none;
}

.post-list > li {
  margin-bottom: var(--spacing-unit);
}

.post-meta {
  font-size: var(--small-font-size);
  color: var(--grey-color);
}

.post-link {
  display: block;
  font-size: 24px;
}

/* Profile picture */
.profile-pic {
  float: right;
  width: 202px;
  border: #ccc 1px solid;
  margin-left: 20px;
}

@media screen and (max-width: 500px) {
  .profile-pic {
    float: none;
    margin-bottom: 20px;
    margin-left: 0px;
  }
}

.footer-col {
  font-size: 12px;
}

.footer-col h4 {
  margin-bottom: 0;
  margin-top: 0;
  line-height: 30px;
}

.footer-col .social-links {
  display: flex;
  flex-wrap: wrap;
}

.footer-col .social-link {
  display: flex;
  width: 100%;
  align-items: flex-start;
  line-height: 16px;
  margin-top: 6.5px;
  margin-bottom: 10px;
}

.footer-col .social-link img {
  width: 16px;
  height: 16px;
}

.footer-col .social-link a {
  margin-left: 6px;
  word-break: break-all;
}

@media screen and (max-width: 500px) {
  .footer-col .social-links {
    font-size: 14px;
    line-height: 38px;
  }
}

.follow-links > .social-link {
  flex: 0 50%;
}

.powered-by {
  font-size: 13px !important;
  color: var(--grey-color);
}

/* Posts */
.post-header {
  margin-bottom: var(--spacing-unit);
}

.post-title {
  font-size: 42px;
  letter-spacing: -1px;
  line-height: 1;
}

@media screen and (max-width: 800px) {
  .post-title {
    font-size: 36px;
  }
}

.post-content {
  margin-bottom: var(--spacing-unit);
}

.post-content h2 {
  font-size: 32px;
}

@media screen and (max-width: 800px) {
  .post-content h2 {
    font-size: 28px;
  }
}

.post-content h3 {
  font-size: 26px;
}

@media screen and (max-width: 800px) {
  .post-content h3 {
    font-size: 22px;
  }
}

.post-content h4 {
  font-size: 20px;
}

@media screen and (max-width: 800px) {
  .post-content h4 {
    font-size: 18px;
  }
}

/* Work list */
.work-list {
  margin-left: 0;
  list-style: none;
}

.work-list > li {
  margin-bottom: var(--spacing-unit);
}

.work-link {
  display: block;
  font-size: 24px;
}

/* 404 page */
.not-found {
  text-align: center;
  padding: calc(var(--spacing-unit) * 2) 0;
}

.not-found h1 {
  font-size: 72px;
  margin-bottom: calc(var(--spacing-unit) / 2);
}

.not-found p {
  font-size: 18px;
  color: var(--grey-color);
}

/* Icons */
.icon > svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.icon path {
  fill: var(--grey-color);
} 