/*
 * Ingredient typography: running text that reads well. A lead paragraph, links that look like links, calm lists and headings.
 * Sizes and fonts come from theme.json; this file only adds what
 * theme.json cannot express. The reading width is theme.json's
 * layout.contentSize: a narrower paragraph would sit off-centre in a
 * constrained section.
 * Blocks: all
 */

:is(h1, h2, h3, h4) {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

.eensites-lead {
    font-size: var(--wp--preset--font-size--large);
    line-height: 1.5;
}

/* Links in running text are underlined; buttons and navigation are not. */
:where(p, li, td, figcaption) a:where(:not(.wp-element-button)) {
    text-decoration-line: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

:where(p, li, td, figcaption) a:where(:not(.wp-element-button)):hover {
    text-decoration-thickness: 0.15em;
}

.wp-block-list:where(:not([class*="is-style-"])) > li + li {
    margin-block-start: 0.35em;
}
