/* ------------ */
/* GOLBAL RESET */
/* ------------ */

/* GLOBAL BOX SIZING */
*,
*::before,
*::after {
    box-sizing: border-box;
    font-size: 16px;
}
/* FONT ADJUST */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}
/* MARGINS & PADDING */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
    margin-block-end: 0;
    margin: 0;
    padding: 0;
}
/* REMOVE LIST STYLES */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}
/* ------------- */
/* BODY DEFAULTS */
/* ------------- */
body {
    min-height: 100vh;
    line-height: 1.5;
}
/* HEADING LINE HEIGHTS */
h1, h2, h3, h4,
button, input, label {
    text-wrap: balance;
}
/* BALANCE HEADING TEXT WRAP */
h1, h2, h3, h4 {
    text-wrap: balance;
}
/* IMAGES */
img,
picture {
    max-width: 100%;
    display: block;
}
/* BUTTONS AND INPUT FONTS */
input, button,
textarea, select {
    font-family: inherit;
    font-size: inherit;
}
/* REMOVE USER ANIMATIONS PER USER SETTINGS */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }  
}
/* --------------- */
/* UTILITY CLASSES */
/* --------------- */

/* FLEX */
.flex {
    display: flex;
    gap: var(--gap, 1rem);
    
    .inline {
        display: inline-flex;
    }
    /* FLEX DIRECTION */
    .row { /* The main axis runs left to right (default). */
        flex-direction: row;
    }
    .row-reverse { /* The main axis runs right to left. */
        flex-direction: row-reverse;
    }
    .column { /* The main axis runs top to bottom. */
        flex-direction: column;
    }
    .column-reverse { /* The main axis runs bottom to top. */
        flex-direction: column-reverse;
    }
    /* FLEX WRAP */
    .nowrap { /* Flex items are laid out in a single line, even if they overflow */
        flex-wrap: nowrap;
    }
    .wrap { /* Flex items will break onto multiple lines (default) */
        flex-wrap: wrap;
    }
    .wrap-reverse { /* Behaves the same as wrap but cross-start and cross-end are permuted. */
        flex-wrap: wrap-reverse;
    }
    /* FLEX JUSTIFY CONTENT MAIN AXIS*/
    .justify-start { /* Justify all items to the left */
        justify-content: flex-start;
    }
    .justify-end { /* Justify all items to the left */
        justify-content: flex-end;
    }
    .justify-center { /* Justify items to the center of the container */
        justify-content: center;
    }
    .justify-between { /* Distribute items evenly.  First item is on the start line, last item is on the end line */
        justify-content: space-between;
    }
    .justify-around { /* Distribute items evenly with equal space around them */
        justify-content: space-around;
    }
    /* FLEX ALIGN ITEMS */
    .items-start { /* Align items to the start of the cross axis */
        align-items: flex-start;
    }
    .items-end { /* Align items to the end of the cross axis */
        align-items: flex-start;
    }
    .items-center { /* Align items to the center of the cross axis */
        align-items: center;
    }
    .items-baseline { /* Align items along their baselines */
        align-items: baseline;
    }
    .items-stretch { /* Stretch items from start of cross axis to end of cross axis */
        align-items: stretch;
    }
    /* FLEX ALIGN CONTENT */
    .content-start { /* Align content to the start of the cross axis */
        align-content: flex-start;
    }
    .content-end { /* Align content to the end of the cross axis */
        align-content: flex-end;
    }
    .content-center { /* Align content to the center of the cross axis */
        align-content: center;
    }
    .content-between { /* Distribute content evenly. First line is on the start of the cross axis, last line is on the end of the cross axis. */
        align-content: space-between;
    }
    .content-around { /* Stretch items from the start of the cross axis to the end of the cross axis */
        align-content: space-around;
    }
    .content-stretch { /* Lines stretch to occupy available space. */
        align-content: stretch;
    }
    /* FLEX */
    .one { /* Fills available space */
        flex: 1;
    }
    .auto { /* Fills available space and auto-sizes based on the content */
        flex: auto;
    }
    .grow-0 { /* Prevents growing of a flex item */
        flex-grow: 0;
    }
    .shrink-0 { /* Prevents shrinking of a flex item */
        flex-shrink: 0;
    }
    /* ALIGN SELF */
    .self-auto { /* Inherit alignment from parent */
        align-self: auto;
    }
    .self-start { /* Align to the start of the cross axis */
        align-self: flex-start;
    }
    .self-end { /* Align to the end of the cross axis */
        align-self: flex-end;
    }
    .self-center { /* Align to center of cross axis */
        align-self: center;
    }
    .self-baseline { /* Align baseline to the start of the cross axis */
        align-self: baseline;
    }
    .self-stretch { /* Stretch item from start of cross axis to end of cross axis. */
        align-self: stretch;
    }
    
}

/* ANIMATION */
.animation {
    @keyframes fade-in {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    .fade-in {
        animation-name: fade-in;
    }
}

/* GRID */
.grid {
    display: grid;
    gap: var(--gap, 1rem);  
}
/* MARGIN */
.margin-x-auto {
    margin-left: auto;
    margin-right: auto;
}
.margin-y-auto {
    margin-top: auto;
    margin-bottom: auto;
}

.container {
    padding-inline: 2em;
    max-width: 80rem;

}
.sr-only {
    position: absolut;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* Wrappers contain content, Containers encapsulate wrappers */
/* CENTERED XY WRAPPER */
.wrapper {
    .center-xy {
        margin-inline: auto;
        padding-inline: 1rem;
        max-width: 60rem;
    }
}
/* FONT SIZES */
--baseFontSize: 1rem;
--baseNavSize: 0.64rem;
--smallFontSize: 0.8rem;
--smallestFontSize: 0.512rem;

--heading-xxl: 3.052rem;
--heading-xl: 2.442rem;
--heading-one: 1.953rem;
--heading-two: 1.563rem;
--heading-three: 1.25rem;
--heading-four: var(--baseFontSize);
--heading-five: var(--smallFontSize);
--heading-six: 0.64rem;
--heading-seven: var(--smallestFontSize);