/* ==========================================================================
   fonts
   ========================================================================== */

/*
@font-face {
    font-family: 'FordF1';
    src: url('./fnt/fordf1-light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FordF1';
    src: url('./fnt/fordf1-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FordF1';
    src: url('./fnt/fordf1-semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
*/

@font-face {
    font-family: 'FordF1';
    src: url('./fnt/fordf1-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FordF1';
    src: url('./fnt/fordf1-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}



/* ==========================================================================
   animations
   ========================================================================== */

@keyframes bg-scroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: calc(-5.7549194991 * 40dvh) 0;
    }
}



/* ==========================================================================
   reset / normalize
   ========================================================================== */

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

* {
    margin: 0;
}

body {
    -webkit-font-smoothing: antialiased;
}

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

input,
button,
textarea,
select {
    font: inherit;
}



/* ==========================================================================
   custom page styles
   ========================================================================== */

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: stretch;
    width: 100vw;
    min-height: 100dvh;
    font-family: FordF1, Helvetica, sans-serif;
    font-weight: 400;
    opacity: 0;
    transition: opacity .5s;
}

body.loaded {
    opacity: 1;
}

header {
    display: flex;
    flex: 0 0 34em;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    background-color: #cbdae2;
    background-image: url("../img/bg-sky.webp");
    background-position: 0 0;
    background-repeat: repeat-x;
    background-size: auto 100%;
    animation: bg-scroll 180s linear infinite;
}

header img {
    margin-top: 1.5em;
}

main {
    position: relative;
    display: flex;
    flex: 1 1 calc(90dvh - 42em);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding-block: 8em 10dvh;
    background-image: url("../img/bg-ground.webp");
    background-position: 50% 0;
    background-repeat: repeat-x;
    background-size: auto 120%;
}

figure.van {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 4;
    width: 90%;
    max-width: 38em;
}

.van img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
}

div.content {
    position: relative;
    z-index: 10;
    padding: 0 10vw;
    text-align: center;
}

h2 {
    margin-bottom: .75em;
    color: #00095b;
    font-size: clamp(1.75em, 4vw, 2.25em);
    font-weight: 700;
    line-height: 1;
}

p {
    width: 100%;
    max-width: 60em;
    margin-bottom: 2em;
    color: #00095b;
    font-size: 1.125em;
    line-height: 1.5;
}

.content ul,
.content .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2vw;
    padding: 0;
    list-style-type: none;
}

.content ul a,
.content .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .5em 2.5em;
    border-radius: 2em;
    background: #1700f4;
    color: #fff;
    font-size: 1.1875em;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s;
}

.content ul a:hover,
.content .wp-block-button__link:hover {
    background: #000;
}

main div.ground {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
}

.ground div {
    width: 100%;
    background-image: url(../img/bg-ground.webp);
    background-repeat: repeat-x;
}

.ground div:nth-child(1) {
    height: 7%;
    background-position: 50% 0;
}

.ground div:nth-child(2) {
    height: 13%;
    background-position: 50% -4.2dvh;
}

.ground div:nth-child(3) {
    height: 27%;
    background-position: 50% -7.8dvh;
}

.ground div:nth-child(4) {
    height: 53%;
    background-position: 50% -16.2dvh;
}

main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 2%, rgba(255,255,255,.8) 25%, rgba(255,255,255,.95) 100%);
}



/* ==========================================================================
   media queries
   ========================================================================== */

@media screen and (max-width: 47.9375em) {
    header {
        flex: 1 1 80vw;
    }

    .content ul,
    .content .wp-block-buttons {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
    }

    .content ul a,
    .content .wp-block-button__link {
        display: flex;
    }
}

@media screen and (max-width: 42.5em) {
    main {
        padding-top: 20vw;
    }
}

@media screen and (max-width: 40em) {
    header {
        flex: 1 1 100vw;
    }
}
