/* Leave a word (/contact): the glyph, the invitation, the form and the
   thank-you a letter sent without JavaScript returns to. */

/* the gutter sits outside the measure, as on the other static pages */
.contact {
  position: relative; z-index: var(--z-panel);
  width: min(52ch, 100% - 12vw);
  margin: 0 auto;
  padding-block: 24vh 18vh;
  text-align: center;
}

.contact-hero { margin-bottom: 64px; }
.contact-hero .glyph-big {
  display: block; font-family: var(--font-glyph);
  font-size: clamp(3rem, 9vw, 5rem); color: var(--accent);
  margin-bottom: 30px; line-height: 1;
}
.contact-hero h1 {
  font-family: var(--font-verse); font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.45;
  color: var(--text); letter-spacing: 0.02em; margin: 0;
}
.contact-intro {
  margin: 34px auto 0; max-width: 40ch;
  font-family: var(--font-verse); font-style: italic;
  font-size: 1.2rem; line-height: 1.85; color: var(--paper-dim);
}

.contact-form { max-width: 44ch; margin: 0 auto; text-align: left; }
.contact-field { margin-bottom: 36px; }
.contact-field label {
  display: block;
  font-family: var(--font-label); font-weight: 300; font-size: var(--type-1);
  text-transform: uppercase; letter-spacing: 0.32em; color: var(--paper-faint);
  margin-bottom: 12px;
}
.contact-field input,
.contact-field textarea {
  width: 100%; background: none; border: none;
  border-bottom: 1px solid var(--ink-soft);
  color: var(--paper); font-family: var(--font-verse);
  font-size: 1.2rem; line-height: 1.7; padding: 8px 0;
  transition: border-color var(--dur-state) var(--ease-breath);
}
.contact-field textarea { resize: vertical; min-height: 4.5em; }
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: var(--paper-faint); font-style: italic; }
.contact-field input:hover,
.contact-field textarea:hover { border-color: var(--paper-faint); }
.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--accent); }
/* the lit underline is the field's focus; the transparent outline still
   shows in forced-colors modes */
.contact-field input:focus-visible,
.contact-field textarea:focus-visible { border-color: var(--accent); outline-color: transparent; }
/* honeypot: humans never see it, bots fill it */
.contact-trap { position: absolute; left: -9999px; height: 0; opacity: 0; }
.contact-submit { text-align: center; margin-top: 8px; }
.contact-submit .cta { cursor: pointer; }
.contact-status { min-height: 1.6em; margin-top: 18px; text-align: center; font-family: var(--font-verse); font-style: italic; color: var(--paper-dim); }
/* the thank-you a letter sent without JavaScript returns to (/contact#contact-sent) */
.contact-sent { display: none; margin-top: 18px; font-family: var(--font-verse); font-style: italic; color: var(--paper-dim); }
.contact-sent:target { display: block; }

@media (max-width: 640px) {
  /* the glyph starts clear of the menu's second row */
  .contact { width: min(52ch, 100% - 16vw); padding-block: max(18vh, 130px) 14vh; }
  .contact-hero { margin-bottom: 48px; }
}
