:root {
    --secondary: #808371;
    --light: #F0EBDA;
    --primary: #565D57;
}

html {
    font-size: max(.9vw, 16px);
    -webkit-font-smoothing: antialiased;
}

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

body {
    background-color: var(--secondary);
    margin: 0;
    font-family: "figtree", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    height: 100vh;
    text-align: center;
    position: relative;

    &:before {
        content: '';
        top: 0;
        left: 0;
        position: absolute;
        background-image: url('../images/assets/pattern.svg');
        background-size: 700px;
        background-position: center;
        opacity: 0.2;
        background-repeat: repeat;
        width: 100%;
        height: 100%;
        
    }
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 100%;

    .container {
        padding-top: 6rem;
        padding-bottom: 6rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;

        a.link {
            text-decoration: none;
            color: #fff;
            transition: .3s;

            &:hover {
                text-decoration: underline;
            }
        }

        .alt-font {
            font-family: 'p22-cezanne-pro', sans-serif;
            font-weight: 400;
            font-style: normal;
            transform: rotate(-5deg);
        }

        .subtitle {
            font-size: 72px;
        }

        .content {
            margin-top: -3rem;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            
            h1 {
                margin-bottom: 1.5rem;
                font-size: 3.25rem;
            }
            
            p {
	            font-size: 1.25rem;
	            max-width: 45rem;
	            margin-bottom: 2rem;
            }
        }
    }

    .logo {
        display: inline-block;
        width: max-content;
        
        img {
            width: 12.5rem;
        }
    }
 
}

.button {
    font-size: 1rem;
    padding: 1rem 1.5rem;
    display: inline-flex;
    background-color: var(--light);
    color: var(--primary);
    align-items: center;
    line-height: 1;
    text-decoration: none;
    border-radius: 6.25rem;
    transition: 0.3s;

    &:hover {
        background-color: var(--primary);
        color: #ffffff;
    }
}

@media screen and (max-width: 776px) {
    body {
        height: 100dvh;
        
        &:before {
            background-size: 460px;
        }
        
        main {
            .container {
                padding-bottom: 1rem;

                .content {
                    .subtitle {
                        font-size: 2.875rem;
                    }
                    h1 {
                        font-size: 2rem;
                    }
                }
            }
        }
    }
}