body {
  background: #ffffff;
  color: #111;
}

.topnav {
  border-bottom: 1px solid #ddd;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topnav nav a {
  margin-left: 1.5rem;
}

.mag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.post-card {
  border: 1px solid #ddd;
  padding: 1.5rem;
}

/* Auto dark mode */
@media (prefers-color-scheme: dark) {
  body {
    background: #111;
    color: #eee;
  }

  .topnav {
    border-color: #333;
  }
  
    .intro-box {
    background: #161616;
    border-color: #333;
  }

  .post-card {
    border-color: #333;
  }

  a {
    color: #8ab4ff;
  }
}

  #comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 500px;
}

#comment-form input,
#comment-form textarea {
  width: 100%;
  padding: 0.6rem;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  border-radius: 4px;
}

#comment-form button {
  width: fit-content;
  padding: 0.6rem 1rem;
  background: #ff6a00;
  border: none;
  color: #000;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

#comment-form button:hover {
  opacity: 0.9;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
 
.comment-date {
  font-size: 0.85em;
  color: #666;
}

.comment-author {
  margin-bottom: 8px;
}
 
.comment-date {
  font-size: 0.85em;
  color: #666;
  margin-top: 2px;
}
