/* Blog-specific layout. Loaded after shared site.css.
 * Applies to https://blog.legionrts.dev.
 */

.blog-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 80px;
}

/* Post index list */
ul.posts {
  list-style: none;
  padding: 0;
  margin: 1.5em 0;
}

ul.posts li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #21262d;
}

ul.posts li:last-child { border-bottom: 0; }

ul.posts .date {
  color: #484f58;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 90px;
}

ul.posts a {
  color: #c9d1d9;
  font-weight: 500;
}

ul.posts a:hover {
  color: #58a6ff;
  text-decoration: none;
}

/* Individual post */
article h1 {
  margin-bottom: 0.2rem;
  border-bottom: 1px solid #21262d;
  padding-bottom: 0.4em;
}

article .meta {
  color: #484f58;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2rem;
}

article img, article video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto;
  border-radius: 4px;
  border: 1px solid #30363d;
}
