button, input, textarea { font: inherit; color: inherit; }
.contact-trigger { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.contact-trigger:hover, dialog button:hover { text-decoration: underline; text-underline-offset: 4px; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #666c64; outline-offset: 3px; }
dialog { width: min(420px, calc(100% - 40px)); max-height: calc(100% - 40px); overflow: auto; border: 1px solid #e3e4df; border-radius: 16px; padding: 32px; background: #fafaf8; color: #252724; box-shadow: 0 18px 60px rgba(37, 39, 36, .12); }
dialog::backdrop { background: rgba(37, 39, 36, .22); }
.contact-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; }
.contact-head h2 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
dialog button { background: none; border: 0; padding: 0; cursor: pointer; }
#close-contact { color: #737771; font-size: 14px; }
dialog form { display: grid; gap: 9px; font-size: 16px; }
dialog label { margin-top: 8px; color: #555a54; font-size: 14px; }
dialog input, dialog textarea { width: 100%; padding: 12px 13px; border: 1px solid #dedfda; border-radius: 8px; background: #fff; }
dialog textarea { resize: vertical; }
dialog button[type=submit] { width: fit-content; margin-top: 16px; text-decoration: underline; text-underline-offset: 5px; }
dialog button:disabled { opacity: .5; cursor: wait; }
#contact-status { margin: 0; color: #555a54; font-size: 14px; }
@media (max-width: 480px) { dialog { padding: 26px 24px; } }
