:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  background: #113c33;
  color: #192d26;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: radial-gradient(ellipse at 50% 0%, #29624d, transparent 68%), #113c33;
}

main {
  width: min(100%, 450px);
  padding: clamp(26px, 7vw, 46px);
  background: #fcf4e4;
  border: 1px solid #e5d3aa;
  border-radius: 22px;
  box-shadow: 0 24px 80px #071d1866;
  text-align: center;
}

.seal {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #8c352f;
  color: #fcf4e4;
  font-size: 25px;
}

h1, h2 {
  font-family: Georgia, serif;
  line-height: 1.05;
  font-weight: normal;
  overflow-wrap: anywhere;
}

h1 { margin: 0; font-size: clamp(2.3rem, 9vw, 3.5rem); }
h2 { margin: 8px 0 24px; font-size: clamp(2.7rem, 10vw, 4rem); }
p { color: #4d5a4e; line-height: 1.55; }

form, #result { margin-top: 26px; }
fieldset { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
label { font-weight: 650; text-align: left; }
input, button { min-height: 52px; border-radius: 9px; font: inherit; }

input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #9a9c88;
  color: inherit;
  background: #fffaf0;
  font-size: 1.25rem;
  letter-spacing: .25em;
  text-align: center;
}

button {
  margin-top: 4px;
  padding: 10px 18px;
  border: 1px solid transparent;
  background: #1a503f;
  color: #fffaf0;
  font-weight: 650;
  cursor: pointer;
}

button:hover { background: #123d33; }
button:disabled { opacity: .75; cursor: wait; }
:focus-visible { outline: 3px solid #97552f; outline-offset: 3px; }
[aria-invalid="true"] { border-color: #992e28; }
#status { margin: 10px 0 0; color: #8b302b; text-align: left; }
#status:empty { margin: 0; }
#result p { margin: 0; }
