* {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

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

html {
  font-size: 62.5%;
}

input,
button,
textarea {
  background-color: #fff;
  border: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a {
  text-decoration: none;
}

@keyframes fadeInAndOut {
  0% {
    opacity: 0;
    z-index: 10;
  }
  30%, 90% {
    opacity: 1;
    z-index: 10;
  }
  91% {
    opacity: 0;
    z-index: 10;
  }
  100% {
    opacity: 0;
    z-index: -1;
  }
}
@keyframes moveDown {
  to {
    transform: translateY(100%);
  }
}
body {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: rgb(244, 208, 78);
  font-family: "Figtree", serif;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.heading__primary {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: 10;
  color: #f4d04e;
  width: 100%;
  text-align: center;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 7rem;
  font-weight: 700;
  text-shadow: 0.5rem 0.5rem 0.2rem rgb(209, 197, 21), 1rem 1rem 1rem rgba(0, 0, 0, 0.25), 1.1rem 1.1rem 3.5rem rgba(0, 0, 0, 0.25);
  animation: fadeInAndOut 4.6s ease forwards;
}
@media (max-width: 700px) {
  .heading__primary {
    font-size: 5rem;
    font-weight: 700;
  }
}
@media (max-width: 450px) {
  .heading__primary {
    font-size: 4rem;
    font-weight: 700;
  }
}

.overlay__animation {
  position: absolute;
  width: 42rem;
  height: 55rem;
  background-color: rgb(244, 208, 78);
  animation: moveDown 2s 5.5s linear forwards;
}

.card {
  display: none;
  width: 38.4rem;
  height: 52.2rem;
  background-color: #fff;
  color: #111;
  margin: 0 auto;
  padding: 2.4rem;
  outline: 1px solid #000;
  box-shadow: 0.8rem 0.8rem 0 #000;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  border-radius: 2rem;
}
@media (max-width: 375px) {
  .card {
    width: 32.7rem;
    height: 50.1rem;
  }
}
.card__background-image {
  width: 100%;
  border-radius: 1.2rem;
}
.card__content {
  font-size: 1.6rem;
  font-weight: normal;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.2rem;
}
.card__category {
  align-self: flex-start;
  background-color: rgb(244, 208, 78);
  padding: 0.6rem 1.2rem;
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: 0.4rem;
}
.card__date {
  line-height: 1.8rem;
  font-size: 1.4rem;
  font-weight: normal;
}
.card__title {
  line-height: 3.6rem;
  transition: color 0.25s ease-in;
  font-size: 2.4rem;
  font-weight: 800;
}
.card:hover .card__title {
  color: rgb(244, 208, 78);
}
.card__description {
  color: #6b6b6b;
  line-height: 2.4rem;
  text-shadow: 0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);
  font-size: 1.6rem;
  font-weight: 500;
}
@media (max-width: 37.5rem) {
  .card__description {
    text-shadow: none;
  }
}
.card__author {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.card__author-img {
  width: 3.2rem;
  height: 3.2rem;
}
.card__author-name {
  color: #111;
  font-size: 1.4rem;
  font-weight: 800;
}

.visually-hidden {
  position: absolute;
  width: 0.1rem;
  height: 0.1rem;
  margin: -0.1rem;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
  visibility: hidden;
  z-index: -500;
}
