/* ==========================================================================
   Prose — a long body of text with headings.

   The measure is the design. Everything else here is making sure the
   plugin-free editor output lands in the theme's own type.
   ========================================================================== */

.wl-prose__wrap {
  max-width: var(--wl-container);
  margin-inline: auto;
  padding-inline: var(--wl-gutter);
}

.wl-prose__head {
  padding-bottom: var(--wl-space-lg);
  border-bottom: 1px solid var(--wl-rule);
}

.wl-prose__heading {
  font-family: var(--wl-font-display);
  font-weight: 400;
  font-size: var(--wl-text-3xl);
  line-height: 1;
  letter-spacing: var(--wl-tracking-tight);
  max-width: 16ch;
}

.wl-prose__lede {
  margin-top: var(--wl-space-md);
  max-width: 60ch;
  font-size: var(--wl-text-lg);
  line-height: 1.5;
  color: var(--wl-ink-soft);
}

.wl-prose__updated {
  margin-top: var(--wl-space-md);
  font-size: var(--wl-text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wl-ink-soft);
}

.wl-prose__body {
  margin-top: var(--wl-space-xl);
  /* 68 characters. Past about 75 the eye loses the start of the next line. */
  max-width: 68ch;
}

.wl-prose__body > * + * { margin-top: var(--wl-space-md); }

.wl-prose__body p,
.wl-prose__body li { line-height: 1.7; }

.wl-prose__body h2,
.wl-prose__body h3,
.wl-prose__body h4 {
  margin-top: var(--wl-space-xl);
  font-family: var(--wl-font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: var(--wl-tracking-tight);
}

.wl-prose__body h2 { font-size: var(--wl-text-2xl); }
.wl-prose__body h3 { font-size: var(--wl-text-xl); }
.wl-prose__body h4 { font-size: var(--wl-text-lg); }

.wl-prose__body ul,
.wl-prose__body ol { padding-left: 1.25em; }

.wl-prose__body li + li { margin-top: var(--wl-space-xs); }

.wl-prose__body a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.wl-prose__body a:hover { color: var(--wl-accent); }

.wl-prose__body blockquote {
  padding-left: var(--wl-space-md);
  border-left: 2px solid var(--wl-highlight);
  font-style: italic;
}

.wl-prose__body hr {
  margin-block: var(--wl-space-xl);
  border: 0;
  border-top: 1px solid var(--wl-rule);
}

.wl-prose__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--wl-text-sm);
}

.wl-prose__body th,
.wl-prose__body td {
  padding: var(--wl-space-sm);
  border-bottom: 1px solid var(--wl-rule);
  text-align: left;
  vertical-align: top;
}

.wl-section.is-ink .wl-prose__lede,
.wl-section.is-ink .wl-prose__updated { color: var(--wl-on-ink-soft); }

.wl-section.is-ink .wl-prose__head,
.wl-section.is-ink .wl-prose__body hr,
.wl-section.is-ink .wl-prose__body th,
.wl-section.is-ink .wl-prose__body td { border-color: rgb(255 255 255 / 18%); }
