/*
 Theme Name:   Blocksy Child
 Theme URI:    https://dorjegurung.com/
 Description:  Blocksy Child Theme
 Author:       Dorje Gurung
 Author URI:   https://dorjegurung.com/
 Template:     blocksy
 Version:      1.0.0
 Text Domain:  blocksy-child
*/

/* * TYPOGRAPHIC VERTICAL RHYTHM
 * Sets specific margins for headings to create professional separation.
 */

/* Heading 2 - The primary section divider */
h2 {
    margin-top: 2.2em;
    margin-bottom: 0.8em;
}

/* Heading 3 - Sub-sections */
h3 {
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

/* Headings 4, 5, and 6 - Minor sections/labels */
h4, h5, h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* * CLEANUP RULES
 */

/* Prevents a massive gap at the top of the page if a heading is the first element */
.entry-content > :first-child,
.entry-summary > :first-child,
article > :first-child {
    margin-top: 0 !important;
}

/* Ensures headings don't have double-spacing if placed inside a group */
.wp-block-group {
    padding-top: 0.1px; /* Prevents margin collapse */
}

/* * UNIVERSAL TITLE SYNC 
 * Covers: 1. Blog Index, 2. Single Posts, 3. Category Archives, 4. Static Pages
 */
.entry-title,           /* Individual post/page titles */
.page-title,            /* Static page titles */
.hero-title,            /* Hero Type 2 titles (Single & Archive) */
.archive-title,         /* Category/Tag archive titles */
h1.title,               /* General H1 titles */
.ct-archive-title       /* Blocksy-specific archive title class */ {
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    text-transform: none; /* Ensures no forced all-caps unless you want it */
    font-family: inherit; 
}