/* Research blog. Matches the main page: Georgia, 860px column, blue links. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Georgia", serif;
  font-size: 17px;
  line-height: 1.7;
  color: #222;
  background: #fff;
  max-width: 860px;
  margin: 48px auto;
  padding: 0 24px 80px;
}

a {
  color: #1a5276;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.crumbs {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 36px;
}

/* Blog index */

.blog-header h1 {
  font-size: 2rem;
  font-weight: normal;
  margin: 0 0 6px;
}

.blog-header p {
  color: #555;
  margin: 0 0 32px;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #ddd;
}

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

.post-list .post-title {
  font-size: 1.15rem;
  font-weight: bold;
}

.post-list .post-date {
  font-size: 0.85rem;
  color: #777;
  margin-top: 2px;
}

.post-list .post-summary {
  font-size: 0.95rem;
  color: #444;
  margin: 6px 0 0;
}

/* Post */

.post-header {
  border-bottom: 1px solid #ddd;
  padding-bottom: 18px;
  margin-bottom: 28px;
}

.post-header h1 {
  font-size: 2.1rem;
  font-weight: normal;
  line-height: 1.25;
  margin: 0 0 8px;
}

.post-header .subtitle {
  font-size: 1.15rem;
  color: #444;
  margin: 0 0 8px;
}

.post-header .byline {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
}

.post h1,
.post h2,
.post h3,
.post h4 {
  font-weight: bold;
  line-height: 1.3;
  color: #222;
}

.post h1 {
  font-size: 1.55rem;
  margin: 48px 0 14px;
}

.post h2 {
  font-size: 1.25rem;
  margin: 36px 0 12px;
}

.post h3,
.post h4 {
  font-size: 1.05rem;
  margin: 28px 0 10px;
}

.post p,
.post ul,
.post ol {
  margin: 0 0 14px;
}

.post li {
  margin-bottom: 6px;
}

.post img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 22px auto 10px;
}

.post figure {
  margin: 22px 0;
}

.post figcaption {
  display: none;
}

.post blockquote {
  margin: 16px 0;
  padding: 10px 18px;
  border-left: 3px solid #c9d6e0;
  background: #f6f8fa;
  color: #333;
  font-size: 0.95rem;
}

.post blockquote p:last-child {
  margin-bottom: 0;
}

.post code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: #f1f3f5;
  padding: 1px 4px;
  border-radius: 3px;
}

/* Chart legends are italic paragraphs that begin with "Legend:". */
.post p > em:only-child {
  display: block;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.55;
}

.post table {
  border-collapse: collapse;
  width: 100%;
  margin: 18px 0;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}

.post th,
.post td {
  border-bottom: 1px solid #e4e8ec;
  padding: 6px 10px;
  vertical-align: top;
}

.post hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 40px 0;
}

.post-footer {
  border-top: 1px solid #ddd;
  margin-top: 48px;
  padding-top: 16px;
  font-size: 0.95rem;
}

@media (max-width: 580px) {
  body {
    font-size: 16px;
    margin: 28px auto;
    padding: 0 16px 60px;
  }

  .post-header h1 {
    font-size: 1.7rem;
  }

  .post img {
    width: 100% !important;
  }
}
