@import (reference) "../exports/constants-helpers.less";
@import (reference) "../base/configuration-static.less";
@import (reference) "../base/internal.less";

// TYPE RESETS
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

// TEXT SIZES
.fs-display4 {
    font-size: var(--fs-display4) !important;
    line-height: 1.18;
}
.fs-display3 {
    font-size: var(--fs-display3) !important;
    line-height: 1.20;
}
.fs-display2 {
    font-size: var(--fs-display2) !important;
    line-height: 1.28;
}
.fs-display1 {
    font-size: var(--fs-display1) !important;
    line-height: 1.34;
}
.fs-headline2 {
    font-size: var(--fs-headline2) !important;
    line-height: 1.40;
}
.fs-headline1 {
    font-size: var(--fs-headline1) !important;
    line-height: 1.40;
}
.fs-title {
    font-size: var(--fs-title) !important;
    line-height: 1.40;
}
.fs-subheading {
    font-size: var(--fs-subheading) !important;
    line-height: 1.40;
}
.fs-body3 {
    font-size: var(--fs-body3) !important;
    line-height: 1.40;
}
.fs-body2 {
    font-size: var(--fs-body2) !important;
    line-height: 1.40;
}
.fs-body1 {
    font-size: var(--fs-body1) !important;
    line-height: 1.40;
}
.fs-caption {
    font-size: var(--fs-caption) !important;
    line-height: 1.40;
}
.fs-fine {
    font-size: var(--fs-fine) !important;
    line-height: 1.36;
}

#stacks-internals #screen-sm({
    .fs-display4 { font-size: calc(var(--fs-display4) * .43) !important; } // 43px
    .fs-display3 { font-size: calc(var(--fs-display3) * .5139) !important; } // ~37px
    .fs-display2 { font-size: calc(var(--fs-display2) * .5862) !important; } // ~34px
    .fs-display1 { font-size: calc(var(--fs-display1) * .6304) !important; }  // ~29px
    .fs-headline2 { font-size: calc(var(--fs-headline2) * .7224) !important; } // ~26px
    .fs-headline1 { font-size: calc(var(--fs-headline1) * .8215) !important; } // ~23px
    .fs-title { font-size: calc(var(--fs-title) * .9094) !important; } // ~20px
    .fs-subheading { font-size: calc(var(--fs-subheading) * .8998) !important; } // ~18px
    .fs-body3 { font-size: calc(var(--fs-body3) * .8888) !important; } // ~16px
    .fs-body2 { font-size: calc(var(--fs-body2) * .9374) !important; } // ~15px
}, @force-selector: true);

// LINE HEIGHTS
.lh-xs { line-height: var(--lh-xs) !important; }
.lh-sm { line-height: var(--lh-sm) !important; }
.lh-md { line-height: var(--lh-md) !important; }
.lh-lg { line-height: var(--lh-lg) !important; }
.lh-xl { line-height: var(--lh-xl) !important; }
.lh-xxl { line-height: var(--lh-xxl) !important; }
.lh-unset { line-height: initial !important; }

// TEXT STYLES & UTILITIES
// Font Family
.ff-sans { font-family: var(--ff-sans) !important; }
.ff-serif { font-family: var(--ff-serif) !important; }
.ff-mono { font-family: var(--ff-mono) !important; }
.ff-inherit { font-family: inherit !important; }

// Font Weight
.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-bold { font-weight: 600 !important; }

// Font Styles
.fs-normal { font-style: normal !important; }
.fs-italic { font-style: italic !important; }
.fs-unset { font-style: unset !important; }

// Text Align
#stacks-internals #responsify('.ta-left', { text-align: left !important; });
#stacks-internals #responsify('.ta-center', { text-align: center !important; });
#stacks-internals #responsify('.ta-right', { text-align: right !important; });
.ta-justify { text-align: justify !important; }
.ta-unset { text-align: unset !important; }

// Text Decoration
.td-none { text-decoration: none !important; }
.td-underline { text-decoration: underline !important; }

// Text Transform
.tt-capitalize { text-transform: capitalize !important; }
.tt-lowercase { text-transform: lowercase !important; }
.tt-uppercase { text-transform: uppercase !important; }
.tt-none { text-transform: none !important; }
.tt-unset { text-transform: unset !important; }

// Whitespace
.ws-normal { white-space: normal !important; }
.ws-nowrap { white-space: nowrap !important; }
.ws-pre { white-space: pre !important; }
.ws-pre-wrap { white-space: pre-wrap !important; }
.ws-pre-line { white-space: pre-line !important; }
.ws-unset { white-space: unset !important; }

// Word Break
.wb-normal { word-break: normal !important; }
.wb-break-all { word-break: break-all !important; }
.wb-keep-all { word-break: keep-all !important; }
.wb-inherit { word-break: inherit !important; }
.wb-initial { word-break: initial !important; }
.wb-unset { word-break: unset !important; }

// Overflow Wrap
.ow-normal {
    overflow-wrap: normal !important;
}

.ow-anywhere {
    overflow-wrap: anywhere !important;
}

.ow-break-word {
    overflow-wrap: break-word !important;
}

.ow-inherit {
    overflow-wrap: inherit !important;
}

.ow-initial {
    overflow-wrap: initial !important;
}

.ow-unset {
    overflow-wrap: unset !important;
}

// Hyphenation
.hyphens-none { hyphens: none !important; }
.hyphens-auto {
    -ms-hyphens: auto !important;
    -webkit-hyphens: auto !important;
    hyphens: auto !important;
}
.hyphens-unset { hyphens: unset !important; }

// Break word
.break-word {
    // DEPRECATED: https://developer.mozilla.org/en-US/docs/Web/CSS/word-break
    /* stylelint-disable-next-line declaration-property-value-keyword-no-deprecated */
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    -webkit-hyphens: auto !important;
    -moz-hyphens: auto !important;
    -ms-hyphens: auto !important;
    hyphens: auto !important;
}
