html {
  font-family: "ff-meta-serif-web-pro", serif;
  font-size: 16px;
  font-weight: 300;
  font-style: normal;
}

h2 {
  font-size: 2em;
  font-weight: 700;
  text-align: center;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 600;
  font-style: normal;
  padding: 8px 0;
}

body {
  margin: 0;
  color: #757575;
  background-color: #f9f9f9;
}

/*header*/
.header {
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 100px;
}

/*layout main*/
.main {
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 68px;
}

.main section {
  max-width: 1100px;
}

/*footer*/
.footer {
  text-align: center;
  background: white;
}

/*helpers*/
.py-16 {
  padding: 16px 0;
}

.p-30 {
  padding: 30px;
}

.mb-16 {
  margin-bottom: 16px;
}

/*components*/
/*card*/
.card {
  background: white;
  padding: 32px;
  border-radius: 5px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.05);
}

.card h2 {
  margin-top: -68px;
  text-shadow: 1px 2px 0px #eee;
}

/*social list*/
.social-list {
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style-type: none;
  display: flex;
}

.social-list li:nth-child(n + 2)::before {
  content: "|";
  margin-left: 10px;
}

/*mail*/
.mail:link,
.mail:visited,
.mail:hover,
.mail:active {
  text-decoration: none;
}

.mail {
  color: #333;
  margin-top: 16px;
  font-weight: 600;
}


/*livros*/
.livros {
  display: block;
  margin: 0 -16px;
  max-width: 500px;
}

@media (min-width: 768px) {
  .livros {
    width: 100%;
    max-width: none;
    display: grid;
    grid-auto-rows: 1fr;
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.card-livro {
  background: white;
  display: flex;
  flex-direction: column;

  text-align: left;
  box-sizing: border-box;
  margin: 16px;
  margin-bottom: 32px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.card-livro h3 {
  font-size: 1.2em;
  font-weight: 700;
  padding: 4px 0;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-livro h4 {
  font-weight: 300;
  color: #8e8e8e;
  margin: 0 0 4px 0;
  padding: 0 0 4px 0;
}

.card-livro .img {
  width: 100%;
}

@media (min-width: 768px) {
  .card-livro .img {
    height: calc(100% - 379px);
  }
}

.card-livro .img img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.card-livro .content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}

.card-livro .content p {
  font-size: 0.9em;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-livro .links {
  border-top: 1px solid #e1e1e1;
  margin-top: auto;
  padding-top: 1rem;
  justify-content: end;
}

.links {
  display: grid;
  grid-auto-flow: column;
  gap: 1rem;
}

.links a:link,
.links a:visited,
.links a:hover,
.links a:active {
  text-decoration: none;
}

.links a {
  border-radius: 4px;
  font-weight: bold;
  color: rgb(82, 146, 224);
  width: 100%;
  font-size: 1em;
  text-decoration: none;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.links a:hover {
  color: rgb(112, 176, 255);
}

.links a::after {
  content: " >";
}

/*link*/
a {
  color: rgb(82, 146, 224);
}

/*ver-mais*/
.ver-mais {
  color: rgb(82, 146, 224);
  text-align: right;
  margin-bottom: 1rem;
}

.ver-mais a:link,
.ver-mais a:visited,
.ver-mais a:hover,
.ver-mais a:active {
  text-decoration: none;
}

/*livro*/
.livro {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

.livro img {
  max-width: 400px;
  align-self: flex-start;
  box-shadow: 0 0 12px rgba(0,0,0,.4)
}

.livro .content {
  padding: 0 1rem;
}

.livro .content h2 {
  margin: 0;
  padding: 0;
}

.livro .content p {
  text-align: center;
}

.livro .content .links {
  justify-content: center;
}

.livro .content .links a {
  text-align: center;
}


@media (min-width: 992px) {
  .livro {
    flex-direction: row;
  }

  .livro img {
    max-width: 500px;
  }

  .livro .content h2 {
    text-align: left;
  }

  .livro .content p {
    text-align: left;
  }
  
  .livro .content .links {
    justify-content: left;
  }
}

