:root {
    --bg: #fafaf9;
    --text: #1c1917;
    --muted: #57534e;
    --accent: #2563eb;
    --error: #b91c1c;
    --border: #d6d3d1;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1c1917;
        --text: #f5f5f4;
        --muted: #a8a29e;
        --accent: #60a5fa;
        --error: #f87171;
        --border: #44403c;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 1rem/1.5 system-ui, sans-serif;
}

main { max-width: 36rem; margin: 0 auto; padding: 1.5rem 1rem; }

label { display: block; margin-top: 1rem; font-weight: 600; }
.hint { font-weight: 400; color: var(--muted); }

input, textarea {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.25rem;
    padding: 0.6rem;
    font: inherit;
    color: inherit;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
}

.error { color: var(--error); margin: 0.25rem 0 0; }
.notice { color: var(--muted); font-size: 0.9rem; margin-top: 1.5rem; }

button {
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    font: inherit;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 0.4rem;
    cursor: pointer;
}

.hp { position: absolute; left: -9999px; }