html {
    max-width: 81ch;
    padding: 3em 1em;
    margin: auto;
    line-height: 1.75;
    font-size: 1.4em;
    font-family: monospace;
}

h1,h2,h3,h4,h5,h6 {
    margin: 2em 0 1em;
}
  
p,ul,ol {
    margin-bottom: 1em;
    color: #1d1d1d;
}

.post-meta {
    text-align: right;
}

img {
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

blockquote {
    font-style: italic;
    border: thin solid black;
    padding: 1rem;
}

blockquote p {
    margin: 0;
}

pre {
    overflow-x: auto;
    padding: 1rem;
}

pre, code {
    background: #e0e0e0;
}

table { width: 100%; }

table, th, td {
  border: thin solid black;
  border-collapse: collapse;
  padding: 0.4rem;
}

.table-wrapper {
    overflow-x: auto;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}
.post-meta > time {
  font-size: 0.875rem;
  padding:20px;
  background-color: aquamarine;
  border-radius: 5px;
}
@media (max-width: 768px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.post-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.post-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.post-card time {
  color: #666;
  font-size: 0.875rem;
}

/* Tag styling */
.post-tags {
  margin-left: 1rem;
}

.post-tag {
  display: inline-block;
  background-color: #f1f1f1;
  color: #333;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  text-decoration: none;
}

.post-tag:hover {
  background-color: #ddd;
}

.tags-list {
  list-style: none;
  padding: 0;
}

.tags-list li {
  margin-bottom: 0.5rem;
}

.posts-list {
  list-style: none;
  padding: 0;
}

.posts-list li {
  margin-bottom: 1rem;
}

/* Tag Menu Styling */
.tag-menu {
  margin: 2rem 0;
  padding: 1rem;
  background-color: #f8f8f8;
  border-radius: 8px;
}

.tag-menu h2 {
  margin-top: 0;
  color: #333;
  font-size: 1.5rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-link {
  display: inline-block;
  background-color: #e9e9e9;
  color: #444;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-link:hover {
  background-color: #007bff;
  color: white;
  transform: translateY(-2px);
}

/* Card tags styling */
.card-tags {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-card .post-tag {
  font-size: 0.7rem;
  background-color: #f1f1f1;
  padding: 0.1rem 0.4rem;
}