/* Contact page: same frame as the other pages (top line, content, bottom line),
   quiet type, hairlines like the rest of the site. Loaded after the other stylesheets. */

body.single-page #contact {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 18px 30px 20px;
  overflow: hidden auto;
}

body.single-page #contact .hero-top {
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(17, 17, 17, .34);
  padding-bottom: 12px;
}

body.single-page #contact .hero-rule {
  flex: 0 0 auto;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 17, 17, .34);
  color: var(--muted);
}

body.single-page #contact .hero-rule span:last-child {
  color: var(--muted);
}

#contact .contact-body {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(24px, 3vw, 48px);
  width: 100%;
  max-width: 1120px;
  margin: auto;
  padding: 40px 0;
}

#contact .contact-intro {
  flex: 0 1 420px;
  max-width: 420px;
}

#contact .contact-lead {
  margin: 0 0 12px;
  font-family: var(--label-font);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

#contact h2 {
  margin: 0 0 20px;
  font-family: var(--label-font);
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

#contact .contact-text {
  max-width: 40ch;
  margin: 0;
  font-family: var(--label-font);
  font-size: 16px;
  line-height: 1.5;
  color: #444;
}

#contact .contact-list {
  flex: 0 1 360px;
  max-width: 360px;
  margin: 0;
  /* Same height as the left column; rows spread evenly from its top line to its last line. */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

#contact .contact-list > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 0;
}

#contact .contact-list dt {
  font-family: var(--label-font);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

#contact .contact-list dd {
  margin: 0;
  font-family: var(--label-font);
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: break-word;
}

#contact .contact-list a {
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 17, 17, .3);
  transition: border-color 160ms ease;
}

#contact .contact-list a:hover,
#contact .contact-list a:focus-visible {
  border-bottom-color: #111;
}

@media (max-width: 760px) {
  body.single-page #contact {
    padding: 14px 18px 16px;
  }
  #contact .contact-body {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 28px 0;
  }
  #contact .contact-intro,
  #contact .contact-list {
    flex: 0 0 auto;
    max-width: none;
  }
  #contact .contact-list > div {
    grid-template-columns: 84px 1fr;
  }
}
