:root {
  --contact-visible-height: 900px;
  --contact-frame-height: 1200px;
}

/* Contact component styles. */

.contact-hero {
  grid-template-columns: 1.05fr .95fr;
  gap: 3.5rem;
  padding-bottom: 3.25rem;
}

.contact-hero h1 {
  font-size: clamp(3.5rem, 6vw, 5.6rem);
}

.contact-hero .hero-lede {
  max-width: 28rem;
}

.contact-art {
  margin: 0;
  padding: .65rem;
  border: 1px solid var(--frame-line);
  background: var(--frame-paper);
  transform: rotate(1deg);
}

.contact-art img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 5rem;
  align-items: start;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.contact-context h2 {
  margin-bottom: 1.5rem;
}

.contact-context > p:not(.eyebrow) {
  max-width: 27rem;
  color: var(--body-copy);
  font-size: .95rem;
}

.contact-topics {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.contact-topics li {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
  color: var(--muted);
}

.contact-context .contact-location {
  margin-bottom: 0;
  font-size: .75rem;
  color: var(--muted);
}

.contact-sheet {
  padding: 2.5rem;
  border: 1px solid var(--frame-line);
  border-top: 3px solid var(--gold);
  background: #eeeae0;
}

.contact-sheet h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.crm-form-host {
  min-height: 14rem;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.crm-form-host p {
  font-size: .95rem;
  color: var(--muted);
}

.crm-form-host[data-form-status="embedded"] {
  padding: 0;
  min-width: 0;
  height: var(--contact-visible-height);
  overflow: hidden;
  border: 0;
  background: transparent;
}

.contact-form-frame {
  display: block;
  width: 100%;
  height: var(--contact-frame-height);
  border: 0;
}

@media (max-width: 900px) {
  .contact-hero,
      .contact-section {
    gap: 2.5rem;
  }

  .contact-sheet {
    padding: 1.75rem;
  }
}

@media (max-width: 740px) {
  .contact-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.25rem;
  }

  .contact-hero h1 {
    font-size: clamp(3.25rem, 12vw, 5.5rem);
  }

  .contact-art {
    max-width: 36rem;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-sheet {
    padding: 1.5rem;
  }

  .crm-form-host {
    padding: 1.25rem;
    min-height: 0;
  }

  .crm-form-host[data-form-status="embedded"] {
    --contact-visible-height: 1050px;
  }

  .contact-form-frame {
    --contact-frame-height: 1350px;
  }
}

@media print {
  .contact-hero,
      .contact-section {
    display: block;
    padding: 1rem 0;
  }

  .contact-art {
    display: none;
  }

  .contact-sheet,
      .crm-form-host {
    padding: 1rem 0;
    background: none;
    border: 0;
  }
}

/* Allow the long hero word to fit the smallest contracted viewport. */
.contact-hero > * {
  min-width: 0;
}

.contact-hero h1 {
  overflow-wrap: anywhere;
}
