@font-face {
	font-family: "Roboto Mono";
	src: url("/assets/fonts/RobotoMono-Regular.ttf") format("truetype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Roboto Mono";
	src: url("/assets/fonts/RobotoMono-Bold.ttf") format("truetype");
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}

* {
	box-sizing: border-box;
}

@supports not selector(::-webkit-scrollbar) {
    html {
        scrollbar-color: #ebeaea #242424;
    }
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-track-piece,
*::-webkit-scrollbar-corner {
    background-color: #242424;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

*::-webkit-scrollbar-thumb {
    background-color: #242424;
    background-image: linear-gradient(#ebeaea10, #ebeaea10);
    background-position: center;
    background-repeat: no-repeat;
}

*::-webkit-scrollbar-thumb:hover {
    background-image: linear-gradient(#ebeaea60, #ebeaea60);
}

html {
	font-family: "Roboto Mono", monospace;
}

body {
	margin: 0;
	line-height: 1.5;
	background-color: black;
	color: #ebeaea;
	position: relative;
}

.container {
	max-width: 48rem;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.b-header {
    color: #ebeaea80;
    font-size: 0.7rem;
    text-align: center;
    margin-bottom: 2rem;
}

.narrow-container {
	max-width: 32rem;
}

h1,
h2,
h3 {
	line-height: 1.2;
}

h1 {
	margin-top: 0;
}

h2 {
	margin-top: 2rem;
	font-size: 1.1rem;
}

a {
	color: #ebeaea;
	border-bottom: 1px dashed #ebeaea60;
	text-decoration: none;
}

a:hover {
	border-bottom: 1px solid #ebeaea;
}

small,
.secondary {
	color: #ebeaea60;
	font-size: 0.8rem;
}

.page-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
}

.visibility-form {
	margin: 0;
}

.visibility-form button {
	margin: 0;
}

.post-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid #ebeaea;
}

.post-list li {
	padding: 0.75rem 0;
	border-bottom: 1px solid #ebeaea;
}

.post-list a,
.post-list small {
	display: block;
}


form {
	margin: 1rem 0;
}

label,
input,
textarea,
button {
	display: block;
	font: inherit;
}

label {
	margin: 1rem 0 0.25rem;
}

input,
textarea,
button {
	max-width: 100%;
	border: 1px dashed #ebeaea;
	border-radius: 0;
	background: black;
	color: #ebeaea;
	padding: 0.5rem;
}

input,
textarea {
	width: 100%;
}

textarea {
	resize: vertical;
}

button {
	margin-top: 1rem;
	cursor: pointer;
}

hr {
    height: 16px;
    margin-bottom: 6px;
    margin-top: 6px;
    background: radial-gradient(#a6a6a699 .2px, transparent 1px) 0 0 / 3px 3px, transparent;
    border: none;
}

button:hover,
button[aria-selected="true"] {
	background: black;
	color: white;
	border: 1px solid #ebeaea;
}


button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 3px solid #ebeaea;
	outline-offset: 2px;
}

.tabs {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
}

.tabs button {
	margin: 0;
}

#preview-panel {
	min-height: 12rem;
	margin-top: 1rem;
	padding: 0.75rem;
	border: 1px solid #ebeaea;
}

.form-error {
	border-left: 4px solid #ebeaea;
	padding-left: 0.75rem;
}

.delete-form button {
	border-color: #ebeaea;
}

.markdown-output {
	overflow-wrap: anywhere;
}

.markdown-output img {
	max-width: 100%;
}

.markdown-output video {
	display: block;
	max-width: 100%;
}

.markdown-output .stored-image {
	display: inline-block;
	max-width: 100%;
	text-align: center;
	vertical-align: top;
}

.markdown-output .stored-image img {
	display: block;
}

.markdown-output .stored-image-caption {
	display: block;
	color: #666;
	font-size: 0.8em;
	line-height: 1.2;
	overflow-wrap: anywhere;
	text-align: center;
}

.markdown-output blockquote {
	margin-left: 0;
	padding-left: 1rem;
	border-left: 1px solid #ebeaea;
}

.markdown-output pre {
	overflow-x: auto;
	padding: 0.75rem;
	border: 1px solid #ebeaea50;
}

.markdown-output code {
	font: inherit;
}

.markdown-output table {
	width: 100%;
	border-collapse: collapse;
}

.markdown-output th,
.markdown-output td {
	padding: 0.4rem;
	border: 1px solid #ebeaea;
	text-align: left;
}

@media (max-width: 330px) {
	.container {
		padding: 1rem 0.75rem;
	}

	.page-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.5rem;
	}

	.tabs {
		flex-wrap: wrap;
	}
}
