@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100..700&family=Jost:wght@400..700&display=swap');

:root {
    --themeWhite: #F8F4F1;
    --themeDarkGreen: #47673C;
}

body {
    background-color: var(--themeWhite);
    margin: 0;
    font-family: "Jost", sans-serif;
    font-weight: 400;
    font-size: 1.8vw;
    line-height: 1.6em;
}

h1 {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 300;
    color: var(--themeDarkGreen);
}

header {
    background-image: radial-gradient(farthest-side at top, #58844C, #3E5D35);
    display: grid;
    justify-items: center;
    gap: 1.4em;
    padding: 1.4em 0 2.4em 0;
    clip-path: url(#headerClip);
}

.shapeShadowWrap {
    filter: drop-shadow(0.5em 0.5em 1em rgba(0, 0, 0, 0.5));
}

#logo {
    width: 20vw;
}

#topNav {
    display: flex;
    flex-direction: row;
    gap: 2em;
    text-transform: uppercase;
    color: var(--themeWhite);
    font-size: 0.8em;
}

#topNav a {
    cursor: pointer;
}

#topNav a:not(:first-child)::before {
    content: "|";
    position: relative;
    left: -1em;
}

#titleSection {
    background-image: url(img/HappyDinnerOpt.jpg);
    width: 100%;
    height: 50vw;
    background-position-x: 90%;
    background-size: 111%;
    margin-top: -4em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--themeWhite);
    text-shadow: 0 0 0.4em black;

    & > * {
        width: 50%;
        text-align: center;
        text-wrap-style: balance;
    }

    & > h1 {
        font-size: 3em;
        margin-top: 6vw;
        color: var(--themeWhite);
    }
}

.shrinkwrapBlur {
    anchor-name: --shrinkwrapAnchor;
    z-index: 1;
    position: relative;
}

*:has(> .shrinkwrapBlur) {
    position: relative;

    &::after {
        content: "";
        position: absolute;
        position-anchor: --shrinkwrapAnchor;
        inset: -1vw calc(anchor(inside) - 3vw);
        backdrop-filter: blur(0.75vw);
    }
}

#section1 {
    display: grid;
    grid-template-areas:
        "twoThirds twoThirds .";
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2vw;
    margin: 10vw auto;
    width: 80%;
}

#section1 > :first-child {
    grid-area: twoThirds;
}