*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Libre";
    src: url('/assets/fonts/LibreFranklin-VariableFont_wght.ttf') format('truetype');
}
@font-face {
    font-family: "LibreItalic";
    src: url('/assets/fonts/LibreFranklin-Italic-VariableFont_wght.ttf') format('truetype');
}

img,
picture {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition-duration: 350ms;
}
a:not(.logo):hover {
    font-weight: 400;
}
p a {
    text-decoration: underline;
    text-decoration-thickness: 0.2rem;
}
p a:hover {
    color: var(--clr-highlight);
    text-decoration-thickness: 0.1rem;
}

em { 
    font-family: "LibreItalic";
    font-style: inherit;
}

ul {
    list-style: none;
}

:root {
    /* Font Sizes */
    font-size: 62.5%;
    --font-size-1: 1.4rem; 
    --font-size-large: clamp(3.5rem, 2.6667rem + 2.6667vw, 5rem);
    --font-size-normal: 1.4rem;
    --font-size-menu: 1.6rem;
    /* Color */
    --clr-bg: rgba(255,255,255,1);
    --clr-highlight: rgba(142, 142, 142,1);
    /* Margins & Paddings */
    --gap-1: 0.5rem;
    --padding-block: 1.5rem;
    --padding-inline: 2.5rem;
}

@media screen and (width < 750px) {
    :root {
        --font-size-normal: 1.4rem;
        --padding-block: 1.4rem;
        --padding-inline: 1.4rem;
    }
}
@media screen and (width > 1500px) {
    :root {
        --font-size-large: clamp(3.5rem, 2.4706rem + 2.3529vw, 6rem);
    }
}


html,
body {
    font-smooth: always;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -ms-text-size-adjust: 100%;
    -webkit-touch-callout: none;
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    overscroll-behavior: none;
}

body {
    font-size: var(--font-size-1);
    background-color: var(--clr-bg);
    font-family: "Libre";
    font-size: var(--font-size-normal);
    overflow-x: hidden;
}

/* Reuse Class */

.flex {
    display: flex;
}

.font-bold {
    font-weight: 800;
}
.font-semibold {
    font-weight: 600;
}
.letter-spacing-1 {
    letter-spacing: -3%;
}
.line-height-1 {
    line-height: 130%;
}
.line-height-2 {
    line-height: 95%;;
}

/* -------------- HEADER -------------- */

.header,
.footer {
    justify-content: space-between;
    font-size: var(--font-size-menu);
}

.header {
    /* background-color: var(--clr-bg); */
    position: fixed;
    width: 100vw;
    top: 0;
    z-index: 100;
}
.header.no-portrait {
    background-color: var(--clr-bg);
}

.header_wrapper {
    gap: 1rem;
    padding: var(--padding-block) var(--padding-inline);
}
@media screen and (width < 750px) {
    .header_wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }
}
.logo a:hover,
.main_nav ul li a:hover,
.lang_switch ul li a:hover {
    cursor: pointer;
}

.main_nav ul li {
    transition-duration: 350ms;
}
.main_nav ul li:not(:last-of-type):after {
    content: ',';
    margin-left: -0.17rem;
}
.main_nav ul li.active,
.lang_switch ul li.active {
    color: var(--clr-highlight);
}
.main_nav ul li:hover {
    font-weight: 200;
}

/* Language Switch */

.lang_switch {
    width: max-content;
    padding: var(--padding-block) var(--padding-inline);
}
.lang_switch .flex {
    justify-content: end;
}

.lang_switch ul,
.main_nav ul,
.footer_nav ul {
    display: flex;
    gap: var(--gap-1);
}

/* ---------------- MAIN ---------------*/

.main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100dvh;
    width: 100vw;
}

/* -------------- FOOTER -------------- */

.footer {
    margin-top: 3rem;
    padding: var(--padding-block) var(--padding-inline);
}

@media screen and (width < 750px) {
    .footer {
        font-size: 1.2rem;
    }
}
