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

html {
  font-size: 13px;
} 

body {
  margin: 0;
  font-family: 'Barlow Semi Condensed', sans-serif;
}

h1 {
  text-align: center;
  font-weight: 600;
}

h3 {
  font-weight: 600;
}

h5 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

p {
  font-size: 0.92rem;
  margin-top: 0.38rem;
  margin-bottom: 0;
  font-weight: 500;
}

img {
  border-radius: 50%;
  border: 0.15rem solid hsl(264, 82%, 80%);
}

/* Grid */

main {
  padding: 1.92rem;
  margin: 0 auto;
  max-width: 110.77rem;
  cursor: default;
  display: grid;
  gap: 3rem;
  grid-auto-columns: 1fr;
  grid-template-areas: 
    'one'
    'two'
    'three'
    'four'
    'five';
}

section {
  padding: 1.92rem;
  border-radius: 0.77rem;
  box-shadow: 0.77rem 0.77rem 3rem -1.54rem rgba(0,0,0,0.5);
}

section:nth-child(1){
    grid-area: one;
}

section:nth-child(2){
    grid-area: two;
}

section:nth-child(3){
    grid-area: three;
}

section:nth-child(4){
    grid-area: four;
}

section:nth-child(5){
    grid-area: five;
}



.profile {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.testimony {
  line-height: 1.3;
  margin-bottom: 0.38rem;
}

.story {
  line-height: 1.5;
}

.section-one {
  background-color: hsl(263, 55%, 52%);
  color: white;
}

.section-two {
  background-color: hsl(217, 19%, 35%);
  color: white;
}

.section-three, .section-five {
  background-color: hsl(0, 0%, 100%);
}

.section-four {
  background-color: hsl(219, 29%, 14%);
  color: white;
}

/* Footer */

.attribution { 
  font-size: 0.85rem; 
  text-align: center; 
  margin-bottom: 0.38rem;
}

.attribution a { 
  color: hsl(228, 45%, 44%);
  text-decoration: none; 
}

a:hover {
  text-decoration: underline;
}

/* Media Queries */
/* For Tablets */

@media (min-width: 576px){
    main {
    grid-template-areas: 
    'one one'
    'two five'
    'three five'
    'four four';
    }

	section:hover {
	transform: scale(1.02);
	}
	
	section {
		transition: transform 0.3s ease;
	}
}

/* For Desktop */

@media (min-width: 1024px) {
    main {
        grid-template-areas: 
        'one one two five'
        'three four four five';
    }

	section:hover {
	transform: scale(1.02);
	}

	section {
		transition: transform 0.3s ease;
	}
}
