/* Reading a story or a post: measure, rhythm and hierarchy.

   The house rules, applied below:
   - one column of 60-75 latin characters (about 35 Korean), so the eye finds the next line;
   - 18px at 1.8 line height, paragraphs separated by space rather than indents;
   - headings that are clearly heavier and further from the text above them than the text below;
   - lists, quotes and pictures that read as their own thing, not as more paragraphs;
   - Korean kept unbroken at line ends (word-break: keep-all), long URLs still allowed to break. */

.article-body,
.post-body {
  max-width: 68ch;
  overflow-wrap: break-word;
  word-break: keep-all;
  color: #1f314f;
  font-size: 18px;
  line-height: 1.8;
}

.post-view .post-header h1 {
  max-width: 24ch;
  text-wrap: balance;
}

.post-view .post-header { border-bottom: 1px solid var(--line-soft); }

.article-body p,
.post-body p {
  margin: 0 0 1.25em;
  text-wrap: pretty;
}

/* The opening paragraph carries the reader in. */
.article-body > p:first-of-type {
  color: #16253f;
  font-size: 1.06em;
  line-height: 1.75;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.article-body h2 {
  margin: 1.9em 0 0.7em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--line);
  font-size: 1.34em;
  font-weight: 800;
  line-height: 1.35;
}

.article-body h3 {
  margin: 1.7em 0 0.5em;
  font-size: 1.16em;
  font-weight: 750;
  line-height: 1.4;
}

.article-body h4 {
  margin: 1.5em 0 0.4em;
  font-size: 1.02em;
  font-weight: 700;
}

/* site.css clears list markers site-wide; inside an article they carry meaning. */
.article-body ul,
.article-body ol {
  margin: 1.2em 0;
  padding-left: 1.4em;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin: 0.45em 0; padding-left: 0.2em; }
.article-body li::marker { color: #7f9ad0; }
.article-body li > ul, .article-body li > ol { margin: 0.4em 0; }

.article-body blockquote {
  margin: 1.7em 0;
  padding: 0.2em 0 0.2em 22px;
  border-left: 3px solid #9fbdf2;
  color: #33456a;
  font-size: 1.04em;
  line-height: 1.7;
}

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

.article-body a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-body a:hover { color: var(--blue); }

.article-body strong, .post-body strong { font-weight: 750; }

.article-body figure {
  max-width: 100%;
  margin: 1.8em 0;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.article-body figcaption,
.article-body caption {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.article-body hr {
  margin: 2.2em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.article-body table { font-size: 0.92em; }

.article-body th {
  background: var(--line-soft);
  font-weight: 700;
  text-align: left;
}

/* Stories we publish ourselves keep their line breaks; they still read on one measure. */
.post-body { line-height: 1.85; }

/* The picture above the story and everything below the text stay the full width of the panel. */
.post-view .news-photo,
.post-view .story-actions,
.post-view .post-footer { max-width: none; }

.syndication-credit { max-width: 68ch; }

@media (max-width: 719px) {
  .article-body,
  .post-body { font-size: 17px; line-height: 1.75; }

  .article-body h2 { font-size: 1.24em; margin-top: 1.6em; }
  .article-body h3 { font-size: 1.1em; }
  .post-view .post-header h1 { max-width: none; }
}
