/* 
    Typefaces 
*/

@font-face {
    font-family: "Px Grotesk";
    src: url("../fonts/Px-Grotesk-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Px Grotesk";
    src: url("../fonts/Px-Grotesk-Regular-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Recital";
    src: url("../fonts/Recital-Regular.woff2") format("woff2"), url("../fonts/Recital-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Recital";
    src: url("../fonts/Recital-Italic.woff2") format("woff2"), url("../fonts/Recital-Italic.woff") format("woff");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* 
    Typography 
*/

/* Text Sizes */
.text-micro {
    font-size: 10px;
    line-height: 1.2em;
    letter-spacing: -0.01em;
}

.text-chip {
    font-size: 12px;
    line-height: 1.2em;
    letter-spacing: 0.05em;
}

.text-smaller {
    font-size: 13px;
    line-height: 1.4em;
}

.text-small {
    font-size: 15px;
    line-height: 1.45em;
}

.text-medium {
    font-size: 20px;
    line-height: 1.25em;
    letter-spacing: -0.02em;
}

.text-large {
    font-size: 24px;
    line-height: 1.15em;
    letter-spacing: -0.03em;
}

.text-huge {
    font-size: 30px;
    line-height: 1.1em;
    letter-spacing: -0.04em;
}

/* Tablet (> 640px) */
@media screen and (min-width: 40rem) {
    .text-micro {
        font-size: 10px;
        line-height: 1.2em;
        letter-spacing: -0.01em;
    }

    .text-chip {
        font-size: 12px;
        line-height: 1.2em;
        letter-spacing: 0.05em;
    }

    .text-smaller {
        font-size: 13px;
    }

    .text-small {
        font-size: 18.5px;
        line-height: 1.5em;
    }

    .text-medium {
        font-size: 24px;
        line-height: 1.25em;
        letter-spacing: -0.02em;
    }

    .text-large {
        font-size: 28px;
        line-height: 1.15em;
        letter-spacing: -0.03em;
    }

    .text-huge {
        font-size: 36px;
        line-height: 1.1em;
        letter-spacing: -0.04em;
    }
}

/* Desktop (> 1024px) */
@media screen and (min-width: 64rem) {
    .text-micro {
        font-size: 10px;
        line-height: 1.2em;
        letter-spacing: -0.01em;
    }

    .text-chip {
        font-size: 12px;
        line-height: 1.2em;
        letter-spacing: 0.05em;
    }

    .text-smaller {
        font-size: 13px;
    }

    .text-small {
        font-size: 17px;
    }

    .text-medium {
        font-size: 24px;
        line-height: 1.25em;
        letter-spacing: -0.02em;
    }

    .text-large {
        font-size: 32px;
        line-height: 1.15em;
        letter-spacing: -0.03em;
    }

    .text-huge {
        font-size: 60px;
        line-height: 1.1em;
        letter-spacing: -0.04em;
    }
}

/* Desktop (> 1920px) */
@media screen and (min-width: 120rem) {
    .text-micro {
        font-size: 12px;
        line-height: 1.2em;
        letter-spacing: -0.01em;
    }

    .text-chip {
        font-size: 14px;
        line-height: 1.2em;
        letter-spacing: 0.05em;
    }

    .text-smaller {
        font-size: 16px;
    }

    .text-small {
        font-size: 22px;
    }

    .text-medium {
        font-size: 32px;
        line-height: 1.25em;
        letter-spacing: -0.02em;
    }

    .text-large {
        font-size: 52px;
        line-height: 1.15em;
        letter-spacing: -0.03em;
    }

    .text-huge {
        font-size: 80px;
        line-height: 1.1em;
        letter-spacing: -0.04em;
    }
}


.text-uppercase {
    text-transform: uppercase;
}

.text-underline {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.text-gray {
    color: rgba(100, 100, 100, 1);
}

.text-white {
    color: rgba(255, 255, 255, 1);
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-end {
    text-align: end;
}

.text-indented {
    margin: 0 0 0.75rem 0;
    padding-left: 1.25rem;
}

.text-italic {
    font-style: italic;
}

.font-serif {
    font-family: "Recital", Arial, Helvetica, sans-serif;
}

.font-sans {
    font-family: "Px Grotesk", Arial, Helvetica, sans-serif;
}

/* 
    Kirby Text 
*/
.kt p {
    margin-bottom: 1em;
}

.block-text.kt h2,
.block-text.kt h3,
.block-text.kt h4,
.block-text.kt h5,
.block-text.kt h6 {
    font-family: "Px Grotesk", Arial, Helvetica, sans-serif;
    text-align: center;
    margin: 1em 2em 0.5em;
}

.kt h2 {
    font-size: 2.5rem;
    line-height: 1.1em;
    letter-spacing: -0.04em;
}

.kt h3 {
    font-size: 2rem;
    line-height: 1.1em;
    letter-spacing: -0.04em;
}

.kt h4 {
    font-size: 1.5rem;
    line-height: 1.1em;
    letter-spacing: -0.04em;
}

.kt h5 {
    font-size: 1.15rem;
    line-height: 1.15em;
    letter-spacing: -0.03em;
}

.kt h6 {
    font-size: 0.825rem;
    line-height: 1.2em;
    letter-spacing: -0.03em;
}

/* Tablet (> 640px) */
@media screen and (min-width: 40rem) {
    .kt p {
        margin-bottom: 1em;
    }

    .kt h2 {
        font-size: 4.5rem;
    }

    .kt h3 {
        font-size: 3.5rem;
    }

    .kt h4 {
        font-size: 2.25rem;
    }

    .kt h5 {
        font-size: 1.5rem;
    }

    .kt h6 {
        font-size: 1rem;
    }
}

/* Desktop (> 1024px) */
@media screen and (min-width: 120rem) {
    .kt h2 {
        font-size: 5rem;
    }
    
    .kt h3 {
        font-size: 4rem;
    }

    .kt h4 {
        font-size: 3rem;
    }

    .kt h5 {
        font-size: 2rem;
    }

    .kt h6 {
        font-size: 1rem;
    }
}

/* Desktop Large (> 1920px) */
@media screen and (min-width: 100rem) {
    .kt h2 {
        font-size: 7.5rem;
    }

    .kt h3 {
        font-size: 6rem;
    }

    .kt h4 {
        font-size: 4.5rem;
    }

    .kt h5 {
        font-size: 2.25rem;
    }

    .kt h6 {
        font-size: 1rem;
    }
}

.kt a {
    font-family: "Px Grotesk", Arial, Helvetica, sans-serif;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.kt a[target="_blank"]::after {
    content: "";
    background-image: url("../icons/arrow-upright.svg");
    background-size: 0.75rem 0.75rem;
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    translate: 0 0.125rem;
}

.kt .footnote {
    font-size: 0.65em;
    line-height: 1.2em;
    vertical-align: super;
    background-color: rgba(230, 230, 230, 1);
    padding: 0.1rem 0.2rem;
    margin: 0 0.25rem;
    border-radius: 2px;
    font-family: "Px Grotesk", Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.kt .footnote:first-child {
    margin-left: 0.15rem;
}

.kt .footnote:last-child {
    margin-right: 0.1rem;
}

.kt .text-align-center {
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.kt .text-align-right {
    text-align: right;
    padding-left: 1rem;
}