
/* ==================================================
   HADENA INTEGRATED MANAGEMENT SYSTEM
   GLOBAL TYPOGRAPHY SYSTEM
   MASTER TYPOGRAPHY V3.0
================================================== */


/* ==================================================
   1. GLOBAL TYPOGRAPHY VARIABLES
   DEFAULT VALUES
================================================== */

@media screen {

    :root {

        /* FONT FAMILY */

        --font-primary: "DM Sans", sans-serif;
        --font-heading: "Manrope", sans-serif;

        --font-family-body: var(--font-primary);
        --font-family-heading: var(--font-heading);


        /* FONT SIZE */

        --font-page-title: 24px;
        --font-section-title: 20px;

        --font-card-title: 14px;
        --font-card-number: 30px;

        --font-body: 14px;
        --font-description: 14px;
        --font-label: 14px;

        --font-table-header: 14px;
        --font-table: 12px;
        --font-small: 12px;

        --font-button: 14px;
        --font-input: 14px;
        --font-badge: 12px;


        /* FONT WEIGHT */

        --weight-normal: 400;
        --weight-medium: 500;
        --weight-semibold: 600;
        --weight-bold: 700;
        --weight-extrabold: 800;

        --weight-page-title: 700;
        --weight-section-title: 700;
        --weight-card-title: 700;
        --weight-card-number: 800;
        --weight-body: 400;
        --weight-description: 400;
        --weight-label: 700;
        --weight-table-header: 700;
        --weight-table: 400;
        --weight-small: 400;
        --weight-button: 700;
        --weight-input: 400;
        --weight-badge: 600;


        /* LINE HEIGHT */

        --line-heading: 1.3;
        --line-body: 1.5;
        --line-description: 1.5;

        --line-page-title: 1.3;
        --line-section-title: 1.3;
        --line-card-title: 1.4;
        --line-card-number: 1.3;
        --line-body: 1.5;
        --line-description: 1.5;
        --line-label: 1.5;
        --line-table-header: 1.5;
        --line-table: 1.5;
        --line-small: 1.5;
        --line-button: 1.5;
        --line-input: 1.5;
        --line-badge: 1.5;


        /* TEXT TRANSFORM */

        --transform-page-title: none;
        --transform-section-title: none;
        --transform-card-title: uppercase;
        --transform-card-number: none;
        --transform-body: none;
        --transform-description: none;
        --transform-label: none;
        --transform-table-header: none;
        --transform-table: none;
        --transform-small: none;
        --transform-button: none;
        --transform-input: none;
        --transform-badge: none;


        /* BACKWARD COMPATIBILITY */

        --card-title-transform: var(--transform-card-title);

    }


    /* ==================================================
       2. GLOBAL BODY
    ================================================== */

    html {
        font-size: 14px;
    }

    body {
        font-family: var(--font-family-body);
        font-size: var(--font-body);
        font-weight: var(--weight-body);
        line-height: var(--line-body);
    }


    /* ==================================================
       3. GLOBAL HEADING
    ================================================== */

    h1 {
        font-family: var(--font-family-heading);
        font-size: var(--font-page-title);
        font-weight: var(--weight-page-title);
        line-height: var(--line-page-title);
        text-transform: var(--transform-page-title);
    }

    h2 {
        font-family: var(--font-family-heading);
        font-size: var(--font-section-title);
        font-weight: var(--weight-section-title);
        line-height: var(--line-section-title);
        text-transform: var(--transform-section-title);
    }

    h3 {
        font-family: var(--font-family-heading);
        font-size: var(--font-card-title);
        font-weight: var(--weight-card-title);
        line-height: var(--line-card-title);
        text-transform: var(--transform-card-title);
    }

    h4,
    h5,
    h6 {
        font-family: var(--font-family-heading);
        font-size: var(--font-body);
        font-weight: var(--weight-semibold);
        line-height: var(--line-body);
    }


    /* ==================================================
       4. SEMANTIC TYPOGRAPHY CLASSES
    ================================================== */

    /* PAGE TITLE */

    .page-title-text,
    .page-title h1 {
        font-family: var(--font-family-heading);
        font-size: var(--font-page-title);
        font-weight: var(--weight-page-title);
        line-height: var(--line-page-title);
        text-transform: var(--transform-page-title);
    }


    /* SECTION TITLE */

    .section-title {
        font-family: var(--font-family-heading);
        font-size: var(--font-section-title);
        font-weight: var(--weight-section-title);
        line-height: var(--line-section-title);
        text-transform: var(--transform-section-title);
    }


    /* CARD TITLE */

    .stat-label,
    .card-title {
        font-family: var(--font-family-heading);
        font-size: var(--font-card-title);
        font-weight: var(--weight-card-title);
        line-height: var(--line-card-title);
        text-transform: var(--transform-card-title);
    }


    /* CARD NUMBER */

    .card-number {
        font-family: var(--font-family-heading);
        font-size: var(--font-card-number);
        font-weight: var(--weight-card-number);
        line-height: var(--line-card-number);
        text-transform: var(--transform-card-number);
    }


    /* CARD DESCRIPTION */

    .card-description {
        font-family: var(--font-family-body);
        font-size: var(--font-description);
        font-weight: var(--weight-description);
        line-height: var(--line-description);
        text-transform: var(--transform-description);
    }


    /* BODY TEXT */

    .body-text {
        font-family: var(--font-family-body);
        font-size: var(--font-body);
        font-weight: var(--weight-body);
        line-height: var(--line-body);
        text-transform: var(--transform-body);
    }


    /* DESCRIPTION */

    .description,
    .text-description {
        font-family: var(--font-family-body);
        font-size: var(--font-description);
        font-weight: var(--weight-description);
        line-height: var(--line-description);
        text-transform: var(--transform-description);
    }


    /* LABEL */

    label,
    .label,
    .form-label,
    .field-label {
        font-family: var(--font-family-body);
        font-size: var(--font-label);
        font-weight: var(--weight-label);
        line-height: var(--line-label);
        text-transform: var(--transform-label);
    }


    /* SMALL TEXT */

    small,
    .small-text,
    .text-small {
        font-family: var(--font-family-body);
        font-size: var(--font-small);
        font-weight: var(--weight-small);
        line-height: var(--line-small);
        text-transform: var(--transform-small);
    }


    /* ==================================================
       5. GLOBAL PARAGRAPH
    ================================================== */

    p {
        font-family: var(--font-family-body);
        font-size: var(--font-body);
        font-weight: var(--weight-body);
        line-height: var(--line-body);
    }


    /* ==================================================
       6. GLOBAL FORM ELEMENTS
    ================================================== */

    input,
    select,
    textarea {
        font-family: var(--font-family-body);
        font-size: var(--font-input);
        font-weight: var(--weight-input);
        line-height: var(--line-input);
        text-transform: var(--transform-input);
    }

    input::placeholder,
    textarea::placeholder {
        font-family: var(--font-family-body);
        font-size: var(--font-input);
        font-weight: var(--weight-input);
    }


    /* ==================================================
       7. GLOBAL BUTTONS
    ================================================== */

    button,
    .btn,
    .button {
        font-family: var(--font-family-body);
        font-size: var(--font-button);
        font-weight: var(--weight-button);
        line-height: var(--line-button);
        text-transform: var(--transform-button);
    }


    /* ==================================================
       8. GLOBAL TABLE
    ================================================== */

    table th,
    thead th {
        font-family: var(--font-family-heading);
        font-size: var(--font-table-header);
        font-weight: var(--weight-table-header);
        line-height: var(--line-table-header);
        text-transform: var(--transform-table-header);
    }

    table td,
    tbody td {
        font-family: var(--font-family-body);
        font-size: var(--font-table);
        font-weight: var(--weight-table);
        line-height: var(--line-table);
        text-transform: var(--transform-table);
    }


    /* ==================================================
       9. GLOBAL BADGES
    ================================================== */

    .badge,
    .status-badge {
        font-family: var(--font-family-body);
        font-size: var(--font-badge);
        font-weight: var(--weight-badge);
        line-height: var(--line-badge);
        text-transform: var(--transform-badge);
    }


    /* ==================================================
       10. GLOBAL LINKS
    ================================================== */

    a {
        font-family: inherit;
    }


    /* ==================================================
       11. FORM CONTROL NORMALIZATION
    ================================================== */

    input,
    select,
    textarea,
    button {
        box-sizing: border-box;
    }


    /* ==================================================
       12. TYPOGRAPHY INHERITANCE
    ================================================== */

    strong,
    b {
        font-weight: var(--weight-bold);
    }

    em,
    i {
        font-style: italic;
    }


    /* ==================================================
       13. GLOBAL FONT RENDERING
    ================================================== */

    body,
    button,
    input,
    select,
    textarea {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

}
