/* Demo-app: viser HTML-formularkilde som tekst. Farver og typografi er forslag, ikke vedtaget design. */

body {
  margin: 0;
  padding: 32px 16px;
  background: #fff;
  color: #222;
  font: 16px/1.6 system-ui, sans-serif;
}

main {
  max-width: 720px;
  margin: auto;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.3;
}

.intro {
  color: #444;
}

.code-wrap {
  margin: 24px 0 12px;
}

pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #1f2937;
  font: 0.95rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

button {
  padding: 10px 16px;
  border: 1px solid #374151;
  border-radius: 6px;
  background: #f9fafb;
  font: inherit;
  cursor: pointer;
}

button:hover {
  background: #e5e7eb;
}

button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

#copy-status:empty {
  display: none;
}

#copy-status {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: #1f2937;
}

.hint {
  color: #6b7280;
  font-size: 0.9rem;
}
