:root {
  color-scheme: light;
  color: #22211f;
  background: #f6f3eb;
  font: 100%/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/plex-mono-700.woff2") format("woff2");
}
body { margin: 0; }
main { max-width: 36rem; margin-inline: auto; padding: clamp(1.25rem, 4vw, 3rem) 1rem clamp(1.5rem, 5vw, 4rem); }
/* Way back to the tracker: the same yellow strip and cream button as the homepage */
.topbar {
  position: sticky; /* stays at the top while the page scrolls */
  top: 0;
  z-index: 10;
  background: #e5b94b;
  border-bottom: 2px solid #171717;
  padding: .6rem 1rem;
  text-align: center;
}
.home-btn {
  display: inline-block;
  padding: .45rem .9rem;
  background: #f3f0e7;
  color: #171717;
  border: 2px solid #171717;
  box-shadow: 3px 3px 0 #171717;
  font: 700 .85rem/1.3 "IBM Plex Mono", ui-monospace, Menlo, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.home-btn:hover, .home-btn:focus-visible { background: #171717; color: #f3f0e7; }
/* Keep focused fields clear of the sticky strip */
input, textarea, button { scroll-margin-top: 7.5rem; } /* room for the label above the field */
h1 { margin: .35em 0 .5em; font: 800 clamp(3rem, 12vw, 6rem)/1 Georgia, serif; }
.appeal { margin-bottom: 1.5rem; }
.appeal p { margin: 0 0 .85rem; }
form { border-block: 2px solid currentColor; padding-block: 1.25rem; }
label { display: block; font-weight: 700; margin-top: .85rem; }
label:first-child { margin-top: 0; }
input, textarea {
  display: block;
  width: 100%;
  padding: .65rem .75rem;
  margin-top: .25rem;
  border: 1px solid #77736b;
  color: inherit;
  background: #fffdf7;
  border-radius: .2rem;
  font: inherit;
  font-weight: 400;
}
textarea { resize: vertical; }
small, #privacy { color: #514e46; }
button {
  font: inherit;
  font-weight: 700;
  background: #9c231b;
  border: 0;
  border-radius: .2rem;
  color: white;
  padding: .65rem 1.25rem;
  cursor: pointer;
}
button:disabled { opacity: .68; cursor: default; }
:focus-visible { outline: 3px solid #14689a; outline-offset: 3px; }
#result:empty { margin: 0; padding: 0; border: 0; }
/* The outcome of a submission: a clear box, not small grey text */
#result:not(:empty) {
  margin: 1rem 0 0;
  padding: .8rem 1rem;
  border: 2px solid #171717;
  font-weight: 700;
  outline: none;
}
#result.busy { background: #fffdf7; }
#result.ok { background: #dcefd9; border-color: #1d5c2a; color: #12401c; }
#result.error { background: #f8dcd8; border-color: #9c231b; color: #6d1710; }
/* A field that stops the form from sending */
input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border: 2px solid #9c231b;
  background: #fdf0ee;
}
.field-error {
  display: block;
  margin-top: .3rem;
  color: #9c231b;
  font-weight: 700;
  font-size: .9rem;
}
.field-error::before { content: "⚠ "; }
.optional { font-weight: 400; color: #5c574d; }
