body {
  font-family: sans-serif;
  font-size: 100%;
  width: 85%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

#footer {
  width: 100%;
  height: 50px;
  text-align: center;
  display: inline-block;
}

#footer {
  padding: 10px 0px;
}

#footer * {
  display: inline;
  margin: 0 4px;
}

blockquote {
  font-style: italic;
  padding: 10px 10px;
}

.caption {
  font-size: 80%;
  padding: 10px 10px;
  color: #333;
}

h1 {
  font-size: 200%;
  font-weight: bold;
}

h2 {
  font-size: 175%;
  font-weight: bold;
}

h3 {
  font-size: 125%;
  font-weight: bold;
}

h4 {
  font-size: 115%;
  font-weight: bold;
}

h5 {
  font-size: 100%;
  font-weight: bold;
}

/* Posts */

.post {
  padding: 10px 15px 20px 15px;
  border-bottom: 1px solid #ccc;
}

.post .content {
  padding: 10px 0px 40px 0px;
}

.post h2 {
  margin: 20px 0px 10px 0px;
}

.post h3 {
  margin: 20px 0px 10px 0px;
}

.post h4, .post h5 {
  margin: 20px 0px 10px 0px;
}

.post .top-date {
  font-style: italic;
  font-size: 75%;
  color: #666;
  padding-top: 4px;
}

.post ul, .post ol {
  margin: 16px 30px 0 30px;
}

.post li {
  list-style: disc;
  padding: 5px 5px;
}

.post ol li {
  list-style: decimal;
}

.post p {
  padding: 16px 0 0 0;
  line-height: 1.4;
}

.post li p {
  padding: 0; 
}

.post em {
  font-style: italic;
}

.post strong {
  font-weight: bold;
}

.post pre {
  padding: 10px 10px;
  margin: 10px 0px;
  border: 1px solid #666;
  background: #efefef;
  white-space: pre-wrap;
}

.post code {
  background: #efefef;
  font-family: courier;
}

.post p code {
  padding: 0 4px;
  white-space: nowrap;
}

.post blockquote {
  margin: 10px 10px;
  border-left: 10px solid #efefef;
  padding-left: 10px;
}

.post blockquote p:first-child {
  padding: 0; 
}

.post blockquote strong {
  font-style: inherit;
}

.post small {
  font-style: italic;
  font-size: 75%;
  color: #666;
}

.post .image {
  margin: 20px 0px;
  text-align: center;
}

.post .image a img {
  border: 2px solid blue;
}

.post .image a:visited img {
  border: 2px solid purple;
}

.post .matrix {
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
}

.post .matrix td {
  border: 1px solid gray;
  padding: 4px 8px;
}

.post .matrix .col-header,
.post .matrix .row-header {
  background: #ddd;
}

.post .matrix .col-header.row-header {
  border: none;
  background: inherit;
}

.post .center {
  text-align: center;
}

@media screen and (max-width: 1024px) {
  #header h1 {
    font-size: 175%;
  }
}

