/* Body */
body {
    font-family: system-ui, sans-serif;
    margin: 0 auto;
    max-width: 800px;
    color: #333333;
}


/* Nav */
nav header a {
    color: initial;
    font-size: 2em;
    letter-spacing: 0.05em;
    text-decoration: none;
}


/* main */
main h1, main h2 {
    letter-spacing: -0.04em;
}

main h1 {
    text-align: center;
}


/* Footer */
footer {
    font-size: small;
    text-align: end;
}

footer li {
    display: inline;
    list-style-type: none;
    padding-left: 1em;
}

footer li a {
    color: initial;
}


/* Messages */
ul.messages {
    font-weight: 300;
    margin: 0.5em 0;
    padding: 0;
}

ul.messages li {
    align-items: center;
    border-radius: 0.25em;
    display: flex;
    padding: 0.75em;
}

ul.messages li .symbol {
    align-items: center;
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    flex-shrink: 0;
    font-weight: bold;
    justify-content: center;
    margin-right: 0.5em;
    height: 1.5em;
    width: 1.5em;
}

ul.messages li.success {
    background-color: #e8f8ec;
}

ul.messages li.success .symbol {
    background-color: #5aa56d;
}

ul.messages li.error {
    background-color: #fff3d6;
}

ul.messages li.error .symbol {
    background-color: #e59063;
}


/* Form */
form label {
    font-weight: 600;
}

form input[type="email"], form textarea {
    background-color: #fafafa;
    border: 1px solid #dddddd;
    border-radius: 0.25em;
    color: #888888;
    font-family: inherit;
    font-size: 1em;
    padding: 0.75em;
}

form input[type="email"]:focus, form textarea:focus {
    outline: none;
    border-color: #0099d2;
}

form input[type="email"].error, form textarea.error {
    border-color: #e59063;
}

form textarea {
    box-sizing: border-box;
    height: 14em;
    width: 100%;
}

form input[type="email"] {
    width: 300px;
}

form .field-section {
    margin: 1em 0 2em 0;
}

form .field-section .help-text {
    font-weight: 300;
    margin: 0.5em 0;
}

form button {
    background-color: #00acec;
    border: none;
    border-radius: 0.25em;
    cursor: pointer;
    color: #ffffff;
    font-family: inherit;
    font-size: 1em;
    padding: 0.75em;
}

form button:hover {
    background-color: #0099d2;
}
form button:active {
    background-color: #0087b9;
}
