:root {
    color-scheme: light dark;
    --max-width: 640px;
}

body {
    font-family: system-ui, sans-serif;
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1rem;
    line-height: 1.5;
}

h1 {
    font-size: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    margin-top: 1.25rem;
}

input[type="text"],
input[type="email"],
input[type="file"],
select {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    box-sizing: border-box;
}

#editor {
    margin-top: 0.25rem;
    min-height: 200px;
    background: white;
    color: black;
}

.error {
    color: #b00020;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

button {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
}

/* Honeypot: hidden from humans, visible to naive bots that ignore CSS off-screen positioning */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}
