:root {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0 20px 40px;
    background: #f8f8f6;
    color: #202020;
}

main {
    width: min(100%, 720px);
    margin: 0 auto;
    padding-top: 8vh;
    text-align: center;
}

header {
    margin-bottom: 2rem;
}

h1 {
    margin: 0;
    font-size: clamp(2.75rem, 10vw, 4.5rem);
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.byline,
.brand {
    margin: 0.8rem 0 2.5rem;
    font-size: 0.95rem;
    font-weight: normal;
    color: #606060;
}

h2 {
    margin: 0 0 1.5rem;
    font-size: 1.4rem;
}

h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

section {
    width: 100%;
}

form {
    width: 100%;
    margin: 0;
}

.field {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 18px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

input,
select,
textarea {
    max-width: 100%;
    font: inherit;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #777;
    border-radius: 4px;
    background: #fff;
    color: #202020;
}

input[type="file"] {
    width: 100%;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #174a70;
    outline-offset: 1px;
}

/* Standard Sidecar button */

button,
.button,
.menu a {
    display: inline-block;
    min-width: 140px;
    margin: 8px;
    padding: 10px 18px;

    border: 1px solid #000;
    border-radius: 6px;

    background: #174a70;
    color: #fff;

    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;

    cursor: pointer;
}

button:hover,
.button:hover,
.menu a:hover {
    background: #103650;
}

button:active,
.button:active,
.menu a:active {
    background: #0b293d;
}

button:focus,
.button:focus,
.menu a:focus {
    outline: 2px solid #111;
    outline-offset: 2px;
}

button:disabled,
.button.disabled {
    opacity: 0.6;
    cursor: default;
}

/* Main menu */

.menu {
    margin: 0 auto;
    text-align: center;
}

.menu a {
    display: block;
    width: 180px;
    margin: 12px auto;
}

/* Logout */

.menu .logout,
.button.logout,
button.logout {
    margin-top: 2rem;
    background: #b33a3a;
    color: #fff;
}

.menu .logout:hover,
.button.logout:hover,
button.logout:hover {
    background: #922f2f;
}

.menu .logout:active,
.button.logout:active,
button.logout:active {
    background: #7d2828;
}

nav {
    margin-top: 24px;
}

#status {
    min-height: 1.5em;
    margin: 18px 0;
}

.hidden {
    display: none;
}

.center {
    text-align: center;
}

.left {
    text-align: left;
}

@media (max-width: 480px) {
    body {
        padding-left: 16px;
        padding-right: 16px;
    }

    main {
        padding-top: 7vh;
    }

    .menu a {
        width: 180px;
        max-width: calc(100% - 16px);
    }
}
