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

/* Global Reset */
* {
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background-color: #121212;
  color: #FFFFFF;
  font: 13.34px helvetica, arial, clean, sans-serif;
  text-align: center;
}

h1, h2, h3, h4, h5, h6 {
  color: #FFFFFF;
  font-size: 100%;
}

h1 {
  margin-bottom: 1em;
}

p {
  margin: 1em 0;
}

a {
  color: rgb(37, 150, 190);
}

a:hover {
  color: #dddddd;
}

a:visited {
  color: rgb(37, 150, 190);
}

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

.site {
  font-size: 110%;
  text-align: justify;
  width: 42em;
  margin: 3em auto 2em auto;
  line-height: 1.5em;
}

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

.site .title a {
  color: rgb(37, 150, 190);
  text-decoration: none;
}

.site .title a:hover {
  color: #dddddd;
}

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

.site .title a.extra:hover {
  color: #dddddd;
}

.site .meta {
  color: #aaa;
}

.site .footer {
  font-size: 80%;
  color: #666;
  border-top: 4px solid #eee;
  margin-top: 2em;
  overflow: hidden;
}

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

.site .footer .contact a {
  color: rgb(37, 150, 190);
}

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

#post {

}

/* This section is now corrected to not interfere with code blocks */
#post pre {
  padding: 0 .4em;
  overflow-x: auto; /* Add horizontal scroll for long lines */
}

#post code {
  font-size: 85%;
  padding: 0 .2em;
}

/* This is the key fix: it removes background/border from code inside a pre block */
#post pre code {
  border: none;
  background-color: transparent;
}

#post ol, #post ul {
  list-style-position: inside;
  padding-left: 0;
}

/*****************************************************************************/
/* Home Page Post Listing */
/*****************************************************************************/

ul.posts {
  list-style-type: none;
  margin-left: 0; /* Also remove the default left indentation */
  padding-left: 0; /* Add this line */
}

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

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