
/* =========================================
   RAFFLEPA.COM - COMING SOON
   ========================================= */

:root {
    --green: #073b2d;
    --green-dark: #052c23;
    --gold: #c88b04;
    --cream: #fffaf0;
    --ink: #0b3127;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #f7d5a4;
}

/* MAIN PAGE BACKGROUND */

.page-shell {
    min-height: 100svh;
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: linear-gradient(
        180deg,
        #b3d9f0 0%,
        #e5e2dc 26%,
        #ffcf98 48%,
        #f4a454 65%,
        #70815b 86%,
        #59743e 100%
    );
}

/* SOFT SKY GLOW */

.page-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse 55% 21% at 8% 54%,
            rgba(255,236,178,.85),
            transparent 75%
        ),
        radial-gradient(
            ellipse 80% 23% at 75% 17%,
            rgba(255,255,255,.5),
            transparent 72%
        );
}

/* SUN */

.sun {
    position: absolute;
    z-index: -1;
    left: 7%;
    top: 57%;

    width: 65px;
    height: 65px;
    border-radius: 50%;

    background: #fff5cc;

    box-shadow:
        0 0 70px 45px rgba(255,215,142,.65);
}

/* DISTANT HILLS */

.distant-hills {
    position: absolute;
    z-index: -1;

    left: -5%;
    right: -5%;
    bottom: 13%;
    height: 25%;

    background: linear-gradient(
        170deg,
        #47695d,
        #233f3d
    );

    clip-path: polygon(
        0 56%,
        12% 61%,
        24% 55%,
        37% 65%,
        48% 54%,
        60% 45%,
        73% 28%,
        85% 18%,
        100% 26%,
        100% 100%,
        0 100%
    );

    opacity: .85;
}

/* COUNTRYSIDE IMAGE REMOVED */

.countryside {
    display: none;
}

/* MAIN CONTENT */

.content {
    width: min(100% - 40px, 970px);
    margin: auto 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 45px 0 70px;
    text-align: center;
}

/* BRAND LOGO */

.brand {
    width: 100%;
}

.brand-logo {
    display: block;
    width: min(100%, 840px);
    height: auto;
    margin: 0 auto;

    filter: drop-shadow(
        0 2px 1px rgba(255,255,255,.13)
    );
}

/* COMING SOON RIBBON */

.ribbon-wrap {
    width: min(94%, 760px);
    margin-top: 23px;

    filter: drop-shadow(
        0 7px 7px rgba(0,0,0,.16)
    );
}

.ribbon {
    position: relative;

    background: linear-gradient(
        100deg,
        #0a4c3c,
        #063a2d
    );

    color: #fff;
    font-weight: 900;

    font-size: clamp(
        2.2rem,
        6vw,
        4.65rem
    );

    letter-spacing: .075em;
    padding: 19px 12px;

    clip-path: polygon(
        0 0,
        100% 0,
        96% 50%,
        100% 100%,
        0 100%,
        4% 50%
    );

    text-shadow:
        0 2px 1px rgba(0,0,0,.12);
}

/* INTRODUCTION TEXT */

.intro {
    color: white;
    font-weight: 700;

    font-size: clamp(
        1.1rem,
        2.45vw,
        1.65rem
    );

    line-height: 1.48;
    margin: 25px 0 42px;

    text-shadow:
        0 2px 6px rgba(33,32,24,.66);
}

/* EMAIL SIGNUP CARD */

.signup {
    width: min(100%, 790px);
    padding: 28px 34px 24px;

    background: rgba(255,251,242,.97);
    border-radius: 24px;

    box-shadow:
        0 10px 38px rgba(22,39,29,.26);

    text-align: left;
}

.signup-heading {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.bell {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;

    color: var(--gold);
    margin-top: 4px;
}

.signup h2 {
    font-size: clamp(
        1.5rem,
        3vw,
        2.25rem
    );

    margin: 0 0 6px;
    color: var(--green);
    line-height: 1.15;
}

.signup p {
    font-size: clamp(
        .98rem,
        1.8vw,
        1.2rem
    );

    line-height: 1.4;
    margin: 0;
}

/* EMAIL FORM */

.signup-form {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.signup-form input {
    min-width: 0;
    flex: 1;

    border: 2px solid #c5c8ca;
    border-radius: 10px;

    padding: 17px 19px;
    font-size: 1.05rem;

    background: white;
    color: #20362e;
}

.signup-form input:focus {
    outline: 3px solid #e7bd63;
    outline-offset: 2px;
}

/* NOTIFY ME BUTTON */

.signup-form button {
    border: 0;
    border-radius: 10px;

    background: #bf8300;
    color: white;

    font-size: 1.1rem;
    font-weight: 700;

    padding: 16px 32px;
    cursor: pointer;
}

.signup-form button:hover {
    background: #a87300;
}

.signup-form button:focus-visible {
    outline: 3px solid #173c37;
    outline-offset: 3px;
}

/* FORM MESSAGES */

.form-message {
    min-height: 1.1em;

    font-size: .9rem !important;
    margin-top: 10px !important;

    color: #7c3d12;
}

/* FOOTER */

.footer {
    margin-top: auto;
    text-align: center;

    padding: 12px 18px 18px;

    color: white;
    font-size: .8rem;

    text-shadow:
        0 1px 4px #1d3329;
}

/* ACCESSIBILITY */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;

    overflow: hidden;
    clip: rect(0,0,0,0);

    white-space: nowrap;
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */

@media (max-width: 640px) {

    .content {
        width: min(100% - 28px, 470px);
        padding: 40px 0;
    }

    .brand-logo {
        width: 100%;
    }

    .ribbon-wrap {
        margin-top: 26px;
        width: 100%;
    }

    .ribbon {
        font-size: clamp(
            1.65rem,
            7.6vw,
            2.6rem
        );

        padding: 17px 8px;
    }

    .intro {
        margin: 25px 0 28px;
        font-size: 1.1rem;
    }

    .desktop-break {
        display: none;
    }

    .signup {
        padding: 23px 20px;
        border-radius: 18px;
    }

    .signup-heading {
        gap: 13px;
    }

    .bell {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
    }

    .signup h2 {
        font-size: 1.5rem;
    }

    .signup p {
        font-size: .95rem;
    }

    .signup-form {
        flex-direction: column;
        gap: 10px;
    }

    .signup-form button {
        width: 100%;
    }

    .distant-hills {
        bottom: 12%;
    }

    .sun {
        top: 63%;
        width: 42px;
        height: 42px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
