:root {
    --bold: 700;
    --semibold: 600;
    --medium: 500;
    --regular: 400;
    --font-title: 'Outfit', sans-serif;
    --body-font: 'Inter', sans-serif;
    --lh-default: 120%;
    --lh-body: 145%;
    --title-x: 1;
}

html {
    font-size: 16px;
    font-family: var(--body-font);
    line-height: var(--lh-default);
    font-style: normal;
}

/* Font assignment */

.font-title,
h1,
h2,
h3,
h4,
h5,
h6,
th,
td {
    font-family: var(--font-title);
    line-height: var(--lh-default);
    font-weight: var(--bold);
    color: var(--text-semi);
    word-break: break-word;
    letter-spacing: 0.03em;
}

.body-font,
p,
li,
body,
tr,
select,
option,
input,
textarea,
code,
a {
    font-family: var(--body-font);
    line-height: var(--lh-body);
    font-size: 1rem;
    color: var(--text);
}

/* Font size */

.fs-7 {
    font-size: calc(7rem * var(--title-x));
}

.fs-675 {
    font-size: calc(6.75rem * var(--title-x));
}

.fs-6 {
    font-size: calc(6rem * var(--title-x));
}

h1,
.fs-5 {
    font-size: calc(5rem * var(--title-x));
}

.fs-475 {
    font-size: calc(4.75rem * var(--title-x));
}

.fs-45 {
    font-size: calc(4.5rem * var(--title-x));
}

.fs-4 {
    font-size: calc(4rem * var(--title-x));
}

h2,
.fs-375 {
    font-size: calc(3.75rem * var(--title-x));
}

.fs-35 {
    font-size: calc(3.5rem * var(--title-x));
}

h3,
.fs-3 {
    font-size: calc(3rem * var(--title-x));
}

h4,
.fs-25 {
    font-size: calc(2.5rem * var(--title-x));
}

h5,
.fs-2 {
    font-size: calc(2rem * var(--title-x));
}

h6,
.fs-175,
div.fs-175 p {
    font-size: calc(1.75rem * var(--title-x));
}

.fs-15,
div.fs-15 p {
    font-size: 1.5rem;
}

.fs-125,
div.fs-125 p,
ul.fs-125 > li {
    font-size: 1.25rem;
}

.fs-1 {
    font-size: 1rem;
}

.fs-075 {
    font-size: 0.75rem;
}

.lh-150 {
    line-height: 150%;
}

.lh-135 {
    line-height: 135%;
}

.lh-125 {
    line-height: 125%;
}

.lh-110 {
    line-height: 110%;
}

.lh-100 {
    line-height: 100%;
}

.ls-01 {
    letter-spacing: 0.1rem;
}

.ls-02 {
    letter-spacing: 0.2rem;
}

/* weight */

.bold {
    font-weight: var(--bold);
}

.semibold {
    font-weight: var(--semibold);
}

.medium {
    font-weight: var(--medium);
}

.regular {
    font-weight: var(--regular);
}

mark {
    background-color: var(--hover-accent);
    color: var(--text);
}

@media screen and (min-width: 2100px) {
    html {
        font-size: 24px;
    }
    :root {
        --title-x: 0.8;
    }
}

@media screen and (min-width: 1600px) {
    html {
        font-size: 20px;
    }
    :root {
        --title-x: 0.9;
    }
}

@media screen and (max-width: 1360px) {
    html {
        font-size: 15px;
    }

    :root {
        --title-x: 0.65;
    }

    h5,
    .fs-2 {
        font-size: 1.75rem;
    }

    h6,
    .fs-175 {
        font-size: 1.5rem;
    }
}
@media screen and (max-width: 1024px) {
    html {
        font-size: 14px;
    }

    .fs-675,
    .fs-6 {
        font-size: 3.5rem;
    }

    .fs-5 {
        font-size: 3.25rem;
    }

    h1,
    .fs-475 {
        font-size: 3rem;
    }

    .fs-45 {
        font-size: 2.75rem;
    }

    .fs-4 {
        font-size: 2.5rem;
    }

    .fs-375 {
        font-size: 2.25rem;
    }

    h2,
    .fs-35 {
        font-size: 2rem;
    }

    h3,
    .fs-3 {
        font-size: 2rem;
    }

    h4,
    .fs-25 {
        font-size: 1.75rem;
    }

    h5,
    .fs-2 {
        font-size: 1.5rem;
    }

    h6,
    .fs-175 {
        font-size: 1.5rem;
    }

    .fs-15 {
        font-size: 1.5rem;
    }

    .fs-125 {
        font-size: 1.25rem;
    }
}

@media screen and (max-width: 600px) {
    .fs-675,
    .fs-6 {
        font-size: 3rem;
    }

    .fs-5 {
        font-size: 2rem;
    }

    h1,
    .fs-475 {
        font-size: 1.75rem;
    }

    h1 {
        line-height: 110%;
    }

    .fs-45 {
        font-size: 1.5rem;
    }

    .fs-4 {
        font-size: 1.5rem;
    }

    .fs-375 {
        font-size: 1.5rem;
    }

    h2,
    .fs-35 {
        font-size: 1.5rem;
    }

    h3,
    .fs-3 {
        font-size: 1.375rem;
    }

    h4,
    .fs-25 {
        font-size: 1.25rem;
    }

    h5,
    .fs-2 {
        font-size: 1.25rem;
    }

    .fs-15 {
        font-size: 1.125rem;
    }

    p.fs-125 {
        font-size: 1rem;
    }
}
