/* Shared basics. Page layout and colours are inline in each page. */
html, body { margin: 0; overflow-x: hidden; }
body { background: #f6f7f4; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: #4d7c0f; }
a:hover { color: #3f6a0a; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #4d7c0f;
  outline-offset: 2px;
}
section[id] { scroll-margin-top: 24px; }

/* Contact form */
.field {
  padding: 13px 14px;
  border: 1.5px solid #9aa6bd;
  border-radius: 8px;
  color: #1c2433;
  font: inherit;
  background: #ffffff;
}
.field:focus { border-color: #4d7c0f; }
.topics { display: flex; flex-wrap: wrap; gap: 10px; }
.topics input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topics label {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  background: #ffffff;
  color: #0e0f12;
  border: 1.5px solid #d3dcc0;
}
.topics input:checked + label { background: #c8f04a; border-color: #4d7c0f; }
.topics input:focus-visible + label { outline: 3px solid #4d7c0f; outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#contact-status:empty { display: none; }
#contact-status {
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 16px;
}
#contact-status.ok { background: #e6f4ea; color: #1d4d2b; }
#contact-status.error { background: #fdecea; color: #8a1c12; }
button[disabled] { opacity: 0.6; cursor: wait; }

@media (max-width: 640px) {
  header nav { gap: 16px !important; }
}
