@import url(reset.css);
@import url(fonts.css);

:root {
    --blue: hsl(223, 87%, 63%);

    --pale-blue: hsl(223, 100%, 88%);
    --light-red: hsl(354, 100%, 66%);
    --gray: hsl(0, 0%, 59%);
    --very-dark-blue: hsl(209, 33%, 12%);

    --fs-lg: clamp(0.875rem, -1rem + 9.375vw, 3.5rem);
    --fs-sm: clamp(0.875rem, 0.6071428571428572rem + 1.3392857142857142vw, 1.25rem);
}

body {
    font-family: 'Libre Franklin', sans-serif;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-message {
    /* opacity: 0; */
    position: absolute;
    top: 3.5rem;
    left: 15%;
    font-size: 11px;
    color: var(--light-red);
    font-style: italic;
}

.wrapper {
    width: 90%;
    max-width: 800px;
    margin-inline: auto;
    min-height: inherit;

    display: grid;
    grid-template-columns: 1fr;
}

.flex-column {
    display: flex;
    flex-flow: column nowrap;
}

.image-wrapper {
    min-width: 75px;
}

.hero-section {
    text-align: center;
}

.title {
    color: var(--gray);
    font-weight: 300;
    font-size: var(--fs-lg);
}

.sub-title {
    font-size: var(--fs-sm);
    color: var(--very-dark-blue);
}

.accent {
    color: var(--very-dark-blue);
    font-weight: 700;
}

.send-email {
    margin-top: 2rem;
    position: relative;
    & :not(span) {
        margin-inline: auto;
        width: 95%;
    }
}

.input-email {
    border: 2px solid var(--pale-blue);
}

.input-email,
.cta-btn {
    border-radius: 2rem;
    padding: 1rem 2.5rem;
    font-size: 14px;
}

.input-email::placeholder {
    color: var(--pale-blue);
}

.cta-btn {
    border: none;
    margin-top: 20px;
    color: white;
    font-weight: 600;
    background-color: var(--blue);
}

footer {
    text-align: center;
    font-size: 12px;
    color: var(--gray);
    display: flex;
    flex-flow: column;
    gap: 1rem;
    justify-content: center;
}

.social-media {
    display: flex;
    gap: clamp(.5rem, 5vw, 2.5rem);
    justify-content: center;
}

.social-media__icon {
    border-radius: 50%;
    padding: .4rem;
    width: 32px;
    border: 1px solid var(--pale-blue);
}

@media (width >=700px) {
    .send-email {
        align-items: center;
        flex-flow: row;
        gap: 0.625rem;
    }

    .hero-section {
        justify-content: end;
    }

    .input-email {
        max-width: 70%;
    }

    .cta-btn {
        margin-top: 0;
        max-width: 30%;
    }

    .sub-title {
        letter-spacing: 1px;
    }

    header {
        align-items: end;
    }

    .hero-image  {
        margin-top: auto;
        img {
            
            width: 85%;
            margin-inline: auto;
        }
    }

    .error-message {
        font-size: 16px;
    }
}