:root {
		--custom-shadow-color: #00000022;
		--custom-background-color: white;
		--custom-background-bg-color: snow;
		--custom-foreground-color: black;
		--custom-highlight-color: tomato;
		--custom-highlight-muted: tomato;
}

@media (prefers-color-scheme: dark) {
	:root {
		--custom-shadow-color: #333333;
		--custom-background-color: black;
		--custom-background-bg-color: #242424;
		--custom-foreground-color: white;
		--custom-highlight-color: #FF7300;
		--custom-highlight-muted: #FF730099;
	}
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrains_Mono/static/JetBrainsMono-Medium.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrains_Mono/static/JetBrainsMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

body {
	background-color: var(--custom-background-bg-color);
	color: var(--custom-foreground-color);
	border-color: var(--custom-foreground-color);
}

#homewrapper {
	font-family: "JetBrains Mono";
	width: 100vw;
	height: 100vh;
	position: relative;
	perspective: 900px;

	display: flex;
	align-items: center;
	justify-content: center;
}

#homewrapper div {
	display: flex;
}

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

.row {
	display: flex;
	flex-direction: row;
}

.fill {
	flex: 1;
}

#home-card-wrapper {
	z-index: 10;
	width: 4.5in;
	min-height: 2.8in;
	border: solid;
	padding: 10px;
	gap: 10px;
	font-weight: 700;
	border-radius: 5px;
	box-shadow: var(--card-shadow-x, 0px) var(--card-shadow-y, 60px) 80px 10px #00000044;
	background-color: var(--background-color);
	transform: rotateX(var(--card-rotate-x, 0deg)) rotateY(var(--card-rotate-y, 0deg));
	transform-style: preserve-3d;
	transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}

#home-card-wrapper.card-tilt-enabled {
	will-change: transform, box-shadow;
}

#home-card-wrapper svg {
	height: 3em;
	width: auto;
	fill: var(--custom-foreground-color);
}

#home-blockquote {
	margin-left: 20px;
	border-left: solid;
	border-width: 3px;
	padding-left: 20px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

#home-card-wrapper .nav-link {
	color: var(--custom-highlight-color);
	text-decoration-line: underline;
	text-transform: uppercase;
}

#home-post-list {
	position: absolute;
	bottom: 10px;
	left: 10px;
	display: flex;
	flex-direction: column;
	color: var(--custom-highlight-muted);
}

#home-post-list a{
	color: var(--custom-highlight-muted);
}

a {
	color: var(--custom-highlight-color)
}

#default-wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column-reverse;
}

#body-wrapper {
	padding: 20px;
}

#default-nav-wrapper {
	font-family: "JetBrains Mono";
	display: flex;
	flex-direction: row;
	position: sticky;
	bottom: 0px;
	z-index: 10;
	align-items: center;
	justify-content: center;
	background-color: var(--custom-background-bg-color);
	padding: 20px;
	text-transform: uppercase;
	font-weight: 700;
	gap: 30px;
}

.nav-search-button {
	border: 0;
	padding: 0;
	font: inherit;
	text-transform: inherit;
	color: var(--custom-highlight-color);
	background: transparent;
	text-decoration: underline;
	cursor: pointer;
}

#search-dialog {
	width: min(680px, calc(100vw - 40px));
	max-height: min(720px, calc(100vh - 40px));
	margin: auto;
	padding: 20px;
	border: 2px solid var(--custom-background-bg-color);
	border-radius: 0;
	color: var(--custom-background-bg-color);
	background: var(--custom-highlight-color);
	font-family: "JetBrains Mono";
}

#search-dialog[open] {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

#search-dialog::backdrop {
	background: #00000033;
}

.search-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	font-weight: 700;
	text-transform: uppercase;
}

.search-close {
	border: 0;
	padding: 0;
	color: inherit;
	background: transparent;
	font: inherit;
	text-decoration: underline;
	text-transform: uppercase;
	cursor: pointer;
}

#search-input {
	width: 100%;
	border: 2px solid var(--custom-background-bg-color);
	border-radius: 0;
	padding: 12px;
	color: var(--custom-background-bg-color);
	background: transparent;
	font: inherit;
	outline: none;
}

#search-input::placeholder {
	color: var(--custom-background-bg-color);
	opacity: 0.65;
}

#search-input:focus {
}

#search-status {
	font-size: 12px;
	text-transform: uppercase;
}

#search-results {
	overflow-y: auto;
	border-top: 1px solid var(--custom-background-bg-color);
}

.search-result {
	display: block;
	padding: 14px;
	border-bottom: 1px solid var(--custom-background-bg-color);
	color: var(--custom-background-bg-color);
	text-decoration: none;
}

.search-result:hover,
.search-result:focus-visible {
	background: var(--custom-background-bg-color);
	color: var(--custom-highlight-color);
	outline: 0;
}

.search-result-title {
	font-weight: 700;
	text-transform: uppercase;
}

.search-result-excerpt {
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.5;
}

@media (max-width: 640px) {
	#default-nav-wrapper {
		flex-wrap: wrap;
		gap: 12px 20px;
	}

	#search-dialog {
		width: calc(100vw - 20px);
		max-height: calc(100vh - 20px);
		padding: 14px;
	}
}

@media (max-width: 480px) {
	#home-card-wrapper {
		width: calc(100vw - 24px);
		min-height: 0;
		aspect-ratio: 4.5 / 2.8;
		padding: 8px;
		gap: 7px;
		font-size: clamp(10px, 3vw, 13px);
	}

	#home-card-wrapper svg {
		height: 2.5em;
	}

	#home-blockquote {
		margin-left: 10px;
		padding-left: 10px;
		gap: 3px;
	}

	#home-card-wrapper > .row:last-child {
		flex-wrap: wrap;
		gap: 4px 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#home-card-wrapper {
		transform: none;
		transition: none;
	}
}

#post-wrapper {
	width: 100%;
	display: flex;
	justify-content: center;
}

#post {
	max-width: 1200px;
	width: 100%;
}

#post img {
	max-width: 100%;
	max-height: 60vh;
	object-fit: contain;
	align-self: center;
}

#post .kg-gallery-image img {
	max-width: none;
	max-height: none;
}


#article-section {
	display: flex;
	flex-direction: column;
	gap: 20px;
	font-size: 14pt;
	font-family: "Roboto Slab", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

#article-section h1,
#article-section h2,
#article-section h3,
#article-section h4,
#article-section h5,
#article-section h6 {
	font-family: "Instrument Serif", serif;
	font-style: italic;
}

#article-section blockquote {
	margin-left: 20px;
	border-left: solid;
	border-width: 2px;
	border-color: var(--custom-highlight-muted);
	padding-left: 5px;
	font-style: italic;
}

#post-header {
	display: flex;
	flex-direction: column;
}

#post-header img {
	align-self: center;
}

#post-header a {
	font-family: "JetBrains Mono";
	text-transform: uppercase;
}

#post-header h1 {
	width: 100%;
	text-align: center;
	opacity: 50%;
	font-family: "JetBrains Mono";
	text-transform: uppercase;
}

#article-section figcaption {
	font-size: 12px;
	display: flex;
	justify-content: center;
	opacity: 70%;
	font-style: italic;
}

#post-list {
	display: flex;
	flex-direction: row;
	width: 100%;
	padding: 10px;
	min-width: 0;
	max-width: 100vw;
	flex-wrap: wrap;
	padding: 20px;
	justify-content: space-between;
}

#post-list #filters {
	flex: 1;
}

#post-list #list {
	flex: 1;
  font-family: 'JetBrains Mono';
	text-transform: uppercase;
	display: flex;
	flex-direction: column;
	overflow-y: scroll;
	align-items: end;
	justify-content: center;
}

.post-row time {
	opacity: 50%;
}

.post-row a {
	text-transform: uppercase;
}

.post-row {
	font-family: "JetBrains Mono";
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	width: 100%;
	border-bottom: solid;
	border-color: var(--custom-shadow-color);
	padding-bottom: 10px;
}

.post-tag-list {
	display: flex;
	flex-direction: row;
	gap: 5px;
}

.post-tag-list p {
	color: var(--custom-foreground-color);
	opacity: 50%;
}

.post-tag-list a {
	color: var(--custom-foreground-color);
	opacity: 50%;
}

@media (max-width: 640px) {
	#post-list {
		flex-direction: column;
		align-items: stretch;
	}

	.post-row {
		min-width: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		text-align: left;
	}

	.post-row a,
	.post-row time {
		max-width: 100%;
		overflow-wrap: anywhere;
		text-align: left;
	}

	.post-tag-list {
		max-width: 100%;
		flex-wrap: wrap;
		justify-content: flex-start;
		text-align: left;
	}
}
