/* Installed on Apple devices already, so most phones download nothing. */
@font-face {
  font-family: 'American Typewriter';
  src: local('American Typewriter'), url('/fonts/american-typewriter.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Shows behind the gradient when a phone overscrolls. */
  background: #9cc0c9;
}

/* The flyer's Photoshop "Iridescent" gradient, measured from the flyer file. */
body {
  margin: 0;
  min-height: 100dvh;
  padding: 2.5rem 1.25rem 3rem;
  color: #000;
  font: 400 1.125rem/1.45 'American Typewriter', 'Courier New', Courier, serif;
  background:
    radial-gradient(ellipse 75% 42% at 0% 52%, rgb(92 192 232 / 0.85), rgb(92 192 232 / 0) 72%),
    linear-gradient(127deg, #ada2db 0%, #9ea7dd 10%, #88aedf 20%, #7db3e0 38%, #8dc1cf 50%, #9cc0c9 62%, #babdbd 70%, #ceb6b3 78%, #dcaeac 86%, #e0abaa 92%);
}

main {
  max-width: 30rem;
  margin: 0 auto;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.5rem, 13vw, 3.75rem);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
}

.intro {
  margin: 0 0 2rem;
  text-align: center;
  text-wrap: balance;
}

label {
  display: block;
  margin: 1.25rem 0 0.35rem;
  font-size: 1.25rem;
}

.hint {
  display: block;
  font-size: 0.9375rem;
}

input,
textarea,
button {
  font: inherit;
  color: inherit;
}

input:not([type='file']),
textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 2px solid #000;
  border-radius: 0;
  background: rgb(255 255 255 / 0.6);
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input[type='file'] {
  display: block;
  width: 100%;
  font-size: 1rem;
  cursor: pointer;
}

input[type='file']::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.55rem 0.9rem;
  border: 2px solid #000;
  border-radius: 0;
  background: rgb(255 255 255 / 0.6);
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button,
.button {
  display: block;
  width: 100%;
  margin-top: 2rem;
  padding: 0.9rem 1rem;
  border: 2px solid #000;
  border-radius: 0;
  background: #000;
  color: #fff;
  font-size: 1.25rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: progress;
}

:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

/* Bots fill it in; people never see it. */
.trap {
  position: absolute;
  left: -9999px;
}

#status {
  margin: 1.25rem 0 0;
  padding: 0.7rem 0.8rem;
  border: 2px solid #000;
  background: #fff;
}

#status:empty {
  display: none;
}
