/* http://modularscale.com/scale/?px1=18&px2=672&ra1=1.25&ra2=0 */

body {
  font-size: 112.5%;
  font-family: 'Source Sans Pro', 'Helvetica Neue', sans-serif;
  line-height: 1.563;
  margin-bottom: 3.052em;
  background-color: white;
  color: #46320f;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted;
  -webkit-transition: all 0.6s ease;
  -moz-transition: all 0.6s ease;
  transition: all 0.6s ease;
}

a:hover, a:focus {
  background-color: #76174e !important;
  color: #fcf5ea !important;
}

a:visited { color: inherit; }

h1, h2 {
  font-weight: normal;
  text-rendering: optimizeLegibility;
}

h1 {
  font-size: 2.566em;
  line-height: 1;
  color: #7d174e;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin: 0;
}

h2 {
  font-size: 1.563em;
  line-height: 1.329;
  margin: 0.316em auto;
}

#content, header.index hgroup {
  margin: 0 auto;
  max-width: 42em;
}

section h2 {
  border-bottom: 1px solid #ddd;
  margin-top: 1.329em;
}

header {
  margin-top: 2.566em;
  margin-bottom: 1.953em;
}

#backdrop {
  position: fixed;
  background-image: url(../files/TwitterHeader.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-color: #3F5868;
  z-index: -10;
  height: 400px;
  width: 100%;
}

#full {
  background-color: white;
  padding-top: 1.329em;
}

header.index {
  background-color: transparent;
  padding-top: 3.052em;
  margin: 0;
  /*margin: 0 0 1.563em 0;*/
  height: 300px;
}

header h1 span { opacity: 0.4; padding-left: 2px; }

header h2 {
  font-size: 1.563em;
  font-style: italic;
  font-weight: normal;
  line-height: 1;
  margin: 0;
}

footer {
  font-style: italic;
  margin-top: 1.953em;
  text-align: left;
  color: #ccc;
  font-size: 0.8em;
  margin-left: auto;
  margin-right: auto;
  max-width: 52.5em;
}

div#footnotes {
  margin-top: 1.953em;
  font-size: 85%;
}

#subpage header h1 {
  font-size: 1.642em;
  line-height: 1;
}

#subpage header h2 {
  font-size: 1.314em;
  line-height: 1;
}

#subpage nav {
  margin-bottom: 1.953em;
  font-weight: bold;
}

#subpage section { clear: both; }
#subpage section header { float: none; }

section#resume {
  font-size: 90%;
  line-height: 1.4;
  background-color: white;
  padding: 3em;
  -webkit-box-shadow: 0 3px 9px #777, 0 0 32px #eee inset;
  -moz-box-shadow: 0 3px 9px #777, 0 0 32px #eee inset;
  box-shadow: 0 3px 9px #777, 0 0 32px #eee inset;
}

section#resume h1, section#resume h2, section#resume h3, section#resume p, section#resume li, section#resume em {
  font-family: Palatino, 'Book Antiqua', Times, serif;
}

section#resume h1 {
  letter-spacing: 0;
  font-size: 1.329em;
  font-weight: bold;
  color: inherit;
  margin-bottom: 1em;
  text-align: center;
  margin-left: 0;
  margin-right: 0;
}

section#resume header p {
  margin-bottom: 0;
  margin-top: 0;
}

section#resume h2 {
  font-size: 1em;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
}

section#resume h3 {
  font-size: inherit;
  font-weight: bold;
  font-style: italic;
}

section#resume h3 span {
  float: right;
  padding-left: 1em;
}

section#resume li { margin-left: -1em; }

div#addr-float {
  float: right;
  text-align: right;
}

#pdf-link {
    font-size: 0.8em;
    text-align: center;
}

div#floater {
    position: fixed;
    left: 18px;
    top: 18px;
    display: none;
    background-color: white;
    padding: 8px;
    -webkit-box-shadow: 6px 6px 5px #444;
    -moz-box-shadow: 6px 6px 5px #444;
  box-shadow: 6px 6px 5px #444;
  z-index: 10;
}

div#floater-content img {
    -webkit-box-shadow: 0 0 3px #ccc;
}

div#floater p {
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    padding-top: 2px;
}

div#floater p a {
    border: none;
    background-color: #999;
    padding: 3px;
    color: white;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

div#drop {
    position:  absolute;
    left: 0px;
    top: 0px;
    width:  100%;
    height: 100%;
    opacity: 0.5;
    background-color: #000;
    display: none;
    z-index: 5;
}

p.show {
    text-align: center;
}

p.address {
  margin: 2em auto;
  width: 50%;
    padding: 1em;
    background: white url(postmark.png) no-repeat 200% -18px;
    -webkit-box-shadow: 0 0 6px #dcd4c6;
    -moz-box-shadow: 0 0 6px #dcd4c6;
    box-shadow: 0 0 6px #dcd4c6;
    overflow: hidden;
}

p.address:first-line { font-weight: bold }

table { margin-left: 2em; }
th {
  font-weight: bold;
  border-bottom: 2px #46320f solid;
  text-align: center;
}
td { border-bottom: 1px #CFBFA5 solid; }
td, th { padding: 0.25em auto; }
td.left { padding-right: 2em; }
td.right { text-align: center; }

@media screen and (max-device-width: 640px) {
  body {
    margin: 1em;
    font-size: 92%;
  }
  ul, ol {
    padding-left: 1em;
  }
}
