@font-face {
	font-family: 'seismic-shock';
	font-weight: 500;
	src: url(../fonts/SeismicShockTrial-Medium.ttf);

}

@font-face {
	font-family: 'seismic-shock';
	font-weight: 300;
	src: url(../fonts/SeismicShockTrial-Regular.ttf);

}

@font-face {
	font-family: 'seismic';
	font-family: 'seismic-shock';
	font-weight: 600;
	src: url(../fonts/SeismicShockTrial-SemiBold.ttf);

}

@font-face {
	font-family: 'seismic';
	font-weight: 600;
	src: url(../fonts/SeismicTrial-Bold.ttf);

}

@font-face {
	font-family: 'seismic';

	font-weight: 100;
	src: url(../fonts/SeismicTrial-Light.ttf);

}

@font-face {
	font-family: 'seismic';
	font-weight: 300;
	src: url(../fonts/SeismicTrial-Medium.ttf);

}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--color: #0e0e0e;;
	/* --color: #111; */
	--page-margin: 80px;
	--muted: #505050;
	--background: #d1d1d1;
	--most-muted: #a5a5a5;
	/* --background: #eee; */
	--highlight: var(--background);
	--alt-highlight: #010101cc;
	--links: var(--alt-highlight);
	--light-background: #79b698;
}


body {
	font-family: 'ABC Oracle Unlicensed Trial', sans-serif;
	line-height: 1.6;
	color: var(--color);
	background: var(--background);
	margin: 0 auto;
	max-width: 62ch;
  font-size: 16.5px;
  padding: 1em;
}

body h1:first-child,
body h2:first-child,
body h3:first-child,
body h4:first-child,
body h5:first-child,
body h6:first-child {
	margin: 0;
	border: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
a {
	font-family: 'seismic-shock', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	/* border-bottom: 1px solid #fff8; */
	padding-bottom: .8em;
}

/* Headings */
h1,
h2,
h3 {
	border-top: 1px solid var(--color);
	line-height: 1.3;
  margin: 2.5em 0 0em 0;
  padding-top: .4em;
}

h1 {
	font-size: 3em;
}

h2 {
	font-size: 2.6em;
}

h3 {
	font-size: 1.8em;
}

h4 {
	font-size: 1.4em;
	line-height: 1.3;
	margin: 2em 0 -.8em 0em;
}

/* Text */
p {
	margin: 0.8em 0;
}

a {
	color: var(--links);
	color: var(--color);
	font-weight: 600;
  background: yellow;
}

a:hover {
	text-decoration: underline;
}

/* Code blocks (xmp) */
xmp,
pre,
textarea {
	tab-size: 2em;
	font-size: .85em;
	background: #00000052;
	color: var(--color);
	padding: 1em;
	overflow-x: auto;
	font-size: 0.95em;
	line-height: 1.5;

}

.two-col {
	display: grid;
	grid-template-columns: calc(50% - .25em) calc(50% - .25em);
	grid-gap: .75em;
  width: 120%;
  margin-left: -10%;
}

.scrollable {
	width: 90vw;
	overflow-x: scroll;
	display: flex;
}

.scrollable>* {
	min-width: 500px;
	margin-right: 1em;
}

/* Lists & quotes */
ul,
ol {
	padding-left: 1.4em;
}

blockquote {
	border-left: 4px solid var(--muted);
	padding-left: 1em;
	color: var(--muted);
	margin: 1em 0;
}

img,
video {
	margin-top: 1em;
	max-width: 100%;
	max-height: 95vh;
}

.clip {
	border: 1.5px solid #3e3e3e;
  padding: 2em 3em;
  font-size: .7em;
  border-radius: 10px;
  box-shadow: 0 0 15px 5px rgba(138, 138, 138, 0.1);
  background: #dcdcdc4d;
  margin-top: 1em;
}

.clip h1,
.clip h2,
.clip h3 {
	margin: 0;
	border-top: none;
}

.feed-link {
	/* border-bottom: 1px solid var(--muted); */
	padding: .1em .3em;
	margin: 0 .5em;
	background: var(--light-background);
	color: var(--background);
}

.feed-link span {
	font-size: .6em;
}

.insert {
	background: var(--alt-highlight);
	color: var(--background);
	padding: .8em;
	--links: var(--highlight);
	--muted: var(--highlight);
}

.caption {
	margin-top: -1em;
	font-size: .8em;
	color: var(--muted);
}

.summary {
	background-color: var(--muted);
	color: var(--background);
	padding: 1em;
}

.summary::before {
	font-size: .7em;
	content: "SUMMARY";
	display: block;
	padding-bottom: .6em;
	/* text-decoration: underline; */
}


.table-of-contents::before {
	font-size: 1.2em;
  content: "TABLE OF CONTENTS";
  display: block;
  padding-bottom: 0.6em;
  color: black;
border-bottom: 1px solid;
}

.table-of-contents a {
  text-decoration: none;
	border-left: 1px solid #eee;
	background-color: none;
	background: none;
  padding-left: 1em;
	font-family: inherit;
  font-weight: 300;
}

.table-of-contents {
  background-color: #f6f6f6;
  color: var(--background);
  padding: 1em;
	margin-bottom: 4em;
	padding-bottom: 1.5em;
	width: max-content;
}

.table-of-contents h1,
.table-of-contents h2,
.table-of-contents h3,
.table-of-contents h4,
.table-of-contents h5{
	font-family:inherit;
	font-size: 1em;
	line-height: 1em;
  padding-top: .5em;
	padding-bottom: 0.4em;
  margin-bottom: 0;
  margin-top: 0;
	border-color: #bbb;
	color: black;
	display: grid;
  grid-template-columns: 2% 98%;
}

.table-of-contents h1:hover,
.table-of-contents h2:hover,
.table-of-contents h3:hover,
.table-of-contents h4:hover,
.table-of-contents h5:hover
{
	background-color: #eee;
}


/* .table-of-contents h2{font-size: 1.4em; padding-bottom: .5em;} */
/* .table-of-contents h3{font-size: 1.1em;} */
.table-of-contents h4{ opacity: .6; }

.table-of-contents h1::before,
.table-of-contents h2::before,
.table-of-contents h3::before,
.table-of-contents h4::before,
.table-of-contents h5::before
{
	display: none;
}


.table-of-contents p {
	margin: 0;
}

.caption::before {
	content: "^";
}

.footnote {
	display: grid;
	grid-template-columns: 4ch auto;
	font-size: .8em;
	color: var(--muted);
}

.spacer {
	height: 3em;
}

br {
	display: block;
	margin: 1px 0;
}

@media only screen and (max-width: 850px) {
	:root {
		--page-margin: 20px;
	}

	.two-col {
		grid-template-columns: 1fr;
		width: 100%;
		margin: 0;
	}
}

h1 {
	position: relative;
}
h1::before {
	font-size: .8rem;
  content: "h1";
  display: block;
	position: absolute;
	font-family: monospace;
	left: -2em;
	top: 3em;
  color: var(--muted);
}

h2 {
	position: relative;
}
h2::before {
	font-size: .8rem;
  content: "h2";
  display: block;
	position: absolute;
	font-family: monospace;
	left: -2em;
	top: 3em;
  color: var(--muted);
}

h3 {
	position: relative;
}
h3::before {
	font-size: .8rem;
  content: "h3";
  display: block;
	position: absolute;
	font-family: monospace;
	left: -2em;
	top: 2em;
  color: var(--muted);
}

h4 {
	position: relative;
}
h4::before {
	font-size: .8rem;
  content: "h4";
  display: block;
	position: absolute;
	font-family: monospace;
	left: -2em;
	top: 1em;
  color: var(--muted);
}

.WIP {
	background-color: var(--muted);
	color: var(--background);
	padding: 1em;
	font-size: 2em;
}

h5 {
	position: relative;
}
h5::before {
	font-size: .8rem;
  content: "h5";
  display: block;
	position: absolute;
	font-family: monospace;
	left: -2em;
	top: 1em;
  color: var(--muted);
}
