* {
	box-sizing: border-box;
}

body {
	font-family: "Open Sans", "Fira Sans", "DejaVu Sans", "Bitstream Vera Sans", Roboto, Ubuntu, Helvetica, Calibri, Arial, sans-serif;
	background: #eee;
	max-width: 75rem;
	padding: 1em 0.75em 2em;
	margin: 0 auto;
}

h2 {
	text-align: center;
	font-size: 3em;
	line-height: 1.2em;
	margin: 1rem 0 2rem 0;
}

h3 {
	font-size: 2em;
	margin: 3rem 0 1.5rem 0;
	clear: both;
}

body > div:last-child {
	padding-top: 2rem;
}

a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

ul a:hover {
	text-decoration: dashed underline rgba(0,0,0,.8);
}

ul a:visited {
	color: #666;
}

blockquote {
	padding: 1.5em 1em;
	margin: 1em 1em 1.5rem;
	transform: rotate(0.2deg);
	position: relative;
}

p:first-child {
	margin-top: 0;
}

p:last-child {
	margin-bottom: 0;
}

@media screen and (min-width: 30rem) {
	body > ul {
		text-align: justify;
	}
}

.toots {
	max-width: 600px;
	list-style: none;
	padding: 0;
	margin: 0 auto; /* Center the feed horizontally */
	font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
}

.toot {
	border-bottom: 1px solid #ccc;
	padding: 1rem;
	text-align: left; /* Ensure the text within toots is left-aligned */
}

/* Posting user. */
.toot .user {
	display: flex;
	flex-flow: column wrap;
	justify-content: space-evenly;
	align-content: flex-start;
	height: 46px;  /* Avatar height. */
	column-gap: 0.5rem;

	text-decoration: none;
	color: inherit;
}

.toot .avatar {
	border-radius: 4px;
}

.toot .display-name {
	font-weight: bold;
	display: block;
}

.toot .user:hover .display-name {
	text-decoration: underline;
}

.toot .username {
	display: block;
	margin-right: 1em;
	color: #999;
}

/* Boosting user is smaller and above the posting user. */
.toot .boost {
	height: 23px;
	margin-bottom: 0.25rem;
	column-gap: 0.25rem;
}

.toot .boost:before {
	content: "♺";
	font-size: 140%;
}

.toot .boost .username {
	display: none;
}

.toot .permalink {
	text-decoration: none;
	display: block;
	color: #999;
	float: right;
}

.toot .permalink:hover {
	text-decoration: underline;
}

.toot .body {
	clear: both;
	margin-top: 1em;
}

.toot .body a {
	overflow-wrap: anywhere;
}

/* Weird trick to keep the text in the page but not display it. */
.toot .body .invisible {
	display: inline-block;
	font-size: 0;
	line-height: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.toot .body .ellipsis::after {
	content: "…";
}

.toot .attachment {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 4px;
}

.toot .attachment img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
