:root {
	--bg: #1e1e1e;
	--bg-top: #181818;
	--bg-tab: #1f1f1f;
	--text: #d4d4d4;
	--muted: #858585;
	--blue: #569cd6;
	--cyan: #4ec9b0;
	--green: #6a9955;
	--orange: #ce9178;
	--yellow: #dcdcaa;
	--border: #2b2b2b;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
}

body {
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font-family:
		"Cascadia Code",
		"Cascadia Mono",
		Consolas,
		"Courier New",
		monospace;

	font-size: 16px;
	line-height: 1.75;

	display: flex;
	flex-direction: column;
}

.titlebar {
	height: 36px;
	background: var(--bg-top);
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: flex-end;
	padding-left: 12px;
}

.tab {
	height: 35px;
	min-width: 150px;
	padding: 0 18px;
	line-height: 1em;
	display: flex;
	align-items: center;
	gap: 8px;

	background: var(--bg);
	border-top: 1px solid var(--blue);

	color: #cccccc;
	font-size: 14px;
}
.tab a,
.tab a:hover,
.tab a:focus,
.tab a:active {
	color: inherit;
}
.md-icon {
	color: var(--blue);
	font-weight: 700;
}
.md-icon.close {
	color: #df0000;
	font-size:1.5em;
}

main {
	width: min(1180px, calc(100% - 48px));
	margin: auto;
	padding: 80px 0 100px;
}

.line {
	display: flex;
	position: relative;
}

.number {
	width: 48px;
	flex: 0 0 48px;
	padding-right: 18px;

	color: #5a5a5a;
	text-align: right;
	user-select: none;
}

.content {
	flex: 1;
}

.blank {
	min-height: 1.75em;
}

.hash,
.quote,
.dash {
	color: var(--blue);
}

.h1 {
	color: #dcdcaa;
	font-size: 2.1rem;
	font-weight: 700;
}

.comment {
	color: var(--green);
}

.product {
	color: #d7ba7d;
	font-weight: 700;
}

.tag {
	color: var(--cyan);
}

.date {
	color: var(--orange);
}

.muted {
	color: var(--muted);
}

code {
	color: var(--cyan);
	font-family: inherit;
}

strong {
	font-weight: bolder;
	color: #dfdfdf;
}

.cursor {
	display: inline-block;
	width: 7px;
	height: 1.15em;
	margin-left: 3px;
	background: #aeafad;
	vertical-align: -0.15em;
	animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

footer {
	height: 22px;
	background: #007acc;
}

@media (max-width: 700px) {

	body {
		font-size: 14px;
	}

	main {
		width: calc(100% - 24px);
		padding: 45px 0 60px;
	}

	.number {
		width: 30px;
		flex-basis: 30px;
		padding-right: 10px;
	}

	.h1 {
		font-size: 1.45rem;
	}
}
