*,
*::after,
*::before {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

button,
input,
select,
option {
  border: none;
  padding: 0;
  color: currentColor;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  appearance: none;
}

ul,
ol {
  list-style: none;
}

button:focus {
  outline: none;
}

img {
  display: block;
  max-width: 100%;
}

.body {
  display: flex;
  flex-direction: column;
  font-family: var(--main-font);
}

.main {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  background-color: var(--gray-900);
}

.profile {
  width: 384px;
  margin: 0 var(--spacing-300);
  border-radius: var(--spacing-150);
  padding: clamp(1.5rem, -5.0789rem + 28.0702vw, 2.5rem);
  text-align: center;
  background-color: var(--gray-800);
}
.profile__avatar {
  display: inline-block;
  width: 88px;
  aspect-ratio: 1/1;
}
.profile__avatar-image {
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
}
.profile__name {
  margin-top: var(--spacing-300);
  font-family: var(--main-font);
  line-height: var(--line-height-base);
  color: var(--white);
  font-weight: var(--font-weight-700);
  font-size: 24px;
}
.profile__location {
  margin-top: var(--spacing-50);
  font-family: var(--main-font);
  line-height: var(--line-height-base);
  color: var(--white);
  font-weight: var(--font-weight-700);
  font-size: var(--font-size-base);
  color: var(--green);
}
.profile__bio {
  margin-top: var(--spacing-300);
  font-family: var(--main-font);
  line-height: var(--line-height-base);
  color: var(--white);
  font-weight: var(--font-weight-400);
  font-size: var(--font-size-base);
}
.profile__list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-200);
  margin-top: var(--spacing-300);
}
.profile__link {
  display: block;
  border-radius: var(--spacing-100);
  padding: var(--spacing-150);
  text-decoration: none;
  background-color: var(--gray-700);
  transition: background-color 1s ease, color 0.7s ease;
  cursor: pointer;
  font-family: var(--main-font);
  line-height: var(--line-height-base);
  color: var(--white);
  font-weight: var(--font-weight-700);
  font-size: var(--font-size-base);
}
.profile__link:focus {
  outline: none;
}
.profile__link:hover, .profile__link:focus-visible {
  color: var(--gray-700);
  background-color: var(--green);
  transition: background-color 1s ease, color 0.7s ease;
}

.attribution {
  padding: 24px;
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (max-width: 432px) {
  .profile {
    width: 100%;
  }
}
