/* Copyright © 2008, 2011 Aaron Crane.  Some rights reserved.
   See http://aaroncrane.co.uk/about/ */

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  color: #000;
  background: #fff;
  font-family: Georgia, serif;
  line-height: 1.5em;
  min-width: 55em;
  overflow-y: scroll;
  position: relative;
}

a:link,
a:visited,
a:hover,
a:active {
  /* This is the default for nav links; content links are styled below */
  color: #333;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header a:link,
header a:visited,
header a:hover,
header a:active {
  color: #fff;
}

footer a:link,
footer a:visited,
footer a:hover,
footer a:active {
  color: #fff;
}

.months li a:link,
.months li a:visited,
.months li a:active,
.months li a:hover {
  color: #333;
}

article a:link {
  color: #00f;
  text-decoration: underline;
}
article a:visited {
  color: #551a8b;
}
article a:hover,
article a:active {
  color: #f33;
}

#tags a:link {
  color: #00f;
}
#tags a:visited {
  color: #551a8b;
}
#tags a:hover,
#tags a:active {
  color: #f33;
  text-decoration: underline;
}

#contentlink {
  display: none;
}

header { border-bottom: 1px solid #ccc }
footer { border-bottom: 1px solid #ccc }

header,
footer {
  background: #900;
  color: #fff;
  text-shadow: 1px 1px #000;
}

header h1 {
  margin: 0;
  font-size: 200%;
  line-height: 1;
  padding: .5em 1em;
}

header h1 img {
  vertical-align: middle;
}

footer {
  clear: both;
  font-size: .8em;
  padding: 1.25em 2.5em;
}

nav {
  float: right;
  font-size: .8em;
  line-height: 1;
  color: #333;
  width: 10em;
  padding-top: 1.325em;
  margin-left: -10em;
}

#headshot {
  width: 6.5em;
  height: 6.5em;
}

nav h1 {
  margin: 2em 0 1em;
  font-size: 100%;
  text-transform: uppercase;
  text-shadow: -1px -1px #fff;
}

nav section {
  margin-bottom: 1.25em;
}

nav li {
  white-space: nowrap;
  margin: 0 0 .875em 0;
  padding: 0;
}

nav #feedlink span {
  display: inline-block;
  width: 14px;
  position: relative;
}

nav #feedlink img {
  position: absolute;
  bottom: -4px;                /* plausible guess at font descender depth */
  left: 0;
}

nav > p {
  margin: 1.25em 0;
}

nav p img {
  vertical-align: bottom;
}

#archive li ul {
  margin: 0 0;
  padding: 0;
}

#archive li.open li {
  height: 13px;
  margin-top: 1em;
  -webkit-transition: height .15s ease, margin .15s ease;
  -moz-transition: height .15s ease, margin .15s ease;
  -o-transition: height .15s ease, margin .15s ease;
  transition: height .15s ease, margin .15s ease;
}

#archive li li {
  font-size: 87.5%;
  line-height: 1.2;
  margin: 0 0 0 1em;
  height: 0;
  overflow: hidden;
  -webkit-transition: height .15s ease, margin .15s ease;
  -moz-transition: height .15s ease, margin .15s ease;
  -o-transition: height .15s ease, margin .15s ease;
  transition: height .15s ease, margin .15s ease;
}

#searchform input {
  font-size: .8em;
  line-height: 1.875;
}

#searchform #q {
  display: block;
  width: 8em;
  color: #900;
  margin: 0 0 0.2em 0;
  padding: 0.1em 0.25em;
  border: 1px solid #ccc;
  border-radius: 0.5em;
  -moz-border-radius: 0.5em;
  -webkit-border-radius: 0.5em;
  background: #eee;
}

#main {
  float: left;
  width: 100%;
}

#mainwidth {
  margin-right: 12em;
  padding: 0 0 .5em 2em;
}

#spurious {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 10em;
  border-left: 1px dotted #ccc;
  background: #eec;
  z-index: -1;
}

td, th {
  vertical-align: top;
}

th {
  text-align: left;
}

img {
  border: none;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

h1#top, article > h1:first-child {
  margin: .75em 0 .25em;
  font-size: 2em;
  line-height: 1.25;
}

article h1 {
  margin: 0;
  font-size: 150%;
}

article section h1 {
  margin: 1em 0 0.35em 0;
  font-size: 120%;
}

article section h1 + p {
  margin-top: 0;
}

h1 + article, h1 + .body {
  margin-top: 1.25em;
}

article {
  clear: both;
  margin-bottom: 1.5em;
}

aside.tags,
time {
  margin: 0;
  font-size: 75%;
  line-height: 1.3334;
  color: #666;
  display: block;
}

article .more {
  font-size: 75%;
  line-height: 1.3334;
  text-align: right;
  margin: 0;
}

.snippet > .last {
  margin-bottom: 0;
}

article blockquote {
  margin: 0;
  padding: 0 3em 0 3em;
  border-left: 3px solid #900;
  font-size: .8em;
  line-height: 1.875;
}

article blockquote > h1 {
  font-size: 150%;
}

article pre {
  overflow: auto;
  padding-left: 3em;
  line-height: inherit;   /* computed value, even if this font is smaller */
  margin: 0;              /* margin on <p> will suffice */
}

article img.right {
  float: right;
  padding-left: 0.5em;
  padding-bottom: 0.25em;
}

article hr.sep {
  width: 50%;
  height: 0;
  border: 1px solid #900;
}

article .body aside {
  width: 20em;
  float: right;
  border: 1px solid #ccc;
  border-radius: .5em;
  -moz-border-radius: .5em;
  -webkit-border-radius: .5em;
  background: #eee;
  font-size: .8em;
  line-height: 1.875;
  padding: .5em 1em;
  margin: -.5em 0 0 1em;
}

#main ul.months {
  margin: 0.5em 0 1.5em 0;
  padding: 0;
  list-style-type: none;
  font-size: .8em;
  line-height: 1.875;
}

#main .months li {
  margin: 0;
  padding: 0 1em 0 0;
  display: inline;
}

#main .months li.last {
  padding-right: 0;
}

#prev-next {
  clear: both;
  font-size: .8em;
  line-height: 1.875;
  margin: 1em 0;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 0.5em;
  -moz-border-radius: 0.5em;
  -webkit-border-radius: 0.5em;
  background: #eee;
}

#prev-next p {
  margin: 0 auto;
}

#prev-entry {
  float: left;
}

#next-entry {
  text-align: right;
}

article p, article li {
  text-align: justify;
}

article figure > img {
  vertical-align: bottom;
}

article figure figcaption {
  font-size: .8em;
  line-height: 1.875;
  margin: 0.25em 0 0 0;
}

article figure {
  margin-top: 1em;
}

article figure + figure {
  margin-top: 1.25em;
}

.tags li {
  list-style-type: none;
  display: inline;
  margin: 0;
  padding-right: 1em;
}

.tags li.last {
  padding-right: 0;
}

.tags li { padding-right: 0.75em }
#tags li { padding-right: 1em }

.tags ul {
  display: inline;
  padding: 0;
}

.tags h1 {
  display: inline;
  font-size: 100%;
  font-weight: normal;
  padding-right: 0.25em;
}

.tags h1:after {
  content: ":";
}

#tags {
  padding: 0;
  margin: 0;
}

#tags a {
  text-decoration: none;
}

[lang=he] {
  font-family: sans-serif;
}

