@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0;1,200;&display=swap");

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

body {
  font-family: "Poppins", "Arial", sans-serif;
  text-align: center;
  padding: 20px;
}

header {
  color: inherit;
  text-align: center;
  padding: 0;
}

header > h1 {
  font-size: 3em;
  color: #b33636;
}

header > h2 {
  font-size: 1.2em;
  color: #2e2e2e;
  margin-bottom: 1em;
}

form#article-form {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin: 2em auto 1em auto;
  max-width: 25em;
  width: 100%;
}

form#article-form input,
form#article-form textarea {
  padding: 0.5em;
  border: 1px solid;
  border-radius: 5px;
  font-family: inherit;
}

form#article-form button {
  margin-top: 0.5em;
  padding: 0.5em 1em;
  border-radius: 5px;
  background: #b33636;
  color: #fff;
  border: none;
  cursor: pointer;
}

#articles-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  margin: 2em;
}

.article-card {
  padding: 2em;
  border-radius: 10px;
  max-width: 20em;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-title {
  font-size: 1.5em;
}

.article-title,
.article-body {
  margin: 0 0 8px 0;
}

.article-author {
  font-size: 0.8em;
  color: #333;
}

footer {
  margin-top: 5em;
}
