/* ================================================================= */
/* ===== GLOBAL STYLES =====*/
/* ================================================================= */


/* ===== SET VARIABLES =====*/

:root {
    --primary-color: #ffeb3b;
    --main-link-color: var(--primary-color);
}


/* ===== LOAD FONTS =====*/

@font-face {
    font-family: TypefesseClaireObscure;
    src: url(Typefesse_Claire-Obscure.otf);
}

@font-face {
    font-family: TypefessePleine;
    src: url(Typefesse_Pleine.otf);
}

@font-face {
    font-family: Inter;
    src: url(Inter-VariableFont_slnt,wght.ttf);
}


/* ===== ELEMENT STYLING ===== */

/* Default */
body {
    margin: 5vh 10vw;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    body {
        margin: 1vh 5vw;
    }

    #site-title {
        font-size: clamp(2.5rem, 8vw, 4rem)!important;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    body {
        margin: 1vh 5vw;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 920px) {
    body {
        margin: 5vh 15vw;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    body {
        margin: 5vh 20vw;
    }
}

* {
    font-family: 'Inter', serif;
}

code {
    font-family: monospace;
    background-color: #eeeeee;
    outline: solid 2px #eeeeee;
}

code * {
    font-family: monospace;
}

pre {
    overflow: scroll;
    max-height: 80vh;
    padding: 10px;
}

p,
a,
li,
div {
    font-size: 1.3rem;
}

a {
    color: inherit;
    text-decoration: none;
    box-shadow: inset 0px -3px 0 0 #ffeb3b;

    transition: box-shadow 0.2s cubic-bezier(0.19, 1, 0.22, 1);
}

a:hover {
    box-shadow: inset 0px -5px 0 0 #ffeb3b;
}

li {
    margin-top: 10px;
}

blockquote {
    border: dashed 4px var(--primary-color);
    padding: 0 10px;
}

img {
    width: 100%;
}

footer {
    margin-top: 2.5rem;
    text-align: center;
}


/* ===== SITE NAVIGATION ===== */

#site-title {
    font-family: 'TypefesseClaireObscure', sans-serif;
    font-size: 4rem;
    margin: 0.5em;
    text-align: center;
    user-select: none;

    box-shadow: none;
    transition: none;
}

#site-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-evenly;
    align-items: center;
}

#nav-links {
    display: flex;
}

.nav-link-btn {
    padding: 10px;
    margin: 0px 15px;
    user-select: none;
    box-shadow: inset 0px -2px 0 0 #ffeb3b;

    transition: box-shadow 0.2s cubic-bezier(0.19, 1, 0.22, 1);
    transition: background-color 0.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-link-btn:hover {
    background-color: whitesmoke;
    box-shadow: inset 0px -4px 0 0 #ffeb3b;
}

.nav-link-btn:active {
    translate: 0 2px;
    box-shadow: inset 0px -4px 0 0 #ffeb3b;
}


/* ===== SITE CONTENT ===== */

#page-title {
    box-shadow: -11px 0px 0px 0px #ffeb3b;
    border-left: 15px solid transparent;
}

#content {
    margin: 40px 0px;
    line-height: 2rem;
}
