/* Contact: the last screen, three huge links. */
.contact {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: var(--gutter);
}

.contact__list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact__list li + li {
  border-top: var(--hairline);
}

.contact__link {
  display: flex;
  flex-direction: column;
  padding-block: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
}

.contact__word {
  font-family: var(--font-heading);
  /* Three lines must share one screen, on a phone as on a wide monitor. */
  font-size: min(18vw, 22svh);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
  white-space: nowrap;
  transition: color var(--duration) var(--ease);
}

.contact__list li:nth-child(even) .contact__word {
  font-style: italic;
  font-weight: 400;
}

.contact__detail {
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  color: var(--color-muted);
  overflow-wrap: anywhere;
}

.contact__link:hover {
  color: var(--color-text);
}

.contact__link:hover .contact__word {
  color: var(--color-accent);
}

@media (min-width: 48rem) {
  .contact__link {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-6);
  }

  .contact__detail {
    font-size: var(--text-base);
    text-align: right;
  }
}
