/* ==========================================================================
   Heading block (site/blocks/_heading.php).

   Linked by site/pages/show.php only on a page that draws the block
   (Blocks, its `css`), after blocks.css, whose tokens it uses.
   ========================================================================== */

.heading-block { display: grid; gap: var(--space-1); }
.heading-block-text { margin: 0; }
.heading-block-text a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.heading-block-below { margin: 0; color: var(--text-2); font-size: var(--t-lg); max-width: 60ch; }
.heading-block--centre { text-align: center; justify-items: center; }
.heading-block--right { text-align: right; justify-items: end; }
.heading-block--s .heading-block-text { font-size: var(--t-lg); }
.heading-block--m .heading-block-text { font-size: var(--t-xl); }
.heading-block--l .heading-block-text { font-size: var(--t-2xl); }
.heading-block--xl .heading-block-text { font-size: var(--t-4xl); }
.heading-block--rule-short .heading-block-text::after { content: ""; display: block; width: 3rem; margin-top: var(--space-2); border-top: 3px solid var(--accent); }
.heading-block--centre.heading-block--rule-short .heading-block-text::after { margin-inline: auto; }
.heading-block--right.heading-block--rule-short .heading-block-text::after { margin-left: auto; }
.heading-block--rule-full { padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
