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

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

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

   Colours follow the site's shared names (--fg, --muted, --line, --bg,
   --accent), which blogkit sets for light and dark mode; the fallbacks
   apply without them.
   ========================================================================== */

:root {
	/* Colour */
	--micro-color-text: var(--fg, #1a1a1a);
	--micro-color-muted: var(--muted, #666);
	--micro-color-line: var(--line, #e5e5e5);
	--micro-color-surface: var(--bg, #fff);
	--micro-color-accent: var(--accent, #0b5fff);       /* links, hashtags, focus ring */
	--micro-color-placeholder: color-mix(in srgb, var(--micro-color-text) 8%, var(--micro-color-surface));

	/* Space */
	--micro-space-xs: 0.25rem;
	--micro-space-s: 0.5rem;
	--micro-space-m: 1rem;
	--micro-space-l: 1.5rem;
	--micro-space-xl: 2rem;
	--micro-space-xxl: 3rem;

	/* Shape */
	--micro-radius-l: 12px;                              /* images */

	/* Type */
	--micro-font-size-title: 2rem;                       /* page titles */
	--micro-font-size-text: 1.0625rem;                   /* a post in the timeline */
	--micro-font-size-text-single: 1.25rem;              /* a post on its own page */
	--micro-font-size-meta: 0.875rem;
	--micro-line-height-heading: 1.2;
	--micro-line-height-text: 1.5;

	/* Measures */
	--micro-width-feed: 40rem;                           /* the timeline's column */
	--micro-media-max-height: 34rem;                     /* a single image */
	--micro-media-gap: 2px;                              /* between images of a grid */
	--micro-touch-target: 2.75rem;
}

/* ── src/css/objects/_micro-feed.css ── */

/* ==========================================================================
   OBJECT — o-micro-feed
   The list of posts: one column, a line between posts.
   ========================================================================== */

.o-micro-feed {
	margin: 0;
	padding: 0;
	list-style: none;
}

.o-micro-feed__item {
	padding: var(--micro-space-l) 0;
	border-bottom: 1px solid var(--micro-color-line);
}

.o-micro-feed__item:first-child {
	padding-top: var(--micro-space-s);
}

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

/* ==========================================================================
   COMPONENT — c-micro-text
   Text of a post. Mixed into the parent's element
   (e.g. c-micro-post__text). The paragraphs are the only markup without
   a class of its own: they come from the text, not from a template.
   ========================================================================== */

.c-micro-text {
	overflow-wrap: anywhere;
}

.c-micro-text > :first-child {
	margin-top: 0;
}

.c-micro-text > :last-child {
	margin-bottom: 0;
}

.c-micro-text p {
	margin: 0 0 var(--micro-space-m);
}

/* links and hashtags: underlined, so colour isn't the only sign */
.c-micro-text__link,
.c-micro-text__tag {
	color: var(--micro-color-accent);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.c-micro-text__tag {
	text-decoration-style: dotted;
}

.c-micro-text__link:hover,
.c-micro-text__tag:hover {
	text-decoration-style: solid;
}

/* ── src/css/components/_micro-empty.css ── */

/* ==========================================================================
   COMPONENT — c-micro-empty
   "No posts yet."
   ========================================================================== */

.c-micro-empty {
	margin: var(--micro-space-l) 0;
	color: var(--micro-color-muted);
}

/* ── src/css/components/_micro-media.css ── */

/* ==========================================================================
   COMPONENT — c-micro-media
   A post's images. One image keeps its proportions (up to a maximum
   height); two to four fill a 16:9 grid of two columns: two side by side,
   three with the first one tall, four as a square of four.
   ========================================================================== */

.c-micro-media {
	display: grid;
	margin: var(--micro-space-m) 0 0;
	padding: 0;
	overflow: hidden;
	border-radius: var(--micro-radius-l);
	list-style: none;
}

.c-micro-media--grid {
	grid-auto-rows: 1fr;
	grid-template-columns: 1fr 1fr;
	gap: var(--micro-media-gap);
	aspect-ratio: 16 / 9;
}

.c-micro-media__item {
	min-width: 0;
	min-height: 0;
	background: var(--micro-color-placeholder);
}

.c-micro-media__item--tall {
	grid-row: span 2;
}

.c-micro-media__link {
	display: block;
	height: 100%;
}

.c-micro-media__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* a single image: its own proportions, not taller than the maximum */
.c-micro-media__image--natural {
	height: auto;
	max-height: var(--micro-media-max-height);
}

/* keyboard focus: the ring sits inside the image so overflow doesn't clip it */
.c-micro-media__link:focus-visible {
	outline: 3px solid var(--micro-color-accent);
	outline-offset: -3px;
}

/* ── src/css/components/_micro-video.css ── */

/* ==========================================================================
   COMPONENT — c-micro-video
   The platform's embed (YouTube, Vimeo) in a 16:9 frame.
   ========================================================================== */

.c-micro-video {
	margin: var(--micro-space-m) 0 0;
	overflow: hidden;
	border-radius: var(--micro-radius-l);
	background: var(--micro-color-placeholder);
	aspect-ratio: 16 / 9;
}

.c-micro-video__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ── src/css/components/_micro-quote.css ── */

/* ==========================================================================
   COMPONENT — c-micro-quote
   The card of a link, like a quote-retweet: a bordered box with site,
   author and date, the title (the link of the whole card), the copied text
   and image. The address follows below as "Source".
   ========================================================================== */

.c-micro-quote {
	margin: var(--micro-space-m) 0 0;
	font-size: var(--micro-font-size-meta);
	line-height: var(--micro-line-height-text);
}

.c-micro-quote__card {
	position: relative; /* the link below stretches over the whole card */
	display: flex;
	flex-direction: column;
	gap: var(--micro-space-s);
	padding: var(--micro-space-m);
	overflow: hidden;
	border: 1px solid var(--micro-color-line);
	border-radius: var(--micro-radius-l);
}

.c-micro-quote__card:hover {
	border-color: var(--micro-color-muted);
}

.c-micro-quote__header {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--micro-space-s);
	margin: 0;
	color: var(--micro-color-muted);
}

.c-micro-quote__site {
	font-weight: 600;
}

.c-micro-quote__title {
	margin: 0;
	font-size: var(--micro-font-size-text);
	font-weight: 600;
	line-height: var(--micro-line-height-heading);
	overflow-wrap: anywhere;
}

.c-micro-quote__link {
	color: var(--micro-color-text);
	text-decoration: none;
}

.c-micro-quote__link::after {
	position: absolute;
	inset: 0;
	content: "";
}

.c-micro-quote__link:hover {
	text-decoration: underline;
}

.c-micro-quote__text {
	margin: 0;
	overflow-wrap: anywhere;
}

.c-micro-quote__image {
	display: block;
	width: calc(100% + 2 * var(--micro-space-m));
	max-width: none;
	height: auto;
	margin: var(--micro-space-xs) calc(-1 * var(--micro-space-m)) calc(-1 * var(--micro-space-m));
	background: var(--micro-color-placeholder);
}

.c-micro-quote__source {
	margin: var(--micro-space-xs) 0 0;
	color: var(--micro-color-muted);
	overflow-wrap: anywhere;
}

.c-micro-quote__source-link {
	color: var(--micro-color-muted);
	text-decoration: underline;
}

.c-micro-quote__source-link:hover {
	color: var(--micro-color-text);
}

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

/* ==========================================================================
   COMPONENT — c-micro-post
   One post: text, images, time. The --single modifier is the post on its
   own page, with larger text.
   ========================================================================== */

.c-micro-post {
	font-size: var(--micro-font-size-text);
	line-height: var(--micro-line-height-text);
}

.c-micro-post--single {
	font-size: var(--micro-font-size-text-single);
}

.c-micro-post__meta {
	margin: var(--micro-space-m) 0 0;
	font-size: var(--micro-font-size-meta);
}

.c-micro-post__permalink {
	color: var(--micro-color-muted);
}

.c-micro-post__permalink:hover {
	color: var(--micro-color-text);
	text-decoration: underline;
}

/* ── src/css/components/_micro-pager.css ── */

/* ==========================================================================
   COMPONENT — c-micro-pager
   Newer posts / page n of m / older posts.
   ========================================================================== */

.c-micro-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--micro-space-s) var(--micro-space-m);
	margin-top: var(--micro-space-l);
}

.c-micro-pager__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--micro-touch-target);
	color: var(--micro-color-accent);
}

.c-micro-pager__link:hover {
	text-decoration: underline;
}

/* "older" stays on the right even when there is no "newer" */
.c-micro-pager__link--older {
	margin-left: auto;
}

.c-micro-pager__status {
	color: var(--micro-color-muted);
	font-size: var(--micro-font-size-meta);
}

/* ── src/css/components/_micro-timeline.css ── */

/* ==========================================================================
   COMPONENT — c-micro-timeline
   The page: a narrow column with title (or hashtag and count) and
   back link. Used by the timeline, the hashtag pages and a post's own page.
   ========================================================================== */

.c-micro-timeline {
	max-width: var(--micro-width-feed);
	margin: 0 auto;
}

.c-micro-timeline__header {
	margin-bottom: var(--micro-space-l);
}

.c-micro-timeline__title {
	margin: 0;
	font-size: var(--micro-font-size-title);
	line-height: var(--micro-line-height-heading);
	overflow-wrap: anywhere;
}

.c-micro-timeline__count {
	margin: var(--micro-space-xs) 0 0;
	color: var(--micro-color-muted);
}

.c-micro-timeline__back {
	margin: 0 0 var(--micro-space-m);
}

.c-micro-timeline__back-link {
	color: var(--micro-color-muted);
}

.c-micro-timeline__back-link:hover {
	color: var(--micro-color-text);
	text-decoration: underline;
}
