/*****************************************************************************/
/*
/* Common
/*
/*****************************************************************************/

/* Global Reset */

* {
  margin: 0;
  padding: 0;
}

html, body {
}

body {
  background-color: white;
  font: 14px sans-serif;
  text-align: center;
}

h1, h2 {
  font-size: 125%;
}

h3, h4, h5, h6 {
  font-size: 100%;
}

h2 {
  margin-bottom: 1em;
  margin-top: 1.5em;
}

p, ul, ol {
  margin: 1em 0;
}

a {
  color: #00a;
}

a:hover, a:visited:hover {
  color: black;
}

a:visited {
  color: #a0a;
}

table {
  font-size: inherit;
}

/*****************************************************************************/
/*
/* Global
/*
/*****************************************************************************/

.alert, .neg { color: red; }

.site p.figure {
  text-align: center;
}
.site p.caption {
  text-align: center;
  font-style: italic;
  font-family: serif;
}

blockquote {
  border: 1px solid #999;
  margin: 1em 0;
  padding: 0 1em;
}

table.data {
  border: 1px solid black;
  padding: 0.5em;
  width: 100%;
}

table.data td, table.data th {
  padding-right: 2em;
}

th.num, td.num { text-align: right; }
td.note { color: gray; }

dt {
  font-style: italic;
}
dd {
  margin-left: 2em;
}

/*****************************************************************************/
/*
/* Home
/*
/*****************************************************************************/

#home h2 {
  margin-top: 2em;
}

ul.links, ul.posts, ul.projects {
  list-style-type: none;
}

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

  ul.posts span {
    color: #666;
    font-family: monospace;
    font-size: 80%;
  }

  ul.links a {
    text-decoration: none;
  }

  ul.links li {
    width: 12em;
    display: inline-block;
    margin: .25em 0;
  }

  ul.links img {
    border: none;
  }

  div.clear {
    clear: both;
  }

/*****************************************************************************/
/*
/* Site
/*
/*****************************************************************************/

.site {
  font-size: 110%;
  max-width: 41em;
  margin: 1.5em auto;
  padding: 0.5em;
  line-height: 1.5em;
  text-align: left;
}

.site p {
}

#logo {
  float: right;
  margin: 0 0 1em 1em;
}

h1.title {
  color: #a00;
  font-weight: bold;
  margin-bottom: 2em;
}

  .site .title a {
    color: #a00;
    text-decoration: none;
  }

  .site .title a:hover {
    color: black;
  }

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

  .site .title a.extra:hover {
    color: black;
  }

  .site .meta {
    color: #aaa;
  }

  .site #banner {
    margin-bottom: 2em;
  }

  .site .footer, .site #comments, .site #ad {
    border-top: 4px solid #eee;
    margin-top: 2em;
    padding-top: 2em;
  }

  .site .footer {
    font-size: 80%;
    color: #666;
  }

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

    .site .footer .rss {
      float: right;
    }

/*****************************************************************************/
/*
/* Posts
/*
/*****************************************************************************/

#post {

}

  #post .date {
    color: gray;
    font-style: italic;
    float: right;
    margin: 0 0 0 2em;
  }

  /* standard */

  #post ul,
  #post ol {
    margin-left: 1.25em;
  }

  #post pre {
    padding-left: 1em;
    border-left: 1px solid #ccc;
  }
  
  pre, code {
    font-family: Consolas, Inconsolata, Menlo, Monaco, "Lucida Console", "Liberation Mono", "Droid Sans Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace;
  }

  /* terminal */

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

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

#related {
  margin-top: 2em;
}

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

ol.footnotes {
  border-top: 1px solid gray;
  padding-top: 1em;
}

sup {
  line-height: 1;
}
