@import url(https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap);

* {
    font: inherit;
    color: inherit;

    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    background: none;

    box-sizing: border-box;
    line-height: inherit;

    scroll-margin-top: 2rem;
    scroll-behavior: smooth;

    interpolate-size: allow-keywords;
    /* outline: 1px dashed #0707; */
}

:root {
    --background: #fffdfc;
    --foreground: #471d00;

    --foreground-10: oklch(from var(--foreground) 10% 0.02 h);
    --foreground-19: oklch(from var(--foreground) 19% 0.01 h);

    --background-50: oklch(from var(--background) 50% 0.01 h);
    --background-70: oklch(from var(--background) 75% c h);
    --background-85: oklch(from var(--background) 85% c h);

    --accent-soft: #feb98a;
    --accent-pop: #fe6601;
    --accent-support: #bb4a01;

    --accent-pop-60: oklch(from var(--accent-pop) 60% c h);
    --accent-pop-50: oklch(from var(--accent-pop) 50% c h);

    --shadow: 0 1px 5px rgb(from var(--foreground) r g b / .7);
    --border: 2px solid;

    --transition: 100ms ease-in-out;
    --radius: .5rem;
}

html {
    font-family: "Montserrat", Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
}

body {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100dvh;
}

header {
    & {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: var(--border) var(--foreground);
        padding: 0 3rem 0 2rem;
        gap: 2rem;
    }

    .logo {
        & {
            display: grid;
            place-items: center;
            background-image: url(../assets/trail-1.svg);
            background-size: contain;
            aspect-ratio: 2 / 1;
            width: 11rem;
        }

        h1 {
            display: inline;
            font-size: 2rem;
            font-weight: bold;
            text-shadow: 0 1px 3px var(--background);
            transition: var(--transition);
        }

        &:hover h1 {
            font-size: 2.1rem;
        }
    }

    nav ul {
        & {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        li {
            & {
                position: relative;
                font-weight: bold;
                transition: var(--transition);
            }

            &::before {
                content: "";
                display: block;
                position: absolute;
                background-color: var(--foreground);
                height: 2px;
                bottom: 0;
                width: 0;
                transition: var(--transition);
            }

            &:hover::before {
                width: 100%;
            }

            &:active {
                & {
                    color: var(--accent-support);
                }

                &::before {
                    background-color: var(--accent-support);
                }
            }
        }
    }
}

main {
    & {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        padding: 2rem;
        gap: 2rem;
    }

    section {
        & {
            display: grid;
            gap: 1rem;
        }

        h1 {
            text-transform: uppercase;
            font-weight: bold;
        }

        h2 {
            font-weight: bold;
        }

        h3 {
            font-style: italic;
            font-weight: bold;
        }

        p {
            text-indent: 2cm;
            text-align: justify;
        }

        figure {
            display: grid;
            justify-items: center;
        }
    }

    .content {
        max-width: 80ch;
        align-self: center;
    }

    .banner {
        & {
            display: grid;
            grid-template-columns: 36rem auto;
            grid-template-areas:
                "slogan brand"
                "pitch  brand"
                "start  .";
            align-items: center;
            align-self: center;
            width: 100ch;
            padding: 2rem;
            gap: 2rem;
        }

        .slogan {
            & {
                grid-area: slogan;
                font-size: 3.5rem;
                font-weight: bold;
            }

            .effect:nth-of-type(1) {
                -webkit-text-stroke-color: var(--accent-support);
                -webkit-text-stroke-width: 3px;
                color: transparent;
            }

            .effect:nth-of-type(2) {
                font-style: italic;
                color: var(--accent-pop);
            }
        }

        .pitch {
            grid-area: pitch;
            text-align: justify;
        }

        .start {
            & {
                display: flex;
                grid-area: start;
                justify-content: end;
            }

            .button {
                background-color: var(--accent-pop);
                color: var(--background);
                border-radius: .5rem;
                text-decoration: none;
                font-weight: bold;
                padding: 1rem;
                transition: var(--transition);
            }

            .button:hover {
                background-color: var(--accent-pop-60);
            }

            .button:active {
                background-color: var(--accent-pop-50);
            }
        }

        .brand {
            & {
                grid-area: brand;
                display: grid;
                place-items: center;
                perspective: 200px;
                transform-style: preserve-3d;
            }

            .card {
                & {
                    display: grid;
                    place-items: center;
                    box-shadow: 3px 2px 30px var(--accent-pop);
                    box-sizing: content-box;
                    border-radius: var(--radius);
                    border: var(--border) var(--foreground);
                    aspect-ratio: 1;
                    padding: 1rem;
                    width: 14rem;
                    transform: rotateX(-5deg) rotateY(-5deg) rotateZ(10deg);
                    transition: var(--transition);
                }

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

                &:hover {
                    box-shadow: 3px 2px 5px var(--accent-pop);
                    transform: none;
                }
            }
        }
    }

    .team {
        & {
            align-self: center;
        }

        .members {
            & {
                display: flex;
                flex-wrap: wrap;
                max-width: 140ch;
                gap: 1rem;
            }

            .member {
                & {
                    flex: 1 1 0;
                    display: grid;
                    border: var(--border);
                    border-radius: var(--radius);
                    grid-template-columns: auto 1fr;
                    grid-template-rows: 8rem 1fr;
                    min-width: 20rem;
                    padding: 1rem;
                    gap: 1rem;
                }

                .photo {
                    aspect-ratio: 1;
                    background-color: var(--background);
                    border: var(--border);
                    border-radius: 100%;
                    align-self: center;
                    object-fit: cover;
                    height: 8rem;
                }

                .profile {
                    & {
                        display: grid;
                        grid-template-rows: 1fr 2fr;
                        gap: .25rem;
                    }

                    .name {
                        align-self: end;
                        white-space: nowrap;
                    }

                    .titles {
                        font-size: .75rem;
                        color: var(--background-50);
                    }
                }

                .phrase {
                    & {
                        grid-column: span 2;
                    }

                    &::before,
                    &::after {
                        content: "\"";
                    }
                }
            }
        }
    }
}

footer {
    & {
        display: flex;
        flex-direction: column;
        align-self: center;
        align-items: center;
        color: var(--background-85);
        background-color: var(--foreground-10);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        width: fit-content;
        font-size: .875rem;
        padding: 1rem 3rem;
        gap: 1rem;
    }

    hr {
        background-color: var(--background-50);
        height: 1px;
        width: 100%;
    }

    .info {
        & {
            display: flex;
            flex-wrap: wrap;
            align-items: start;
            gap: 2rem;
        }

        .group {
            h2 {
                color: var(--background-50);
                font-size: .75rem;
            }

            ul {
                & {
                    display: flex;
                    flex-wrap: wrap;
                    flex-direction: column;
                    list-style: none;
                    max-height: 8rem;
                    gap: 0 2rem;
                }

                li {
                    white-space: nowrap;
                }

                li:has(a)::after {
                    content: "";
                    width: 1ch;
                    aspect-ratio: 1;
                    background-image: url(../assets/anchor.svg);
                    background-size: contain;
                }
            }
        }
    }

    .copyright {
        & {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .license {
            color: var(--background-50);
            font-size: .75rem;
        }
    }
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--background-85);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--background-70);
}


@media screen and (max-width: 700px) {
    header nav {
        display: none;
    }
}

@media screen and (max-width: 800px) {
    main .banner {
        grid-template-columns: auto;
        grid-template-areas:
            "brand"
            "slogan"
            "pitch"
            "start";
        width: auto;
    }

    footer .info {
        & {
            display: flex;
            flex-wrap: nowrap;
            flex-direction: column;
        }

        .group ul {
            max-height: unset;
        }
    }
}