@import url("https://use.typekit.net/gxu8wum.css");

:root {
    --clr-text: #4d3e63;
    --clr-bg: #e7e9f1;
    --border-r: 1rem;
}

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

html {
    color: var(--clr-text);
    font-family: neue-haas-grotesk-text, sans-serif;
}

h1 {
    font-size: 5rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1em;
}

h2 {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1em;
}

h3 {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.025em;
}

h6 {
    font-size: .825rem;
    font-weight: 600;
    letter-spacing: .25em;
    line-height: 1em;
    text-transform: uppercase;
}

li {
    margin: .25em 0 .25em 2em;
}

.btn-container {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    background: #4d3e63;
    background-size: cover;
    padding: .5em 1em;
    border-radius: calc(var(--border-r) / 2);
    transition: ease-out 250ms;
}

.btn:hover {
    scale: 1.05;
}

main {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

header {
    height: 500px;
    background: url(./img/mg-gradient.jpg);
    background-position: center;
    border-radius: var(--border-r);
    display: flex;
    align-items: flex-end;
    padding: var(--border-r);
}

.header-text {
    width: 100%;
    color: #fff;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.sub-header {
    background: var(--clr-bg);
    min-height: calc(var(--border-r)*2);
    padding: .5rem var(--border-r);
    border-radius: var(--border-r);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

article {
    background: var(--clr-bg);
    border-radius: var(--border-r);
    padding: var(--border-r);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.img-container {
    border-radius: var(--border-r);
    overflow: hidden;
}

.video-container-high {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.fadeUp {
    animation-name: fadeUp;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: backwards;
}

.anim-d-1 {
    animation-delay: 250ms;
}

.anim-d-2 {
    animation-delay: 500ms;
}

.anim-d-3 {
    animation-delay: 750ms;
}

.anim-d-4 {
    animation-delay: 1000ms;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        translate: 0 100px;
    }

    100% {
        opacity: 1;
        translate: 0 0;
    }
    
}

@media (max-width: 660px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }
    h3 {
        font-size: 1.75rem;
    }
    
    h6 {
        font-size: .75rem;
    }

    main {
        padding: 1rem;
        gap: 1rem;
    }

    header {
        height: 300px;
    }

    .sub-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 360px) {
    h2 {
        font-size: 1.75rem;
    }

    header {
        height: 200px;
    }

    .header-text {
        flex-direction: column;
    }


}