:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #234437;
  background: #eaede6;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 24px;
  display: grid;
  place-items: center;
}

main {
  width: min(100%, 440px);
  padding: 36px 32px 24px;
  border: 1px solid #d1d9cc;
  border-radius: 22px;
  background: #fcfdf9;
  box-shadow: 0 12px 40px #2344370a;
}

h1 {
  margin: 0 0 34px;
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 700;
  letter-spacing: -1.2px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.entry { display: flex; gap: 10px; }

input, button {
  min-height: 58px;
  border: 1px solid #b9c9b1;
  border-radius: 12px;
  font: inherit;
}

input {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  background: #fff;
  color: #234437;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

input::placeholder { color: #7a8972; opacity: 1; }
input[aria-invalid="true"] { border-color: #a82d35; }

button {
  flex-shrink: 0;
  padding: 12px 19px;
  border-color: #285c43;
  background: #285c43;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

button:hover { background: #1e4934; }
button span { margin-left: 4px; }

input:focus-visible, button:focus-visible {
  outline: 3px solid #d6a142;
  outline-offset: 3px;
}

#feedback {
  min-height: 2.8em;
  margin: 14px 0 0;
  color: #a82d35;
  font-size: 14px;
  line-height: 1.4;
}

noscript { display: block; color: #a82d35; line-height: 1.5; }

@media (max-width: 380px) {
  body { padding: 16px; }
  main { padding: 28px 22px 18px; }
  .entry { flex-direction: column; }
  button { width: 100%; }
}
