/*
 * Stoop's default theme. A theme is this stylesheet plus theme.json, which
 * lists the custom properties people can change in the theme editor. The
 * editor's values are added after this file as :root { --stoop-…: … }, so
 * they win over both the light and dark defaults below.
 */
:root {
	--stoop-bg: #fbfaf7;
	--stoop-surface: #ffffff;
	--stoop-text: #1d1d1f;
	--stoop-muted: #6b6b70;
	--stoop-accent: #c2410c;
	--stoop-border: #e6e3dc;
	--stoop-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--stoop-font-heading: var(--stoop-font);
	--stoop-width: 42rem;
	--stoop-radius: 0.5rem;
}
@media (prefers-color-scheme: dark) {
	:root {
		--stoop-bg: #16161a;
		--stoop-surface: #1f1f24;
		--stoop-text: #ececef;
		--stoop-muted: #9a9aa3;
		--stoop-accent: #fb923c;
		--stoop-border: #2e2e35;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
body {
	margin: 0;
	overflow-x: clip;
	background:
		var(--stoop-bg) var(--stoop-background-image, none) center / cover fixed;
	color: var(--stoop-text);
	font-family: var(--stoop-font);
	line-height: 1.6;
}
main {
	max-width: var(--stoop-width);
	margin: 0 auto;
	padding: 1.5rem 1rem 4rem;
	/* A long address in a post breaks onto the next line instead of
	 * making the page wider than a phone. */
	overflow-wrap: anywhere;
}
/* A wide table (e.g. a list of links and what they do) scrolls on its own
 * on a phone. */
@media (max-width: 40rem) {
	main table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
	}
}
a {
	color: var(--stoop-accent);
}
h1,
h2,
h3 {
	font-family: var(--stoop-font-heading);
	line-height: 1.2;
}
img {
	max-width: 100%;
	height: auto;
}
time,
.byline,
.handle {
	color: var(--stoop-muted);
}
code,
pre {
	font-size: 0.9em;
}
pre {
	overflow-x: auto;
	padding: 1rem;
	background: var(--stoop-surface);
	border-radius: var(--stoop-radius);
}
blockquote {
	margin-left: 0;
	padding-left: 1rem;
	border-left: 3px solid var(--stoop-border);
	color: var(--stoop-muted);
}

/* Profile header: banner, avatar overlapping it, name and handle. */
.block-bio > header {
	margin-bottom: 2rem;
}
.profile-header {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 1;
	object-fit: cover;
	border-radius: var(--stoop-radius);
}
.avatar {
	display: block;
	width: 6rem;
	height: 6rem;
	object-fit: cover;
	border-radius: 50%;
	border: 4px solid var(--stoop-bg);
	background: var(--stoop-surface);
}
.profile-header + .avatar {
	margin-top: -3rem;
	margin-left: 1rem;
}
.block-bio > header h1 {
	margin: 0.5rem 0 0;
}
.handle {
	margin: 0;
}
/* Bio header choices (2026-11-17): a smaller name, and the compact
   style: a small avatar beside the name, the banner a strip above. */
.block-bio > header > h1.name-small {
	font-size: 1.5rem;
}
.block-bio.style-compact > header {
	display: grid;
	text-align: start;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	column-gap: 1rem;
}
.block-bio.style-compact.no-avatar > header {
	grid-template-columns: minmax(0, 1fr);
}
.block-bio.style-compact .profile-header {
	grid-column: 1 / -1;
	aspect-ratio: 5 / 1;
	margin-bottom: 1rem;
}
.block-bio.style-compact .avatar,
.block-bio.style-compact .profile-header + .avatar {
	grid-row: span 2;
	width: 4rem;
	height: 4rem;
	margin: 0;
	border-width: 2px;
}
.block-bio.style-compact > header > h1 {
	margin: 0;
	align-self: end;
	font-size: 1.5rem;
}
.block-bio.style-compact .handle {
	align-self: start;
}
.block-bio.style-compact:not(.no-avatar) > header > :is(h1, .handle) {
	grid-column: 2;
}
/* Follow from another server (architecture 53): a small outlined pill
   beside the address, in the theme's link color. */
.follow-link {
	display: inline-block;
	margin-left: 0.4em;
	padding: 0 0.7em;
	border: 1px solid var(--stoop-accent);
	border-radius: 999px;
	color: var(--stoop-accent);
	font-size: 0.85em;
	line-height: 1.6;
	text-decoration: none;
	white-space: nowrap;
	vertical-align: 0.05em;
}
.follow-link:hover,
.follow-link:focus-visible {
	background: var(--stoop-accent);
	color: var(--stoop-bg);
}
.follow-copy {
	padding: 0.15rem 0.7rem;
	border: 1px solid var(--stoop-border);
	border-radius: var(--stoop-radius);
	background: var(--stoop-surface);
	color: var(--stoop-text);
	font: inherit;
	font-size: 0.9em;
	cursor: pointer;
}
.follow-form input {
	flex: 1 1 12rem;
}
.follow-page {
	max-width: 34rem;
	margin: 2rem auto;
}
.follow-avatar {
	display: block;
	width: 5rem;
	height: 5rem;
	object-fit: cover;
	border-radius: 50%;
}
.follow-intro,
.follow-other {
	color: var(--stoop-muted);
}
.follow-error {
	padding: 0.5rem 0.75rem;
	border-left: 3px solid var(--stoop-accent);
	background: var(--stoop-surface);
}
.follow-other {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--stoop-border);
}
.follow-handle code {
	overflow-wrap: anywhere;
}

/* Lists of posts. */
.post-list {
	list-style: none;
	padding: 0;
}
.post-item {
	padding: 1rem 0;
	border-bottom: 1px solid var(--stoop-border);
}
.post-item.post-article > a:first-child {
	font-size: 1.15rem;
	font-weight: 600;
}
/* An article's line or two in a list (views/posts.tsx). */
.post-item .post-excerpt {
	margin: 0.3rem 0 0;
	color: var(--stoop-muted);
	line-height: 1.5;
}
.post-item .permalink {
	display: inline-block;
	font-size: 0.875rem;
	text-decoration: none;
}
.note-content > p:first-child {
	margin-top: 0;
}

/* A single post. */
.post article h1 {
	margin-bottom: 0.25rem;
}
.post footer {
	margin-top: 2rem;
	font-size: 0.9rem;
}
.tags {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* Comments under a post (archived from an import). */
.comments {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--stoop-border);
}
.comments h2 {
	margin: 0;
}
.comments-note {
	margin: 0.25rem 0 1.5rem;
	color: var(--stoop-muted);
	font-size: 0.9rem;
}
.comment-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.comment-list .comment-list {
	margin-left: 1rem;
	padding-left: 1rem;
	border-left: 2px solid var(--stoop-border);
}
.comment > article {
	margin-bottom: 1.5rem;
}
.comment header {
	font-size: 0.9rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 0.4rem;
}
.comment-avatar {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	object-fit: cover;
}
.comment-handle {
	color: var(--stoop-muted);
}
.reactions {
	color: var(--stoop-muted);
	margin: 0.5rem 0 0;
}
.reply-hint {
	color: var(--stoop-muted);
	font-size: 0.9rem;
	overflow-wrap: anywhere;
}
.comment-author {
	font-weight: 600;
}
.comment-date {
	color: var(--stoop-muted);
	text-decoration: none;
}
.comment .content > :first-child {
	margin-top: 0.25rem;
}
.comment .content > :last-child {
	margin-bottom: 0;
}

/* Guestbook block: entries look like comments. */
.guestbook-sign,
.guestbook-empty {
	color: var(--stoop-muted);
	font-size: 0.9rem;
}
.guestbook-entries {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
}
.guestbook-entry > article {
	padding: 0.75rem 1rem;
	margin-bottom: 0.75rem;
	background: var(--stoop-surface);
	border: 1px solid var(--stoop-border);
	border-radius: var(--stoop-radius);
}
.guestbook-entry header {
	font-size: 0.9rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 0.4rem;
}
.guestbook-entry .content > :first-child {
	margin-top: 0.25rem;
}
.guestbook-entry .content > :last-child {
	margin-bottom: 0;
}

/* Top 8: a grid of friends, four across (two on phones). */
.top8 {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem 0.75rem;
}
@media (max-width: 30rem) {
	.top8 {
		grid-template-columns: repeat(2, 1fr);
	}
}
.top8 a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	text-decoration: none;
	text-align: center;
}
.top8 img,
.top8-initial {
	width: 100%;
	max-width: 6rem;
	aspect-ratio: 1;
	border-radius: var(--stoop-radius);
	object-fit: cover;
}
.top8-initial {
	display: grid;
	place-items: center;
	font-size: 2rem;
	font-weight: 700;
	background: var(--stoop-surface);
	border: 1px solid var(--stoop-border);
	color: var(--stoop-muted);
}
.top8-name {
	font-size: 0.85rem;
	overflow-wrap: anywhere;
}

/* Attached images: one wide, or a grid. */
.attachments {
	display: grid;
	gap: 0.5rem;
	margin: 1rem 0;
}
.attachments.count-2,
.attachments.count-4 {
	grid-template-columns: 1fr 1fr;
}
.attachments.count-3 {
	grid-template-columns: 1fr 1fr 1fr;
}
.attachments figure {
	margin: 0;
}
.attachments img {
	display: block;
	width: 100%;
	border-radius: var(--stoop-radius);
	background: var(--stoop-surface);
}
.attachments:not(.count-1) img {
	aspect-ratio: 1;
	object-fit: cover;
}
/* Video and sound in a post: played in place, as wide as the column. */
.attachments video {
	display: block;
	width: 100%;
	height: auto;
	max-height: 80vh;
	border-radius: var(--stoop-radius);
	background: #000;
}
.attachments audio {
	display: block;
	width: 100%;
}
.attachments :is(.attachment-video, .attachment-audio) {
	grid-column: 1 / -1;
}
.attachments figcaption {
	margin-top: 0.35rem;
	font-size: 0.85em;
	opacity: 0.75;
}

/* Site menu. The header is a layer above the page, so the phone menu's
 * panel opens over it: blocks with their own layer (a cover, a frosted
 * box) would otherwise be drawn over the panel. */
.site-header {
	position: relative;
	z-index: 40;
	max-width: var(--stoop-width);
	margin: 0 auto;
	padding: 1rem 1rem 0;
}
.site-menu ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	/* A second row of links stays on the right, under the others. */
	justify-content: flex-end;
	/* A logo is taller than the links: they sit level with its middle. */
	align-items: center;
	gap: 0.25rem 1.25rem;
	padding: 0;
	margin: 0;
}
.site-menu a {
	text-decoration: none;
	font-weight: 600;
}
/* The site name, a link home. Hide it with .site-name { display: none }. */
.site-menu .site-name {
	margin-right: auto;
}
.site-menu .site-name a {
	font-family: var(--stoop-font-heading);
	font-weight: 700;
	color: var(--stoop-text);
}

/* With a logo in place of the name, whatever a theme puts around the name
 * (a frame, a tab, a shadow, a cursor after it) steps aside: those are made
 * for a word, and a picture brings its own shape. Written to outrank a
 * theme's ".site-menu .site-name a" rules, hover included. */
.site-menu .site-name.has-logo a,
.site-menu .site-name.has-logo a:hover {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	text-shadow: none;
	transform: none;
}
/* A word has room under it for its tails; a picture needs some given, or
 * it sits right on a header's rule. */
.site-menu .site-name.has-logo {
	padding-block: 0.3rem;
}
.site-menu .site-name.has-logo a::before,
.site-menu .site-name.has-logo a::after {
	content: none;
}
.site-menu .site-name.has-logo a:hover .site-logo {
	opacity: 0.8;
}

/* The site logo, in place of the site name. */
.site-logo {
	display: block;
	height: 2.25rem;
	width: auto;
	max-width: 60vw;
}

/* Cover block: an edge-to-edge image with a big title over it. */
.block-cover {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 100vw;
	padding: 2rem max(1rem, calc((100vw - var(--stoop-width)) / 2));
	overflow: hidden;
	color: #fff;
	background: var(--stoop-surface);
}
/* Break out of the column, edge to edge (beats .block's margin). */
.block.block-cover {
	margin-inline: calc(50% - 50vw);
}
:is(.page, .page > .page-top) > .cell:first-child > .block-cover {
	margin-top: -1.5rem;
}
.block-cover.height-full {
	min-height: 85svh;
}
.block-cover.height-tall {
	min-height: 60svh;
}
.block-cover.height-medium {
	min-height: 35svh;
}
.block-cover.position-center {
	justify-content: center;
	text-align: center;
}
.cover-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.block-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	background: #000;
	opacity: 0;
}
.block-cover.dim-light::after {
	opacity: 0.2;
}
.block-cover.dim-medium::after {
	opacity: 0.4;
}
.block-cover.dim-strong::after {
	opacity: 0.6;
}
.cover-content {
	position: relative;
	z-index: 1;
}
.cover-title {
	margin: 0;
	font-size: clamp(2.5rem, 8vw, 5.5rem);
	line-height: 1;
	text-shadow: 0 2px 16px rgb(0 0 0 / 30%);
}
.cover-text {
	margin: 0.75rem 0 0;
	font-size: 1.25rem;
	text-shadow: 0 1px 8px rgb(0 0 0 / 30%);
}

/* Cover: a color tint instead of darkening, an image that stays put, the
 * site header over it (first block only), and a ↓ to the page. */
.block-cover.tinted::after {
	background: var(--cover-tint);
	opacity: var(--cover-tint-strength);
}
.cover-image.cover-fixed {
	background-position: center;
	background-size: cover;
	background-attachment: fixed;
}
@supports (-webkit-touch-callout: none) {
	/* iPhones and iPads can't fix a background: scroll it instead. */
	.cover-image.cover-fixed {
		background-attachment: scroll;
	}
}
body:has(
		:is(.page, .page > .page-top) > .cell:first-child > .block-cover.header-over
	)
	.site-header {
	position: absolute;
	inset: 0 0 auto;
	z-index: 5;
	background: transparent;
	border-color: transparent;
	box-shadow: none;
}
body:has(
		:is(.page, .page > .page-top) > .cell:first-child > .block-cover.header-over
	)
	.site-header
	:is(a, .site-name, summary) {
	color: #fff;
}
:is(.page, .page > .page-top) > .cell:first-child > .block-cover.header-over {
	padding-top: 7rem;
}
.block-cover.position-bottom-center {
	align-items: center;
	text-align: center;
}
.block-cover.header-over.height-full {
	min-height: 100svh;
}
.cover-arrow {
	position: relative;
	z-index: 1;
	align-self: center;
	margin-top: 1.5rem;
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	text-decoration: none;
}

/* The cover's ↓ arrow glides down to the page instead of jumping (not
 * for people whose device asks for less motion). */
@media (prefers-reduced-motion: no-preference) {
	html:has(.cover-arrow) {
		scroll-behavior: smooth;
	}
}

/* Page layout: blocks in a six-column grid, so narrower ones sit side by
 * side; stacked on phones. A "wide" page gives them room. */
.page {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	column-gap: 2rem;
	align-items: start;
}
.page > .cell {
	grid-column: span 6;
	min-width: 0;
}
.page > .cell-half {
	grid-column: span 3;
}
.page > .cell-third {
	grid-column: span 2;
}
.page > .cell-two-thirds {
	grid-column: span 4;
}
@media (max-width: 40rem) {
	.page > .cell {
		grid-column: span 6;
	}
}
.page.layout-wide {
	max-width: max(var(--stoop-width), 72rem);
}

/* Latest posts as titles only, and the Photos grid (sidebar-sized). */
ul.post-titles {
	margin: 0;
	padding: 0;
	list-style: none;
}
ul.post-titles li {
	margin: 0;
	padding: 0.45rem 0;
	border-bottom: 1px solid var(--stoop-border);
	list-style: none;
}
ul.post-titles li:last-child {
	border-bottom: 0;
}
ul.post-titles time {
	display: block;
	color: var(--stoop-muted);
	font-size: 0.8em;
}
.block-post-titles .more {
	margin: 0.5rem 0 0;
	font-size: 0.9em;
}
/* From a source, with a line of each item's text. */
ul.post-titles .source-item-summary {
	margin: 0.15rem 0 0;
	font-size: 0.9em;
	color: var(--stoop-muted);
}
ul.photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
ul.photo-grid li {
	margin: 0;
	list-style: none;
}
ul.photo-grid a {
	display: block;
}
ul.photo-grid img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: calc(var(--stoop-radius) / 2);
}

/* Sidebar pages: a main column (two thirds) and a narrow one beside it;
 * covers at the top span both. On phones they stack: a right sidebar
 * after the main column, a left one (a profile's bio) before it. */
.page.layout-sidebar {
	grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr);
	grid-template-areas: "top top" "main side";
	column-gap: 2.5rem;
	max-width: max(var(--stoop-width), 72rem);
}
.page.sidebar-left {
	grid-template-columns: minmax(14rem, 1fr) minmax(0, 2fr);
	grid-template-areas: "top top" "side main";
}
.page-top {
	grid-area: top;
	min-width: 0;
}
.page-main {
	grid-area: main;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	column-gap: 2rem;
	align-content: start;
	min-width: 0;
}
.page-main > .cell {
	grid-column: span 6;
	min-width: 0;
}
.page-main > .cell-half {
	grid-column: span 3;
}
.page-main > .cell-third {
	grid-column: span 2;
}
.page-main > .cell-two-thirds {
	grid-column: span 4;
}
.page-side {
	grid-area: side;
	min-width: 0;
	font-size: 0.92rem;
}
.page-side .block h2 {
	font-size: 1.1rem;
}
/* "Keep the sidebar in view": wide screens only; scroll.js drops
   .sidebar-fits when the sidebar is taller than the window (it would hide
   its own bottom). */
@media (min-width: 52.01rem) {
	.page.sidebar-sticky.sidebar-fits .page-side {
		position: sticky;
		top: 1rem;
		align-self: start;
	}
}
@media (max-width: 52rem) {
	.page.layout-sidebar,
	.page.sidebar-left {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "top" "main" "side";
	}
	/* A left sidebar (a profile's bio and links) comes first. */
	.page.sidebar-left {
		grid-template-areas: "top" "side" "main";
	}
	.page-main > .cell {
		grid-column: span 6;
	}
}

/* Content warnings: the post folded behind its warning. */
.content-warning > summary {
	cursor: pointer;
	font-weight: 600;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--stoop-border);
	border-radius: var(--stoop-radius);
	background: var(--stoop-surface);
}
.content-warning > summary::after {
	content: " · show";
	color: var(--stoop-muted);
	font-weight: 400;
}
.content-warning[open] > summary::after {
	content: " · hide";
}

/* A reply's "In reply to" line. */
.in-reply-to {
	color: var(--stoop-muted);
	font-size: 0.9rem;
	overflow-wrap: anywhere;
}

/* Blocks on a page. */
.block {
	margin: 0 0 2rem;
}
.block > h2:first-child {
	margin-top: 0;
}
/* A block's title that's a link (an app's name linking to its page) keeps
 * the title's own color, underlined: many themes put titles on a band or
 * ribbon of the link color, where a link-colored title would vanish. */
.block > h2:first-child a {
	color: inherit;
}
.block-bio > header {
	margin-bottom: 1rem;
}
.block-image {
	margin-left: 0;
	margin-right: 0;
}
.block-image img {
	display: block;
	border-radius: var(--stoop-radius);
}
.block-image figcaption {
	color: var(--stoop-muted);
	font-size: 0.9rem;
	margin-top: 0.5rem;
}

.block-links ul {
	list-style: none;
	padding: 0;
}
.block-links.style-list li {
	margin: 0.35rem 0;
}
.block-links.style-buttons ul {
	display: grid;
	gap: 0.75rem;
}
.block-links.style-buttons a {
	display: block;
	padding: 0.9rem 1rem;
	text-align: center;
	text-decoration: none;
	font-weight: 600;
	color: var(--stoop-text);
	background: var(--stoop-surface);
	border: 1px solid var(--stoop-border);
	border-radius: var(--stoop-radius);
}
.block-links.style-buttons a:hover {
	border-color: var(--stoop-accent);
	color: var(--stoop-accent);
}

/* A row of buttons at their own width (e.g. Download and Source). */
.block-links.style-row ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.block-links.style-row a {
	display: inline-block;
	padding: 0.65rem 1.4rem;
}

/* Folder block: a list of files, audio with a player under its name. */
.block-folder .folder-list {
	list-style: none;
	padding: 0;
}
.block-folder .folder-item {
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--stoop-border);
	overflow-wrap: anywhere;
}
.block-folder .folder-dir a {
	font-weight: 600;
}
.block-folder audio {
	display: block;
	width: 100%;
	margin-top: 0.35rem;
}

/* Music: now playing, recent listens, top albums (a list, or covers). */
.block-music .music-items {
	list-style: none;
	padding: 0;
	margin: 0;
}
.block-music .music-item {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	padding: 0.4rem 0;
}
.block-music .music-cover {
	flex: none;
	width: 3rem;
	height: 3rem;
	object-fit: cover;
	border-radius: calc(var(--stoop-radius) / 2);
	background: var(--stoop-surface);
}
.block-music .music-no-cover {
	display: grid;
	place-items: center;
	color: var(--stoop-muted);
}
.block-music .music-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}
.block-music .music-title {
	font-weight: 600;
	overflow-wrap: anywhere;
}
.block-music .music-title a {
	color: inherit;
	text-decoration: none;
}
.block-music .music-title a:hover {
	text-decoration: underline;
}
.block-music :is(.music-by, .music-meta) {
	color: var(--stoop-muted);
	font-size: 0.9em;
}
.block-music .music-live {
	color: var(--stoop-accent);
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.block-music .music-live::before {
	content: "● ";
}
.block-music .music-now .music-cover {
	width: 4.5rem;
	height: 4.5rem;
}
.music-grid .music-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
	gap: 1rem;
}
.music-grid .music-item {
	flex-direction: column;
	align-items: stretch;
	gap: 0.4rem;
	padding: 0;
}
.music-grid :is(.music-cover, .music-now .music-cover) {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	font-size: 2rem;
}

/* Bio, centered (the link-in-bio look): no banner, everything in the middle. */
.block-bio.style-centered {
	text-align: center;
}
.block-bio.style-centered .avatar {
	width: 7rem;
	height: 7rem;
	margin: 0 auto;
	border: 0;
}
.block-bio.style-centered .bio > p {
	margin-left: auto;
	margin-right: auto;
}

/* Imported posts: captioned images, embeds shown as links, "Also on". */
:is(.content, .block-html) figure {
	margin: 1rem 0;
}
:is(.content, .block-html) figure img {
	display: block;
	border-radius: var(--stoop-radius);
}
:is(.content, .block-html) .aligncenter img {
	margin: 0 auto;
}
:is(.content, .block-html) figcaption {
	color: var(--stoop-muted);
	font-size: 0.9rem;
	margin-top: 0.5rem;
}
:is(.content, .block-html) .aligncenter figcaption {
	text-align: center;
}
:is(.content, .block-html) .wp-block-embed a {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--stoop-border);
	border-radius: 999px;
	text-decoration: none;
}
:is(.content, .block-html) .wp-block-embed a::before {
	content: "▶ ";
}
:is(.content, .block-html) .wp-syndication {
	color: var(--stoop-muted);
	font-size: 0.9rem;
}
/* A link's card under a note: its picture, site, title and description. */
/* A post's poll: each choice's share as a bar behind its name. */
.poll {
	margin: 0.75rem 0 0.25rem;
}
.poll-results {
	margin: 0;
	padding: 0;
	list-style: none;
}
.poll-results li {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 0.35rem;
	padding: 0.45rem 0.65rem;
	border: 1px solid var(--stoop-border);
	border-radius: var(--stoop-radius);
	background: linear-gradient(
		to right,
		color-mix(in srgb, var(--stoop-accent) 28%, transparent) var(--share),
		transparent var(--share)
	);
}
.poll-results .poll-share {
	flex: none;
	font-variant-numeric: tabular-nums;
	opacity: 0.75;
}
.poll-facts {
	margin: 0.25rem 0 0;
	font-size: 0.85em;
	opacity: 0.75;
}

.link-card {
	display: flex;
	gap: 0.85rem;
	align-items: stretch;
	margin: 0.75rem 0 0.25rem;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--stoop-border);
	border-radius: var(--stoop-radius);
	background: var(--stoop-surface);
	color: var(--stoop-text);
	text-decoration: none;
}
.link-card:hover {
	border-color: var(--stoop-accent);
}
.link-card img {
	flex: none;
	width: 7.5rem;
	height: auto;
	min-height: 5.5rem;
	object-fit: cover;
}
.link-card-text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
	padding: 0.65rem 0.85rem 0.65rem 0;
	font-size: 0.9rem;
	line-height: 1.35;
}
.link-card:not(:has(> img)) .link-card-text {
	padding-left: 0.85rem;
}
.link-card-site {
	color: var(--stoop-muted);
	font-size: 0.8rem;
}
.link-card-title {
	overflow-wrap: anywhere;
}
.link-card-description {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	color: var(--stoop-muted);
}
@media (max-width: 30rem) {
	.link-card {
		flex-direction: column;
		gap: 0;
	}
	.link-card img {
		width: 100%;
		max-height: 12rem;
	}
	.link-card-text {
		padding: 0.65rem 0.85rem;
	}
}

/* "Also on Mastodon, Instagram": where else a post was published, small
 * and quiet beside its date, each with the service's logo. */
.also-on {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem 0.6rem;
	margin: 0 0 0 0.75rem;
	color: var(--stoop-muted);
	font-size: 0.8rem;
	vertical-align: middle;
}
.also-on a {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: inherit;
	text-decoration: none;
}
.also-on a:hover {
	color: var(--stoop-accent);
}
.also-on svg {
	width: 0.95rem;
	height: 0.95rem;
	flex: none;
}

/* Like and boost counts beside a listed post's date. */
.post-counts {
	display: inline-flex;
	gap: 0.6rem;
	margin-left: 0.75rem;
	color: var(--stoop-muted);
	font-size: 0.8rem;
	vertical-align: middle;
}
.post-counts > span {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}
.post-counts svg {
	width: 0.9rem;
	height: 0.9rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Text for screen readers only. */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Older and newer posts. */
.pager {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 1.5rem 0;
}

/* Fediverse posts: another account's posts, or a grid of its pictures. */
.block-fediverse .fediverse-posts {
	list-style: none;
	padding: 0;
	margin: 0;
}
.block-fediverse .fediverse-post {
	padding: 0.75rem 0;
}
.block-fediverse .fediverse-post + .fediverse-post {
	border-top: 1px solid var(--stoop-border);
}
.block-fediverse .fediverse-content > :first-child {
	margin-top: 0;
}
.block-fediverse .fediverse-content > :last-child {
	margin-bottom: 0.35rem;
}
.block-fediverse .fediverse-pictures {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
	gap: 0.35rem;
	margin: 0.5rem 0;
}
.block-fediverse .fediverse-pictures img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 24rem;
	object-fit: cover;
	border-radius: calc(var(--stoop-radius) / 2);
}
.block-fediverse :is(.fediverse-meta, .fediverse-more) {
	color: var(--stoop-muted);
	font-size: 0.85em;
}
.block-fediverse .fediverse-meta a {
	color: inherit;
}
.block-fediverse .fediverse-tiles {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
	gap: 0.35rem;
}
.block-fediverse .fediverse-tiles img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: calc(var(--stoop-radius) / 2);
}

/* SoundCloud: tracks with artwork and a "Play here" button each. */
.block-soundcloud .soundcloud-tracks {
	list-style: none;
	padding: 0;
	margin: 0;
}
.block-soundcloud .soundcloud-track {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	padding: 0.6rem 0;
}
.block-soundcloud .soundcloud-track + .soundcloud-track {
	border-top: 1px solid var(--stoop-border);
}
.block-soundcloud .soundcloud-art {
	flex: none;
	width: 4.5rem;
	height: 4.5rem;
	object-fit: cover;
	border-radius: calc(var(--stoop-radius) / 2);
	background: var(--stoop-surface);
}
.block-soundcloud .soundcloud-no-art {
	display: grid;
	place-items: center;
	color: var(--stoop-muted);
}
.block-soundcloud .soundcloud-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	line-height: 1.3;
}
.block-soundcloud .soundcloud-title {
	font-weight: 600;
	color: inherit;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.block-soundcloud .soundcloud-title:hover {
	text-decoration: underline;
}
.block-soundcloud .soundcloud-meta {
	color: var(--stoop-muted);
	font-size: 0.85em;
}
.block-soundcloud .embed-player {
	margin: 0.4rem 0 0;
}
/* Once playing, the player takes the whole row. */
.block-soundcloud .soundcloud-track:has(.embed-frame) {
	flex-wrap: wrap;
}

/* Embeds: a link and a "Play here" button; the player loads on click. */
:is(.content, .note-content, .block-html, .block-soundcloud) .embed-player {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 1rem 0;
}
:is(.content, .note-content, .block-html, .block-soundcloud) .embed-play {
	font: inherit;
	font-size: 0.9rem;
	padding: 0.4rem 0.9rem;
	border: 0;
	border-radius: 999px;
	background: var(--stoop-accent);
	color: var(--stoop-bg);
	cursor: pointer;
}
:is(.content, .note-content, .block-html, .block-soundcloud) .embed-note {
	color: var(--stoop-muted);
	font-size: 0.8rem;
}
:is(.content, .note-content, .block-html, .block-soundcloud) .embed-frame {
	display: block;
	width: 100%;
	border: 0;
	border-radius: var(--stoop-radius);
}
/* A player with its cover (a track from SoundCloud): like a link card, the
   cover small at the side; playing, the player takes the whole box. */
:is(.content, .note-content) .embed-card {
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.85rem;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--stoop-border);
	border-radius: var(--stoop-radius);
	background: var(--stoop-surface);
}
:is(.content, .note-content) .embed-card .embed-cover {
	flex: none;
	width: 6rem;
	height: 6rem;
	object-fit: cover;
	border-radius: 0;
}
:is(.content, .note-content) .embed-card-text {
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	align-items: center;
	gap: 0.4rem 0.6rem;
	min-width: 0;
	padding: 0.6rem 0.85rem 0.6rem 0;
	font-size: 0.9rem;
}
:is(.content, .note-content) .embed-card:has(.embed-frame) {
	border: 0;
	background: none;
}
:is(.content, .block-html) .embed-video {
	display: block;
	aspect-ratio: 16 / 9;
}
:is(.content, .block-html) .embed-video .embed-frame {
	height: 100%;
}

/* Audio and video files: the browser's own player, full width. */
:is(.content, .block-html) audio,
:is(.content, .block-html) video {
	display: block;
	width: 100%;
	max-width: 100%;
}

/* Phones: the menu folds into a "Menu" button (a <details>, no script)
 * beside the site name; it opens a panel with the same links. */
.site-menu {
	position: relative;
}
.site-menu-toggle {
	display: none;
}
@media (max-width: 40rem) {
	.site-menu {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
	}
	.site-menu > ul > li:not(.site-name) {
		display: none;
	}
	.site-menu-toggle {
		display: block;
	}
	.site-menu-toggle > summary {
		list-style: none;
		cursor: pointer;
		display: flex;
		flex-direction: column;
		align-items: center;
		line-height: 1;
		font-size: 0.85rem;
		font-weight: 600;
		color: var(--stoop-accent);
	}
	.site-menu-toggle > summary::-webkit-details-marker {
		display: none;
	}
	.site-menu-toggle > summary::before {
		content: "•••";
		font-size: 1.4rem;
		letter-spacing: 0.05em;
		margin-bottom: 0.2rem;
	}
	.site-menu-toggle[open] > summary::before {
		content: "✕";
	}
	.site-menu-toggle > ul {
		position: absolute;
		z-index: 20;
		top: calc(100% + 0.5rem);
		right: 0;
		min-width: 12rem;
		display: flex;
		flex-direction: column;
		gap: 0;
		margin: 0;
		padding: 0.5rem 0;
		list-style: none;
		text-align: left;
		background: var(--stoop-bg);
		border: 1px solid var(--stoop-border);
		border-radius: var(--stoop-radius, 0.5rem);
		box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 0.25);
	}
	.site-menu-toggle > ul a {
		display: block;
		padding: 0.6rem 1.25rem;
		color: var(--stoop-accent);
		font-size: 1.1rem;
	}
}
/* The same, on any screen, when the links don't fit on one line beside
 * the site name (menu.js adds .is-folded). :where() keeps these as
 * weighty as the phone rules, so a theme's own menu colors still win. */
.site-menu:where(.is-folded) {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
/* Priority-plus: the links that fit stay in the row, in menu order; the
 * rest are "More" (menu.js marks them). On phones too, when there's room. */
.site-menu:where(.is-folded) > ul > li.is-overflow {
	display: none;
}
.site-menu:where(.is-folded) > ul > li:not(.site-name):not(.is-overflow) {
	display: list-item;
}
:where(.site-menu.is-folded) .site-menu-toggle > ul > li.is-in-row {
	display: none;
}
.site-menu:where(.is-folded) > ul {
	flex: 1;
	flex-wrap: nowrap;
	/* Overflow, if any, past the right edge, where it's measured. */
	justify-content: flex-start;
	min-width: 0;
	white-space: nowrap;
}
:where(.site-menu.is-folded) .site-menu-toggle {
	display: block;
	flex: none;
}
/* The menu-button setting "never": every link shown, on phones too,
 * wrapping onto more lines (lined up on the right). */
.site-menu.menu-never > ul > li:not(.site-name) {
	display: list-item;
}
@media (max-width: 40rem) {
	.site-menu.menu-never {
		display: block;
	}
}
/* Everything fits (a short menu on a phone): no button at all. */
.site-menu.is-all-shown .site-menu-toggle {
	display: none;
}
:where(.site-menu.is-folded) .site-menu-toggle > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--stoop-accent);
}
:where(.site-menu.is-folded)
	.site-menu-toggle
	> summary::-webkit-details-marker {
	display: none;
}
:where(.site-menu.is-folded) .site-menu-toggle > summary::before {
	content: "•••";
	font-size: 1.4rem;
	letter-spacing: 0.05em;
	margin-bottom: 0.2rem;
}
:where(.site-menu.is-folded) .site-menu-toggle[open] > summary::before {
	content: "✕";
}
:where(.site-menu.is-folded) .site-menu-toggle > ul {
	position: absolute;
	z-index: 20;
	top: calc(100% + 0.5rem);
	right: 0;
	min-width: 12rem;
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0.5rem 0;
	list-style: none;
	text-align: left;
	background: var(--stoop-bg);
	border: 1px solid var(--stoop-border);
	border-radius: var(--stoop-radius, 0.5rem);
	box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 0.25);
}
:where(.site-menu.is-folded) .site-menu-toggle > ul a {
	display: block;
	padding: 0.6rem 1.25rem;
	color: var(--stoop-accent);
	font-size: 1.1rem;
}

/* Notes in post lists: the whole item opens the note (its date is the
 * link; links and buttons inside still work on their own). */
.post-item {
	position: relative;
}
.post-item.post-note .permalink::after {
	content: "";
	position: absolute;
	inset: 0;
}
.post-item.post-note :is(.note-content a, button, summary, audio, video) {
	position: relative;
	z-index: 1;
}

/* A missing page. */
.not-found {
	min-height: 40vh;
}

/* Details: a profile's contact details, label beside value. */
.block-details dl.details {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.35rem 1rem;
	margin: 0;
}
.block-details dt {
	color: var(--stoop-muted);
	font-size: 0.9em;
}
.block-details dd {
	margin: 0;
	overflow-wrap: anywhere;
}

/* Search (the search page and the Search block). */
.search-form {
	display: flex;
	gap: 0.5rem;
	margin: 0 0 1rem;
}
.search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 0.5rem 0.7rem;
	border: 1px solid var(--stoop-border);
	border-radius: var(--stoop-radius);
	background: var(--stoop-surface);
	color: var(--stoop-text);
	font: inherit;
}
.search-form button {
	padding: 0.5rem 1rem;
	border: 1px solid var(--stoop-accent);
	border-radius: var(--stoop-radius);
	background: var(--stoop-accent);
	color: var(--stoop-bg);
	font: inherit;
	cursor: pointer;
}
.search-count {
	color: var(--stoop-muted);
}
.search-results {
	list-style: none;
	margin: 0;
	padding: 0;
}
.search-result {
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--stoop-border);
}
.search-result h2 {
	margin: 0 0 0.2rem;
	font-size: 1.15rem;
}
.search-meta {
	margin: 0 0 0.3rem;
	color: var(--stoop-muted);
	font-size: 0.85rem;
}
.search-snippet {
	margin: 0;
	overflow-wrap: anywhere;
}
.search-page mark,
.search-result mark {
	padding: 0 0.1em;
	border-radius: 0.2em;
	background: color-mix(in srgb, var(--stoop-accent) 25%, transparent);
	color: inherit;
}
.search-pages {
	display: flex;
	justify-content: space-between;
	margin: 1rem 0;
}

/* Timeline block: a year bar that stays in view, and a line with a dot
 * for each year (architecture 47). */
.block-timeline .timeline {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr);
	gap: 1.25rem;
}
.timeline-years {
	position: sticky;
	top: 1rem;
	align-self: start;
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
}
.timeline-years ol {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 2px solid var(--stoop-border);
}
.timeline-years a {
	display: block;
	padding: 0.15rem 0.6rem;
	color: var(--stoop-muted);
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}
.timeline-years a:hover,
.timeline-years a:focus-visible {
	color: var(--stoop-accent);
}
.timeline-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.timeline-year {
	position: relative;
	padding: 0 0 1.75rem 1.25rem;
	border-left: 2px solid var(--stoop-border);
	scroll-margin-top: 1rem;
}
.timeline-year::before {
	content: "";
	position: absolute;
	top: 0.55rem;
	left: -7px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--stoop-accent);
	box-shadow: 0 0 0 3px var(--stoop-bg);
}
.timeline-year h3 {
	margin: 0 0 0.6rem;
	font-size: 1.5rem;
}
.timeline-year h3 a {
	color: inherit;
	text-decoration: none;
}
.timeline-year h3 small {
	color: var(--stoop-muted);
	font-size: 0.85rem;
	font-weight: normal;
}
.timeline-pictures {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
	gap: 0.4rem;
	margin: 0 0 0.6rem;
	padding: 0;
	list-style: none;
}
.timeline-pictures img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--stoop-radius);
}
.timeline-posts {
	margin: 0 0 0.4rem;
	padding-left: 1.1rem;
}
.timeline-posts small {
	color: var(--stoop-muted);
}
.timeline-more {
	margin: 0;
	font-size: 0.9rem;
}
.year-count {
	color: var(--stoop-muted);
}
.year-pages {
	display: flex;
	justify-content: space-between;
	margin: 1rem 0;
}
@media (max-width: 40rem) {
	/* Phones: the years become a strip across the top. */
	.block-timeline .timeline {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.75rem;
	}
	.timeline-years {
		top: 0;
		z-index: 2;
		max-height: none;
		overflow-x: auto;
		background: var(--stoop-bg);
	}
	.timeline-years ol {
		display: flex;
		border-left: 0;
		border-bottom: 2px solid var(--stoop-border);
	}
	.timeline-years li {
		flex: none;
		white-space: nowrap;
	}
	.timeline-years a {
		padding: 0.4rem 0.6rem;
	}
	.timeline-year {
		scroll-margin-top: 3rem;
	}
}

/* "Posts · Replies" above a profile's posts list: quiet, the current one
 * in the text's own color. */
/* Posts · Replies · Boosts: tabs, a line under the row and the current
   one underlined in the accent color. */
.posts-switch {
	display: flex;
	flex-wrap: wrap;
	column-gap: 1.4rem;
	margin: 0 0 1.25rem;
	border-bottom: 1px solid var(--stoop-border);
	font-size: 0.95rem;
}
.posts-switch > span[aria-hidden="true"] {
	display: none;
}
.posts-switch a {
	padding: 0.45rem 0;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	color: var(--stoop-muted);
	text-decoration: none;
}
.posts-switch a:hover,
.posts-switch a:focus-visible {
	color: var(--stoop-text);
	border-bottom-color: var(--stoop-border);
	text-decoration: none;
}
.posts-switch a[aria-current] {
	color: var(--stoop-text);
	font-weight: 600;
	border-bottom-color: var(--stoop-accent);
}
/* Built-in lists (architecture 74): whose list, boosts as cards, and a
   note when a hidden list is seen by its editor. */
.list-byline {
	margin: 0 0 0.5rem;
}
.list-byline a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: inherit;
	text-decoration: none;
	font-weight: 600;
}
.list-byline a:hover span,
.list-byline a:focus-visible span {
	text-decoration: underline;
}
/* A post's, tag's or year's page: the same as on its lists. */
.byline.list-byline {
	color: var(--stoop-text);
}
.list-byline .avatar {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	object-fit: cover;
}
.boosts {
	display: grid;
	gap: 1.25rem;
}
.boost .boosted {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	margin: 0.4rem 0 0;
	color: var(--stoop-muted);
	font-size: 0.8rem;
}
/* A boosted post, drawn in full: Boosted, whose it is, its text and
   pictures, and when it was posted. */
.boost-full .boosted {
	margin: 0 0 0.5rem;
}
.boost-author a {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: inherit;
	text-decoration: none;
}
.boost-author a:hover strong,
.boost-author a:focus-visible strong {
	text-decoration: underline;
}
.boost-author .avatar {
	width: 2.5rem;
	height: 2.5rem;
	flex: none;
	border-radius: 50%;
	object-fit: cover;
}
.boost-author .avatar-blank {
	display: grid;
	place-items: center;
	background: var(--stoop-border);
	color: var(--stoop-muted);
	font-weight: 600;
}
.boost-names {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}
.boost-names small {
	color: var(--stoop-muted);
	overflow-wrap: anywhere;
}
.boost-content {
	margin-top: 0.6rem;
	overflow-wrap: anywhere;
}
.boost-content > :first-child {
	margin-top: 0;
}
.boost-content > :last-child {
	margin-bottom: 0;
}
.boost-full .content-warning {
	margin-top: 0.6rem;
}
.boost-pictures a {
	display: block;
}
.boost-meta,
.boost-gone {
	margin: 0.5rem 0 0;
	color: var(--stoop-muted);
	font-size: 0.8rem;
}
.boost-meta a {
	color: inherit;
}
.only-you {
	margin: 0 0 1rem;
	color: var(--stoop-muted);
	font-size: 0.85rem;
	font-style: italic;
}
.boost-pictures {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.35rem;
	margin-top: 0.6rem;
}
.boost-pictures.count-1 {
	grid-template-columns: 1fr;
}
.boost-pictures img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 24rem;
	object-fit: cover;
	border-radius: 0.35rem;
}
.boost-pictures:not(.count-1) img {
	aspect-ratio: 1;
	height: 100%;
}
/* Small line icons beside text: a boost's date, a reply's. */
.mini-icon {
	width: 0.9rem;
	height: 0.9rem;
	flex: none;
	vertical-align: -0.12em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.reply-mark {
	margin-right: 0.3rem;
	color: var(--stoop-muted);
}
.in-reply-to .mini-icon {
	margin-right: 0.15rem;
}
/* A reply in a list of posts: whose post it answers. A pinned post: Pinned. */
.post-item .pinned-mark,
.post-item .reply-to {
	margin: 0 0 0.3rem;
	color: var(--stoop-muted);
	font-size: 0.85rem;
}
.post-item .reply-to a {
	color: inherit;
}
/* What a reply answers, in full, above it (a thread). */
.full-post.reply-parent {
	margin: 0.25rem 0 0.75rem;
}
/* In a list, what a reply answers when it isn't here: a small card. */
.post-item .reply-context-small {
	margin: 0 0 0.5rem;
}
.post-item .reply-context-small .link-card-text {
	padding: 0.4rem 0.7rem;
	font-size: 0.85rem;
}
.post-item .reply-context-small .link-card-description {
	-webkit-line-clamp: 1;
}
.list-end {
	color: var(--stoop-muted);
	font-size: 0.9rem;
}
/* Who liked and boosted a post, under "3 likes · 1 boost". */
details.reactions > summary {
	cursor: pointer;
	color: var(--stoop-muted);
	list-style: none;
}
details.reactions > summary::-webkit-details-marker {
	display: none;
}
details.reactions > summary:hover {
	color: var(--stoop-text);
	text-decoration: underline;
}
.reactors-label {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	margin: 0.75rem 0 0.35rem;
	color: var(--stoop-muted);
	font-size: 0.85rem;
}
.reactors {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
}
.reactors li {
	margin: 0;
}
.reactors :is(a, li > span) {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}
.reactors img,
.reactor-initial {
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}
.reactor-initial {
	display: inline-grid;
	place-items: center;
	background: var(--stoop-surface);
	border: 1px solid var(--stoop-border);
	color: var(--stoop-muted);
	font-size: 0.8rem;
	font-weight: 600;
}

/* Blocks kept together (architecture 76): one row of their own, laid out
   inside it like the page; closer together; a box when the page asks. */
.block-group {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	column-gap: 2rem;
	align-items: start;
	min-width: 0;
	margin: 0 0 2rem;
}
.block-group > .cell {
	grid-column: span 6;
	min-width: 0;
}
.block-group > .cell-half {
	grid-column: span 3;
}
.block-group > .cell-third {
	grid-column: span 2;
}
.block-group > .cell-two-thirds {
	grid-column: span 4;
}
@media (max-width: 40rem) {
	.block-group > .cell {
		grid-column: span 6;
	}
}
.block-group .block {
	margin-bottom: 0.9rem;
}
.block-group > .cell:last-child .block {
	margin-bottom: 0;
}
.group-boxes .block-group {
	padding: 1.25rem;
	border: 1px solid var(--stoop-border);
	border-radius: var(--stoop-radius);
	background: var(--stoop-surface);
}
/* A box whose heading is a link (an app with its page): the whole box
   follows that link; any other link in it still works on its own. */
.group-boxes .block-group:has(:is(h2, h3) > a) {
	position: relative;
}
.group-boxes .block-group :is(h2, h3) > a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.group-boxes .block-group a:not(:is(h2, h3) > a) {
	position: relative;
	z-index: 1;
}
.group-boxes .block-group:has(:is(h2, h3) > a):hover {
	border-color: var(--stoop-accent);
}
.group-boxes .block-group:has(:is(h2, h3) > a:focus-visible) {
	outline: 2px solid var(--stoop-accent);
	outline-offset: 2px;
}
/* A quote post: what it quotes, under its text (architecture 69). */
.quote-card {
	margin: 0.75rem 0 0;
}
/* Another post in full inside this one (what a quote quotes, what a reply
   answers): a box with who wrote it, all its text and its pictures. */
.full-post {
	margin: 0.75rem 0 0;
	padding: 0.85rem 1rem;
	border: 1px solid var(--stoop-border);
	border-radius: var(--stoop-radius);
	background: var(--stoop-surface);
	font-size: 0.95em;
}
.quote-author a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: inherit;
	text-decoration: none;
}
.quote-author a:hover strong {
	text-decoration: underline;
}
.quote-author .avatar {
	width: 2rem;
	height: 2rem;
	flex: none;
	border-radius: 50%;
	object-fit: cover;
}
.quote-author .avatar-blank {
	display: grid;
	place-items: center;
	background: var(--stoop-border);
	color: var(--stoop-muted);
	font-size: 0.85rem;
	font-weight: 600;
}
.quote-names {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}
.quote-names small {
	color: var(--stoop-muted);
	overflow-wrap: anywhere;
}
.quote-content {
	margin-top: 0.5rem;
	overflow-wrap: anywhere;
}
.quote-content > :first-child {
	margin-top: 0;
}
.quote-content > :last-child {
	margin-bottom: 0;
}
.quote-meta {
	margin: 0.5rem 0 0;
	color: var(--stoop-muted);
	font-size: 0.8rem;
}
.quote-meta a {
	color: inherit;
}
.quote-link {
	margin: 0.5rem 0 0;
	color: var(--stoop-muted);
	font-size: 0.9em;
}

/* A picture still loading (embeds.js): a soft placeholder in its space. */
img.img-wait {
	background:
		linear-gradient(
			100deg,
			var(--stoop-surface) 30%,
			var(--stoop-border) 50%,
			var(--stoop-surface) 70%
		)
		0 0 / 300% 100%;
	animation: img-wait 1.4s ease-in-out infinite;
}
@keyframes img-wait {
	from {
		background-position: 100% 0;
	}
	to {
		background-position: 0 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	img.img-wait {
		animation: none;
		background: var(--stoop-border);
	}
}

/* Links under a menu item (Settings → Menu, indented lines): in the row,
 * the item opens a small menu below it (a <details>, no script needed);
 * in the phone menu they're set in under it. The item looks like the
 * links beside it (menu.js copies their look; without it, the header's
 * own color); the small menu uses the page's colors, whatever the bar's. */
.site-menu details.site-sub {
	position: relative;
}
.site-menu .site-sub > summary {
	list-style: none;
	cursor: pointer;
	font-weight: 600;
	color: inherit;
	white-space: nowrap;
}
.site-menu .site-sub > summary::-webkit-details-marker {
	display: none;
}
.site-menu .site-sub > summary::after {
	content: "";
	display: inline-block;
	width: 0.35em;
	height: 0.35em;
	margin: 0 0 0.22em 0.45em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}
.site-menu .site-sub[open] > summary::after {
	transform: rotate(-135deg);
	margin-bottom: -0.05em;
}
.site-menu .site-sub > ul {
	position: absolute;
	z-index: 30;
	top: calc(100% + 0.5rem);
	left: -0.75rem;
	min-width: 11rem;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0;
	margin: 0;
	padding: 0.4rem 0;
	list-style: none;
	text-align: left;
	background: var(--stoop-bg);
	border: 1px solid var(--stoop-border);
	border-radius: var(--stoop-radius, 0.5rem);
	box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 0.2);
}
/* The last items: open leftward, away from the edge. */
.site-menu li.has-sub:nth-last-child(-n + 2) .site-sub > ul {
	left: auto;
	right: -0.75rem;
}
.site-menu .site-sub > ul li {
	display: block;
	margin: 0;
}
.site-menu .site-sub > ul a {
	display: block;
	padding: 0.45rem 1rem;
	color: var(--stoop-accent);
	background: none;
	white-space: nowrap;
	text-shadow: none;
}
.site-menu .site-sub > ul a:hover,
.site-menu .site-sub > ul a:focus-visible {
	background: color-mix(in srgb, var(--stoop-accent) 10%, transparent);
	text-decoration: none;
}
.site-menu-toggle .site-sub-list {
	display: block;
	margin: 0;
	padding: 0 0 0.35rem 1rem;
	list-style: none;
}
.site-menu-toggle .site-sub-list a {
	font-size: 0.95em;
}
.site-menu-toggle .site-sub-label {
	display: block;
	padding: 0.6rem 1.25rem 0.2rem;
	font-weight: 600;
	color: var(--stoop-muted);
}


/* ---- Cassette futurism, on top of Drift ---- */

/*
 * Cassette futurism: the future as seen in 1979, built on the default
 * theme (theme.json "extends"). The page is beige hardware with stencil
 * labels and a warning stripe; the content sits on a monitor set into it,
 * amber text glowing on a dark screen. Share Tech Mono (bundled, OFL)
 * throughout. One look in light and dark mode.
 */
@font-face {
	font-family: "Share Tech Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/ShareTechMono-Regular.woff2") format("woff2");
}

:root {
	--stoop-bg: #cfc5ae;
	--stoop-surface: #120d05;
	--stoop-text: #ffb547;
	--stoop-muted: #c28a3a;
	--stoop-accent: #ffd27a;
	--stoop-border: #8b806a;
	--stoop-panel-text: #2a2519;
	--stoop-stripe: #e8b400;
	--stoop-font:
		"Share Tech Mono", ui-monospace, Menlo, Consolas, "DejaVu Sans Mono",
		monospace;
	--stoop-font-heading: var(--stoop-font);
	--stoop-width: 46rem;
	--stoop-radius: 0.4rem;
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root {
		--stoop-bg: #cfc5ae;
		--stoop-surface: #120d05;
		--stoop-text: #ffb547;
		--stoop-muted: #c28a3a;
		--stoop-accent: #ffd27a;
		--stoop-border: #8b806a;
	}
}

/* The hardware: a moulded panel with fine ribs. */
body {
	background:
		repeating-linear-gradient(
			to bottom,
			rgba(0, 0, 0, 0.035) 0 1px,
			transparent 1px 6px
		),
		var(--stoop-bg);
	font-size: 0.98rem;
	letter-spacing: 0.01em;
}

/* The top bar: a labelled panel over a warning stripe. */
.site-header {
	position: relative;
	max-width: none;
	margin: 0;
	padding: 0.9rem max(1rem, calc((100% - var(--stoop-width)) / 2) + 1rem) 1.3rem;
	color: var(--stoop-panel-text);
	background: var(--stoop-bg);
	border-bottom: 2px solid var(--stoop-panel-text);
}
.site-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 0.5rem;
	background: repeating-linear-gradient(
		-45deg,
		var(--stoop-stripe) 0 0.6rem,
		var(--stoop-panel-text) 0.6rem 1.2rem
	);
}
.site-menu,
.site-menu a {
	color: var(--stoop-panel-text);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	text-decoration: none;
}
.site-menu .site-name a {
	padding: 0.1rem 0.4rem;
	border: 2px solid var(--stoop-panel-text);
	color: var(--stoop-panel-text);
	font-weight: 400;
}
:is(.site-menu a, .site-menu .site-name a):hover {
	background: var(--stoop-panel-text);
	color: var(--stoop-bg);
}

/* The monitor: the page's content on a dark screen in a bezel. */
main {
	margin: 1.5rem auto 2rem;
	padding: 1.5rem clamp(1rem, 3vw, 2rem);
	color: var(--stoop-text);
	background:
		radial-gradient(
			ellipse at center,
			color-mix(in srgb, var(--stoop-text) 6%, transparent),
			transparent 70%
		),
		var(--stoop-surface);
	border: 0.6rem solid color-mix(in srgb, var(--stoop-bg) 82%, #000);
	border-radius: 1rem;
	box-shadow:
		inset 0 0 2.5rem rgba(0, 0, 0, 0.75),
		0 0 0 2px var(--stoop-panel-text),
		0 0.4rem 0 color-mix(in srgb, var(--stoop-bg) 60%, #000);
	text-shadow: 0 0 0.35rem
		color-mix(in srgb, var(--stoop-text) 45%, transparent);
}
/* Scan lines on the screen. */
main::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	border-radius: 0.5rem;
	background: repeating-linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.18) 0 1px,
		transparent 1px 3px
	);
}
main {
	position: relative;
}
main img {
	filter: sepia(0.25) contrast(1.05);
}

h1,
h2,
h3 {
	font-family: var(--stoop-font-heading);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--stoop-accent);
}
h1::before {
	content: "> ";
	color: var(--stoop-muted);
}
a {
	color: var(--stoop-accent);
	text-decoration-style: dotted;
	text-underline-offset: 0.25em;
}
a:hover {
	background: var(--stoop-text);
	color: var(--stoop-surface);
	text-shadow: none;
	text-decoration: none;
}

/* Boxes on the screen: thin lines with a label tab, not cards. (A post's
 * page is itself the screen: main.post.) */
.block,
.post:not(main) {
	padding: 1rem 0 1.25rem;
	border: 0;
	border-top: 1px solid var(--stoop-muted);
	background: none;
	box-shadow: none;
}
.block > h2:first-child {
	display: inline-block;
	margin-top: -1.75rem;
	padding: 0 0.5rem;
	background: var(--stoop-surface);
	font-size: 0.95rem;
}
.block.block-cover {
	border: 0;
}
.post-item {
	padding: 0.7rem 0;
	border-bottom: 1px dashed
		color-mix(in srgb, var(--stoop-muted) 60%, transparent);
}
.block-links.style-buttons a,
.search-form button {
	border: 1px solid var(--stoop-text);
	border-radius: 0;
	background: none;
	color: var(--stoop-text);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
.block-links.style-buttons a:hover,
.search-form button:hover {
	background: var(--stoop-text);
	color: var(--stoop-surface);
}
.search-form input[type="search"] {
	border-color: var(--stoop-muted);
	border-radius: 0;
	background: transparent;
	color: var(--stoop-text);
}
.timeline-year::before {
	border-radius: 0;
	background: var(--stoop-text);
	box-shadow: 0 0 0.5rem var(--stoop-text);
}
.timeline-years ol,
.timeline-year {
	border-color: var(--stoop-muted);
}
.search-result mark,
.search-page mark {
	background: var(--stoop-text);
	color: var(--stoop-surface);
	text-shadow: none;
}
::selection {
	background: var(--stoop-text);
	color: var(--stoop-surface);
}
/* The phone menu's button sits on the hardware. */
.site-menu-toggle summary {
	color: var(--stoop-panel-text);
	text-shadow: none;
}
.site-menu-toggle > ul a {
	color: var(--stoop-panel-text);
}
/* The phone's year strip sits on the screen. */
.timeline-years {
	background: var(--stoop-surface);
}
/* The year bar: the screen's own hover (amber block, dark text). */
.timeline-years a:hover,
.timeline-years a:focus-visible {
	background: var(--stoop-text);
	color: var(--stoop-surface);
	text-shadow: none;
}
