@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-VariableFont_slnt,wght.ttf') format('truetype');
}

:root {
  --green: hsl(75, 94%, 57%);
  --white: hsl(0, 0%, 100%);
  --grey-700: hsl(0, 0%, 20%);
  --grey-800: hsl(0, 0%, 12%);
  --grey-900: hsl(0, 0%, 8%);
  --link-color: hsl(228, 45%, 74%);
}

* {
  box-sizing: border-box;
}

.attribution {
  font-size: .7em;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0
}

.attribution a {
  color: var(--link-color)
}

body {
  color: var(--white);
  background-color: var(--grey-900);
  font-family: Inter, sans-serif;
  margin: 0;
  height: 100vh;
  display: flex;
  text-align: center;
}

.card {
  background: var(--grey-800);
  width: 25em;
  padding: 2.6em;
  border-radius: .7em;
  margin: auto;
  max-width: calc(100% - 3em);
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: .9em;
}

.card a {
  border-radius: .8em;
  padding: 1.18em;
  background: var(--grey-700);
  color: var(--white);
  border: 0;
  font-weight: 700;
  font-size: .832em;
  text-decoration: none;
}

.card a:hover {
  background: var(--green);
  color: var(--grey-900);
  cursor: pointer;
}

.location {
  color: var(--green);
  font-size: .875em;
  font-weight: 600;
}

.avatar-img {
  border-radius: 50%;
  width: 5.4rem;
  height: 5.4rem;
}

h1 {
  margin-block-start: 1.7rem;
  font-size: 1.45em;
  font-weight: 600;
  margin-block-end: .3em;
}

.bio {
  padding-block: 2em;
  font-size: .875em;
}

img {
  margin-inline: auto;
}

@media (max-width: 26.56rem) {
  .card {
    padding: 1.5em;
  }
}

@media (max-width: 20rem) {
  .card {
    padding: .5em;
    max-width: calc(100% - 1rem);
  }
}