* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.65;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }

img, svg { max-width: 100%; height: auto; }

button,
.button {
  font: inherit;
  cursor: pointer;
}

.field-error { color: #9b2c2c; font-size: 0.9rem; }

[data-form-status] { font-weight: 700; }

form { display: grid; gap: 0.8rem; max-width: 36rem; }

label { display: grid; gap: 0.3rem; }

label.checkbox-row,
label:has(> input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: 36rem;
  flex-wrap: wrap;
}

label.checkbox-row + .field-error,
label:has(> input[type="checkbox"]) + .field-error {
  margin: -0.35rem 0 0.5rem;
  max-width: 36rem;
}

label.checkbox-row input[type="checkbox"],
label:has(> input[type="checkbox"]) input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
}

input, textarea, select {
  font: inherit;
  padding: 0.7rem 0.8rem;
}

main { min-height: 40vh; }
