
/*
 * Body resets
 *
 * Update the foundational and global aspects of the page.
 */

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
}

html {
	font-family: "Avenir", sans-serif;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 400;
}

@media (min-width: 48em) {
	html {
		font-size: 17px;
	}
}

@media (min-width: 88em) {
	html {
		font-size: 20px;
	}
}

body {
	color: #414141;
	background-color: #f6f6f6;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

/* No `:visited` state is required by default (browsers will use `a`) */

a {
	color: #0e8ee8;
	text-decoration: none;
}

a strong {
	color: inherit;
}
/* `:focus` is linked to `:hover` for basic accessibility */

a:hover, a:focus {
	text-decoration: underline;
}

/* Headings */

h1, h2, h3, h4, h5, h6 {
	font-family: "Avenir Next", sans-serif;
	margin-bottom: .5rem;
	font-weight: 500;
	line-height: 1.25;
	color: #000;
	text-rendering: optimizeLegibility;
}

h1 {
	font-size: 2.4rem;
	font-weight: 600;
  letter-spacing: -0.05rem;
}

h2 {
	margin-top: 3rem;
	font-size: 1.8rem;
}

h3 {
	margin-top: 2rem;
	font-size: 1.5rem;
}

h4 {
	margin-top: 1.5rem;
	font-size: 1.2rem;
}

h5, h6 {
	margin-top: 1rem;
	font-size: 1rem;
}

/* Body text */

p {
	margin-top: 0;
	margin-bottom: 1rem;
}

em {
	font-weight: 500;
}

strong {
	font-weight: 600;
}


/* Lists */

ul, ol, dl {
	margin-top: 0;
	margin-bottom: 1rem;
}

dt {
	font-weight: 400;
}

dd {
	margin-bottom: .5rem;
}

/* Misc */

hr {
	position: relative;
	border: 0;
	border-top: 1px dotted #d5d5d5;
}

abbr {
	font-variant-caps: small-caps;
	-moz-font-feature-settings: "smcp";
	-webkit-font-feature-settings: "smcp";
	font-feature-settings: "smcp";
	font-weight: 400;
	color: #555;
	text-transform: uppercase;
}

abbr[title] {
	cursor: help;
	border-bottom: 1px dotted #e5e5e5;
}

/* Code */

code, pre {
	font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace;
}

code {
	padding: .25em .05em;
	font-size: 80%;
	color: #000;
	background-color: #eee;
	border-radius: 3px;
}

pre {
	display: block;
	margin-top: 0;
	margin-bottom: 1rem;
	padding: 0;
	font-size: .8rem;
	white-space: pre;
	background-color: #f9f9f9;
	overflow-x: scroll;
}

pre code {
	padding: 0;
	font-size: 100%;
	color: inherit;
	background-color: transparent;
	tab-size: 2;
}

/* Gist via GitHub Pages */

.gist .gist-file {
	font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace !important;
}

.gist .markdown-body {
	padding: 15px;
}

.gist pre {
	padding: 0;
	background-color: transparent;
}

.gist .gist-file .gist-data {
	font-size: .8rem !important;
	line-height: 1.4;
}

.gist code {
	padding: 0;
	color: inherit;
	background-color: transparent;
	border-radius: 0;
}

/* Quotes */

blockquote {
	padding: 0 0 0 2rem;
	margin: .8rem 0 .8rem 1.5rem;
	color: #789;
	border-left: 3px dotted #789;
}

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

@media (min-width: 30em) {
	blockquote {
		padding-right: 5rem;
		padding-left: 1.25rem;
	}
}

img {
	display: block;
	max-width: 100%;
	margin: 0 0 1rem;
}

.twobytwo img {	
	display: inline;
	max-width: 49%;
}

/* Tables */

table {
	margin-bottom: 1rem;
	width: 100%;
	border: 1px solid #e5e5e5;
	border-collapse: collapse;
}

td, th {
	padding: .25rem .5rem;
	border: 1px solid #e5e5e5;
}

tbody tr:nth-child(odd) td, tbody tr:nth-child(odd) th {
	background-color: #f9f9f9;
}



/*  BASE LAYOUT  */

.content {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.content, footer {
	margin-left: 1rem;
	margin-right: 1rem;
}

.sitenav {
	margin: 0;
	padding-left: 1rem;
}

.content pre, .content figure {
	margin-left: -1rem;
	margin-right: -1rem;
}

.content pre {
	margin-top: 1.2rem;
	margin-bottom: 1.2rem;
	padding-top: 1em;
	padding-bottom: 1em;
	background: #fff;
}

.content pre code {
	padding-left: 1rem;
}

.content figure {
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}


@media (min-width: 48em) {
	.content, footer {
		margin-left: 3rem;
		margin-right: 3rem;
	}
	
	.sitenav {
		padding-left: 3rem;
	}
	
	.content pre, .content figure {
		margin-left: -3rem;
		margin-right: -3rem;
	}
	
	.content pre code {
		padding-left: 3rem;
	}
	
	.content p, .content blockquote, .content ul, .content ol, footer p {
		max-width: 35rem;
	}
	
	.content p.post-title, .content p.post-metadata {
		margin-left: 8rem;
		max-width: 27rem;
	}
	
	.content hr {
		max-width: 30em;
	}
	
	.content figure {
		margin-top: 2.5rem;
		margin-bottom: 2.5rem;
	}
}


@media (min-width: 88em) {
	.content, footer {
		margin-left: 6rem;
		margin-right: 6rem;
	}
	
	.sitenav {
		padding-left: 6rem;
	}

	.content pre, .content figure {
		margin-left: -6rem;
		margin-right: -6rem;
	}
	
	.content pre code {
		padding-left: 6rem;
	}
	
	.content hr {
		max-width: 38em;
	}

	.content figure {
		margin-top: 4rem;
		margin-bottom: 4rem;
	}
	
	.content p, .content blockquote, .content ul, .content ol, footer p {
		max-width: 42rem;
	}

	.content p.post-subtitle, .content p.post-metadata {
		margin-left: 8rem;
		max-width: 34rem;
	}	
}




/* POST content */

.content hr {
	margin: 1.5rem 2rem;
}

.post sup {
	line-height: 1;
}

.post p, .post li {
	line-height: 1.5;
}

.post-metadata, .post-categories, figure, .post-tags {
	font-size: 80%;
}

.post-metadata {
	margin-top: 0;
	color: #000;
	margin-bottom: 2em;
}

.post-categories {
	text-align: left;
}

.post-categories + .post-title {
	margin-top: 0;
	line-height: 1;
}

.post-subtitle {
	font-family: "Avenir Next", sans-serif;
	font-weight: 400;
  color: #789;
	line-height: 1.2;
  margin-left: 2rem;
}

.post-date {
	color: #333;
}

.post-author {
	color: #789;
}

.post-tags {
	color: #999;
	font-weight: 300;
}

.post-readtime::before {
	content: "·";
	margin-left: .5em;
	margin-right: .5em;
}

.content figure {
	background: #fff;
}

.content figure p {
	color: #abc;
	max-width: 100%;
	text-align: right;
	margin: -.5em 0 0;
	padding: .2em 2em .5em 0.1em;
	border-top: 1px dotted #abc;
	float: right;
}

.content figure::after {
	content: "";
	display: block;
	clear: both;
}

a.label:hover, a.label:focus {
	text-decoration: none;
	cursor: pointer;
}

.label:empty {
	display: none;
}

.label + .label {
	margin-left: .5em;
}

.label + .label::before {
	content: "·";
	margin-right: .5em;
}

.footnotes {
	font-size: 80%;
	color: #717171;
	margin-top: 2.4em;
}

.post-tags a {
	color: inherit;
}

.archive::after {
	content: "";
	display: block;
	clear: both;
}

.archive {
	margin-top: 2em;
	margin-bottom: 2em;
}

.archive h2 {
	line-height: 1;
	float: left;
	min-width: 3rem;
	margin: .1em 0 0;
}

.archive h4, .archive p {
  margin: 0.3rem;
	margin-left: 5rem;
	padding-left: 0;
}

.archive .post-tags {
  margin: 0;
	margin-left: 6rem;
}

.archive time {
	text-transform: lowercase;
	font-variant-caps: small-caps;
	-moz-font-feature-settings: "smcp";
	-webkit-font-feature-settings: "smcp";
	font-feature-settings: "smcp";
	font-weight: 400;
	font-size: 0.8rem;
}

.archive .prefix {
	text-transform: lowercase;
	font-variant-caps: small-caps;
	-moz-font-feature-settings: "smcp";
	-webkit-font-feature-settings: "smcp";
	font-feature-settings: "smcp";
	display: inline-block;
	min-width: 5rem;
	text-align: right;
	color: #bbb;
}

.archive-subtitle {
	margin: 0;
	padding: 0;
	font-size: 0.9rem;
	line-height: 1.2;
	color: #666;
}


/* HOME */

.home section {
	margin: 0;
	padding: 1rem;
}

.me {
}

.community {
	background: #fafafa;
}

.speaking {
}

.section h2 {
	margin-top: 0;
}

.latest-posts {
	background: #fff;
}

.home .post-metadata {
	text-align: left;
	margin: 0;
	padding: 0;
}

.home .post-subtitle {
	margin-left: 2rem;
  margin-bottom: 0.3rem;
}

.home .post-metadata + .post-title {
	margin-top: 0.4em;
	line-height: 1;
}

.home .post-date {
	color: #999;
}

.home .post-title {
	color: #333;
  font-size: 1rem;
  font-weight: 700;
}

.readmore {
	border-radius: 1em;
	border: 1px solid #0e8ee8;
	text-decoration: none;
	font-variant-caps: small-caps;
	-moz-font-feature-settings: "smcp";
	-webkit-font-feature-settings: "smcp";
	font-feature-settings: "smcp";
	text-transform: uppercase;
	font-weight: 600;
	padding: .2em 1em .1em;
	font-size: 0.8rem;
	margin-left: 2rem;
}

.readmore:hover {
	text-decoration: none;
	color: #fff;
	background: #0e8ee8;
}

.home .posts .post {
	margin-bottom: 2em;
}

.home .post .post-date::after {
	content: "·";
	margin-left: .5em;
	margin-right: .5em;
}

.home .socialaccounts {
	margin-top: 2rem;
}

#avatar {
	float: right;
	margin-left: 1em;
	margin-right: -1rem;
}

.home + footer {
	margin-top: 2rem;
}

.home + footer p {
	max-width: none;
}

.home section h2, .home section h3 {
	margin-top: 0;
}

@media (min-width: 48em) {
	.home::after {
		content: "";
		clear: both;
		display: block;
	}
	
	.home > section {
		width: 50%;
		max-width: 32em;
		float: left;
	}
	
	.home section {
		padding: 2rem;
	}
	
	.home .latest-posts, .home .work {
		margin-left: -2rem;
		margin-right: -2rem;
	}
	
	#avatar {
		margin-right: -2rem;
	}
}


@media (min-width: 88em) {
	.home section {
		padding: 2rem 3rem;
		max-width: 48em;
	}
	
	.home .latest-posts, .home .work {
		margin-left: -3rem;
		margin-right: -3rem;
	}

	#avatar {
		margin-right: -3rem;
	}
}









/* OTHER smaller bits */

.socialaccounts {
	font-size: 1.4em;
	line-height: 1;
	text-align: center;
}

.socialaccounts a {
	margin: 0 .5em;
}


.sitenav {
	list-style: none;
	background: #fff;
	border-bottom: 1px solid #f5f5f5;
}

/* Automatically clear elements for standards-compliant browsers */
.sitenav:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}
/* Trigger has-layout for IE compatibility */
.sitenav {
	zoom: 1;
}

.sitenav li {
	text-transform: lowercase;
	font-variant-caps: small-caps;
	-moz-font-feature-settings: "smcp";
	-webkit-font-feature-settings: "smcp";
	font-feature-settings: "smcp";
	font-weight: 400;

	display: inline;
	float: left;
	padding: .1em 1em .3em 0;
}

.opposite {
	float: right;
	margin: .2em 1em 0;
}




/* FOOTER */

.colophon {
	font-size: 80%;
	text-align: center;
	color: #789;
}

.copyright {
	color: #999;
}

.content + footer p {
	border-top: 1px dotted #e5e5e5;
	padding-top: 1rem;
}


/* ARCHIVE YEAR LINKS */

.archive-years {
	margin-top: 2em;
}

.archive-years h2 {
	font-size: 1.2em;
	margin-bottom: 1em;
}

.year-links {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
	columns: 2;
	column-gap: 2em;
}

.year-links li {
	margin-bottom: 0.5em;
	break-inside: avoid;
}

.year-links a {
	font-weight: 600;
	text-decoration: none;
}

.year-links a:hover {
	text-decoration: underline;
}

@media (min-width: 48em) {
	.year-links {
		columns: 3;
	}
}

@media (min-width: 88em) {
	.year-links {
		columns: 4;
	}
}