:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2328;
  background: #f5f5f3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 4rem 1rem;
}

main {
  width: min(100%, 44rem);
  margin: auto;
}

header { margin-bottom: 2rem; }

h1 {
  max-width: 18ch;
  margin: .25rem 0 .75rem;
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.eyebrow {
  margin: 0;
  color: #e85b19;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

form, #results {
  padding: 1.5rem;
  border: 1px solid #deded9;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 .5rem 2rem rgb(0 0 0 / 6%);
}

label, legend {
  display: block;
  margin: 1rem 0 .4rem;
  font-weight: 700;
}

input, textarea, button {
  width: 100%;
  border: 1px solid #a9aaa6;
  border-radius: .55rem;
  font: inherit;
}

input, textarea { padding: .75rem; }
textarea { resize: vertical; }
small { color: #666; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

button {
  margin-top: 1.5rem;
  padding: .9rem 1rem;
  border-color: #e85b19;
  color: white;
  background: #e85b19;
  font-weight: 800;
  cursor: pointer;
}

button:hover { background: #c9470d; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #7da9ff; outline-offset: 2px; }

#results { margin-top: 1rem; }
#results p { margin-top: 0; }
#results li + li { margin-top: .65rem; }
#results a { color: #b23b07; font-weight: 800; }

.error { min-height: 1.4em; color: #b42318; }
.note { color: #666; font-size: .9rem; }

@media (max-width: 34rem) {
  body { padding-top: 2rem; }
  .grid { grid-template-columns: 1fr; }
}
