:root {
    color-scheme: light;
    font-family: system-ui, sans-serif;
    color: #17202a;
    background: #f4f6f8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 4rem;
    padding: 0 1.25rem;
    background: #17202a;
    color: white;
}

.site-header a,
.link-button {
    color: white;
}

.brand {
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
}

.link-button {
    border: 0;
    padding: .5rem;
    background: transparent;
    text-decoration: underline;
    cursor: pointer;
}

.page-shell {
    width: min(100% - 2rem, 64rem);
    margin: 3rem auto;
}

.card {
    padding: 2rem;
    border: 1px solid #d9dee3;
    border-radius: .5rem;
    background: white;
    box-shadow: 0 .25rem 1rem rgb(23 32 42 / 8%);
}

.account-card {
    max-width: 32rem;
    margin-inline: auto;
}

label,
input,
select,
button {
    display: block;
    width: 100%;
}

label {
    margin-top: 1rem;
    font-weight: 600;
}

input,
select,
button {
    min-height: 2.75rem;
    margin-top: .35rem;
    padding: .55rem .7rem;
    border: 1px solid #7f8c8d;
    border-radius: .3rem;
    font: inherit;
}

button[type="submit"] {
    margin-top: 1.25rem;
    border-color: #155eef;
    background: #155eef;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.validation-message {
    color: #a31515;
}

.hint {
    color: #52606d;
    font-size: .9rem;
}

.site-nav {
    display: flex;
    gap: 1rem;
    margin-right: auto;
    margin-left: 2rem;
}

.site-nav a {
    text-decoration: none;
    font-weight: 600;
}

.data-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: .5rem .6rem;
    border-bottom: 1px solid #d9dee3;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #52606d;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: end;
}

.toolbar label {
    margin-top: 0;
}

.toolbar input,
.toolbar select,
.toolbar button {
    width: auto;
    min-width: 10rem;
}

.toolbar button[type="submit"] {
    margin-top: 0;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0 1rem;
}

.muted {
    color: #52606d;
}

.tag-archived {
    display: inline-block;
    padding: .1rem .5rem;
    border-radius: .3rem;
    background: #fdecea;
    color: #a31515;
    font-size: .8rem;
    font-weight: 700;
}

.inline-form {
    display: inline;
}

.inline-form button {
    display: inline-block;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: .3rem .6rem;
}

.link-danger {
    color: #a31515;
}

.pager {
    display: flex;
    gap: .75rem;
    align-items: center;
    margin-top: 1rem;
}

.pager a {
    font-weight: 600;
}
