:root {
	--primary-light: hsl(9, 83%, 70%);
	--primary: hsl(9, 83%, 55%);
	--primary-dark: hsl(9, 83%, 45%);
	--secondary: hsl(210, 100%, 45%);
	--secondary-dark: hsl(210, 100%, 35%);
	--neutral-500: hsl(195, 11%, 33%);
	--neutral-700: hsl(195, 11%, 22%);
	--font-sans: 'basier_circleregular', system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    --font-bold: 'basier_circlebold';
}

@font-face {
    font-family: 'basier_circleregular';
    src: url('../fonts/basiercircle-regular-webfont.woff2') format('woff2'),
         url('../fonts/basiercircle-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'basier_circlemedium';
    src: url('../fonts/basiercircle-medium-webfont.woff2') format('woff2'),
         url('../fonts/basiercircle-medium-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'basier_circlesemibold';
    src: url('../fonts/basiercircle-semibold-webfont.woff2') format('woff2'),
         url('../fonts/basiercircle-semibold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'basier_circlebold';
    src: url('../fonts/basiercircle-bold-webfont.woff2') format('woff2'),
         url('../fonts/basiercircle-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

*,
*:before,
*:after {
	box-sizing: border-box;
}

body {
	font-size: 1.125rem;
	font-family: var(--font-sans);
	color: var(--neutral-700);
	width: 100%;
	min-height: 100vh;
	margin: 0;
	padding: 0 1rem;
	line-height: 1.6;
	border-block: 5px solid var(--primary);
	display: flex;
	flex-direction: column;
}

:where(h1, h2, h3, h4, h5, h6) {
    font-family: var(--font-bold);
    letter-spacing: -0.01em;
	line-height: 1.25em;
}

/* https://www.a11yproject.com/posts/how-to-hide-content/ */
.visually-hidden {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

strong {
	font-family: var(--font-bold);
}

article p {
	margin: 1rem 0 2rem;
}

article>ol {
	margin-left: 0;
	list-style-type: none;
}

article>ol li {
	margin-bottom: 1.25rem;
	counter-increment: step-counter;
	position: relative;
}

article>ol li ::before {
	content: counter(step-counter);
	color: #fff;
	font-weight: 700;
	margin-right: 8px;
	background-color: var(--primary);
	vertical-align: bottom;
	border-radius: 43px;
	padding: 0 8px;
	position: absolute;
	left: -2.5rem;
	text-align: center;
	width: 1.875rem;
	height: 1.875rem;
	line-height: 2rem;
}

article>ul {
	margin-left: 0;
	list-style-type: none;
}

article>ul li {
	margin-bottom: 1.25rem;
	counter-increment: step-counter;
	position: relative;
}

article>ul li::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='18' fill='none'%3E%3Cpath fill='%23ee5e44' d='M.164 16.713a2.093 2.093 0 0 0 1.148 1.13 2.128 2.128 0 0 0 2.303-.464l6.772-6.904a2.085 2.085 0 0 0 0-2.95L3.615.62A2.114 2.114 0 0 0 2.123 0 2.129 2.129 0 0 0 .626.607a2.095 2.095 0 0 0-.625 1.48A2.08 2.08 0 0 0 .613 3.57L6.05 9 .613 14.429A2.094 2.094 0 0 0 0 15.912c.001.275.057.548.164.801Z'/%3E%3C/svg%3E");
	content: "";
	position: absolute;
	left: -1.5rem;
	top: 3px;
	width: 11px;
	height: 18px;
}

.header {
	margin: 2rem 0;
}

.header h2 {
	display: inline;
	font-size: 2rem;
	margin: 0;
	line-height: 2rem;
}

.header nav {
	display: inline-block;
}

.header nav ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.5rem 1rem;
	flex-wrap: wrap;
}

.header nav ul li {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	font-family: var(--font-bold);
}

.header nav ul li a {
	color: var(--neutral-500);
}

.active {
	border-color: var(--primary);
}

a {
	color: var(--neutral-700);
	text-decoration: none;
	border-bottom: 2px solid #dbdbdb;
	transition: .15s;
}

a:not(.logo):hover {
	color: var(--primary);
	border-bottom: 2px solid var(--primary-light);
}

a[href^="http"]::after {
	content: "\2197";
	font-weight: initial;
	padding-left: 4px;
	font-size: 1rem;
}

a[data-footnote-ref] {
	font-family: var(--font-bold);
	margin-inline-start: .25rem;
	color: var(--primary);
}

.logo {
	text-decoration: none;
	border: 0;
	display: inline-flex;
}
/* 
.main h1,
.main h2,
.main h3,
.main h4,
.main h5,
.main h6 {
	line-height: 1.25;
	letter-spacing: -.0125em;
	margin-block-start: 1.5em;
	font-family: "interbold";
} */

img {
	max-width: 100%;
	height: auto;
}

hr {
	height: 1px;
	border: 0;
	background: #d8d8d8;
}

blockquote {
	position: relative;
	font-family: Georgia, serif;
	margin: 3rem 4rem;
}

blockquote p {
	font-style: italic;
	line-height: 1.7;
}

blockquote:before {
	content: '\201C';
	width: 3rem;
	height: 2rem;
	position: absolute;
	font-size: 7rem;
	left: -3.5rem;
	color: var(--primary);
	opacity: .5;
	top: 3px;
	line-height: 5rem;
}

blockquote cite {
	font-family: sans-serif;
	font-style: normal;
}

/* index.html styles */
.posts {
	list-style-type: none;
	font-size: 1.125rem;
	margin-top: 0;
	padding: 0;
	margin-block: 2rem;
}

.posts>*+* {
	margin-top: 2rem;
}

.posts small {
	font-size: 0.75rem;
	color: #707070;
	display: block;
}

.posts li a {
	text-decoration: none;
}

.posts li a :hover small {
	color: inherit;
}


/* single.html styles */
.post-header {
	margin-bottom: 2rem;
}

.post-header h1 {
	display: block;
	font-size: 2rem;
	margin-bottom: 1rem;
	color: var(--neutral-700);
}

.post-header time {
	display: block;
	font-size: 0.85em;
	color: #767676;
}

.toc {
	border: 1px solid #b1b1b1;
	border-radius: 1px;
	line-height: 26px;
	margin: 16px 0;
	padding: 9px 14px;
}

.toc h4 {
	font-size: 1.06em;
	color: #3d3d3d;
	margin: 0;
}

.table-of-contents {
	margin-top: 4px;
}

.table-of-contents>ul,
.table-of-contents>ol {
	margin-left: -40px;
}

.toc ul,
.toc ol {
	font-size: 0.98em;
	margin: 0;
	padding: 0 0 0 40px;
}

.toc ul {
	list-style-type: none;
}

.toc ol {
	counter-reset: item;
}

.toc ol li {
	display: block;
}

.toc ol li:before {
	content: counters(item, ".") ". ";
	counter-increment: item;
}

.avatar {
	max-width: 200px;
	border-radius: 13px;
}

.main figure {
	margin: 2rem 0;
}

.main figure img {
	display: block;
	max-width: 100%;
	margin: 0 auto;
}

.main figure figcaption {
	font-size: 1rem;
	font-style: italic;
	line-height: 22px;
	text-align: center;
	margin-top: 6px;
	padding: 0 60px;
}

.main figure figcaption h4 {
	font-style: normal;
	display: inline;
	margin: 0;
}

.main figure figcaption p {
	display: inline;
	margin: 0;
	padding-left: 8px;
}

.main code,
.main pre {
	font-family: 'Menlo', monospace;
}

.main code {
	font-size: 0.96em;
	padding: 0 5px;
}

.main pre {
	display: block;
	overflow-x: auto;
	font-size: 14px;
	font-size: 1.4rem;
	white-space: pre;
	margin: 20px 0;
	padding: 1.5rem 1.5rem;
	line-height: 1.4;
}

.main pre code {
	padding: 0;
}

.footnotes {
	font-size: 1rem;
	margin-top: 3rem;
}

.footnotes ol {
	padding-left: 1rem;
}

.main .footnotes p {
	margin: 8px 0;
	color: hsl(192, 11.6%, 42%)
}

.footer {
	font-weight: 300;
	color: #707070;
	margin: 40px 0 10px;
	font-size: 1rem;
}

.text-primary {
	color: var(--primary);
}

.font-light {
	font-weight: 300;
}

.font-bold,
.font-black {
	font-family: var(--font-bold);
}

.text-uppercase {
	text-transform: uppercase;
}

.rounded {
	border-radius: 4px;
}

.rounded-lg {
	border-radius: 12px;
}

.m-0 {
	margin: 0;
}

.mb-12 {
	margin-bottom: 3rem;
}

.block {
	display: block;
}

.flex {
	display: flex;
}

.flex-col {
	flex-direction: column;
}

.flex-wrap {
	flex-wrap: wrap;
}

.gap-4 {
	gap: 1rem
}

.gap-8 {
	gap: 2rem
}

.column-gap-1 {
	column-gap: .25rem
}

.items-baseline {
	align-items: baseline;
}

.justify-between {
	justify-content: space-between;
}

.-col2 {
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
	.wrapper {
		width: 740px;
		margin: 0 auto;
	}

	.header nav ul {
		font-size: 1.125em;
	}

	.main hr {
		margin: 0 -1rem;
	}

	.main h1 {
		font-size: 2.5rem;
	}

	.main h2 {
		font-size: 2rem;
	}

	.main h3 {
		font-size: 1.5rem;
	}

	.main h4:not([class]) {
		font-size: 1.25rem;
	}

	.main h5:not([class]) {
		font-size: 1rem;
	}

	.posts {
		font-size: 1.25em;
	}

	/* single.html styles */
	.post-header h1 {
		font-size: 2.5rem;
	}

	.main figure {
		margin: 3rem -1rem;
	}

	.main pre {
		width: 100%;
		margin: 0 -1rem;
		padding: 1.5rem 2.2rem;
	}

	.md\:grid {
		display: grid;
	}
}

/* Mailerlite adjusts */
.ml-form-embedBody.ml-form-embedBodyDefault.row-form {
	padding: 40px 40px !important;
}

#mlb2-3053225.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit {
	margin: 0 0 30px 0 !important;
}

.mailerlite-form {
	margin-top: 4rem;
}

.hidden {
	display: none;
}