* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f4f4f4;
  color: #222;
  line-height: 1.6;

  /* Sticky footer layout */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-header {
  text-align: center;
  padding: 2rem 1rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #555;
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  flex: 1;
  /* pushes footer to bottom */
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.card {
  background-color: #fff;
  border: 2px solid #000;
  margin-bottom: 2rem;
}

.featured {
  width: 100%;
}

.article-image {
  width: 100%;
  height: 220px;
  /* aligned image height */
  object-fit: cover;
  /* prevents distortion */
  display: block;
}

.card-body {
  padding: 1rem;
}

.card-body h2 {
  margin-top: 0;
}

.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid #000;
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

.button:hover,
.button:focus {
  background-color: #000;
  color: #fff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.page-footer {
  background: #918d8d;
  color: rgb(39, 37, 37);
  text-align: center;
  padding: 1rem;
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}