@font-face {
  font-family: "Tanfoglio Inter";
  src: url("assets/fonts/Inter.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.tf-email-contacts,
.tf-email-contacts * {
  box-sizing: border-box;
}

.tf-email-contacts {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #000;
  background: #fff;
}

.tf-email-contacts__intro {
  width: 100%;
  padding: 0 16px;
  text-align: center;
}

.tf-email-contacts__eyebrow {
  margin: 0 0 10px;
  color: #000;
  font-family: "Avenir Roman", Avenir, "Avenir Next", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.tf-email-contacts__title {
  margin: 0;
  color: #000;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1.4px;
}

.tf-email-contacts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 100px;
  padding: 0 16px;
}

.tf-email-contacts__card {
  min-width: 0;
  min-height: 222px;
  padding: 30px;
  border: 1px solid #000;
  background: #fff;
}

.tf-email-contacts__card-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 160px;
  gap: 24px;
}

.tf-email-contacts__card-title {
  min-width: 0;
  margin: 0;
  color: #000;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .25px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.tf-email-contacts__email {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  min-width: 0;
  padding: 12px 20px;
  border: 1px solid #5c5c5c;
  border-radius: 5px;
  color: #5c5c5c;
  font-family: "Tanfoglio Inter", Inter, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tf-email-contacts__email:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .tf-email-contacts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .tf-email-contacts__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tf-email-contacts__card {
    padding: 30px;
  }
}

/* Figcraft informational intro: cap-height eyebrow, 10px gap, 37px title.
   Preserve the existing line boxes on browsers without text-box trimming. */
@supports (text-box-trim: trim-both) {
  .tf-email-contacts__eyebrow {
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }
  .tf-email-contacts__title { line-height: 37px; }
}
