/* Reset Styles */

* {
    margin: 0;
    padding: 0;
}

/* When in standards mode html needs to be 100%
   TODO: Could probably clean this up by putting background on the html ? */
html {
    height: 100%;
}

/* Body Styles - Set baseline to 20px */
body {
    font-family: 'Lucida Grande', 'Lucida Sans Unicode', Lucida, Arial, Helvetica, sans-serif;
    font-size: 62.5%;
    line-height: 2em;
    color: #111;
    background-image: url(../images/staveheader.gif);
    background-repeat: no-repeat;
    background-position: center 2em;
    height: 100%;
}

/* Links */
a:link {
    color: #111;
}

a:visited {
    color: #111;
}

a:hover {
    color: #111;
    font-style: italic;
}

a:active {
    color: #111;
    font-style: italic;
}

h2 a:link {
    text-decoration: none;
    font-style: normal;
}
h2 a:visited {
    text-decoration: none;
    font-style: normal;
}
h2 a:hover {
    text-decoration: underline;
    font-style: italic;
}
h2 a:active {
    text-decoration: underline;
    font-style: italic;
}

/* Headings */
h1 {
    font-size: 2em;
    font-weight: normal;
    padding-top: 0.45em;
    padding-bottom: 0.45em;
    padding-left: 0.45em;
    padding-right: 0.45em;
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
}

h2 {
    font-size: 1.5em;
    padding: 0.625em;
    border-top: #111 dotted 1px;
}

h1 + h2 {
    padding: 0.66em;
    border-top: none;
}

h3 {
    font-size: 1.2em;
    padding: 0.83em;

}

h4 {
    font-size: 1.2em;
    padding: 0.83em;
    font-weight: normal;
    font-style: italic;
}

p, ol, ul, pre, img {
    padding-left: 0.83em;
    padding-right: 0.83em;
    padding-top: 0;
    padding-bottom: 1.66em;
    font-size: 1.2em;
}

blockquote {
    padding-left: 1.66em;
    padding-right: 1.24em;
    padding-top: 0;
    padding-bottom: 1.66em;
    font-size: 1.2em;
}

blockquote:before {
    content: open-quote;
}

blockquote:after {
    content: close-quote;
}

pre {
    line-height: 1.5em;
    overflow: auto;
    /* TODO: This was a quick hack to get things worknig for my first blog post
        with pre tags.. should look into if it can be cleaned up (margin on all
        instead of padding */
    padding-bottom: 0;
    margin-bottom: 1.66em;
}

ul {
    padding-left: 1.66em;
}

li {
    list-style-position: inside;
}

/** Page Structure **/

#wrapper {
    width: 75em;
    margin-left: auto;
    margin-right: auto;
    background-image: url(../images/paper.svg);
    -background-image: url(../images/grid.svg);
    background-repeat: repeat-y;
    overflow: hidden;
    outline: 1px black solid;
    min-height: 99.999%;
}

#content {
    float:right;
    width: 50em;
    margin-left: 2em;
    margin-right: 2em;
    margin-bottom: 2em;
    padding-top: 14em;
}

#disclaimer {
    float: left;
    width: 15em;
    font-size: 100%;
    margin:2em;
}

#navigation {
    padding: 0;
    float: left;
    width: 15em;
    text-align: center;
    font-size: 100%;
    margin-right: 2em;
    margin-left: 2em;
    padding-top: 14em;
}

#navigation a:link {
    text-decoration: none;
    font-style: normal;
}

#navigation a:visited {
    text-decoration: none;
    font-style: normal;
}

#navigation a:hover {
    text-decoration: underline;
    font-style: italic;
}

#navigation a:active {
    text-decoration: underline;
    font-style: italic;
}

#navigation li.current {
    font-weight: bold;
}

#navigation li {
    font-weight: normal;
}

#navigation > li > ol {
    margin-top: 0.15em;
    padding-left: 2em;
    font-size: 0.7em;
    text-align: left;
}
#navigation ol ol {
    margin-top: 0;
    font-size: 0.85em;
    padding-bottom: 0;
}

#navigation > li {
    font-size: 2em;
    background-image: url(../images/menu_braces.gif);
    background-repeat: no-repeat;
}

#navigation > li > a {
    padding-top: 0.45em;
    padding-bottom: 0.45em;
    padding-left: 0.45em;
    padding-right: 0.45em;
}

#navigation li {
    list-style: none;
}
#navigation li a {
    display: block;
}

div.header {
    padding-left: 0.83em;
    padding-right: 0.83em;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 1.2em;
    font-style: italic;
    /* Clearing technique to allow floated children */
    width: 100%;
    overflow: hidden;
}

div.header a:link {
    text-decoration: none;
    font-style: normal;
}
div.header a:visited {
    text-decoration: none;
    font-style: normal;
}
div.header a:hover {
    text-decoration: underline;
    font-style: italic;
}
div.header a:active {
    text-decoration: underline;
    font-style: italic;
}

div.footer {
    padding-left: 0.83em;
    padding-right: 0.83em;
    margin-top: -0.83em;
    padding-bottom: 0;
    font-size: 1.2em;
    font-weight: bold;
}

div.footer a:link {
    font-style: normal;
    text-decoration: none;
}
div.footer a:visited {
    font-style: normal;
    text-decoration: none;
}
div.footer a:hover {
    font-style: italic;
    text-decoration: underline;
}
div.footer a:active {
    font-style: italic;
    text-decoration: underline;
}

a.navPrevious {
    float: left;
}
a.navPrevious:before {
    content: '« ';
}

a.navNext {
    float: right;
    margin-right: 1.66em;
}
a.navNext:after {
    content: ' »';
}

ol.archiveList {
    list-style-type: none;
}
ol.archiveList a:link {
    text-decoration: none;
    font-style: normal;
}
ol.archiveList a:visited {
    text-decoration: none;
    font-style: normal;
}
ol.archiveList a:hover {
    text-decoration: underline;
    font-style: italic;
}
ol.archiveList a:active {
    text-decoration: underline;
    font-style: italic;
}

