html{
    font-size: var(--font-size-primary);
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

@media screen and (min-width: 992px) {
    html{
        font-size: var(--font-size-tablet);
    }
}

@media screen and (min-width: 2000px) {
    html{
        font-size: var(--font-size-desktop);
    }
}

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

body{
    background-color: var(--color-secondary);
    color: var(--color-primary);
    line-height: 1;
    -webkit-font-smoothing: antialiased; /* For Chrome and Safari*/
    -moz-osx-font-smoothing: grayscale; /* For Firefox on Mac*/
    min-height: 100svh;
    display: flex;
    flex-direction: column;

    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-primary);
    letter-spacing: var(--letter-spacing-primary);
}

main{
    flex: 1; /* Allow main to grow and fill the available size and put Footer on Bottom*/
}

img, video{
    display: block;
    width: 100%;
    height: auto;
}

/* Remove thin video outline on iOS devides*/
@supports (-webkit-touch-callout: none) {
  video {
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: -webkit-radial-gradient(white, black);
  }
}

ul, li{
    list-style: none;
}

a{
    color: var(--color-tertiary);
    text-decoration: none;
}

a:hover{
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6{
    all: unset;
    display: block;
}

/* Header*/

#header{
    display: flex;
    justify-content: space-between;
    z-index: 1000;
    padding: var(--size-m);
    padding-top: calc(var(--size-s) * 1.309);
    padding-bottom: calc(var(--size-s) * 1.309);
    background-color: var(--color-secondary);
    /* background-color: rgba(255,255,255,.5);
    backdrop-filter: blur(50px); */
    flex-wrap: wrap;
    column-gap: var(--size-s);
    row-gap: calc(var(--size-s) / 1.618);
}

/* @media screen and (min-width: 992px) {
    #header{
        position: sticky;
        top: 0;
    }
} */

#header a{
    text-decoration: none;
    color: var(--color-primary);
}

#header a:hover{
    text-decoration: underline;
}

.site-nav{
    display: flex;
    flex-direction: row;
    gap: calc(var(--size-s) * 1.618 * 1.618);
}

.site-nav ul{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: var(--size-s);
    row-gap: calc(var(--size-s) / 1.618);
}

.site-nav a:hover{
    text-decoration: underline;
}

.site-nav li.active{
    text-decoration: underline;
}

.site-title{
    white-space: nowrap;
}
