/* GLOBAL */

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

a, a:visited, a:hover, a:active {
    color: inherit;
    text-decoration: inherit;
  }

p {
    margin: 1rem 0;
}
p.aside {
    font-size: 0.8em;
    color: #666;
}

h1, h2, h3, h4, h5, h6 {
 font-weight: 500;
}

ul {
    list-style: none;
}

body {
    font-family: 'Allerta', sans-serif;
    font-weight: 300;
    background-color: #fff;
    color: rgba(26, 26, 26, 0.7);
    text-align: left;
    font-size: 14px;
    line-height: 1.5em;
    width: 100%;
}

.button {
    border: 2px solid black;
    border-radius: 24px;
    padding: 12px 16px;
}

@font-face {
    font-family: "Allerta";
    font-weight: 400;
    src: url("fonts/Allerta-Regular.ttf");
}

@font-face {
    font-family: "Figtree";
    src: url("fonts/Figtree-VariableFont_wght.ttf");
}


/* NAV */

nav {
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 100%;
    z-index: 2;
    font-family: 'Figtree','sans-serif';
    font-weight: 600;
    letter-spacing: 2px;
    color: black;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 16px;
    text-wrap: nowrap;
}

nav ul li.active {
    text-decoration: underline;
    text-underline-offset: 8px;
}

.brand img{
    width: 110px;
    margin: 8px 0px 0px 16px;
}

@media screen and (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul {
        width: 100%;
        justify-content: center;
    }
    .brand img{
        margin-bottom: 24px;
    }
}

@media screen and (max-width: 500px) {
    nav ul {
        flex-wrap: wrap;
    }
    nav ul li {
        margin-top: 20px;
    }
}

/* COMMON ELEMENTS */

.content-block {
    margin: 6em auto;
    max-width: 900px;
}

footer {
    width: 100%;
    padding: 6rem 6rem;
    background-color: black;
    color: rgb(163, 163, 163);
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
}

.two-columns img {
    width: 450px;
}

a.button-square, input[type="submit"] {
    padding: 0.5em 0.75em;
    border: 1px solid #222;
    border-radius: 4px;
    background-color: #000;
    color: white;
    font-size: 1.5em;
    font-family: 'Figtree', 'sans-serif';
    font-weight: 600;
    letter-spacing: 2px;
}

input[type="submit"] {
    margin-top: 1em;
    max-width: 250px;
}

@media screen and (max-width: 1000px) {
    .two-columns {
        grid-template-columns: 3fr 2fr;
    }
    
    .two-columns img {
        width: 350px;
    }
}

@media screen and (max-width: 768px) {
    .content-block {
        margin: 4em 2em;
    }
    .two-columns {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4em;
    }
    footer {
        font-size: 0.8em;
        padding: 3rem;
    }
}
