/* A note on the same warm paper as the family site. */
.letter[data-contact-open] { display: block; padding: 0; background: transparent; text-align: left; }
.letter[data-contact-open]:disabled { opacity: 1; }
.letter[data-contact-open]:focus-visible { outline-offset: 12px; }
html.contact-open { overflow: hidden; }
.contact-dialog { position: fixed; width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; color: var(--ink); background: var(--paper); border: 0; box-shadow: 0 25px 90px rgb(0 0 0 / 30%); overscroll-behavior: contain; }
.contact-dialog::backdrop { background: rgb(8 27 54 / 68%); }
.contact-paper { position: relative; padding: 34px 42px 38px; }
.contact-close { position: absolute; top: 16px; right: 16px; }
.contact-address { display: flex; align-items: center; gap: 14px; margin-right: 44px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: #70543d; font-family: var(--sans); font-size: 12px; }
.contact-address .icon { width: 20px; height: 20px; color: var(--brand-red); }
.contact-paper h2 { margin-top: 26px; font-size: clamp(30px, 4vw, 39px); letter-spacing: -.03em; }
.contact-paper h2 em { color: var(--brand-blue); }
#contact-form-intro { margin-top: 14px; max-width: 43ch; font-size: 14px; line-height: 1.7; color: #70543d; }
.contact-fields { min-width: 0; margin: 26px 0 0; padding: 0; border: 0; }
.contact-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-field { min-width: 0; margin-bottom: 18px; }
.contact-field label { display: block; margin-bottom: 7px; font-family: var(--sans); font-size: 12px; font-weight: 600; }
.contact-field input, .contact-field textarea { display: block; width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #897c6d; border-radius: 3px; color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.5; caret-color: var(--brand-blue); }
.contact-field textarea { min-height: 128px; resize: vertical; }
.contact-field input:focus-visible, .contact-field textarea:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; border-color: var(--brand-blue); }
.contact-field [aria-invalid="true"] { border-color: var(--red-ink); }
.contact-field-error { display: block; color: var(--red-ink); font-family: var(--sans); font-size: 12px; line-height: 1.5; }
.contact-field-error:not(:empty) { margin-top: 7px; }
.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-send { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 24px; }
.contact-send p { max-width: 130px; color: #70543d; font-size: 12px; font-style: italic; line-height: 1.6; }
.contact-status { margin-top: 18px; font-family: var(--sans); font-size: 13px; line-height: 1.6; color: #70543d; }
.contact-status:empty { display: none; }
.contact-status[data-state="error"] { color: var(--red-ink); }
.contact-fields:disabled input, .contact-fields:disabled textarea { opacity: .65; }
.contact-success { padding-block: 30px 4px; }
.contact-success:focus { outline: none; }
.contact-success-heart { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 20px; color: var(--brand-red); background: var(--red-wash); border-radius: 50%; }
.contact-success h3 { font-size: 28px; letter-spacing: -.02em; }
.contact-success p { margin-top: 14px; color: #70543d; font-size: 14px; }
.contact-success .button { margin-top: 26px; }
@media (prefers-reduced-motion: no-preference) {
  html[data-motion='full'] .contact-dialog[open] { animation: type-arrive .3s var(--ease) both; }
  html[data-motion='full'] .letter[data-contact-open]:focus-visible .letter-sheet { transform: translateY(-15px) rotate(-1deg); }
}
@media (max-width: 600px) {
  .contact-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .contact-paper { padding: 26px 24px; }
  .contact-close { top: 12px; right: 12px; }
  .contact-address { padding-bottom: 18px; }
  .contact-paper h2 { margin-top: 23px; }
  .contact-field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-fields { margin-top: 22px; }
  .contact-send { align-items: flex-start; flex-direction: column; gap: 14px; }
  .contact-send p { max-width: none; }
  .contact-send .button { width: 100%; }
}
@media print { .contact-dialog { display: none !important; } }
