:root {

	--main-color: #7aa2f7;
	--accent-color: #58a6ff;
	--background-color: #1a1b26;
	--text-color: #cdd6f4;
}

/* ----- Base ----- */
body {
	color: var(--text-color);
	background: var(--background-color);
	margin: auto;
	max-width: 50rem;
	min-height: 100%;
	overflow-x: hidden;
	font-size: 1.3rem;
	padding: 0.5rem;
}

/* ----- Typography ----- */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 3.2rem 0 0.8em;
}

/*
	Heading sizes based on a modular scale of 1.25 (all)
*/
h1 {
	font-size: 2.441rem;
	line-height: 1.1;
}

h2 {
	font-size: 1.953rem;
	line-height: 1.15;
}

h3 {
	font-size: 1.563rem;
	line-height: 1.2;
}

h4 {
	font-size: 1.25rem;
	line-height: 1.3;
}

h5 {
	font-size: 1rem;
	line-height: 1.4;
}

/* differentiate from h5, somehow. color or style? */

p,
ul,
ol,
figure {
	margin: 0.6rem 0 1.2rem;
}

small {
	font-size: 1em;
	opacity: 0.8;
	/* or some other way of differentiating it from body text */
}

mark {
	background: var(--accent-color);
}

pre {
	tab-size: 4;
}

/*
	Long underlined text can be hard to read for dyslexics. Replace with bold.
*/
ins {
	text-decoration: none;
	font-weight: bolder;
}

blockquote {
	border-left: 0.3rem solid var(--theme);
	margin: 0.6rem 0 1.2rem 0;
	padding-left: 2rem;
}

blockquote p {
	font-size: 1.2em;
	font-style: italic;
}

figure {
	margin: 0;
}

a {
	color: var(--accent-color);
	padding: 0.2rem;
}


footer {
	max-width: 15%;
	margin: 1rem auto;
}

pre {
	max-width: 90vw;
	margin: 2em auto;
	padding: 1em;
	overflow-x: auto;
	background-color: #f4f4f4;
	border-radius: 4px;
}

img {
	max-width: 100%;
}
