/* ─── Shared display heading treatment ───────────────────────────────────
   Applied to all major page/section titles across the site for visual
   consistency. Each specific rule (section-title, archive-title, etc.)
   may override font-size and margin to suit its context, but the core
   typographic treatment (font, weight, casing, gradient) stays unified.
   ──────────────────────────────────────────────────────────────────────── */

.heading-display,
.archive-title,
.section-title,
.page-about-title,
.post-single h1,
.project-single h1 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.035em;
    line-height: 0.96;
    margin: 0;
    background: linear-gradient(180deg, var(--color-text) 0%, var(--color-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Wrap by words, not letters; allow long Cyrillic compounds to break only at spaces */
    overflow-wrap: break-word;
    word-break: keep-all;
    hyphens: none;
}

/* Course-page responsive heading overrides live in _course-toc.css
   (separately enqueued with filemtime cache-bust). */

/* Archive / blog index page H1 */
.archive-title {
    font-size: var(--fs-step-5);
    margin-block-end: var(--space-l);
}

/* ─── Shared sub-section label (mono, faint, small-caps) ─────────────────
   Used by .project-tech h3, .project-related-posts h3, .post-related-project h3.
   Each component overrides margin-block-end to suit its context.
   ──────────────────────────────────────────────────────────────────────── */

.label-sub,
.project-tech h3,
.project-related-posts h3,
.post-related-project h3,
.project-privacy-title {
    font-family: var(--font-mono);
    font-size: var(--fs-step--2);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-faint);
    margin: 0;
}
