/* blogkit.css — generated by bin/build-css.php from src/css/. Don't edit; edit the sources and rebuild. */

/* ── src/css/settings/_colours.css ── */

/* ==========================================================================
   SETTINGS — colours
   The colour roles come from the plugin core (src/css/settings/_theme.css
   there), which also sets light, dark or automatic and the dark background
   from the Panel (Home → Settings). These are read-only aliases, so the
   components keep their own names; set the colours in core's tokens
   (--core-light-*, --core-dark-*), not here.

   After the comma is what applies without core (or before core 0.11.0):
   the light theme with blue links.
   ========================================================================== */

:root {
	--blogkit-color-background: var(--core-theme-background, #fff);
	--blogkit-color-text: var(--core-theme-text, #1a1a1a);
	--blogkit-color-muted: var(--core-theme-muted, #666);
	--blogkit-color-line: var(--core-theme-line, #e5e5e5);
	--blogkit-color-surface: var(--core-theme-surface, #fff);            /* cards */
	--blogkit-color-accent: var(--core-color-accent, #0b5fff);           /* readable: links, hover, focus */
	--blogkit-color-accent-base: var(--core-color-accent-base, #0b5fff); /* as it is: decoration */
}

/* ── src/css/settings/_tokens.css ── */

/* ==========================================================================
   SETTINGS — design tokens
   Every token is prefixed --blogkit- so a site can override it, e.g.
   :root { --blogkit-radius-l: 12px; }

   Colours come from _theme.css (and core's palette); the mixes below follow
   light and dark mode by themselves.
   ========================================================================== */

:root {
	/* Colour */
	--blogkit-color-placeholder: color-mix(in srgb, var(--blogkit-color-text) 6%, var(--blogkit-color-surface));

	/* Type */
	--blogkit-font-size-title: 2rem;          /* page titles */
	--blogkit-font-size-title-large: 2.5rem;  /* frontpage headline */
	--blogkit-font-size-heading: 1.5rem;      /* post titles in the blog */
	--blogkit-font-size-card-title: 1.25rem;  /* post title on the frontpage card */
	--blogkit-font-size-subtitle: 1.2rem;
	--blogkit-font-size-text: 1.05rem;        /* text from the editor, excerpts */
	--blogkit-font-size-meta: 0.9rem;         /* dates, small labels */
	--blogkit-line-height-heading: 1.2;

	/* Space */
	--blogkit-space-xs: 0.25rem;
	--blogkit-space-s: 0.5rem;
	--blogkit-space-m: 1rem;
	--blogkit-space-l: 1.5rem;
	--blogkit-space-xl: 2rem;
	--blogkit-space-xxl: 2.5rem;
	--blogkit-space-xxxl: 4rem;

	/* Shape */
	--blogkit-radius-l: 8px;                  /* post cover, frontpage card */
	--blogkit-radius-s: 6px;                  /* covers in the blog list */

	/* Measures */
	--blogkit-stack-width: 36rem;             /* the frontpage column */
	--blogkit-stack-gap: 2.5rem;              /* between profile, links, latest post */
	--blogkit-photo-size: 6rem;               /* profile photo */
	--blogkit-teaser-image-width: 16rem;      /* cover in the blog list */
}

/* ── src/css/objects/_blogkit-stack.css ── */

/* ==========================================================================
   OBJECT — o-blogkit-stack
   A narrow column, centred in the page, its children evenly spaced.
   Layout only: no colours, no type.
   ========================================================================== */

.o-blogkit-stack {
	display: flex;
	flex-direction: column;
	gap: var(--blogkit-stack-gap);
	max-width: var(--blogkit-stack-width);
	margin-inline: auto;
}

/* ── src/css/components/_blogkit-document.css ── */

/* ==========================================================================
   COMPONENT — c-blogkit-document
   The page colours on <body>, for the plugin's fallback header only (sites
   without a header snippet). Your own site sets them on body itself, from
   the shared names (--bg, --fg).
   ========================================================================== */

.c-blogkit-document {
	background-color: var(--blogkit-color-background);
	color: var(--blogkit-color-text);
}

/* ── src/css/components/_blogkit-title.css ── */

/* ==========================================================================
   COMPONENT — c-blogkit-title
   Page title (h1), mixed into each page's own __title element.
   ========================================================================== */

.c-blogkit-title {
	margin: 0 0 0.5em;
	font-size: var(--blogkit-font-size-title);
	font-weight: 700;
	line-height: var(--blogkit-line-height-heading);
}

/* Modifier: the frontpage headline */
.c-blogkit-title--large {
	font-size: var(--blogkit-font-size-title-large);
}

/* ── src/css/components/_blogkit-text.css ── */

/* ==========================================================================
   COMPONENT — c-blogkit-text
   Text from the editor (textarea, blocks), mixed into an element of the
   page's block: c-blogkit-post__text, c-blogkit-page__text, …
   ========================================================================== */

.c-blogkit-text {
	font-size: var(--blogkit-font-size-text);
}

.c-blogkit-text > * + * {
	margin-top: 1em;
}

/* Editor output can't carry classes, so its images are styled by type:
   never wider than the column, figures aligned with the text. */
.c-blogkit-text img {
	max-width: 100%;
	height: auto;
}

.c-blogkit-text figure {
	margin-inline: 0;
}

/* ── src/css/components/_blogkit-profile.css ── */

/* ==========================================================================
   COMPONENT — c-blogkit-profile
   Top of the frontpage: round photo, headline, subheadline, centred.
   ========================================================================== */

.c-blogkit-profile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--blogkit-space-s);
	text-align: center;
}

.c-blogkit-profile__photo {
	display: block;
	width: var(--blogkit-photo-size);
	height: var(--blogkit-photo-size);
	margin-bottom: var(--blogkit-space-s);
	border-radius: 50%;
	object-fit: cover;
	background: var(--blogkit-color-placeholder);
}

/* placement of the mixed-in c-blogkit-title */
.c-blogkit-profile__title {
	margin: 0;
}

.c-blogkit-profile__subtitle {
	margin: 0;
	color: var(--blogkit-color-muted);
	font-size: var(--blogkit-font-size-subtitle);
}

/* ── src/css/components/_blogkit-blogroll.css ── */

/* ==========================================================================
   COMPONENT — c-blogkit-blogroll
   The latest post on the frontpage: a small label, a card (the title link
   covers the whole card) and a link to all posts.
   ========================================================================== */

.c-blogkit-blogroll__title {
	margin: 0 0 var(--blogkit-space-m);
	color: var(--blogkit-color-muted);
	font-size: var(--blogkit-font-size-meta);
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: var(--blogkit-line-height-heading);
	text-transform: uppercase;
}

.c-blogkit-blogroll__card {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--blogkit-color-line);
	border-radius: var(--blogkit-radius-l);
	background: var(--blogkit-color-surface);
}

.c-blogkit-blogroll__card:hover {
	border-color: var(--blogkit-color-accent);
}

.c-blogkit-blogroll__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	background: var(--blogkit-color-placeholder);
}

.c-blogkit-blogroll__body {
	padding: var(--blogkit-space-m) var(--blogkit-space-l) var(--blogkit-space-l);
}

.c-blogkit-blogroll__heading {
	margin: 0;
	font-size: var(--blogkit-font-size-card-title);
	line-height: var(--blogkit-line-height-heading);
}

.c-blogkit-blogroll__link {
	color: var(--blogkit-color-text);
}

/* the whole card is clickable */
.c-blogkit-blogroll__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.c-blogkit-blogroll__card:hover .c-blogkit-blogroll__link {
	text-decoration: underline;
}

/* keyboard focus: the ring goes around the card instead of the title */
@supports selector(:has(*)) {
	.c-blogkit-blogroll__link:focus-visible {
		outline: none;
	}

	.c-blogkit-blogroll__card:has(.c-blogkit-blogroll__link:focus-visible) {
		outline: 3px solid var(--blogkit-color-accent);
		outline-offset: 2px;
	}
}

.c-blogkit-blogroll__date {
	display: block;
	margin-top: var(--blogkit-space-xs);
	color: var(--blogkit-color-muted);
	font-size: var(--blogkit-font-size-meta);
}

.c-blogkit-blogroll__excerpt {
	margin: var(--blogkit-space-s) 0 0;
	color: var(--blogkit-color-muted);
}

.c-blogkit-blogroll__more {
	margin: var(--blogkit-space-m) 0 0;
	text-align: right;
}

/* ── src/css/components/_blogkit-post-list.css ── */

/* ==========================================================================
   COMPONENT — c-blogkit-post-list
   Posts separated by lines: on the frontpage date + title as one link,
   in the blog one c-blogkit-teaser per item.
   ========================================================================== */

.c-blogkit-post-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-blogkit-post-list__item + .c-blogkit-post-list__item {
	margin-top: var(--blogkit-space-xl);
	padding-top: var(--blogkit-space-xl);
	border-top: 1px solid var(--blogkit-color-line);
}

.c-blogkit-post-list__date {
	display: block;
	margin: var(--blogkit-space-xs) 0 var(--blogkit-space-s);
	color: var(--blogkit-color-muted);
	font-size: var(--blogkit-font-size-meta);
}

/* ── src/css/components/_blogkit-teaser.css ── */

/* ==========================================================================
   COMPONENT — c-blogkit-teaser
   One post in the blog list: cover, title, date, excerpt.
   ========================================================================== */

.c-blogkit-teaser__image {
	width: 100%;
	max-width: var(--blogkit-teaser-image-width);
	height: auto;
	margin-bottom: var(--blogkit-space-m);
	border-radius: var(--blogkit-radius-s);
}

.c-blogkit-teaser__title {
	margin: 0;
	font-size: var(--blogkit-font-size-heading);
	font-weight: 700;
	line-height: var(--blogkit-line-height-heading);
}

.c-blogkit-teaser__date {
	display: block;
	margin: var(--blogkit-space-xs) 0 var(--blogkit-space-s);
	color: var(--blogkit-color-muted);
	font-size: var(--blogkit-font-size-meta);
}

.c-blogkit-teaser__excerpt {
	margin-top: var(--blogkit-space-s);
	color: var(--blogkit-color-muted);
	font-size: var(--blogkit-font-size-text);
}

/* ── src/css/components/_blogkit-post.css ── */

/* ==========================================================================
   COMPONENT — c-blogkit-post
   A single post: title, date, cover, text, link back to the blog.
   ========================================================================== */

.c-blogkit-post__date {
	color: var(--blogkit-color-muted);
}

.c-blogkit-post__cover-link {
	display: block;
	cursor: zoom-in;
}

.c-blogkit-post__cover-link:focus-visible {
	outline: 3px solid var(--blogkit-color-accent);
	outline-offset: 2px;
	border-radius: var(--blogkit-radius-l);
}

.c-blogkit-post__cover {
	width: 100%;
	height: auto;
	margin: var(--blogkit-space-l) 0;
	border-radius: var(--blogkit-radius-l);
}

.c-blogkit-post__back {
	margin-top: var(--blogkit-space-xxl);
}

/* ── src/css/components/_blogkit-error.css ── */

/* ==========================================================================
   COMPONENT — c-blogkit-error
   The 404 page.
   ========================================================================== */

.c-blogkit-error {
	padding: var(--blogkit-space-xxxl) 0;
	text-align: center;
}

/* ── src/css/components/_blogkit-footer-nav.css ── */

/* ==========================================================================
   COMPONENT — c-blogkit-footer-nav
   Links to the footer pages (imprint, privacy, …), in a row that wraps.
   Colours come from the site's footer (links like its other links).
   ========================================================================== */

.c-blogkit-footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--blogkit-space-xs) var(--blogkit-space-l);
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-blogkit-footer-nav__link--current {
	font-weight: 600;
}
