@font-face {
	font-family: "Indieverse Typewriter";
	src: url("../fonts/IndieverseTypewriter.woff2") format("woff2"),
		url("../fonts/IndieverseTypewriter.woff") format("woff");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/* General
   ================================================================ */

:root {
	--frame: 0.625rem;
	--gap-top: 2.5rem;
	--gap-right: 1.25rem;
	--gap-bottom: 1.25rem;
	--gap-left: 1.25rem;

	/* brand colors */
	--brand-blue: #33335F;
	--brand-red: #9B1C2C;
	--brand-white: #E3DED4;
	--brand-black: #2C2A28;

	/* accents + pures */
	--accent-blue: #6D65E3;
	--accent-red: #E8073B;
	--pure-white: #FFFFFF;
	--pure-black: #000000;

	/* theme-light */
	--bg: var(--pure-white);
	--fg: var(--brand-black);
	--ink: var(--fg);

	/* semantic colors */
	--link: var(--accent-red);
	--link-alt: var(--accent-blue);
	--frame-color: var(--brand-red);
}

.theme-dark {
	/* theme-dark */
	--bg: var(--pure-black);
	--fg: var(--brand-white);
	--ink: var(--fg);

	/* semantic colors */
	--link: var(--accent-blue);
	--link-alt: var(--accent-red);
	--frame-color: var(--brand-blue);
}

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

html {
	-webkit-text-size-adjust: 100%;
	color-scheme: light dark;
	font-synthesis: none;
}

body {
	margin: 0;
	background: var(--bg);
	font-family: "Indieverse Typewriter", Courier, "Courier New", monospace;
	font-size: 0.875rem;
	line-height: 1rem;
	font-weight: normal;
	color: var(--fg);
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	border: var(--frame) solid var(--frame-color);
	pointer-events: none;
}

@media print {
	body::before {
		display: none;
	}
	.page {
		padding: 0;
	}
}

/* Elements
   ================================================================ */

p {
	margin-top: 0;
	margin-bottom: 1rem;
}

p:last-child {
	margin-bottom: 0;
}

ol,
ul {
	margin-top: 0;
	margin-bottom: 1rem;
}

ol {
	padding-left: 10ch;
}

ul {
	padding-left: 5ch;
}

ol:last-child,
ul:last-child {
	margin-bottom: 0;
}

li {
	margin-bottom: 1rem;
}

li:last-child {
	margin-bottom: 0;
}

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

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Typography
   ================================================================ */

/* base */
h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance;
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
}

h1 {
	text-align: center;
	margin-top: 0;
	margin-bottom: 2rem;
	letter-spacing: 0.5ch;
	text-transform: uppercase;
}

.getterms-document-embed > div > h1 {
	display: none;
}

h2 {
	margin-top: 3rem;
	margin-bottom: 1rem;
	text-transform: uppercase;
}

h3 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	text-transform: uppercase;
}

h2 + h3 {
	margin-top: 0;
}

h4 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	letter-spacing: 0.5ch;
}

b,
strong {
	font-weight: inherit;
}

a b,
a strong {
	text-decoration: none;
}

i,
em {
	font-style: normal;
}

h2,
u,
b,
strong {
	text-decoration-line: underline;
	text-decoration-thickness: 0.1em;
	text-decoration-style: solid;
	text-underline-offset: 0.1em;
	text-decoration-skip-ink: none;
	text-decoration-color: inherit;
}

/* Links
   ================================================================ */

a {
	word-wrap: break-word;
	overflow-wrap: break-word;
	overflow-wrap: anywhere;
	text-decoration-line: underline;
	text-decoration-thickness: 0.1em;
	text-decoration-style: solid;
	text-underline-offset: 0.1em;
	text-decoration-skip-ink: none;
	text-decoration-color: inherit;
}

a:link,
a:visited {
	color: var(--link);
}

a:active,
a:visited:active,
a.active,
a[aria-current="page"] {
	color: var(--link-alt);
}

a:focus {
	outline: 0.125rem solid currentColor;
	outline-offset: 0.125rem;
}

@supports selector(:focus-visible) {
	a:focus {
		outline: none;
	}
	a:focus-visible {
		outline: 0.125rem solid currentColor;
		outline-offset: 0.125rem;
	}
}

/* Page
   ================================================================ */

.page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding:
		calc(var(--frame) + var(--gap-top))
		calc(var(--frame) + var(--gap-right))
		calc(var(--frame) + var(--gap-bottom))
		calc(var(--frame) + var(--gap-left));
}

.page-main {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1;
	width: 100%;
	max-width: 75ch;
	margin: 0 auto;
}

.site-header {
	display: flex;
	justify-content: center;
	text-align: center;
}

.brand {
	display: inline-block;
}

.logo {
	display: block;
	width: 100%;
	max-width: 15rem;
	height: auto;
}

.home .logo {
	width: 30rem;
	max-width: 100%;
}

.content:has(h1) {
	margin-top: 2rem;
}

.nav {
	margin-top: 4rem;
}

.nav p {
	text-align: center;
	text-wrap: balance;
}

.site-footer {
	margin-top: 5rem;
}

.site-footer p {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem 2ch;
	text-align: center;
	text-wrap: balance;
}

.site-footer a,
.site-footer .theme-toggle {
	display: inline-block;
}

.site-footer .theme-toggle {
	min-width: 5ch;
	padding: 0;
	border: 0;
	margin: 0;
	appearance: none;
	background: transparent;
	font: inherit;
	line-height: inherit;
	color: var(--link);
	text-align: center;
	text-decoration-line: underline;
	text-decoration-thickness: 0.1em;
	text-decoration-style: solid;
	text-underline-offset: 0.1em;
	text-decoration-skip-ink: none;
	text-decoration-color: inherit;
	opacity: 1;
}

.site-footer .theme-toggle:not(:disabled) {
	cursor: pointer;
}

.site-footer .theme-toggle:not(:disabled):active {
	color: var(--link-alt);
}

.site-footer .theme-toggle:focus {
	outline: 0.125rem solid currentColor;
	outline-offset: 0.125rem;
}

@supports selector(:focus-visible) {
	.site-footer .theme-toggle:focus {
		outline: none;
	}
	.site-footer .theme-toggle:focus-visible {
		outline: 0.125rem solid currentColor;
		outline-offset: 0.125rem;
	}
}

/* Contact Form
   ================================================================ */

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	width: 100%;
}

.form-group {
	display: flex;
	flex-direction: column;
}

label {
	margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
	padding: 0.5rem;
	border: 0.125rem solid var(--ink);
	border-radius: 0;
	margin: 0;
	background: transparent;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form button:focus {
	outline: 0.125rem solid currentColor;
	outline-offset: 0.125rem;
}

@supports selector(:focus-visible) {
	.contact-form input:focus,
	.contact-form textarea:focus,
	.contact-form button:focus {
		outline: none;
	}
	.contact-form input:focus-visible,
	.contact-form textarea:focus-visible,
	.contact-form button:focus-visible {
		outline: 0.125rem solid currentColor;
		outline-offset: 0.125rem;
	}
}

.contact-form textarea {
	resize: vertical;
}

.form-actions {
	text-align: center;
}

.contact-form button {
	cursor: pointer;
}

.contact-form .honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	padding: 0;
	border: none;
}

.flash {
	display: block;
	width: max-content;
	white-space: nowrap;
	padding: 0.5rem;
	margin: 2rem auto 0;
	background: var(--brand-black);
	color: var(--pure-white);
}

.theme-dark .flash {
	background: var(--brand-white);
	color: var(--pure-black);
}
