/* Global reset that won't fight Neocities defaults */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Base typography */
body {
  margin: 0;
  padding: 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

/* Constrain line length on large screens */
main,
.content,
form {
  max-width: 40rem;   /* ~640px */
  margin: 0 auto;
}

/* Form layout */
form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Labels stack cleanly */
label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 500;
}

/* Inputs: readable + finger-sized */
input,
textarea,
button {
  font: inherit;
  padding: 0.6rem 0.7rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Textarea should feel usable on phone */
textarea {
  min-height: 8rem;
  resize: vertical;
}


/* Prevent accidental horizontal scrolling */
img,
video,
iframe {
  max-width: 100%;
}
