.momentra-shell {
    --figma-paper: #f8f5f0;
    --figma-paper-deep: #f1ebe3;
    --figma-ink: #2b2420;
    --figma-red: #812918;
    --figma-red-strong: #89291b;
    --figma-focus: #176a9a;
}

@supports (padding: max(0px)) {
    .momentra-shell .site-header,
    .momentra-shell .site-footer {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

.momentra-shell :focus-visible {
    outline-color: var(--figma-focus);
}

.momentra-shell a,
.momentra-shell button,
.momentra-shell summary {
    touch-action: manipulation;
}

.momentra-shell main[id],
.momentra-shell main [id] {
    scroll-margin-top: 6rem;
}

.momentra-shell .site-header {
    position: relative;
    isolation: isolate;
    border: 0;
    background: #fffdf9;
    backdrop-filter: none;
}

.momentra-shell .site-header::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0 0 -2.35rem;
    background-color: #fffdf9;
    clip-path: polygon(0 0, 100% 0, 100% 72%, 97% 78%, 94% 73%, 91% 82%, 87% 76%, 83% 84%, 79% 74%, 74% 80%, 70% 75%, 65% 84%, 61% 76%, 56% 82%, 51% 74%, 47% 85%, 42% 76%, 37% 81%, 32% 73%, 27% 82%, 22% 75%, 17% 84%, 12% 74%, 7% 81%, 3% 75%, 0 80%);
    pointer-events: none;
}

.momentra-shell .nav-shell {
    z-index: 1;
    width: min(1740px, calc(100% - 3rem));
    min-height: 116px;
    padding-block: .45rem 1.25rem;
    gap: clamp(1rem, 2.2vw, 2.6rem);
}

.momentra-shell .brand {
    width: clamp(158px, 12.25vw, 232px);
    height: 50px;
}

.momentra-shell .brand img,
.momentra-shell .footer-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
}

.momentra-shell .desktop-primary-nav,
.momentra-shell .desktop-account-nav {
    color: var(--figma-red);
    font-size: clamp(.92rem, 1.26vw, 1.5rem);
}

.momentra-shell .desktop-primary-nav {
    gap: clamp(1rem, 2vw, 2.2rem);
}

.momentra-shell .desktop-primary-nav > a[aria-current="page"]::after {
    transform: scaleX(1);
}

.momentra-shell .nav-cta {
    min-width: 162px;
    min-height: 50px;
    justify-content: center;
    color: white;
    background: var(--figma-red);
    border-radius: 12px;
}

.momentra-shell .nav-cta:hover {
    background: var(--figma-red-strong);
}

.momentra-shell .language-link {
    color: var(--figma-red);
    border: 0;
    background: url("../images/figma-home/language-ring.svg") center / contain no-repeat;
}

.momentra-shell .mobile-menu-panel {
    color: var(--figma-ink);
    background: var(--figma-paper);
}

.momentra-shell .mobile-menu-panel > a[aria-current="page"] {
    color: white;
    background: var(--figma-red);
}

.momentra-shell .site-footer {
    position: relative;
    width: 100%;
    min-height: clamp(340px, 28.53vw, 541px);
    direction: ltr;
    grid-template-columns: minmax(170px, .8fr) minmax(180px, .8fr) minmax(190px, .72fr) minmax(190px, .72fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 6rem);
    margin: 0;
    padding: clamp(7rem, 10vw, 11.875rem) max(3rem, calc((100vw - 1690px) / 2)) 4rem;
    color: var(--figma-red);
    border: 0;
    background: var(--figma-paper-deep) url("../images/figma-home/footer-paper.webp") center / 100% 100% no-repeat;
}

.momentra-shell .footer-brand {
    width: clamp(170px, 15vw, 274px);
    height: auto;
    aspect-ratio: 2347 / 506;
    overflow: hidden;
}

.momentra-shell .figma-footer-social,
.momentra-shell .figma-footer-links {
    direction: rtl;
    color: var(--figma-red);
}

html[dir="ltr"] .momentra-shell .figma-footer-social,
html[dir="ltr"] .momentra-shell .figma-footer-links {
    direction: ltr;
}

.momentra-shell .figma-footer-social {
    display: grid;
    justify-items: center;
    gap: 1rem;
}

.momentra-shell .figma-footer-social strong {
    font-size: clamp(1rem, 1.27vw, 1.5rem);
    line-height: 1.55;
}

.momentra-shell .figma-footer .social-links {
    gap: .75rem;
}

.momentra-shell .figma-footer .social-links a {
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 0;
    background: transparent;
    transition: opacity 180ms ease;
}

.momentra-shell .figma-footer .social-links a:hover {
    border-color: transparent;
    background: transparent;
    opacity: .68;
}

.momentra-shell .figma-footer .social-links img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.momentra-shell .figma-footer-links {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: clamp(.75rem, 1.95vw, 2.3125rem);
    font-size: clamp(.95rem, 1.27vw, 1.5rem);
    line-height: 1.55;
}

html[dir="ltr"] .momentra-shell .figma-footer-links {
    justify-items: end;
}

.momentra-shell .figma-footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    text-underline-offset: .25rem;
}

.momentra-shell .figma-footer-links a:hover {
    text-decoration: underline;
}

.momentra-shell .figma-footer-links a:active {
    color: var(--figma-red-strong);
}

.momentra-shell .figma-footer-links span {
    max-width: 19ch;
    color: rgb(129 41 24 / 80%);
}

.momentra-shell.app-density .site-footer {
    min-height: 300px;
    padding-block: 6.5rem 2.5rem;
    background-size: cover;
}

.momentra-shell.app-density .figma-footer-links {
    gap: .65rem;
    font-size: 1rem;
}

@media (min-width: 981px) {
    .momentra-shell .site-header {
        background: transparent;
    }

    .momentra-shell .site-header::after {
        inset: 0 0 auto;
        height: 238px;
        background: url("../images/figma-home/header-paper.webp") center top / 100% 238px no-repeat;
        clip-path: none;
    }

    .momentra-shell.app-density .site-header::after {
        height: 150px;
        background-size: 100% 150px;
    }
}

@media (min-width: 1700px) {
    .momentra-shell .figma-footer {
        grid-template-columns: 400px minmax(0, 1fr) 270px 343px;
        column-gap: 3rem;
        padding-inline: 2.75rem;
    }

    .momentra-shell .figma-footer-social {
        transform: translateX(5rem);
    }

    .momentra-shell .figma-footer-social .social-links {
        transform: translateX(.375rem);
    }

    .momentra-shell .figma-footer-links-primary {
        padding-inline-start: 2.875rem;
    }
}

@media (max-width: 1160px) {
    .momentra-shell .site-header {
        position: sticky;
    }

    .momentra-shell .nav-shell {
        width: min(100% - 1.5rem, 900px);
        min-height: 78px;
        padding-block-end: .8rem;
    }

    .momentra-shell .language-link,
    .momentra-shell .mobile-menu summary,
    .momentra-shell .mobile-social-links a {
        width: 44px;
        min-width: 44px;
        height: 44px;
    }

    .momentra-shell .mobile-menu-panel {
        max-height: calc(100dvh - 5.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .momentra-shell .site-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: center;
        padding-inline: 2rem;
        text-align: center;
    }

    .momentra-shell .figma-footer-links,
    html[dir="ltr"] .momentra-shell .figma-footer-links {
        justify-items: center;
        text-align: center;
    }

    .momentra-shell .figma-footer-links span {
        max-width: 34ch;
    }
}

@media (max-width: 760px) {
    .momentra-shell .site-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .momentra-shell .site-header::after {
        inset-block-end: -1rem;
    }

    .momentra-shell .brand {
        width: 126px;
        height: 44px;
    }

    .momentra-shell .site-footer {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding-block-start: 7rem;
        padding-inline-start: max(1.25rem, env(safe-area-inset-left));
        padding-inline-end: max(1.25rem, env(safe-area-inset-right));
        background-size: cover;
    }

    .momentra-shell .figma-footer-links {
        gap: .35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .momentra-shell .figma-footer .social-links a {
        transition: none;
    }
}
