@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
	--background: #ffffff;
	--text: #121212;
	--grey: #888888;
	--blue: #1d64f3;
	--red: #c0392b;
	--green: #27ae60;
	--yellow: #f8cb12;
	--brand: #f22952;
}
html {
	-webkit-overflow-scrolling: touch;
}
body {
	background: var(--background);
	color: var(--text);
	margin: 0;
	font-family: "Inter", system-ui, sans-serif;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
a,
a:focus,
a:active {
	color: var(--blue);
	text-decoration: none;
}
a.red {
	color: var(--red);
}
a:hover {
	text-decoration: underline;
}
header {
	position: sticky;
	top: 0px;
	padding: 1rem 0px;
	margin-bottom: 1rem;
	background-color: var(--background);
	z-index: 10;
}
header nav {
	margin-bottom: 0.5rem;
}
header nav a {
	text-transform: uppercase;
	font-family: "Inter Tight", system-ui, sans-serif;
	font-weight: bold;
	font-size: 0.9rem;
}
section {
	margin: 1rem 0px;
}
footer {
	text-align: center;
	padding: 2rem 1rem;
}
section.sticky {
	margin: 0px;
	position: sticky;
	bottom: 0px;
	background-color: var(--background);
	z-index: 10;
	padding: 1rem 0px;
}
hr {
	border: none;
	border-bottom: 0.25rem solid var(--grey);
	border-color: var(--grey);
	background-color: var(--grey);
	color: var(--grey);
	opacity: 0.2;
	margin: 2rem 0px;
}
ul,
ol {
	padding-inline-start: 1.5rem;
}
label {
	font-size: 1rem;
	font-weight: bold;
	line-height: 1;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
	display: block;
	border: 0.2rem solid var(--text);
	background: var(--background);
	color: var(--text);
	font-family: inherit;
	font-size: 1rem;
	width: 100%;
	padding: 0.5rem 1rem;
	border-radius: 0rem;
	box-sizing: border-box;
	height: 2.5rem;
	outline: none;
}
input[type="checkbox"] {
	border: 0.2em solid currentColor;
	accent-color: var(--blue);
	width: 1.5em;
	height: 1.5em;
	margin: 0px;
}
textarea {
	resize: vertical;
	field-sizing: content;
	height: auto;
}
textarea[rows="2"] {
	min-height: 5rem;
}
::placeholder {
	color: var(--text);
	opacity: 0.5;
}
button {
	background: var(--text);
	color: var(--background);
	border: 0.2rem solid var(--text);
	box-sizing: border-box;
	border-radius: 0rem;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1;
	padding: 0.5rem 1rem;
	cursor: pointer;
	text-decoration: none;
	margin: 0px;
	font-weight: bold;
}
button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
button.ghost {
	background: none;
	color: var(--text);
}
nav .separator {
	margin: 0px 0.5rem;
}
fieldset {
	border-radius: 0.25rem;
	margin-bottom: 1rem;
}
details {
	margin: 1rem 0px;
}
summary {
	font-size: 1.25rem;
	font-weight: 500;
	cursor: pointer;
}
[v-cloak] {
	display: none;
}
.wrap {
	width: 100%;
	max-width: 720px;
	margin-inline: auto;
	padding: 0px 1rem;
	box-sizing: border-box;
}
.mini-wrap {
	width: 100%;
	max-width: 480px;
}
.small {
	font-size: 0.9rem;
}
.thin {
	font-weight: 300;
}
.medium {
	font-weight: 500;
}
.semibold {
	font-weight: 600;
}
.bold {
	font-weight: 700;
}
.italic {
	font-style: italic;
}
.flex {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.flex.end {
	align-items: end;
}
.space-between {
	justify-content: space-between;
}
.flex-1 {
	flex: 1;
}
.spacer {
	height: 1rem;
}
.page-title {
	font-size: 2.5rem;
	font-weight: 200;
	line-height: 1;
	margin: 0px;
}
.field {
	margin: 1rem 0px;
}
.field .help {
	font-size: 0.9rem;
	font-weight: 500;
}
.field .field-inner {
	margin-bottom: 1rem;
}
.channels .channel {
	margin: 1rem 0px;
}
.channels .channel a.title {
	font-weight: 500;
	font-size: 1.25rem;
}
.channels .channel div.meta {
	margin: 0.25rem 0px;
}
.messages .message {
	border: none;
	border-left: 0.3rem solid var(--brand);
	padding: 0.25rem;
	padding-left: 0.5rem;
	margin: 1rem 0px;
}
.messages .message.mine {
	border-left-color: var(--grey);
}
.messages .message.info {
	border-left-color: var(--yellow);
}
.break-word {
	overflow-wrap: break-word;
	word-wrap: break-word;
	word-break: break-word;
}
.empty {
	margin: 6vh auto;
}
#toast {
	background-color: var(--text);
	color: var(--background);
	text-align: center;
	box-sizing: border-box;
	position: fixed;
	z-index: 20;
	left: 0px;
	right: 0px;
	top: 0rem;
	max-height: 0;
	margin: auto;
	overflow: hidden;
	font-size: 1em;
	transition: max-height 0.25s ease-in;
	line-height: 2;
}
#toast.show {
	max-height: 5rem;
}
#toast.error {
	background: var(--red);
}
#toast.success {
	background: var(--green);
}
#members li {
	margin: 1rem;
}
.loader {
	width: 2rem;
	height: 2rem;
	background: var(--text);
	margin: 3rem auto;
	position: relative;
}
.loader:before {
	content: "";
	display: block;
	background: var(--background);
	width: 1.4rem;
	height: 1.4rem;
	position: absolute;
	top: 0.3rem;
	left: 0.3rem;
	animation: loading 2s linear infinite;
}
@keyframes loading {
	0% {
		height: 0rem;
		top: 0.3rem;
		bottom: auto;
	}
	25% {
		height: 1.4rem;
		top: 0.3rem;
		bottom: auto;
	}
	26% {
		height: 1.4rem;
		top: auto;
		bottom: 0.3rem;
	}
	50% {
		height: 0rem;
		top: auto;
		bottom: 0.3rem;
	}
	75% {
		height: 1.4rem;
		top: auto;
		bottom: 0.3rem;
	}
	76% {
		height: 1.4rem;
		top: 0.3rem;
		bottom: auto;
	}
	100% {
		height: 0rem;
		top: 0.3rem;
		bottom: auto;
	}
}
@media (prefers-color-scheme: dark) {
	:root {
		--background: #212121;
		--text: #efefef;
		--light-grey: #454545;
		--blue: #a4caff;
		--red: #e5052c;
	}
}
