/* Fonts */
@font-face{
  font-family: 'ArchitectsDaughter';
  src: url('fonts/ArchitectsDaughter.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

/* Mobile-first layout */
.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 1rem;
}
h1{
  font-family: 'ArchitectsDaughter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: .2px;
  margin: 0 0 1rem;
  font-size: 1.8rem;
}

/* Skiplink for tastaturbrugere */
.skiplink {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #0a66ff;
  color: #fff;
  padding: .5rem .75rem;
  border-radius: .5rem;
}
.skiplink:focus { left: .5rem; top: .5rem; z-index: 1000; }

/* Labels & inputs */
label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 .35rem;
}
input[type=text],
input[type=email],
input[type=tel],
textarea {
  width: 100%;
  padding: .75rem .85rem;
  border: 1px solid #9aa0a6;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
}
textarea {
  min-height: 180px;
  resize: vertical;
}
input::placeholder, textarea::placeholder { color: #8a8a8a; }

/* Tap target size + focus */
input, textarea, button { min-height: 44px; }
:focus-visible {
  outline: 3px solid #0a66ff;
  outline-offset: 2px;
}

/* Buttons & notes */
.btn {
  margin-top: 1rem;
  padding: .9rem 1.1rem;
  border: 0;
  border-radius: 10px;
  background: #111;
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
}
.btn:hover { opacity: .92; }
.note, .hint {
  color: #555;
  font-size: .95rem;
}

/* Alerts (kontrast-sikret) */
.errors {
  background: #fde7e7;
  border: 1px solid #d93025;
  color: #5f1410;
  padding: .9rem;
  border-radius: 10px;
}
.success {
  background: #e6f4ea;
  border: 1px solid #1e8e3e;
  color: #0b4f1f;
  padding: .9rem;
  border-radius: 10px;
}
.field-error {
  color: #b00020;
  margin-top: .35rem;
  font-size: .95rem;
}

/* Honeypot skjules for mennesker */
.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Desktop tweaks */
@media (min-width: 640px) {
  .wrap { padding: 2rem; }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  body { background: #0e1116; color: #e6e6e6; }
  input[type=text],
  input[type=email],
  input[type=tel],
  textarea {
    background: #11161c;
    border-color: #3b4451;
    color: #e6e6e6;
  }
  .btn { background: #e6e6e6; color: #111; }
  .note, .hint { color: #b7bec8; }
  .errors { background: #2b1414; border-color: #f28b82; color: #ffd7d3; }
  .success { background: #122417; border-color: #8bc34a; color: #d0ffd0; }
}
