/* VY71 site. One file, no build step. */

:root {
  color-scheme: light dark;
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  background: light-dark(#fff, #111);
  color: light-dark(#111, #eee);
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem;
}

header {
  font-weight: 700;
  letter-spacing: 0.1em;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin: 2rem 0 1rem;
}

p {
  font-size: 1.125rem;
}

figure {
  margin: 2rem 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figcaption,
footer {
  font-size: 0.875rem;
  color: light-dark(#666, #999);
}

figcaption {
  margin-top: 0.5rem;
}

/* The form's honeypot field. People never see it; bots fill it in. */
.hp {
  display: none;
}

/* Form: each label above its field, fields as wide as the column. */
label {
  display: block;
  margin: 1rem 0 0.25rem;
}

input,
textarea,
button {
  font: inherit;   /* form controls ignore the page's font unless told */
}

input,
textarea {
  display: block;
  box-sizing: border-box;   /* width: 100% includes padding and border */
  width: 100%;
  padding: 0.5rem;
  border: 1px solid light-dark(#888, #666);
  border-radius: 4px;
  background: light-dark(#fff, #1a1a1a);
  color: inherit;
}

textarea {
  resize: vertical;
}

button {
  margin-top: 1rem;
  padding: 0.625rem 1.5rem;
  border: 0;
  border-radius: 4px;
  background: light-dark(#111, #eee);
  color: light-dark(#fff, #111);
  cursor: pointer;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid light-dark(#ddd, #333);
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.75rem;
  }
}
