/* mantik-cms:blog - erzeugt aus data/components/blog/blog.css, nicht von Hand aendern */
/*
 * Reading layout of blog pages. WHY it exists: the themes of the sites reset every
 * margin and padding to zero (`* { margin: 0; padding: 0 }`), so paragraphs, headings
 * and lists of a post ran together and bullets stood outside the box.
 *
 * It takes everything from the tokens of the site's own theme (--s1 .. --s9, --measure,
 * --line, --accent, --on-dark-2, --on-dark-3). Each use has a plain fallback so a site
 * without those tokens still gets a readable page. No colour is set here except through
 * a token or `inherit`, no shadow, no rounded corners, no badges: the look stays the
 * theme's, this file only gives the text room.
 */

/* ----- one post ----- */
.blog-post > header { margin-bottom: var(--s6, 2rem); }
.blog-post h1 { padding-right: 0; max-width: 30ch; }
.blog-post time,
.blog-entry time {
  display: block;
  font-size: 0.9rem;
  color: var(--on-dark-3, inherit);
  font-variant-numeric: tabular-nums;
}
.blog-post > header time { margin-top: calc(var(--s2, 0.5rem) * -1); }

.blog-body { max-width: var(--measure, 68ch); }
.blog-body > * + * { margin-top: var(--s4, 1rem); }
.blog-body p { max-width: none; }
.blog-body h2 { font-size: 1.5rem; margin-top: var(--s6, 2rem); }
.blog-body h3 { font-size: 1.2rem; margin-top: var(--s5, 1.5rem); }
.blog-body h2 + *,
.blog-body h3 + * { margin-top: var(--s3, 0.75rem); }
.blog-body ul,
.blog-body ol { padding-left: var(--s5, 1.5rem); }
.blog-body li + li { margin-top: var(--s2, 0.5rem); }
.blog-body a { color: var(--accent, inherit); text-underline-offset: 0.15em; }
.blog-body a:hover { color: var(--accent-hi, inherit); }
.blog-body table { border-collapse: collapse; width: 100%; }
.blog-body th,
.blog-body td {
  text-align: left;
  padding: var(--s2, 0.5rem) var(--s3, 0.75rem) var(--s2, 0.5rem) 0;
  border-bottom: 1px solid var(--line, currentColor);
}
.blog-body code { font-family: ui-monospace, monospace; font-size: 0.92em; }
.blog-body pre { overflow-x: auto; padding: var(--s3, 0.75rem) 0; border-top: 1px solid var(--line, currentColor); border-bottom: 1px solid var(--line, currentColor); }

.blog-post > footer {
  margin-top: var(--s7, 3rem);
  padding-top: var(--s4, 1rem);
  border-top: 1px solid var(--line, currentColor);
}

/* ----- the overview: one hairline between entries, no cards ----- */
.blog-index .blog-entry {
  border-left: 0;
  padding: var(--s5, 1.5rem) 0;
  border-top: 1px solid var(--line, currentColor);
}
.blog-index .blog-entry:first-of-type { border-top: 0; padding-top: 0; }
.blog-index .blog-entry h2 { font-size: 1.4rem; margin: var(--s1, 0.25rem) 0 var(--s2, 0.5rem); }
.blog-index .blog-entry h2 a { text-decoration: none; }
.blog-index .blog-entry h2 a:hover { color: var(--accent, inherit); text-decoration: underline; text-underline-offset: 0.15em; }
.blog-index .blog-entry p { max-width: var(--measure, 68ch); font-size: 1rem; color: var(--on-dark-2, inherit); }
