/* The home page */

.BodyBlock.homeHero {
    padding-top: 104px;
    padding-bottom: 56px;

    @media all and (max-width: 700px) {
        padding-top: 56px;
    }

    .Billboard h1 {
        max-width: none;
        font-size: clamp(52px, 7.4vw, 106px);
    }
}

section.homeShowcase {
    gap: 18px;

    > .beforeAndAfter {
        --photo-radius: var(--border-radius-big);
    }

    > .note {
        max-width: 760px;
        font-size: var(--font-size-small);
        color: var(--color-text-faint);

        a {
            color: var(--color-text-soft);
        }
    }
}

/* A title on the left, its text on the right */
section.homeSplit {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px 72px;

    > h2,
    > .homeSplitIntro {
        flex: 1 1 340px;
    }

    > .homeSplitBody {
        flex: 1 1 480px;
        display: flex;
        flex-direction: column;
        gap: 18px;
        font-size: 18px;
    }

    & + section.homeSplit {
        margin-top: 64px;
    }
}

section.homeApi {
    align-items: center;

    > .homeSplitIntro {
        display: flex;
        flex-direction: column;
        gap: 18px;
        font-size: 18px;
        color: var(--color-text-muted);
    }

    > code {
        flex: 1 1 560px;
        min-width: 0;
    }
}

section.homeSupport {

    .Panel {
        padding: 0;
        border: none;
        background: none;
        font-size: 15px;
        color: var(--color-text-faint);

        > .title {
            margin: 0 0 16px;
            font-size: 26px;
            letter-spacing: -0.02em;
        }
    }

    ul.emoji {
        margin: 0 0 16px;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 12px;
        font-size: 17px;
        color: var(--color-text-soft);

        > li {
            margin: 0;
            display: flex;
            align-items: baseline;
            gap: 10px;
        }

        > li.ok::before {
            content: '';
            flex: none;
            width: 16px;
            height: 16px;
            align-self: center;
            background-color: var(--color-accent-text);
            mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M20 6L9 17l-5-5"/></svg>') center / contain no-repeat;
        }

        a {
            color: var(--color-text-strong);
        }
    }

    /* The browsers, as chips */
    #compatibility ul.emoji {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;

        > li {
            align-items: center;
            gap: 6px;
            padding: 7px 12px;
            border-radius: var(--border-radius-pill);
            background: var(--color-surface-raised);
            font-size: 15px;
            color: var(--color-text);
        }

        > li.ok::before {
            width: 14px;
            height: 14px;
        }
    }
}
