/* Contact form. Deliberately plain: no third-party service, no upload, no
   tracking — the button composes an email in the reader's own mail app. */
.cf {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.2rem 1.1rem .9rem;
  margin: 1.8rem 0 1.4rem;
}
.cf-field { margin-bottom: 1rem; }
.cf-field label {
  display: block;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: .3rem;
}
.cf-field label .hint {
  display: block;
  font-weight: 400;
  font-size: .875rem;
  color: var(--ink-soft);
  margin-top: .1rem;
}
.cf input, .cf textarea, .cf select {
  font: inherit;
  font-size: 1.0625rem;
  width: 100%;
  padding: .6rem .65rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  color: var(--ink);
}
.cf textarea { resize: vertical; min-height: 7rem; }
.cf input:focus, .cf textarea:focus, .cf select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.cf-btn {
  font: inherit;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: .75rem 1.2rem;
  cursor: pointer;
}
.cf-btn:hover { filter: brightness(1.08); }
.cf-out {
  font-size: .9375rem;
  color: var(--ink-soft);
  margin: .8rem 0 0;
}
.cf-out.warnish { color: var(--warn); font-weight: 600; }
/* The publishing tick. The box has to sit beside the words rather than above
   them, and the whole label is the tap target — this is read on phones. The
   width override is needed because .cf input above stretches text fields to
   the full width of the form. */
.cf .cf-check label {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-weight: 400;
  cursor: pointer;
}
.cf .cf-check input {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  margin: .3rem 0 0;
  padding: 0;
  accent-color: var(--accent);
}
.cf .cf-check strong { display: block; font-weight: 600; }
.cf .cf-check .hint { margin-top: .15rem; }
/* Shown only when a message is too long for a mailto: link, so it can be
   copied by hand without losing the publishing permission at the bottom. */
.cf-copy {
  font: inherit;
  font-size: 1rem;
  width: 100%;
  margin-top: .7rem;
  padding: .6rem .65rem;
  border: 1px solid var(--warn);
  border-radius: 3px;
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
}
