* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  --bg-main-color: #f8fafc;
  --text-color: #000000;
  --publication-date-color: #4d5562;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-main-color);
}

article img {
  max-inline-size: 100%;
  block-size: auto;
  object-fit: cover;
  border-radius: 12px;
}

article h2 {
  max-width: 500px;
  margin-bottom: 1rem;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  text-wrap: balance;
  white-space: pre-line;
}

article p {
  font-size: clamp(0.5rem, 3vw, 0.875rem);
  font-weight: 500;
  color: var(--publication-date-color);
}

h1 {
  max-width: 540px;
  font-size: clamp(1.8rem, 2.2vw, 2.25rem);
  text-align: center;
  font-weight: 600;
  text-wrap: balance;
}

h1 + img {
  display: block;
  margin: auto;
}

h1,
h1 + img {
  margin-bottom: 2.5rem;
}

section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.author-info {
  font-size: 14px;
  text-align: center;
  margin-top: 16px;
  color: rgb(55, 65, 81);
}

.author-info a {
  text-decoration: none;
}

.main {
  flex: 1;
  padding: 2rem;
  color: var(--text-color);
}

@media screen and (min-width: 37.5rem) {
  article h2 {
    text-wrap: auto;
    white-space: normal;
  }

  section article {
    display: flex;
    gap: 3rem;
  }

  h1 {
    margin: auto;
    margin-bottom: 3rem;
    text-wrap: auto;
  }

  .article-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}


@media screen and (min-width: 64rem){
  h1 {
    width: 500px;
  }
}