* {
  margin: 0;
  padding: 0;
}

img { border: none; }

h1, h2, h3, h4, h5, h6 {font-weight:normal;color:#111;}
h1 {font-size:24px;margin-bottom:0.75em;}
h2 {font-size:1.5em;line-height:1;margin-bottom:1em;}
h3 {font-size:1.2em;line-height:1.25;margin-bottom:.25em;}
h4 {font-size:1em;font-weight:bold;margin-bottom:1.5em;}
h5 {font-size:1em;font-weight:bold;}
h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;}
p {margin:0 0 1em;}
p img.left {float:left;margin:1.5em 1.5em 1.5em 0;padding:0;}
p img.right {float:right;margin:1.5em 0 1.5em 1.5em;}
a:focus, a:hover {color:#000;}
blockquote {margin:1.5em;color:#666;font-style:italic;}
strong {font-weight:bold;}
em, dfn {font-style:italic;}
dfn {font-weight:bold;}
sup, sub {line-height:0;}
abbr, acronym {border-bottom:1px dotted #666;}
address {margin:0 0 1.5em;font-style:italic;}
del {color:#666;}
pre {margin:1.5em 0;white-space:pre;}
figure.code, pre, code, tt {font: 12px 'Monaco', 'Bitstream Vera Sans Mono', monospace ;line-height:1.5;}
li ul, li ol {margin: 0 1.5em;}
ul, ol {margin: 0 1em;}
ul {list-style-position: outside; list-style-type:disc;}
ol {list-style-type:decimal;}
dl {margin:0 0 1.5em 0;}
dl dt {font-weight:bold;}
dd {margin-left:1.5em;}
table {width:100%;}
th {font-weight:bold;}
thead th {background:#c3d9ff;}
th, td, caption {padding:4px 10px 4px 5px;}
tr.even td {background:#e5ecf9;}
tfoot {font-style:italic;}
caption {background:#eee;}
.small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;}
.large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;}
.hide {display:none;}
.quiet {color:#666;}
.loud {color:#000;}
.highlighted {background:#ff0;}
.added {background:#060;color:#fff;}
.removed {background:#900;color:#fff;}
.first {margin-left:0;padding-left:0;}
.last {margin-right:0;padding-right:0;}
.top {margin-top:0;padding-top:0;}
.bottom {margin-bottom:0;padding-bottom:0;}

ul li p { margin: 1.5em 0 0 0; }

/* Homepage */
div.date { 
  margin: -1em 0 1em 0; 
  font-style: italic; 
  text-align: right;
  float: left;
  position: absolute;
  right: -100px;
  top: 0px;
}

ul.posts {
  list-style-type: none;
  margin-bottom: 2em;
}

ul.posts a {
  font-weight: bold;
}

ul.posts li {
  position: relative;
  line-height: 1.75em;
}

ul.posts span.date {
  color: #aaa;
  font-family: Monaco, "Courier New", monospace;
  font-size: 80%;
}

ul.posts span.blurb {
  color: #777;
}

/* Site */

body {
  width: 860px;
  font: 16px helvetica, arial, sans-serif;
  padding: 20px;
  background: #fbf9f6;
  line-height: 1.5em;
  margin: auto;
}

#sidebar {
  position: absolute;
  right: 0px;
  top: 20px;
  border-left: 2px dashed #dee1e2;
  padding: 0 20px;
  min-height: 400px;
  width: 300px;
}

/* Photo quote */
#photo q {
  margin: 0;
  padding: 0;
  padding-left: 10px;
  display: block;
  color: #aaa;
  float: left;
  width: 150px;
}

nav {
  color: #a00;
  font-weight: bold;
  margin-bottom: 2em;
}

nav a {
  color: #a00;
  text-decoration: none;
}

nav a:hover {
  color: black;
}

nav a.extra {
  color: #aaa;
  text-decoration: none;
  margin-left: 1em;
}

nav a.extra:hover {
  color: black;
}

.meta {
  color: #aaa;
}

footer {
  clear: both;
  color: #666;
  border-top: 2px solid #eee;
  margin-top: 10px;
  padding-top: 5px;
}

footer .contact {
  float: left;
  margin-right: 3em;
}

footer .contact a {
  color: #8085C1;
}

footer .rss {
  margin-top: 1.1em;
  margin-right: -.2em;
  float: right;
}

footer .rss img {
  border: 0;
}

/* Books */

.thumb {
  float: left;
  margin-right: 10px;
}
.desc {
  width: 300px;
  float: left;
}

.clearboth {
  clear: both;
}
/* Posts */

article {
  width: 500px;
  float: left;
}


/* Code blocks */

figure.code {
  background-color: #eaeaea;
  border: 2px solid #ddd;
}

figcaption {
  padding: 10px;
  background-color: #ddd;
}

td.gutter, td.code {
  margin: 0px;
  padding: 0px;
}

td.gutter {
  text-align: right;
  color: #ccc;
}

td.code {
  padding-left: 10px;
}

code {
  background-color: #eaeaea;
  border: 1px solid #ddd;
  padding: 0 0.3em;
  display: inline-block;
  margin: 0;
}

article pre code {
  border: none;
}

/* terminal */

article pre.terminal {
  border: 1px solid black;
  background-color: #333;
  color: white;
}

article pre.terminal code {
  background-color: #333;
}

#related {
  margin-top: 2em;
}

#related h2 {
  margin-bottom: 1em;
}
