/* 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 {
    font: inherit;
}

button {
    color: inherit;
}

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

.app__header {
    margin-bottom: 2rem;
}

.eyebrow {
    margin: 0 0 0.4rem;
    color: #777268;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.25rem, 7vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.task-form {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.1rem;
    background: #fff;
    border: 1px solid #ded9ce;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgb(64 55 38 / 7%);
}

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

.task-form__plus {
    color: #777268;
    font-size: 1.7rem;
    font-weight: 300;
    line-height: 1;
}

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

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