@import url(https://fonts.googleapis.com/css?family=Gentium+Book+Basic:400,700);
@import url(https://fonts.googleapis.com/css?family=Lato:300);

html, body { margin: 0; padding: 0; }
body { color: #4c4c4c; font-family: 'Gentium Book Basic', serif;
  border-top: 3px gold solid; line-height: 1.5em; font-size: 14pt; }
img { border: none; }
a { color: #4472b9; text-decoration: none; }
a:hover { color: #4c4c4c; text-decoration: underline; }

main { background: white; margin: 0 auto; width: 700px;
  padding: 0; }
section { margin: 2em auto; }

/* Page title */
body.blog header { border-bottom: 1px #ccc solid; padding: 0 1em;
  text-align: center; }
h1 { font-family: 'Lato', sans-serif;
  font-size: 42pt; font-weight: 300; color: black;
  margin: 0 auto; padding: 1em 0 0 0;
  text-transform: uppercase; line-height: 1em; }
h1 a, h1 a:hover { color: #333; border-bottom: none; }

/* Post details */
header > p { font-size: 10pt; color: #bbb; font-weight: 300;
  font-family: 'Lato', sans-serif;
  margin: 0 auto; padding-left: 2px; }

/* Home page intro */
.profilepic { float: left; border-radius: 50%; }
main .intro p { padding-top: 1em; font-size: 16pt; }
main .intro img { margin: 0 1em 1em 0; }
main .social ul { list-style: none; display: table;
  margin: 0 auto; padding: 0; }
main .social li { display: table-cell; padding: 0 5px; }
main .social img { width: 48px; height: 48px; }

.archive ul { padding-left: 0.5em; list-style-position: inside; }
.archive span { color: #ccc; font-size: smaller; float: right; }

article header p { margin: 0; }
article section p { margin-left: 1em; margin-right: 1em; text-align: justify; }
article p.header, article p.picture { margin-left: 0; margin-right: 0; }
article img { width: 100%; }
article iframe.strava { margin: 0 auto; width: 100%; }
article footer { font-size: 12pt; margin: 0 auto; color: #ccc; }
article footer p { margin: 0; margin-bottom: 0; }
a.prev { float: left; width: 45%; }
a.next { float: right; width: 45%; text-align: right; }

body > footer { width: 700px;
  margin: 2em auto 1em auto;
  border-top: 1px #ccc solid;
  background: white; padding: 1em 0;
  color: #888; font-size: 10pt; }
body > footer p { margin: 0.5em 0; text-align: center;
  line-height: 1.5em; }
footer .intro { padding: 0 2em; }
footer .intro p { text-align: left; }
footer .intro img { margin: 0 1.5em 0 0; }

/* No footer on home page */
.home footer { display: none; }


@media all and (max-width: 700px) {
  main { width: auto !important;
    margin: 0 !important; }
  header { margin: 0 1em !important; }
  body > footer { width: auto !important;
    margin: 2em 0 0 0 !important; }
  .archive span { float: none !important; }
  .archive span:before { content: ' ('; }
  .archive span:after { content: ')'; }
  article > footer { margin: 0 1em !important; }
}
