/* =========================================================
   Shivanya Tech — TYPOGRAPHY SYSTEM
   PHASE 01
   ========================================================= */


/* =========================================================
   HEADINGS
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {

    font-family: var(--cs-font-heading);

    color: var(--cs-text);

    font-weight: var(--cs-weight-bold);

    line-height: var(--cs-leading-tight);

    letter-spacing: var(--cs-tracking-tight);

    transition:
        color var(--cs-transition);

}


/* =========================================================
   H1
   ========================================================= */

h1 {

    font-size: var(--cs-h1);

    font-weight: var(--cs-weight-extrabold);

    line-height: 1.02;

}


/* =========================================================
   H2
   ========================================================= */

h2 {

    font-size: var(--cs-h2);

    font-weight: var(--cs-weight-bold);

    line-height: 1.08;

}


/* =========================================================
   H3
   ========================================================= */

h3 {

    font-size: var(--cs-h3);

    font-weight: var(--cs-weight-bold);

    line-height: 1.15;

}


/* =========================================================
   H4
   ========================================================= */

h4 {

    font-size: var(--cs-h4);

    font-weight: var(--cs-weight-semibold);

    line-height: 1.25;

}


/* =========================================================
   H5
   ========================================================= */

h5 {

    font-size: var(--cs-h5);

    font-weight: var(--cs-weight-semibold);

    line-height: 1.3;

}


/* =========================================================
   H6
   ========================================================= */

h6 {

    font-size: var(--cs-h6);

    font-weight: var(--cs-weight-semibold);

    line-height: 1.4;

}


/* =========================================================
   PARAGRAPHS
   ========================================================= */

p {

    color: var(--cs-text-secondary);

    font-family: var(--cs-font-body);

    font-size: var(--cs-text-md);

    font-weight: var(--cs-weight-regular);

    line-height: var(--cs-leading-relaxed);

}


/* =========================================================
   PARAGRAPH VARIANTS
   ========================================================= */

.text-xl {

    font-size: var(--cs-text-xl);

    line-height: var(--cs-leading-relaxed);

}


.text-lg {

    font-size: var(--cs-text-lg);

    line-height: var(--cs-leading-relaxed);

}


.text-md {

    font-size: var(--cs-text-md);

}


.text-sm {

    font-size: var(--cs-text-sm);

    line-height: var(--cs-leading-normal);

}


.text-xs {

    font-size: var(--cs-text-xs);

    line-height: var(--cs-leading-normal);

}


/* =========================================================
   TEXT COLORS
   ========================================================= */

.text-primary {
    color: var(--cs-primary);
}


.text-secondary {
    color: var(--cs-text-secondary);
}


.text-muted {
    color: var(--cs-text-muted);
}


.text-white {
    color: var(--cs-text-light);
}


.text-accent {
    color: var(--cs-accent);
}


/* =========================================================
   FONT WEIGHTS
   ========================================================= */

.fw-light {
    font-weight: var(--cs-weight-light);
}


.fw-regular {
    font-weight: var(--cs-weight-regular);
}


.fw-medium {
    font-weight: var(--cs-weight-medium);
}


.fw-semibold {
    font-weight: var(--cs-weight-semibold);
}


.fw-bold {
    font-weight: var(--cs-weight-bold);
}


.fw-extrabold {
    font-weight: var(--cs-weight-extrabold);
}


/* =========================================================
   TEXT UTILITIES
   ========================================================= */

.text-center {
    text-align: center;
}


.text-left {
    text-align: left;
}


.text-right {
    text-align: right;
}


.text-uppercase {
    text-transform: uppercase;
}


.text-capitalize {
    text-transform: capitalize;
}


.tracking-wide {
    letter-spacing: var(--cs-tracking-wide);
}


.tracking-wider {
    letter-spacing: var(--cs-tracking-wider);
}


/* =========================================================
   SECTION TYPOGRAPHY
   ========================================================= */

.section-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: var(--cs-space-2);

    margin-bottom: var(--cs-space-4);

    color: var(--cs-secondary);

    font-family: var(--cs-font-heading);

    font-size: var(--cs-text-xs);

    font-weight: var(--cs-weight-bold);

    letter-spacing: var(--cs-tracking-wider);

    line-height: 1.2;

    text-transform: uppercase;

}


.section-title {

    max-width: 850px;

}


.section-description {

    max-width: 700px;

    margin-top: var(--cs-space-5);

}


/* =========================================================
   DARK MODE TYPOGRAPHY
   ========================================================= */

[data-theme="dark"] p {
    color: var(--cs-text-secondary);
}


/* =========================================================
   MOBILE TYPOGRAPHY
   ========================================================= */

@media (max-width: 767px) {

    h1 {
        line-height: 1.05;
    }

    h2 {
        line-height: 1.1;
    }

    .section-description {
        margin-top: var(--cs-space-4);
    }

}