/*----------------------------------------------------------
    RESET / BASE
----------------------------------------------------------*/

* { box-sizing: border-box; }

html { font-size: var(--font-size); }

body {
    margin: 0;
    background: #fff;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.45;
}

h1, h2, h3, h4 {
    font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 .5em;
}

h1 { font-size: 2.25em; line-height: 1.05; }
h2 { font-size: 1.5em; margin-top: 0; }
h3 { font-size: 1.125em; margin-top: 0; }

p { margin: 0 0 1em; }

a { color: var(--color-blue-dark); }

img { max-width: 100%; height: auto; }

:focus-visible {
    outline: 2px solid var(--color-blue-medium);
    outline-offset: 2px;
}

.hidden { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*----------------------------------------------------------
    BUTTONS
----------------------------------------------------------*/

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    border-radius: var(--border-radius-btn);
    padding: .8em 1.6em;
    font-size: .9em;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.1;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn svg { width: 1.1em; height: 1.1em; }

.btn-primary {
    background-color: var(--color-grey-dark);
    color: #fff;
}
.btn-primary:hover { background-color: var(--color-red); }

.btn-secondary {
    background-color: #fff;
    color: var(--color-grey-dark);
    border-color: var(--color-grey);
}
.btn-secondary:hover { border-color: var(--color-grey-dark); }

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.6);
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

.btn-sm { padding: .5em 1em; font-size: .8em; }

.btn:disabled, .btn[aria-disabled="true"] {
    opacity: .45;
    cursor: not-allowed;
}

/*----------------------------------------------------------
    CARD
----------------------------------------------------------*/

.card {
    background: #fff;
    border: 1px solid var(--color-grey);
    border-radius: var(--border-radius-card);
    padding: 1.25em;
}

.card + .card { margin-top: 1.5em; }

.card h2 { font-size: 1.2em; margin-bottom: 1em; }


/*----------------------------------------------------------
    FORMS
----------------------------------------------------------*/

.form-field {
    display: flex;
    flex-direction: column;
    gap: .35em;
    margin-bottom: 1em;
}

.form-field label {
    font-weight: 700;
    font-size: .85em;
}

.form-field input[type="text"],
.form-field input[type="password"],
.form-field input[type="email"],
.form-field input[type="search"],
.form-field select,
.form-field textarea {
    border: 1px solid var(--color-grey);
    border-radius: var(--border-radius-inputs);
    padding: .65em .85em;
    font-size: 1em;
    font-family: inherit;
    background: #fff;
}

.form-field--checkbox {
    flex-direction: row;
    align-items: center;
    gap: .5em;
}

.form-field--checkbox label { font-weight: 400; font-size: .9em; }

/*----------------------------------------------------------
    ALERTS
----------------------------------------------------------*/

.alert {
    border-radius: var(--border-radius-inputs);
    padding: .85em 1em;
    margin-bottom: 1.25em;
    background: var(--color-blue-light);
    color: var(--color-blue-dark);
    font-size: .9em;
}

.alert strong { display: block; }

.alert-error {
    background: var(--color-red-light);
    color: var(--color-red-medium);
}
