:root { color-scheme: light; --ink: #24211e; --muted: #746f68; --paper: #f7f4ee; --line: #d9d1c5; --accent: #a0472f; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; }
.page-shell { min-height: 100vh; padding: 28px 32px; }
.contact-link { color: var(--ink); font-size: 16px; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact-link:hover, .contact-link:focus-visible { color: var(--accent); }
.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(36, 33, 30, .42); }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; width: min(100%, 520px); padding: 32px; background: #fffdf9; border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(36, 33, 30, .16); }
.modal h1 { margin: 0 34px 8px 0; font-size: 26px; font-weight: 650; letter-spacing: -.02em; }
.modal-intro { margin: 0 0 24px; color: var(--muted); line-height: 1.5; }
.modal-close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; }
.modal-close:hover, .modal-close:focus-visible { color: var(--ink); }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
input, textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font: inherit; font-weight: 400; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 2px solid rgba(160, 71, 47, .25); border-color: var(--accent); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.form-status { min-height: 20px; color: var(--muted); font-size: 13px; }
.form-status.error { color: #9c2f24; }
.form-status.success { color: #34613d; }
.submit-button { border: 0; border-radius: 5px; padding: 11px 16px; background: var(--ink); color: #fffdf9; font: inherit; cursor: pointer; }
.submit-button:hover, .submit-button:focus-visible { background: var(--accent); }
.submit-button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 520px) { .page-shell { padding: 20px; } .modal { padding: 24px 20px; } .form-actions { align-items: stretch; flex-direction: column; } .submit-button { width: 100%; } }
