/* ---------------------------------------------------------------
   /contact — the message form and its confirmation page.

   Follows the design language in style.css: paper ground, the form
   in a soft card, letterspaced small caps for labels.
   --------------------------------------------------------------- */

/* As wide as the form (36rem) plus the side padding, so the column sits
   centred on the page instead of at the left of a wider, half-empty one. */
.contact {
  max-width: calc(36rem + 2 * var(--space));
  margin: 0 auto;
  padding: calc(var(--space) * 3) var(--space) calc(var(--space) * 5);
}

.contact-intro {
  max-width: 56ch;
  margin-bottom: calc(var(--space) * 2.5);
}


.contact-intro p {
  margin: 0 0 0.8em;
}

.contact-note {
  font-family: var(--font-display);
  color: var(--ink-soft);
}

.contact-back {
  margin-top: 1.5em !important;
}

.contact-back a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

/* --- The form ------------------------------------------------------ */

.contact-form {
  max-width: 36rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

@media (max-width: 600px) {
  .contact-form {
    padding: 22px;
  }
}

.contact-field {
  margin: 0 0 calc(var(--space) * 1.5);
}

.contact-field .label {
  display: block;
  margin-bottom: 0.5em;
}

.contact-field input,
.contact-field textarea {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease;
}

.contact-field textarea {
  resize: vertical;
  min-height: 9rem;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-hint {
  display: block;
  margin-top: 0.45em;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.contact-actions {
  margin: 0;
}

.contact-actions .btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
}

/* The honeypot. Hidden from people without display:none, which some bots
   check for; kept out of the tab order and off screen instead. */
.contact-trap {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
