:root {
  --red: #d84549;
  --darkred: #7F0036;
  --lightgray: #e0e0e0;
  --gray: #C0C0C0;
  --darkgray: #646969;
  --navy: #555;
  --blue: #2693bc;
  --white: #fff;
  --shadow: 2px 2px 8px 2px;
}
* {
  box-sizing: border-box;
}
html,
body {
  padding: 0;
  margin: 0;
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--darkgray);
  background-color: var(--white);
}

h1, h2, h3, h4, .nav {
  font-family: 'Saira Extra Condensed', sans-serif;
  text-transform: uppercase;
}

img {
  max-width: 100%;
}

h1 {
  color: var(--blue);
}

p:last-child {
  margin-bottom: 0;
}
p,
.tmpl-post li {
  max-width: 37.5em; /* 600px /16 */
}
p,
.tmpl-post li {
  line-height: 1.45;
}
.tmpl-post img {
  box-shadow: var(--shadow) var(--gray);
}
.tmpl-post img.portrait-image {
  max-width: 375px;
  margin-right: auto;
  margin-left: auto;
  display: block;
}
a[href] {
  color: var(--darkgray);
  transition: .2s;
}
a[href]:hover {
  color: var(--blue);
}
main {
  padding: 1rem;
}
main :first-child {
  margin-top: 0;
}
header {
  border-bottom: 1px dashed var(--lightgray);
}
header:after {
  content: "";
  display: table;
  clear: both;
}
footer {
  text-align: center;
  font-size: .778em;
  border-top: 1px dashed var(--lightgray);
  padding: 18px;
}
table {
  margin: 1em 0;
}
table td,
table th {
  padding-right: 1em;
}

pre,
code {
  font-family: Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace;
  line-height: 1.5;
  background-color: var(--lightgray);
}
pre {
  font-size: 14px;
  line-height: 1.375;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  -moz-tab-size: 2;
  -o-tab-size: 2;
  tab-size: 2;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
  padding: 1em;
  margin: .5em 0;
  background-color: #f6f6f6;
}
.highlight-line {
  display: block;
  padding: 0.125em 1em;
  text-decoration: none; /* override del, ins, mark defaults */
  color: inherit; /* override del, ins, mark defaults */
}

/* allow highlighting empty lines */
.highlight-line:empty:before {
  content: " ";
}
/* avoid double line breaks when using display: block; */
.highlight-line + br {
  display: none;
}

.highlight-line-isdir {
  color: #b0b0b0;
  background-color: #222;
}
.highlight-line-active {
  background-color: #444;
  background-color: hsla(0, 0%, 27%, .8);
}
.highlight-line-add {
  background-color: #45844b;
}
.highlight-line-remove {
  background-color: #902f2f;
}

/* Header */
.home {
  padding: 0 1rem;
  float: left;
  margin: 1rem 0; /* 16px /16 */
  font-size: 1em; /* 16px /16 */
}
.home :link:not(:hover) {
  text-decoration: none;
}

/* Nav */
.nav {
  padding: 0;
  list-style: none;
  float: left;
  margin-left: 1em;
}
.nav-item {
  display: inline-block;
  margin-right: 1em;
}
.nav-item a[href]:not(:hover) {
  text-decoration: none;
}
.nav-item-active {
  font-weight: 700;
  text-decoration: underline;
}

/* Posts list */
.index-illustration {
  background-color: var(--blue);
  text-align: center;
  border-radius: 4px;
  padding: .8em;
  margin-bottom: 16px;
  font-size: 3em;
  color: white;
  transition: .2s;
  cursor: pointer;
}

.index-illustration:hover {
  box-shadow: var(--shadow) var(--gray);
}

.index-icon {
  opacity: .8;
  transition: inherit;
}

.index-illustration:hover .index-icon {
  transform: scale(1.25);
  opacity: 1;
}
.byline {
  text-transform: none;
  text-align: center;
  margin-top: -27px;
}
.byline a {
  text-decoration: none;
}
.post-title {
  text-align: center;
  line-height: 1.3;
}
.postlist {
  list-style: none;
  padding: 0;
}
.postlist-item {
  vertical-align: top;
}
.postlist-item-link {
  display: block;
}
.postlist-date,
.postlist-item:before {
  font-size: 0.8125em; /* 13px /16 */
  color: var(--darkgray);
}
.postlist-date {
  word-spacing: -0.5px;
}
.postlist-link {
  display: inline-block;
  padding: 0.25em 0.1875em; /* 4px 3px /16 */
}
.postlist-item-active .postlist-link {
  font-weight: bold;
}
.tmpl-home .postlist-link {
  font-size: .875em; /* 19px /16 */
  font-weight: 700;
}

/* Speaking page styles */
.slides {
 margin-top: 16px;
}
.talk-title {
  margin-bottom: 4px;
}

/* Social media links on about page */
.profile-pic {
  float: left;
  width: 7em;
  border-radius: 4px;
  margin: 7px 18px 7px 0;
}
.social {
  padding-left: 0;
}
.social li {
  display: inline-block;
  font-size: 1.5em;
  margin-left: 0;
  margin-right: .5em;
}
.social li a {
  border: 2px solid var(--darkgray);
  border-radius: 4px;
  width: 1.875em;
  height: 1.875em;
  display: block;
  text-align: center;
  line-height: 1.875em;
}
.social li a:hover {
  border-color: var(--blue);
}
/* Tags */
.tag {
  display: inline-block;
  vertical-align: text-top;
  text-transform: uppercase;
  font-size: 0.625em; /* 10px /16 */
  padding: 2px 5px 0 5px;
  margin-right: 0.8em; /* 8px /10 */
  color: var(--darkgray);
  border: 1px solid var(--darkgray);
  border-radius: 0.25em; /* 3px /12 */
  text-decoration: none;
}
a[href].tag,
a[href].tag:visited {
  color: var(--darkgray);
}

/* Warning */
.warning {
  background-color: #ffc;
  padding: 1em 0.625em; /* 16px 10px /16 */
}
.warning ol:only-child {
  margin: 0;
}

/* Direct Links / Markdown Headers */
.direct-link {
  font-family: sans-serif;
  text-decoration: none;
  font-style: normal;
  margin-left: .1em;
}
a[href].direct-link,
a[href].direct-link:visited {
  color: transparent;
}
a[href].direct-link:focus,
a[href].direct-link:focus:visited,
:hover > a[href].direct-link,
:hover > a[href].direct-link:visited {
  color: #aaa;
}

/*Responsive rules*/
@media (min-width: 640px){

header, .home, main {
  font-size: 1.16em;
  }
.postlist-item {
  width: 300px;
  display: inline-block;
  margin-right: 18px;
  margin-bottom: 18px;
}
.byline{
  text-align: left;
}
.post-title{
  text-align: left;
  line-height: 1.6;
}
}

@media (min-width: 768px){

header, main, footer {
  max-width: 724px;
  margin: 0 auto;
}

}

@media (min-width: 1024px){

header, main, footer {
  max-width: 960px;
  margin: 0 auto;
}
.postlist-item {
  width: 280px;
  display: inline-block;
  margin-right: 20px;
}
}

@media (min-width: 1200px){

...

}
