@font-face {
    font-family: "Montserrat Custom";
    src: url("../../../public/fonts/montserrat-medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat Custom";
    src: url("../../../public/fonts/montserrat-bold.OTF") format("opentype");
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
}

@font-face {
    font-family: "Avenir Next Condensed Custom";
    src: url("../../../public/fonts/avenir-next-condensed-demibold-italic.ttf") format("truetype");
    font-style: italic;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Avenir Next Condensed Custom";
    src: url("../../../public/fonts/avenir-next-condensed-heavy-italic.ttf") format("truetype");
    font-style: italic;
    font-weight: 900;
    font-display: swap;
}

:root {
    --phase2-green: #70bf18;
    --phase2-purple: #7d2695;
    --phase2-purple-dark: #651b82;
    --phase2-magenta: #bf008b;
    --phase2-pink: #f42588;
    --phase2-orange: #ff4d20;
    --phase2-white: #ffffff;
    --phase2-page-width: 34rem;
    --phase2-gutter: clamp(0.75rem, 4vw, 1.5rem);
}

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

body,
h1,
h2,
p {
    margin: 0;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--phase2-white);
    background: var(--phase2-purple);
    font-family: "Montserrat Custom", Montserrat, Arial, sans-serif;
}

img,
video,
iframe {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.phase2-page {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.phase2-section {
    position: relative;
    isolation: isolate;
}

.phase2-celebration-stage {
    position: relative;
    z-index: 2;
    isolation: isolate;
    overflow: visible;
}

.phase2-celebration-stage::after {
    content: "";
    position: absolute;
    right: -15%;
    bottom: -2.25rem;
    left: -15%;
    z-index: 11;
    height: 7rem;
    background: #842495;
    border-radius: 0 0 50% 50% / 0 0 52% 52%;
    transform: rotate(-4deg);
    transform-origin: center bottom;
    pointer-events: none;
}

.phase2-celebration-stage .phase2-section {
    z-index: auto;
    isolation: auto;
}

.phase2-celebration-stage__confetti {
    position: absolute;
    inset: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

.phase2-celebration-stage__confetti img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.phase2-celebration-stage__confetti-canvas {
    position: absolute;
    inset: 0;
    z-index: 9;
    display: block;
    width: 100%;
    height: min(calc(100vh - 5.85rem), 100%);
    pointer-events: none;
}

@media (min-width: 64rem) {
    :root {
        --phase2-page-width: 78rem;
        --phase2-gutter: clamp(2rem, 5vw, 5rem);
    }

    .phase2-celebration-stage__confetti {
        height: auto;
        aspect-ratio: 1302 / 1725;
    }

    .phase2-celebration-stage__confetti-canvas {
        height: min(calc(100vh - 6.5rem), 100%);
    }

    .phase2-celebration-stage::after {
        display: none;
    }
}

.phase2-section__inner {
    width: min(100%, var(--phase2-page-width));
    margin-inline: auto;
    padding-inline: var(--phase2-gutter);
}

.phase2-asset-slot {
    display: grid;
    place-items: center;
    min-height: 8rem;
}

.phase2-pending {
    display: none;
}

.skip-link {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 100;
    padding: 0.65rem 0.9rem;
    color: #171717;
    background: var(--phase2-white);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
