@import url("https://fonts.googleapis.com/css2?family=Geologica:wght@400;500;650;800&display=swap");

:root {
  color: #151515;
  background: #f7f7f4;
  font-family: "Geologica", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(18, 18, 18, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 18, 18, 0.07) 1px, transparent 1px),
    #f7f7f4;
  background-size: 72px 72px;
}

.directory {
  display: grid;
  width: min(calc(100% - 40px), 1080px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(36px, 8vw, 120px) 0;
  align-content: center;
}

.directory__mark {
  margin: 0 0 22px;
  color: #6a6a66;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 clamp(54px, 10vw, 120px);
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.86;
  letter-spacing: -0.09em;
}

.profile {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  width: min(100%, 560px);
  padding: 14px 0;
  align-items: center;
  border-top: 1px solid rgba(18, 18, 18, 0.12);
  border-bottom: 1px solid rgba(18, 18, 18, 0.12);
  color: inherit;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profile:hover {
  transform: translateX(10px);
}

.profile__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #151515;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.profile strong,
.profile small {
  display: block;
}

.profile strong {
  font-size: 17px;
  letter-spacing: -0.04em;
}

.profile small {
  margin-top: 3px;
  color: #6a6a66;
  font-size: 12px;
}

@media (max-width: 560px) {
  .directory {
    width: calc(100% - 32px);
    padding-block: 36px;
    align-content: start;
  }

  .directory__mark {
    margin-bottom: 18px;
    font-size: 10px;
  }

  h1 {
    margin-bottom: clamp(44px, 14vw, 72px);
    font-size: clamp(34px, 10vw, 48px);
    line-height: 0.9;
    letter-spacing: -0.075em;
    overflow-wrap: anywhere;
  }

  .profile {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    padding-block: 12px;
  }

  .profile__mark {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .profile strong {
    font-size: 15px;
  }

  .profile small {
    max-width: 190px;
    font-size: 10px;
    line-height: 1.35;
  }
}
