@media (min-width: 768px) {
    body {
        width: 80%;
    }

    main {
        width: 500px;
    }
}

@media (min-width: 992px) {
    body {
        width: 70%;
    }

    main {
        width: 650px;
    }
}

@media (min-width: 1200px) {
    body {
        width: 60%;
    }

    main {
        width: 750px;
    }
}

:root {
    --primary-color: #5c87b2;
    --text-color: #232323;
    --error-color: #c0392b;
    --border-color: #ccc;
}

body {
    font-size: .85em;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-color);
    margin: 2em auto;
    padding: 0 1em;
    background-color: #fff;
}

header.site-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1em;
}

header.site-header img {
    height: 2.5em;
}

fieldset {
    /* border: 1px solid var(--border-color);
    border-radius: 4px; */
    border: none;
    margin-bottom: 1.5em;
}

legend {
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    font-size: 21px;
    color: #333;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
}

label {
    display: block;
    padding: 0.25em 0 0.25em 0;
}

.field__label {
    display: block;
    font-weight: bold;
    font-size: 75%;
    margin-bottom: 0.25em;
}

.form-field {
    display: block;
    margin-bottom: 0.75em;
}

.form-field[data-error] input,
.form-field[data-error] select,
.form-field[data-error] textarea {
    border-color: var(--error-color);
    outline-color: var(--error-color);
}

.form-field[data-error]::after {
    content: attr(data-error);
    display: block;
    color: var(--error-color);
    font-size: 0.85em;
    margin-top: 2px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100%;
    min-width: 30ch;
    box-sizing: border-box;
    padding: 0.4em;
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

textarea {
    max-width: 100%;
}

a {
    color: #428bca;
    text-decoration: none;
}

.flash-notice,
.flash-error {
    padding: 0.75em 1em;
    border-radius: 4px;
    margin-bottom: 1em;
}

.flash-notice {
    background: #e6f4ea;
    color: #1e7e34;
    border: 1px solid #b6dfc0;
}

.flash-error {
    background: #fdecea;
    color: var(--error-color);
    border: 1px solid #f5c6cb;
}

menu {
    display: flex;
    gap: 1em;
    list-style: none;
    margin-block: 1em 0;
    padding-inline: 0;
}

.row {
    display: flex;
    gap: 3em;
}

a.button,
input[type=submit] {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.button-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.button-primary {
    color: #fff;
    background-color: #428bca;
    border-color: #357ebd;
}

.grid {
    display: grid;
    grid-column-start: 1;
    grid-column-end: 2;
    column-gap: 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.row {
    display: flex;
    width: 100%;
}

.row>.column:first-child {
    padding: 0 15px 0 0;
}