/* ---- typography ---------------------------------------------------------- */

@font-face {
    font-family: "Fontin Sans";
    src: url("fonts/FontinSans.eot");
    src: local("Fontin Sans"),
         url("fonts/FontinSans.woff") format("woff"),
         url("fonts/FontinSans.ttf") format("truetype"),
         url("fonts/FontinSans.svg#FontinSans") format("svg");
}

body {
    font-family: "Fontin Sans", Helvetica, Arial, sans-serif;
    font-size: 62.5%;
}


/* ---- layout -------------------------------------------------------------- */

body {
    background-color: #333;
    padding-bottom: 50px;
}

body > header {
    width: 800px;
    margin: 0 auto;
}

body > nav {
    width: 800px;
    margin: 0 auto;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #666;
}

body > article:only-of-type {
    width: 800px;
    margin: 0 auto;
}

body > article:only-of-type header {
    float: left;
    width: 200px;
}

body > article:only-of-type div.content {
    margin-left: 210px;
}

body > article:not(:only-of-type) {
    width: 650px;
    margin: 0 auto;
    margin-bottom: 50px;
}

body > article:not(:only-of-type) div.content {
    margin-left: 50px;
}


/* ---- page header --------------------------------------------------------- */

body > header h1 {
    text-align: right;
    font-size: 3em;
    line-height: 60px;
    color: #EEE;
}

body > header h1 em {
    color: #666;
}


/* ---- navigation bar ------------------------------------------------------ */

body > nav ul {
    list-style-type: none;
}

body > nav ul li {
    display: inline;
    margin-right: 25px;
    font-size: 1.6em;
}

body > nav ul li a {
    color: #666;
    text-decoration: none;
}

body > nav ul li a:hover,
body > nav ul li a.current {
    color: #999;
    text-decoration: none;
}


/* ---- article header ------------------------------------------------------ */

body > article:only-of-type header {
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 17px;
    color: #999;
}

body > article:only-of-type header h1,
body > article:only-of-type header h2,
body > article:only-of-type header time {
    border-bottom: 1px solid #666;
}

body > article:only-of-type header time {
    display: block;
}

body > article:not(:only-of-type) header time {
    display: block;
    float: left;
    width: 50px;
    padding-top: 5px;
    border-top: 1px solid #666;
    text-transform: uppercase;
    font-size: 1.1em;
    letter-spacing: 1px;
    line-height: 17px;
    color: #999;
}

body > article:not(:only-of-type) header time em {
    display: block;
}

body > article:not(:only-of-type) header h1 {
    display: block;
    height: 51px;  /* 3 x line-height */
    padding-top: 5px;
    border-top: 1px dotted #666;
    font-size: 1.6em;
    letter-spacing: 1px;
    line-height: 17px;
}

body > article:not(:only-of-type) header h1 a {
    color: #999;
    text-decoration: none;
}

body > article:not(:only-of-type) header h1 a:hover {
    color: #EEE;
}

body > article:first-of-type header time,
body > article:first-of-type header h1 {
    padding-top: 0px;
    border-top-width: 0px;
}


/* ---- elements in the article content ------------------------------------- */

body > article div.content p {
    margin: 0 0 25px 0;
    font-size: 1.3em;
    line-height: 17px;
    color: #999;
}

body > article div.content a {
    color: #999;
    border-bottom: 1px solid #666;
    text-decoration: none;
}

body > article div.content a:hover {
    color: #EEE;
    border-bottom-color: #EEE;
}

body > article div.content h2 {
    margin: 0 0 25px 0;
    font-size: 2em;
    line-height: 17px;
    color: #999;
}

body > article div.content ul {
    margin: 0 25px 25px 25px;
}

body > article div.content ul li {
    font-size: 1.3em;
    line-height: 17px;
    color: #999;
}

body > article div.content pre {
    margin: 0 25px 25px 25px;
    padding: 5px 0;
    border-top: 1px solid #666;
    border-bottom: 1px solid #666;
}

body > article div.content code {
    font-family: Monaco, "Bitstream Vera Sans Mono", "Andale Mono", monospace;
}

body > article div.content pre code {
    font-size: 1.1em;
    line-height: 17px;
    color: #999;
}

body > article div.content p code,
body > article div.content li code {
    background-color: #444;
    font-size: 0.85em;  /* 11/13 */
}

body > article div.content blockquote {
    margin: 0 25px 25px 25px;
    padding: 5px;
    border-left: 2px solid #666;
}

body > article div.content blockquote p {
    margin-bottom: 5px;
}

body > article div.content img {
    padding: 5px;
    border: 1px solid #666;
}


/* ---- about / contact page ------------------------------------------------ */

body p {
    width: 600px;
    margin: 0 auto;
    margin-bottom: 25px;
    font-size: 1.3em;
    line-height: 17px;
    color: #999;
}

body > p a {
    color: #999;
    border-bottom: 1px solid #666;
    text-decoration: none;
}

body > p a:hover {
    color: #EEE;
    border-bottom-color: #EEE;
}


/* ---- weblog archive page (/weblog) --------------------------------------- */

body > h2 {
    width: 600px;
    margin: 0 auto;
    margin-bottom: 17px;
    font-size: 2.5em;
    letter-spacing: 1px;
    color: #999;
}

body > ul {
    width: 600px;
    margin: 0 auto;
    margin-bottom: 50px;
    list-style-type: none;
}

body > ul li {
    font-size: 1.3em;
    line-height: 17px;
    color: #999;
}

body > ul li time {
    display: block;
    float: left;
    width: 150px;
}

body > ul li a {
    border-bottom: 1px solid #666;
    color: #999;
    text-decoration: none;
}

body > ul li a:hover {
    color: #EEE;
    border-bottom-color: #EEE;
}

