*, *::before, *::after {
    margin:0;padding:0;box-sizing: border-box;
}
img, svg {
    max-width: 100%;
}
:root {
    font-family: "Red Hat Display", -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
    font-size: 15px;
    font-weight: 500;

    --padding: 2rem;
}
body {
    background-color: #fff;
    color: #000;
}
/* layout, generalization */
main {
    max-width: 800px;
    margin: 0 auto;

    display: grid;
    place-items: center;
    gap: 3rem 0;

    padding: calc(var(--padding) * 1.5) calc(var(--padding) * 0.75) calc(var(--padding) * 1) calc(var(--padding) * 0.75);
}
main > article, header, footer {
    width: 100%;
}
main > article {
    place-self: stretch;
    display: grid;
    place-content: center;
}
/* header */
h1 {
    font-size: 2.75rem;
    font-weight: 700;
    min-width: 100%;
    justify-content: center;
}
h1 > svg {
    max-height: 1em;
    stroke-width: 0.4em;
}
h1 + p {
    font-size: 2.25rem;
    font-weight: 700;

    width: min-content;
    margin: 0;
}
header {
    position: relative;
    
    fill: #fff;
    color: #fff;

    display: flex;
    flex-direction: column;
    place-items: center;
}
main::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 50% 0;
    background-image: url(./img/wave-min.svg);
    background-size: 75rem;
    background-repeat: no-repeat;
    background-position: center 0;
}
/* header::before {
    content: "";
    position: absolute;
    inset: -2rem -2rem -70vw -2rem;
    z-index: -1;
    background-image: url("./img/wave.svg");
    background-size: 100%;
    background-repeat: no-repeat;
} */
footer {
    --width: 2rem;
    --height: 0.5rem;

    position: relative;
    padding: calc(var(--padding) + var(--height)) var(--padding) var(--padding) var(--padding);
    background: linear-gradient(20.95deg, #F17373 0%, #FCAF5F 100%);
    color: #fff;
    text-align: center;
}
footer::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--height);
    background: #fff;
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMCA1IiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj4KICA8cGF0aCBkPSJNIDAgMCBMIDEwIDAgTCA1IDUgWiIgZmlsbD0iIzAwMDAwMCIvPgo8L3N2Zz4=");
    mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMCA1IiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj4KICA8cGF0aCBkPSJNIDAgMCBMIDEwIDAgTCA1IDUgWiIgZmlsbD0iIzAwMDAwMCIvPgo8L3N2Zz4=");
    -webkit-mask-size: var(--width) var(--height);
    mask-size: var(--width) var(--height);
}
article:nth-of-type(2) {
    position: relative;
    z-index: -1;
    background-color: #FCF8F7;
    box-shadow: 0 0 0 100vmax #FCF8F7;
    clip-path: inset(-1rem -100vmax);
}
/* generalization */
:is(h1, h2, h3, p, li):has(+ *) {
    margin: 0 0 0.4em 0;
}
h1, h2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35em;
}
.feature-list > ul {
    list-style: none;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.feature-list li::before {
    background-color: #F4856C;
    content: "";

    display: inline-block;

    flex-basis: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
}
h2 {
    gap: 0.5em;
}
h2 > svg {
    fill: #fff;
    background: #F4856C;
    padding: 0.5rem;
    flex-basis: 2em;
    flex-shrink: 0;
    border-radius: 25%;
}
h3 {font-size: 1.2em;}
img {
    max-width: 55%;
}
@media only screen and (min-width: 700px) {
    :root {
        font-size: 16px;
    }
    main {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 var(--padding) var(--padding) var(--padding);
    }
    header {
        grid-column: span 2;
        height: 400px;
        justify-content: center;
        align-items: stretch;
    }
    h1 {
        font-size: 3rem;
        justify-content: start;
    }
    h1 + p {
        font-size: 2.5rem;
    }
    img {
        grid-column: span 1;
        max-width: 100%;
    }
    img:first-of-type {
        grid-row: span 2;
    }
    img:nth-of-type(2n-1) {
        grid-column: 3;
    }
    article:nth-of-type(2n-1) {
        grid-column: 1 / 3;
        padding-right: 4rem;
    }
    img:nth-of-type(2n) {
        grid-column: 1;
    }
    article:nth-of-type(2n) {
        grid-column: 2 / 4;
        padding-left: 4rem;
    }
    article:last-of-type {
        grid-row-end: 5;
    }
}
