/* =========================================
   RESET / BASE
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 20px;

    min-height: 100vh;

    text-align: center;

    background: #020530;
    color: white;

    font-family: Rockwell, "Roboto Slab", Georgia, serif;

    line-height: 1.5;
}


/* =========================================
   MAIN CONTENT
   ========================================= */

/* Keeps the page from becoming too wide
   on large desktop screens */

body > * {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================
   HEADINGS
   ========================================= */

h1 {
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    line-height: 1.1;

    margin: 20px 0 15px;

    text-align: center;
}

h2 {
    font-size: clamp(1.7rem, 5vw, 3rem);
    line-height: 1.2;

    margin: 25px 0 15px;

    text-align: center;
}

h3 {
    font-size: clamp(1.3rem, 4vw, 2rem);

    margin: 20px 0 10px;

    text-align: center;
}


/* =========================================
   PARAGRAPHS
   ========================================= */

p {
    width: 100%;
    max-width: 850px;

    margin: 12px auto 20px;

    font-size: clamp(1rem, 3vw, 1.4rem);

    font-weight: lighter;

    line-height: 1.6;
}


/* =========================================
   HOW IT WORKS
   ========================================= */

#howItWorks {
    width: 100%;
    max-width: 850px;

    margin: 30px auto;

    text-align: left;

    padding: 20px;

    background: rgba(255, 255, 255, 0.06);

    border-radius: 20px;

    border: 1px solid rgba(255, 255, 255, 0.12);
}


/* =========================================
   IMAGES
   ========================================= */

img {
    display: block;

    width: 100%;
    max-width: 900px;

    height: auto;

    margin: 20px auto;

    border-radius: 25px;

    object-fit: cover;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}


/* =========================================
   LINKS
   ========================================= */

a {
    color: white;

    text-decoration: underline;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

a:focus-visible {
    outline: 3px solid white;
    outline-offset: 4px;
}


/* =========================================
   FOOTER
   ========================================= */

.footer {
    width: 100%;
    max-width: 900px;

    margin: 50px auto 20px;

    padding: 20px;

    font-weight: bolder;

    border-top: 1px solid rgba(255, 255, 255, 0.2);
}


/* =========================================
   FOOTER EMAIL FORM
   ========================================= */

#footerEmailFormBlank {
    width: 100%;
    max-width: 700px;

    margin: 25px auto;

    padding: 20px;

    text-align: left;

    border: 3px dotted white;

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.04);
}


/* =========================================
   FORM ELEMENTS
   ========================================= */

input,
textarea,
select,
button {
    max-width: 100%;

    font-family: inherit;

    font-size: 1rem;
}


/* Makes text fields work properly on phones */

input,
textarea,
select {
    width: 100%;

    padding: 12px 14px;

    border-radius: 10px;

    border: 2px solid rgba(255, 255, 255, 0.4);

    background: white;
    color: #020530;
}


/* =========================================
   BUTTONS
   ========================================= */

button {
    min-height: 48px;

    padding: 10px 20px;

    margin: 8px 0;

    border: none;

    border-radius: 10px;

    background: white;
    color: #020530;

    font-weight: bold;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

button:hover {
    opacity: 0.9;

    transform: translateY(-2px);
}

button:active {
    transform: scale(0.97);
}


/* =========================================
   TABLETS
   ========================================= */

@media (min-width: 600px) {

    body {
        padding: 30px;
    }

    #howItWorks {
        padding: 30px;
    }

    #footerEmailFormBlank {
        padding: 30px;
    }

    img {
        border-radius: 30px;
    }
}


/* =========================================
   DESKTOP
   ========================================= */

@media (min-width: 900px) {

    body {
        padding: 40px 30px;
    }

    img {
        border-radius: 35px;
    }

    #howItWorks {
        margin-top: 40px;
        margin-bottom: 40px;
    }
}


/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 480px) {

    body {
        padding: 12px;
    }

    h1 {
        margin-top: 10px;
    }

    p {
        font-size: 1.05rem;
    }

    #howItWorks {
        padding: 15px;

        margin-top: 20px;

        border-radius: 15px;
    }

    img {
        border-radius: 18px;

        margin: 15px auto;
    }

    #footerEmailFormBlank {
        padding: 15px;

        border-width: 2px;

        border-radius: 12px;
    }

    button {
        width: 100%;
    }
}


/* =========================================
   ACCESSIBILITY
   ========================================= */

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

    html {
        scroll-behavior: auto;
    }

    a,
    button {
        transition: none;
    }
}
