/* index.blog.css — public terminal site (index.html): blog and section headers. One of the index.*.css files, linked in order from index.html. */
/* Two layers, so it is never a question of which rule wins: "page" holds the normal stylesheet rules, "element" holds exact
   styles for single elements. Anything in "element" beats anything in "page", whatever the selectors look like. */
@layer page, element;

@layer page {
/* ─────────────────────────────────────────
   BLOG
   ───────────────────────────────────────── */
.blog-post {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.blog-post:last-child { border-bottom: none; }

.blog-post h3 { color: var(--text-bright); font-weight: normal; font-size: 16px; margin-bottom: 4px; }
.blog-post .meta { color: var(--text-dim); font-size: 11px; margin-bottom: 10px; }
.blog-post .excerpt { color: var(--text); font-size: 13px; }

.blog-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.blog-tag { font-size: 10px; color: var(--accent); border: 1px solid var(--accent-dim); padding: 2px 8px; }
.blog-empty { color: var(--text-dim); font-style: italic; padding: 40px 0; text-align: center; }

.blog-full { max-width: 700px; }
.blog-full h2 { color: var(--text-bright); font-weight: normal; font-size: 22px; margin-bottom: 8px; }
.blog-full .content { color: var(--text); font-size: 14px; line-height: 1.8; white-space: pre-wrap; }

.back-link { display: inline-block; margin-bottom: 20px; font-size: 12px; color: var(--text-dim); }

/* ─────────────────────────────────────────
   SECTION HEADERS
   ───────────────────────────────────────── */
.section-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
}

/* exact styles for single elements built in index.blog.js (these used to be inline). "element" is the top layer: it always beats "page". */
@layer element {
  .viewPost__meta { color: var(--text-dim); font-size: 11px; margin-bottom: 20px; }
  .viewPost__blog-tags { margin-top: 20px; }
}
