/*

Ratio font weights

Thin:     100, 200
Light:    300
Regular:  400
Medium:   500
Bold:     600, 700
Heavy:    800

*/

html
{
  padding: 40px;
}

body {
  font-size: 10px;
  margin: 0 auto;
  width: 800px;
}

html, body        { background: #e6e6e6; }
body > header     { background: #F6F6F6; }
section#articles  { background: #ffffff; }

code
{
  font-family: "Monaco", "Consolas", "Courier New", "Courier", monospace;
}


/* 1. HEADER
---------------------------------------------------------------------- */

body > header {
  font-family: "ff-tisa-web-pro-1", "ff-tisa-web-pro-2", Georgia, serif;
  text-transform: uppercase;
  position: relative;
  
  
  -webkit-border-top-left-radius:   4px;
  -webkit-border-top-right-radius:  4px;
  -moz-border-radius-topleft:       4px;
  -moz-border-radius-topright:      4px;
  border-top-left-radius:           4px;
  border-top-right-radius:          4px;
  
  margin-bottom: 1px;
}

body > header a
{
  display: block;
  text-decoration: none;
}

body > header img {
  margin: 0;
  padding: 0;
  display: block;
  position: absolute;

  top: 50%;
  margin-top: -25px;
  left: 2.5em;

}

body > header div {
  height: 14px;
  margin: 0;
  font-size: 1.3em;
  padding: 3.076923077em 0;
  padding-left: 7.692307692em;
}

body > header div h1 {
  letter-spacing: 0.090909091em;
  font-weight: bold;
  line-height: 1;
  color: #000000;
  float: left;
  margin-right: 0.5em;
}

body > header div p {
  letter-spacing: 0.090909091em;
  font-weight: bold;
  line-height: 1;
  float: left;
  color: #aaa;
}
body > header div p span {
  text-transform: none;
  font-style: italic;
}

/* 2. ARTICLES
---------------------------------------------------------------------- */
section#articles {
  padding: 4em 0em 0em 0em;
}

/* DEFAULTS
-------------------------------------------------------------------- */
section#articles > ol > li
{
  margin-top: 5em;
  border-top: 1px solid #E6E6E6;
  padding-top: 5em;
}

section#articles > ol > li:first-child
{
  margin-top: 0em;
  padding-top: 0em;
  border-top: none;
}

section#articles article {
  width: 60em;
  padding: 0em 10em 0em 10em;
  font-family: "ff-tisa-web-pro-1", "ff-tisa-web-pro-2", Georgia, serif;
}

section#articles article a        { color: #333333; text-decoration: underline; }
section#articles article a:hover  { color: #999999; }

section#articles article p {
  font-size: 1.4em;
  line-height: 1.5;
  color: #666666;
  margin-bottom: 1em;
}

section#articles article strong {
  font-weight: normal;
  font-size: 0.785714286em;
  text-transform: uppercase;
  font-weight: bold;
  color: #555555;
}

section#articles article sup
{
  font-size: 0.857142857em;
  position: relative;
  bottom: 0.357142857em;
}

section#articles article sup a
{
  padding-left: 1px;
  padding-right: 1px;
  text-decoration: none;
}

section#articles article q
{
  font-style: italic;
}

/* BLOCKQUOTES
-------------------------------------------------------------------- */
section#articles article blockquote {
  padding-left: 2em;
  font-style: italic;
}
section#articles article blockquote strong {
  text-transform: none;
  font-size: 1em;
  color: #666666;
}


/* LISTS
-------------------------------------------------------------------- */
section#articles article ul     { list-style-type: square; }
section#articles article ul ul  { list-style-type: circle; }
section#articles article ol     { list-style-type: decimal; }
section#articles article ol ol  { list-style-type: lower-alpha; }

section#articles article ul, 
section#articles article ol {
  font-size: 1.4em;
  line-height: 1.5;
  color: #666666;
  margin-bottom: 1em;
}

section#articles article ul ul,
section#articles article ul ol,
section#articles article ol ul,
section#articles article ol ol {
  font-size: 1em;
  margin-bottom: 0;
  padding-left: 1.428571429em;
}


/* ARTICLE HEADER
------------------------------------------------------------------ */
section#articles article header { font-family: "ratio-1", "ratio-2", "Helvetica Neue", "Helvetica", "Arial", sans-serif; }
section#articles article header h1 {
  font-size: 2.2em;
  font-weight: normal;
  line-height: 1.2em;
}
section#articles article header h1 a        { color: #000000; text-decoration: none; }
section#articles article header h1 a:hover  { color: #999999; }


/* ARTICLE FOOTER
------------------------------------------------------------------ */
section#articles article footer {
  display: block;
  color: #c9c9c9;
  
  line-height: 1;
  text-transform: uppercase;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 1px;
  
}

section#articles article footer a.permalink
{
  text-decoration: none;
  color: #c9c9c9;
}
section#articles article footer a.permalink:hover
{
  color: #999;
}

section#articles article footer time + a.permalink:before
{
  content: "·";
  display: inline-block;
  padding: 0 0.5em;
}
section#articles article footer a.permalink:hover:before
{
  color: #c9c9c9;
}


/* ARTICLE FOOTNOTES
------------------------------------------------------------------ */
section#articles article div.footnotes
{
  margin-top: 4em;
}

section#articles article div.footnotes > hr
{
  border: none;
  border-top: solid 1px #E6E6E6;
  margin: 0;
}

section#articles article div.footnotes ol
{
  font-size: 1.4em;
  padding: 0;
  margin: 1.5em 1.5em 1.5em 3em;
}

section#articles article div.footnotes ol li p
{
  font-size: 1em;
}

section#articles article div.footnotes ol li,
section#articles article div.footnotes ol li p
{
  color: #999;
}

section#articles article div.footnotes ol li:target,
section#articles article div.footnotes ol li:target p
{
  color: #333;
}

section#articles article div.footnotes ol li p a[rev=footnote]
{
  font-size: 0.857142857em;
  padding: 2px;
  text-decoration: none;
}

section#articles article div.footnotes ol li p a[rev=footnote]:hover
{
  text-decoration: underline;
}


/* TEXT ARTICLES
------------------------------------------------------------------ */
section#articles article.text header h1 {
  font-size: 2.6em;
  font-weight: 400;
}

section#articles article.text section { margin-top: 6px; }
section#articles article.text section h2 {
  font-family: "ratio-1", "ratio-2", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  font-weight: 400;
  font-size: 1.8em;
  margin-top: 28px;
}
section#articles article.text section h2 + p { margin-top: 10px; }


/* LINK ARTICLES
------------------------------------------------------------------ */
section#articles article.link header h1 {
  font-size: 1.6em;
  line-height: 1.5em;
  font-weight: 400;
  background: url('../images/link.png') no-repeat 0px 6px;
  margin-left: -30px;
  padding-left: 30px;
}
section#articles article.link header h1 a {
  border-bottom: 1px solid #bbbbbb;
  padding: 3px 0 1px 0;
  margin: -3px 0 -1px 0;
}

section#articles article.link section { margin-top: 6px; }




/* POSTS FOOTER 
------------------------------------------------------------------ */

section#articles > footer
{
  padding-top: 5em;
  font-family: "ff-tisa-web-pro-1", "ff-tisa-web-pro-2", Georgia, serif;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

section#articles > footer a
{
  text-decoration: none;
  color: #c9c9c9;
}

section#articles > footer a:hover
{
  color: #999;
}

p#backhome,
ul#pagination
{
  border-top: solid 1px #E6E6E6;
}

p#backhome a
{  
  display: block;
  padding-left: 100px;
  height: 4em;
  line-height: 4em;
}

ul#pagination
{
  overflow: auto;
}

ul#pagination li.previous { float: left;  text-align: left; }
ul#pagination li.next     { float: right; text-align: right; }

ul#pagination li.previous a { padding-left: 100px;  padding-right: 50px; }
ul#pagination li.next a     { padding-left: 50px;   padding-right: 100px; }

ul#pagination li a
{
  display: block;
  height: 4em;
  line-height: 4em;
}



/* BLOG FOOTER
------------------------------------------------------------------ */
body > footer
{  
  font-family: "ff-tisa-web-pro-1", "ff-tisa-web-pro-2", Georgia, serif;
  font-size: 1.1em;
  color: #ccc;
  padding: 16px 100px 16px 100px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  background: #f6f6f6;
  margin-top: 1px;
  overflow: hidden;
  position: relative;
  
  -webkit-border-bottom-left-radius:   4px;
  -webkit-border-bottom-right-radius:  4px;
  -moz-border-radius-bottomleft:       4px;
  -moz-border-radius-bottomright:      4px;
  border-bottom-left-radius:           4px;
  border-bottom-right-radius:          4px;
}

body > footer nav   { float: left; }
body > footer form  { float: right; }

body > footer nav ul li { display: inline-block; }
body > footer nav ul li:before
{
  content: "·";
  display: inline-block;
  padding: 0 0.5em;
}
body > footer nav ul li:first-child:before { content: ""; padding: 0; }

body > footer nav ul li a       { color: #ccc; text-decoration: none; }
body > footer nav ul li a:hover { color: #999; }

body > footer form {
  position: absolute;
  right: 100px;
  top: 10px;
}

body > footer form label
{
  margin: 0;
  display: inline-block;
  float: left;

  padding: 0px 10px 0px 10px;
  height: 24px;
  line-height: 24px;

  color: #fff;
  background: #ccc;
  
     -webkit-border-top-left-radius: 4px;
  -webkit-border-bottom-left-radius: 4px;
         -moz-border-radius-topleft: 4px;
      -moz-border-radius-bottomleft: 4px;
             border-top-left-radius: 4px;
          border-bottom-left-radius: 4px;
}

body > footer form input
{
  -webkit-appearance:none;
  
  display: inline-block;
  margin: 0;
  padding: 1px 5px;
  width: 140px;

  font: 12px/20px "ff-tisa-web-pro-1", "ff-tisa-web-pro-2", Georgia, serif;
  height: 20px;
  color: #aaa;

  border: solid 1px #ccc;
  background: #fff;
  
     -webkit-border-top-right-radius: 4px;
  -webkit-border-bottom-right-radius: 4px;
         -moz-border-radius-topright: 4px;
      -moz-border-radius-bottomright: 4px;
             border-top-right-radius: 4px;
          border-bottom-right-radius: 4px;
  
}
