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

body {
  margin: 0;
  font-family: "Figtree", serif;
  background: #f4d04e;
}

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

.avatar {
  align-self: center;
  width: 32px;
  height: 32px;
}

/* Layout */

.container {
  max-width: 327px;
  margin: 0 auto;
}

.container-flex {
  display: flex;
  align-items: center;
  height: 100vh;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #ffffff;
  box-shadow: 7px 7px 0 #111111;
  border: 1px solid #111111;
  border-radius: 20px;
  padding: 1.5em;
}

.art {
  border-radius: 10px;
  min-width: 279px;
}

.author {
  display: flex;
}

/* Typography */

.category {
  background: #f4d04e;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 150%;
  border-radius: 5px;
  padding: 0.25em 0.75em;
  margin: 24px 0 0;
}

.info {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 150%;
  margin: 12px 0;
}

h1 {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 150%;
  color: #111111;
  margin: 0;
}

h1 + p {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 150%;
  color: #6b6b6b;
  margin: 12px 0 24px;
}

.name {
  align-self: center;
  font-size: 0.875rem;
  font-weight: 900;
  line-height: 150%;
  color: #111111;
  margin: 5.5px 0 5.5px 12px;
}

/* Media queries */
@media (min-width: 600px) {
  .container {
    max-width: 384px;
  }

  .category {
    font-size: 14px;
  }

  h1 {
    font-size: 24px;
  }

  h1 + p {
    font-size: 16px;
  }
}
