@font-face {
  font-family: "Etna";
  src: url("../assets/fonts/etna-free-font.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.contact {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding-inline: clamp(12px, 2.5vw, 32px);
  background: var(--purple);
  overflow: hidden;
}

.contact__inner {
  width: min(100%, 760px, 100vh);
  width: min(100%, 760px, 100svh);
  min-height: max(568px, 100vh);
  min-height: max(568px, 100svh);
  container-type: inline-size;
}

.contact__composition {
  position: relative;
  width: 100%;
  min-height: inherit;
}

.contact__heading {
  position: absolute;
  top: clamp(42px, 10vh, 90px);
  top: clamp(42px, 10svh, 90px);
  left: 0;
  width: 100%;
  height: 29cqw;
}

.contact__title {
  position: absolute;
  top: 7.8cqw;
  left: 18.5cqw;
  z-index: 3;
  margin: -.2792em 0 0;
  font-family: "Partita1990", "Courier New", monospace;
  font-size: 18.4cqw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--cream);
  white-space: nowrap;
}

.contact-crop {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--crop-ar);
}

.contact-crop > img {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% / var(--crop-wf));
  height: auto;
  transform: translate(
    calc(var(--crop-lf) * -100%),
    calc(var(--crop-tf) * -100%)
  );
  user-select: none;
}

.contact__orange {
  --crop-ar: 943 / 883;
  --crop-wf: .8731481;
  --crop-lf: .0601852;
  --crop-tf: .1718519;

  position: absolute;
  top: 0;
  left: 2cqw;
  z-index: 1;
  width: 28.5cqw;
  pointer-events: none;
}

.contact__orange > img { image-rendering: pixelated; }

.contact__spark {
  position: absolute;
  z-index: 4;
  width: 8cqw;
  aspect-ratio: 1;
  fill: var(--coral);
  pointer-events: none;
}

.contact__spark--heading {
  top: 16.5cqw;
  right: 6.5cqw;
  width: 9cqw;
}

.contact__links {
  position: absolute;
  top: 45.5%;
  left: 12cqw;
  width: 82cqw;
}

.contact__link {
  display: grid;
  grid-template-columns: 16cqw minmax(0, 1fr);
  column-gap: 8cqw;
  align-items: center;
  width: calc(100% + 2cqw);
  min-height: clamp(58px, 12cqw, 92px);
  margin-left: -2cqw;
  font-family: var(--font-label);
  font-size: clamp(18px, 5.2cqw, 40px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  transition: color 140ms ease, opacity 140ms ease,
    transform 140ms cubic-bezier(.23, 1, .32, 1);
}

.contact__link:hover {
  color: var(--coral);
  transform: translate3d(0, -2px, 0);
}

.contact__link:active { transform: translate3d(0, 2px, 0); }

.contact__link:focus-visible,
.contact__credit:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.contact__icon {
  justify-self: start;
  width: clamp(28px, var(--icon-width), 68px);
  pointer-events: none;
}

.contact__icon--instagram {
  --crop-ar: 1;
  --crop-wf: .5351852;
  --crop-lf: .2324074;
  --crop-tf: .2859259;
  --icon-width: 9cqw;
}

.contact__icon--whatsapp {
  --crop-ar: 554 / 558;
  --crop-wf: .5129630;
  --crop-lf: .2435185;
  --crop-tf: .2933333;
  --icon-width: 8.7cqw;
}

.contact__icon--location {
  --crop-ar: 583 / 562;
  --crop-wf: .5398148;
  --crop-lf: .2296296;
  --crop-tf: .2918519;
  --icon-width: 9.1cqw;
}

.contact__spark--instagram {
  top: -3cqw;
  left: 3.4cqw;
}

.contact__credit {
  position: absolute;
  bottom: clamp(18px, 4vh, 40px);
  bottom: clamp(18px, 4svh, 40px);
  left: 50%;
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 4px 8px;
  font-family: "Etna", sans-serif;
  font-size: clamp(28px, 5.2cqw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: var(--cream);
  text-decoration: none;
  transform: translateX(-50%);
  touch-action: manipulation;
  transition: color 140ms ease, transform 140ms cubic-bezier(.23, 1, .32, 1);
}

.contact__credit:hover {
  color: var(--coral);
  transform: translate3d(-50%, -2px, 0);
}

.contact__credit:active { transform: translate3d(-50%, 2px, 0); }

.contact__spark--credit {
  top: -3.6cqw;
  right: -4.2cqw;
  width: clamp(30px, 8cqw, 60px);
}

@media (max-width: 700px) {
  .contact {
    --mobile-contact-links-top: 37%;
  }

  .contact__links {
    top: var(--mobile-contact-links-top);
    left: 8cqw;
    display: grid;
    row-gap: clamp(45px, 2.5cqw, 20px);
    width: 88cqw;
  }

  .contact__link {
    grid-template-columns: 18cqw minmax(0, 1fr);
    column-gap: 5cqw;
    width: 100%;
    min-height: 0;
    margin-left: 0;
    font-size: clamp(22px, 6.7cqw, 48px);
  }

  .contact__icon--instagram { --icon-width: 15cqw; }
  .contact__icon--whatsapp  { --icon-width: 14.7cqw; }
  .contact__icon--location  { --icon-width: 15.1cqw; }

  .contact__spark--instagram {
    top: -4cqw;
    left: 11cqw;
  }
}

@media (max-width: 340px) {
  .contact__link {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact__link,
  .contact__credit {
    transition: none;
  }
}
