/* Calm, content-first styling for the household editor.
 * Single column, generous whitespace, no flashy colors. */

:root {
    --bg: #fafaf7;
    --card: #ffffff;
    --text: #1f2724;
    --text-dim: #5a665e;
    --text-faint: #8a948e;
    --border: #e5e4dd;
    --border-strong: #d4d3c8;
    --primary: #3a6d52;
    --primary-hover: #2c5440;
    --accent: #3a6d52;
    --ok-bg: #eaf3ed;
    --ok-border: #b9d4c2;
    --err: #b04030;
    --shadow: 0 1px 2px rgba(20, 30, 25, 0.04), 0 4px 12px rgba(20, 30, 25, 0.04);
    --radius: 10px;
    --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.hdr {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.brand {
    color: var(--text);
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.hdr-sub {
    color: var(--text-dim);
    font-size: 14px;
}

.main {
    margin-bottom: 48px;
}

.intro {
    margin-bottom: 28px;
}

.intro h1 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.intro p {
    color: var(--text-dim);
    margin: 0 0 8px;
    max-width: 60ch;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.form .field,
.form > label.field {
    display: block;
    margin-bottom: 22px;
}

.form .field:last-of-type {
    margin-bottom: 28px;
}

.lbl {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text);
    letter-spacing: 0.01em;
}

.hint {
    display: block;
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 8px;
    max-width: 60ch;
}

.prompt-list {
    margin: 6px 0 10px;
    padding-left: 20px;
    color: var(--text-dim);
    font-size: 13px;
    max-width: 60ch;
}

.prompt-list li {
    margin-bottom: 4px;
}

.prompt-list strong {
    color: var(--text);
    font-weight: 600;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.5;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(58, 109, 82, 0.15);
}

textarea {
    resize: vertical;
    min-height: 240px;
    font-family: inherit;
    line-height: 1.55;
}

select {
    cursor: pointer;
    max-width: 280px;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' width='12' height='8'><path fill='%235a665e' d='M0 0l6 8 6-8z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
    padding-right: 32px;
}

.err {
    display: block;
    color: var(--err);
    font-size: 13px;
    margin-top: 4px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 6px;
    cursor: pointer;
    transition: background 120ms ease, transform 60ms ease;
    letter-spacing: 0.01em;
}

.btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn:active {
    transform: translateY(1px);
}

.aside {
    color: var(--text-faint);
    font-size: 13px;
}

.banner {
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid;
    margin-bottom: 22px;
    font-size: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: baseline;
}

.banner.ok {
    background: var(--ok-bg);
    border-color: var(--ok-border);
    color: var(--text);
}

.banner strong {
    font-weight: 600;
}

.ftr {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-faint);
    font-size: 13px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.dim {
    color: var(--text-faint);
}

@media (max-width: 520px) {
    .page {
        padding: 20px 16px 48px;
    }
    .card {
        padding: 22px 18px;
    }
    .intro h1 {
        font-size: 24px;
    }
}
