/* Email dialog: the Email links in the footer (every page) and the home page intro open this instead of a mail app.
   It shows the address with a copy button. Markup is built by js/email-modal.js; looks match the More stuff dialog. */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15,15,15,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: modalFade 160ms ease-out; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: 100%; max-width: 480px; box-sizing: border-box; padding: 44px 36px 36px; text-align: center; background: #f5f5f5; color: #191919; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.35); animation: modalPop 200ms cubic-bezier(.2,.7,.2,1); }
.modal-address { margin: 0 0 30px; font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; word-break: break-word; user-select: all; -webkit-user-select: all; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center; }
.modal-copy { font-family: "Instrument Sans"; font-size: 17px; line-height: 1em; padding: 0.8em 1.7em; border: 1px solid #191919; border-radius: 999px; background: #191919; color: #f5f5f5; cursor: pointer; transition: opacity 200ms; }
.modal-copy:hover { opacity: .85; }
/* close × sits outside the card, top right, on the dimmed page */
.modal-close { position: absolute; top: -46px; right: -4px; width: 40px; height: 40px; border: 0; background: none; font-size: 32px; line-height: 1; color: #ffffff; opacity: .8; cursor: pointer; transition: opacity 200ms; }
.modal-close:hover { opacity: 1; }
html.modal-open { overflow: hidden; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal, .modal-card { animation: none; } }
@media (max-width: 480px) { .modal-address { font-size: 19.5px; white-space: nowrap; } .modal-card { padding: 40px 14px 28px; } }
