/* Styles for the new landing page */
#landing {
    --c-bg: #FAE9DF;
    --side-spacer: 2rem;
    scroll-behavior: smooth;
}
.menu-button {
    display : none;
}
/* Intro Section */
.landing-opening {
    width    : 100%;
    height   : calc(100vh - 5rem);
    position : relative;
    margin-bottom : 10rem;
}
/* Title and Subtitle container */
.landing-title-container,
.landing-subtitle-container {
    padding     : 10rem var(--side-spacer) 0;
    font-weight : bold;
}
.landing-form-link {
    font-weight     : normal;
    text-decoration : underline;
    text-wrap       : balance;
    font-size       : clamp(12px,.254vw + 11px,15px);
    line-height     : clamp(14px,.254vw + 13px,17px);
    margin-top      : 1rem;
    display         : inline-block;
    pointer-events  : all;
    opacity         : 0;
    border : none;
    text-align: left;
    cursor : pointer;
}
.landing-form-link.visible {
    opacity: 1;
}
.landing-title-container {
    position       : fixed;
    inset          : 0;
    pointer-events : none;
}
.landing-subtitle-container {
    position : absolute;
    inset    : 0;
    padding  : 5rem var(--side-spacer) 0;
    pointer-events: none;
    z-index : 10;
}
.landing-title-content {
    grid-column: 1 / span 4;
}
.landing-subtitle {
    grid-column: 5 / -1;
}
.landing-opening-background {
    position : absolute;
    inset    : 0;
    pointer-events: none;
}
.landing-opening-background-image {
    display         : block;
    width           : 100%;
    height          : 100%;
    object-fit      : cover;
    object-position : center bottom;
    pointer-events: none;
}
.blocks {
    padding: 0 var(--side-spacer) 10rem;
}
.text-block-content {
    grid-area   : unset;
    grid-column : 5 / -1;
}
.image-block-figure {
    grid-area : unset;
    grid-column: var(--columnStart) / span var(--columnSpan);
}
.image-block-caption {
    color : #81301C;
}
.text-block-content p:not(:last-child) {
    margin-bottom : 1em;
    text-wrap : balance;
}
/* Form */
.form-block-content {
    grid-column: 5 / 9;
}
.form-block-title {
    font-weight   : bold;
    margin-bottom : 1rem;
}
.form-block-email,
.ml-field-group input {
    border      : 1px solid var(--c-text);
    font-size   : clamp(12px,.254vw + 11px,15px);
    line-height : clamp(14px,.254vw + 13px,17px);
    padding : 0.25em 0.5em;
    width: 100%;
    max-width : 12rem;
}
.ml-field-group:not(:last-child) {
    margin-bottom : 0.25rem;
}
.form-block-instructions,
.ml-form-privacy {
    font-size   : clamp(12px,.254vw + 11px,15px);
    line-height : clamp(14px,.254vw + 13px,17px);
    display: block;
    text-wrap: balance;
}
.ml-form-privacy p {
    margin-top : 0.5rem;
    max-width: 70ch;
    text-wrap: balance;
}
.ml-form-privacy p a {
    text-decoration: underline;
}
.form-block-submit,
.ml-form-embedSubmit button {
    border : none;
    text-decoration: underline;
    font-size   : clamp(12px,.254vw + 11px,15px);
    line-height : clamp(14px,.254vw + 13px,17px);
    margin-top : 0.5em;
    cursor : pointer;
}
.form-opening {
    max-width : 10rem;
    font-weight: normal;
    margin-top : 1rem;
    pointer-events: all;
    transition-property: opacity;
    opacity: 0;
}
.form-opening.visible {
    opacity: 1;
}
/* Small Screen Adjustments */
@media (width < 1250px) {
    .image-block-figure {
        grid-column: var(--columnStartMobile) / span var(--columnSpanMobile);
    }

    .text-block-content {
       grid-column : 3 / -1;
    }

    .landing-subtitle {
        grid-column: 3 / -1;
    }

    .form-block-content {
       grid-column: 3 / 6;
    }
}
/* Mobile Adjustments */
@media (width < 950px) {
    #landing {
        --side-spacer: 1rem;
    }
    .text-block:not(:first-child) {
        padding-top : 2rem;
    }
    .text-block:not(:last-child) {
        padding-bottom : 2rem;
    }
    .text-block-content,
    .image-block-figure {
        grid-column : 1 / -1;
    }
    .landing-title-content {
        grid-column: 1 / -1;
    }
    .landing-subtitle {
        grid-column: 1 / -1;
        padding-top : 1.25rem;
    }
    .landing-title-container {
        position    : absolute;
        padding-top : 5rem;
    }
    .form-block-content {
       grid-column    : 1 / 4;
    }
    .form-opening {
        display: none;
    }

}