/* The contact box (js/contact.js adds this sheet to any page that loads it) and the /contact/ page's form.
   The site's inner look (pages.css): white, 2px black edges, square corners, Helvetica at 700, fields 48 tall,
   one oxblood button. Everything is named .contact-* and sets its own type, so it reads the same on the home
   page (home.css) as on a page under site.css. */
.contact-box { width: min(92vw, 480px); max-height: 92vh; padding: 0; border: 2px solid #111; border-radius: 0; background: #fff; color: #111; overflow: auto; }
.contact-box::backdrop { background: rgba(0, 0, 0, 0.6); }
.contact-in { display: grid; gap: 16px; padding: 24px; font: 400 17px/1.45 "Helvetica Neue", Helvetica, Arial, sans-serif; text-align: left; }
.contact-in h2 { margin: 0; font: 700 28px/1.1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -0.03em; }
.contact-in p { margin: 0; }
.contact-lede, .contact-about { color: #2b2b2b; }
.contact-form { display: grid; gap: 16px; margin: 0; text-align: left; }
.contact-form label { display: grid; gap: 8px; font: 700 15px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.contact-form input, .contact-form textarea { width: 100%; min-height: 48px; margin: 0; padding: 10px 12px; border: 2px solid #111; border-radius: 0; background: #fff; color: #111; font: 400 17px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.contact-form textarea { min-height: 128px; resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
/* For bots: people never see or reach it. */
.contact-form .contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-status { min-height: 1.45em; margin: 0; font-size: 15px; color: #2b2b2b; }
.contact-acts { display: flex; justify-content: flex-end; align-items: center; gap: 24px; }
.contact-send { min-height: 48px; padding: 0 28px; border: 0; border-radius: 0; background: #6b1f24; color: #fff; font: 700 17px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -0.01em; cursor: pointer; }
.contact-send:hover { background: #561519; }
.contact-send:active { transform: translateY(1px); }
.contact-send:disabled { opacity: 0.6; cursor: default; }
.contact-close { min-height: 44px; padding: 0 4px; border: 0; background: none; color: #111; font: 400 16px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.contact-close:hover { text-decoration-thickness: 2px; }
.contact-send:focus-visible, .contact-close:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.contact-done { display: grid; gap: 16px; }
.contact-sent { margin: 0; font-weight: 700; }
.contact-sent:focus { outline: none; }
/* /contact/: the same form by itself, in the page's 480 form column, its one button as wide as the fields. */
.contact-page { max-width: 480px; margin: 24px auto 0; }
.contact-page .contact-send { width: 100%; min-height: 56px; font-size: 19px; }
.contact-page-done { max-width: 480px; margin: 24px auto 0; text-align: center; }
@media (max-width: 520px) {
  .contact-in { padding: 20px 16px; }
  .contact-box .contact-acts { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
}
