/* ---------- Contact (index.html #contact, contact.js): four cards, each a mailto link with a copy button, then the short
	form posting to /contact/send (the indieun-contact service), which also answers a post without JS with a small page ---------- */
.contact { display: flex; flex-direction: column; align-items: center; }
.contact .sec-h { margin-bottom: clamp(16px, 1.8vw, 24px); }
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 1080px; }
.contact-card { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 18px 16px 14px 18px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow-sm); }
.contact-label { margin: 0; font-weight: 850; font-size: 17px; line-height: 1.2; }
.contact-line { margin: 0; min-height: 2.8em; font-weight: 600; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.contact-addr { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 4px; }
.contact-addr a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 750; font-size: 14px; color: var(--ink);
	text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 25%, transparent); text-underline-offset: 3px; transition: text-decoration-color .6s var(--ease); }
.contact-line a, .contact-privacy a { color: inherit; font-weight: 750; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; transition: color .6s var(--ease), text-decoration-color .6s var(--ease); }
@media (hover: hover) { .contact-line a:hover, .contact-privacy a:hover { color: var(--ink); text-decoration-color: var(--ink); transition-duration: .35s; } }
.contact-privacy { margin: 2px 0 0; font-weight: 600; font-size: 13px; line-height: 1.4; color: var(--muted); }
@media (hover: hover) { .contact-addr a:hover { text-decoration-color: var(--ink); transition-duration: .35s; } }
.contact-copy { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
	transition: background-color .6s var(--ease), color .6s var(--ease), scale .6s var(--ease); }
.contact-copy svg { grid-area: 1 / 1; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .35s var(--ease), scale .35s var(--ease); }
.contact-copy .i-done { opacity: 0; scale: .6; stroke-width: 2.4; }
.contact-copy.done { background: rgb(22 163 74 / .14); color: #15803d; transition-duration: .35s; }
.contact-copy.done .i-copy { opacity: 0; scale: .6; }
.contact-copy.done .i-done { opacity: 1; scale: 1; }
@media (hover: hover) {
	.contact-copy:hover { background: var(--ink); color: var(--paper); transition-duration: .35s; }
	.contact-copy.done:hover { background: rgb(22 163 74 / .2); color: #15803d; }
}
.contact-copy:active { scale: .9; transition-duration: .35s, .35s, .4s; }

.contact-form { position: relative; display: grid; gap: 14px; width: 100%; max-width: 760px; margin-top: 18px; padding: clamp(18px, 2.4vw, 28px); border-radius: 26px; background: var(--card); box-shadow: var(--shadow-sm); }
.contact-topics { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-field { display: grid; gap: 6px; padding: 0; font-weight: 750; font-size: 13px; color: var(--muted); }
.contact-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.contact-topic { position: relative; }
.contact-topic input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.contact-topic span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 750; font-size: 14px; line-height: 1; cursor: pointer;
	transition: background-color .6s var(--ease), color .6s var(--ease), scale .6s var(--ease), box-shadow .6s var(--ease); }
@media (hover: hover) { .contact-topic:hover span { background: color-mix(in srgb, var(--ink) 10%, var(--paper)); transition-duration: .35s; } }
.contact-topic input:checked + span { background: var(--ink); color: var(--paper); transition-duration: .35s; }
.contact-topic input:focus-visible + span { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.contact-topic:active span { scale: .95; transition-duration: .35s, .35s, .4s, .35s; }
.contact-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { width: 100%; min-width: 0; margin: 0; padding: 11px 14px; border: 0; border-radius: 14px; background: var(--paper); color: var(--ink); font: 600 15px/1.4 var(--font);
	box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .6s var(--ease), background-color .6s var(--ease); }
.contact-form textarea { min-height: 124px; resize: vertical; }
@media (hover: hover) { .contact-form input:hover, .contact-form textarea:hover { background: color-mix(in srgb, var(--ink) 5%, var(--paper)); transition-duration: .35s; } }
.contact-form input:focus, .contact-form textarea:focus { outline: none; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink); transition-duration: .35s; }
.contact-hp { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.contact-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.contact-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 124px; height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 800 15px/1 var(--font); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
	transition: translate .6s var(--ease), box-shadow .6s var(--ease), scale .6s var(--ease), background-color .6s var(--ease); }
@media (hover: hover) { .contact-btn:hover { translate: 0 -2px; box-shadow: var(--shadow-md); transition-duration: .35s; } }
.contact-btn:active { scale: .95; transition-duration: .35s, .35s, .4s, .35s; }
.contact-btn:focus-visible { outline-offset: 3px; }
.contact-btn.sent { background: #16a34a; }
.contact-btn-text, .contact-status { transition: opacity .25s var(--ease); }
.contact-btn-text.swap, .contact-status.swap { opacity: 0; }
.contact-status { min-height: 1.4em; margin: 0; font-weight: 650; font-size: 14px; color: var(--muted); }
.contact-status.bad { color: #b91c1c; }

body.contact-page { display: grid; place-items: center; min-height: 100vh; min-height: 100svh; }
.contact-done { display: grid; justify-items: center; gap: 14px; max-width: 520px; padding: 40px 24px; text-align: center; }
.contact-done .sec-h { margin: 0; }
.contact-done-line { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.45; color: var(--muted); }

@media (max-width: 1100px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
	.contact-cards, .contact-row { grid-template-columns: minmax(0, 1fr); }
	.contact-line { min-height: 0; }
}

/* the Contact page (/contact): the section is the page, under the top bar, with its title */
.contact-sec { padding-top: clamp(30px, 5vh, 64px); }
.contact-title { font-size: calc(var(--h-size) * 1.25); }
