body {
  margin: 0;
  padding: 0;
  background: #e9e7df;
  color: #222222;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.58;
}

a {
  color: #0645ad;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#wrap {
  width: 960px;
  margin: 26px auto;
  padding: 0;
  background: #ffffff;
  border: 1px solid #cfcbbf;
}

#header {
  padding: 28px 30px 0;
  border-bottom: 1px solid #cfcfcf;
  text-align: center;
}

.site-title {
  margin: 0 0 18px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: 0;
}

.site-title a {
  color: #222222;
  text-decoration: none;
}

#nav {
  margin: 0;
  padding: 9px 0 10px;
  border-top: 1px solid #d8d8d8;
  list-style: none;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  text-transform: uppercase;
}

#nav li {
  display: inline;
  margin: 0 12px;
}

#night-toggle {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0645ad;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
}

#night-toggle:hover {
  text-decoration: underline;
}

#main {
  padding: 30px;
}

#main:after {
  display: block;
  clear: both;
  content: "";
}

#content {
  float: left;
  width: 620px;
  padding: 0 28px 0 0;
  border-right: 1px solid #e2e2e2;
}

#sidebar {
  float: right;
  width: 250px;
  color: #555555;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.side-section {
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e2e2e2;
}

.side-section h2 {
  margin: 0 0 9px;
  padding: 0 0 5px;
  border-bottom: 1px solid #eeeeee;
  color: #333333;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
}

.side-section p {
  margin: 0 0 10px;
}

.side-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-section li {
  margin: 0;
  padding: 5px 0;
  border-bottom: 1px solid #eeeeee;
}

h1,
h2,
h3 {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: normal;
  line-height: 1.25;
}

h1 {
  margin: 0 0 16px;
  font-size: 34px;
}

h2 {
  margin-top: 32px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e3e3e3;
  font-size: 22px;
}

p {
  margin: 0 0 16px;
}

.tagline {
  color: #555555;
  font-style: italic;
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-list li {
  padding: 9px 0;
  border-bottom: 1px solid #eeeeee;
}

.post-list .excerpt {
  margin: 7px 0 2px;
  color: #444444;
}

.post-list .excerpt p {
  margin: 0;
}

.post-list .date,
.post .date {
  color: #777777;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  margin-right: 8px;
}

.post .description {
  margin: -6px 0 18px;
  color: #666666;
  font-style: italic;
}

.post-image {
  margin: 0 0 22px;
  padding: 6px;
  border: 1px solid #dddddd;
  background: #f8f8f8;
}

.post-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.post .back {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid #e3e3e3;
}

.side-date {
  color: #777777;
  font-size: 12px;
}

#footer {
  clear: both;
  padding: 18px 30px 24px;
  border-top: 1px solid #dddddd;
  color: #666666;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
}

#footer p {
  margin: 0 0 6px;
}

body.night {
  background: #222222;
  color: #dddddd;
}

body.night #wrap {
  background: #2b2b2b;
  border-color: #555555;
}

body.night a {
  color: #9db7e8;
}

body.night .site-title a {
  color: #eeeeee;
}

body.night #header,
body.night #nav,
body.night #content,
body.night .side-section,
body.night .side-section h2,
body.night .side-section li,
body.night #footer,
body.night h2,
body.night .post .back,
body.night .post-list li {
  border-color: #555555;
}

body.night .tagline,
body.night #sidebar,
body.night .post .description,
body.night .post-list .excerpt,
body.night .side-date,
body.night .post-list .date,
body.night .post .date,
body.night #footer {
  color: #bbbbbb;
}

body.night .post-image {
  border-color: #555555;
  background: #242424;
}

body.night .side-section h2 {
  color: #dddddd;
}

body.night #night-toggle {
  color: #9db7e8;
}

@media screen and (max-width: 980px) {
  #wrap {
    width: auto;
    margin: 0;
    padding: 0 18px;
    border-left: 0;
    border-right: 0;
  }

  #header,
  #main,
  #footer {
    padding-left: 0;
    padding-right: 0;
  }

  #content,
  #sidebar {
    float: none;
    width: auto;
  }

  #content {
    padding: 0;
    border-right: 0;
  }

  #sidebar {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e2e2;
  }
}
