:root {
    color: #172b2a;
    background: #faf8f2;
    font: 1rem/1.5 system-ui, sans-serif;
}

body {
    margin: 0;
}

main {
    max-inline-size: 26rem;
    margin-inline: auto;
    padding: clamp(1.25rem, 6vw, 3rem) 1.25rem 2rem;
}

h1 {
    margin-block: 0 1.25rem;
    font: 700 clamp(1.65rem, 6vw, 2.25rem)/1.15 Georgia, serif;
}

form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

label {
    margin-block-end: 0.25rem;
    font-weight: 600;
}

input:not([type="hidden"]),
button {
    box-sizing: border-box;
    min-block-size: 3rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid #61716e;
    border-radius: 0.25rem;
    font: inherit;
    font-size: max(1rem, 1em);
}

input:not([type="hidden"]) {
    margin-block-end: 1rem;
    color: inherit;
    background: #fffefa;
}

button {
    border-color: #18534b;
    color: white;
    background: #18534b;
    font-weight: 700;
    cursor: pointer;
}

:where(input, button):focus-visible {
    outline: 3px solid #775114;
    outline-offset: 3px;
}

[role="alert"] {
    margin-block: 0 1rem;
    padding: 0.65rem 0.8rem;
    color: #821f2b;
    background: #fce9eb;
}
