/* Page foundation, shared typography, and the always-available quick-add form. */
:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #24231f;
    background: #f6f3ec;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
}

button,
input,
select {
    font: inherit;
}

button {
    color: inherit;
}

.app {
    width: min(100% - 2rem, 680px);
    margin: 0 auto;
    padding: clamp(1rem, 4vw, 2rem) 0 4rem;
}

.app__masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
    color: #0f5f4f;
}

.app__identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.8rem;
}

.app__mark {
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 8px;
}

.app__context {
    margin: 0 0 0.1rem;
    color: #777268;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
}

.account {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    min-width: 8rem;
    gap: 0.5rem;
    color: #4c4942;
    flex-wrap: wrap;
}

.project-selector,
.account__button {
    min-height: 2rem;
    padding: 0.35rem 0.65rem;
    background: #fff;
    border: 1px solid #d7d1c4;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
}

.project-selector {
    max-width: 13rem;
    color: #24231f;
}

.project-selector:hover,
.project-selector:focus-visible,
.account__button:hover,
.account__button:focus-visible {
    border-color: #8f8778;
    outline: 0;
    box-shadow: 0 0 0 3px rgb(73 68 60 / 10%);
}

.account__button--quiet {
    padding-inline: 0.5rem;
    color: #686258;
    background: transparent;
}

.account__profile {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.4rem;
}

.account__avatar {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    object-fit: cover;
}

.account__name {
    max-width: 12rem;
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.8rem;
    background: #fff;
    border: 1px solid #ded9ce;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgb(64 55 38 / 6%);
}

.task-form:focus-within {
    border-color: #787167;
    box-shadow: 0 6px 20px rgb(64 55 38 / 9%), 0 0 0 3px rgb(73 68 60 / 10%);
}

.task-form--disabled {
    background: #f1eee7;
    box-shadow: none;
}

.task-form--disabled input {
    color: #777268;
    cursor: not-allowed;
}

.task-form__plus {
    flex: 0 0 auto;
    width: 1.3rem;
    color: #777268;
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1;
    text-align: center;
}

.task-form input {
    width: 100%;
    padding: 0.25rem 0;
    color: #24231f;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 1rem;
}

.task-form input::placeholder {
    color: #9a958b;
}

.empty-state {
    margin: 2.5rem 0;
    color: #8c877d;
    text-align: center;
}

.archived-banner {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.8rem;
    color: #76520b;
    background: #fbf0ce;
    border: 1px solid #b99747;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
}

.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;
}

@media (max-width: 480px) {
    .app {
        width: min(100% - 1.25rem, 680px);
    }

    .app__masthead {
        align-items: flex-start;
        flex-direction: column;
    }

    .account {
        justify-content: flex-start;
        width: 100%;
    }
}
