/* =====================================================================
   contacts.css: the Contacts section (partials/site/contacts.html)
   ---------------------------------------------------------------------
   A centered header, then one card per person (name, email, phone)
   side by side; on phones the cards stack (see responsive.css).
   min-height keeps the section tall enough to cross the scroll-spy line
   (js/scroll-spy.js) when the page is scrolled to the very end, so
   "Contacts" lights up in the menu even though it's the last section.
   ===================================================================== */

.contacts {
  min-height: 70vh; padding: 80px 64px;
  background: var(--sand);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
}
.contacts__header { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.contacts__intro { max-width: 460px; margin: 0 auto; color: var(--muted); }

.contacts__list {
  list-style: none; margin: 0 auto; padding: 0; width: 100%; max-width: 720px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
}
.contact {
  padding: 32px 28px; border-radius: 4px; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.contact__name { margin-bottom: 4px; font: 400 40px/1 var(--script); color: var(--olive); }
.contact__link {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.contact__link .icon { flex: none; width: 18px; height: 18px; color: var(--subtle); transition: color .2s; }
.contact__link:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 2px; }
@media (hover: hover) {
  .contact__link:hover { color: var(--olive); border-color: currentColor; }
  .contact__link:hover .icon { color: var(--olive); }
}
