/* (c) Todd Buller */

* {
	margin: 0;
	padding: 0;
}

:root {
	--bg-color: #fff;
	--img-bg-color: #f0eae0;
	--text-color: #4e4841;
	--link-color: #495e35;
	--border-color: #e8e6df;
	--other-color: #f0eae0;
	--footer-bg-color: #fff;
	--sidebar-bg-color: #495e35;
}

.hidden {
	display: none !important;
}

body,
html {
	font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5em;
	background-color: var(--other-color);
	color: var(--text-color);
	cursor: default;
	min-height: 100vh;
}

a {
	outline: none;
	cursor: pointer;
	color: var(--link-color) !important;
	text-decoration: none;
}

#page-content a:not(:has(img)) {
	border-radius: 0;
	color: var(--text-color) !important;
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-color: var(--link-color);
}

a:has(img),
img,
picture,
source {
	line-height: 0;
	text-decoration: none;
	box-sizing: border-box;
}

menu {
	list-style: none;
}

menu a {
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-size: 0.95em;
	padding: 2px;
}

ul {
	list-style-type: square;
}

ol,
ul {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 8px;
	padding-left: 16px;
}

ul ul {
	list-style-type: circle;
	padding-left: 24px;
	margin: 8px 0 4px;
}

.style-free {
	list-style: none;
	padding: 8px 0;
}

.image-links-list ul {
	list-style: none;
	display: flex;
	flex-flow: row wrap;
	gap: 32px;
	align-items: center !important;
	justify-content: space-between !important;
	margin-top: 16px;
}

.image-links-list ul a,
.image-links-list ul a img {
	border-radius: 2px;
	opacity: 1;
}

.image-links-list ul a {
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	box-shadow: none !important;
	background-color: #fff !important;
}

.image-links-list li a img {
	width: 128px;
	height: 64px;
	object-fit: contain;
	object-position: center center;
	padding: 8px;
	margin: auto;
	border-radius: 3px;
	background-color: #fff !important;
}

h1 {
	font-size: 1.5em;
	line-height: 1.25em;
	margin-top: -8px;
}

h2 {
	font-size: 1.4em;
	line-height: 1.25em;
	letter-spacing: 1px;
	margin-top: 4px;
	font-weight: 700;
}

#page-6 h2 {
	font-size: 1em;
	line-height: 1.25em;
	letter-spacing: 0;
	margin-top: 0;
}

h3 {
	font-size: 1.25em;
	line-height: 1.25em;
}

h4,
h5,
h6 {
	font-size: 1em;
	font-weight: 600;
	line-height: 1.25em;
}

h1,
h2,
h3 {
	font-weight: 700;
	letter-spacing: 0.5px;
}

strong {
	font-weight: 700;
}

#page-1 header {
	position: absolute;
	top: 0;
	z-index: 99;
}

#site-title {
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 1em;
	font-weight: 600;
	text-decoration: none;
	color: var(--link-color) !important;
	border-radius: 0;
	font-size: 1.4em;
	padding: 16px 0;
}

#page-1 #site-title {
	padding: 31px 16px 31px 19px;
	background-color: #fff !important;
	box-shadow: 0 0 8px rgba(0, 0, 0, .05);
}

.article-title {
	line-height: 1.25em;
}

hr {
	height: 0;
	box-shadow: none;
	width: 100%;
	box-sizing: border-box;
	border: none;
	border-top: 1px dashed var(--border-color);
}

#cover,
#footer-content,
#header-content,
#page-content {
	width: 100%;
	max-width: 1280px;
	box-sizing: border-box;
	margin: 0 auto;
}

#cover {
	position: relative;
	z-index: 33;
	overflow: hidden;
	height: 500px;
	width: 100%;
	max-width: 100%;
}

#cover img {
	width: auto;
	height: auto;
	position: absolute;
	top: 0;
	right: 0;
	background-color: var(--other-color);
}

@media only screen and (min-width: 1280px) {
	#cover {
		height: 80vh;
	}

	#cover img {
		width: auto;
		min-width: 100vw;
		height: auto;
		min-height: 80vh;
		top: auto;
		bottom: 0;
	}
}

article {
	padding-bottom: 64px;
}

#page-content {
	background-color: var(--bg-color);
	box-sizing: border-box;
	width: 100%;
}

#page-content p {
	width: 100%;
	max-width: 600px;
	box-sizing: border-box;
}

#page-1 article {
	padding-top: 32px;
}

#page-1 .article-title {
	display: none;
}

#sidebar {
	width: 300px;
	min-width: 300px;
	max-width: 300px;
	position: relative;
	top: -28px;
}

#page-1 #sidebar {
	top: -96px;
	margin-bottom: -96px;
	z-index: 99;
}

#sidebar-content a:not(:has(img)) {
	color: #fff !important;
	text-decoration-color: lightgray !important;
}

#sidebar-content {
	background-color: var(--sidebar-bg-color);
	color: var(--bg-color);
	padding: 44px 32px;
}

.logo {
	margin-top: 8px;
}

@media only screen and (min-width: 996px) {
	#page-content.row #sidebar {
		margin: 0 32px 0 0;
	}

	#page-content.row.reverse #sidebar {
		margin: 0 0 0 32px;
	}
}

#sidebar h1 {
	font-size: 1.375em;
	line-height: 1em;
}
#sidebar h3 {
	font-size: 1.15em;
	line-height: 1em;
	margin-bottom: -16px;
}

#pictures {
	box-sizing: border-box;
	margin: -10px -6px 0 -4px;
	gap: 4px;
	padding: 0 0 12px;
}

#pictures a,
#pictures img {
	border-radius: 2px;
}

#pictures a {
	box-sizing: border-box;
	width: calc(calc(100% / 5) - 5px);
}

#pictures a:hover img,
.image-links-list ul a:hover {
	box-shadow: 0 0 3px rgba(0, 0, 0, .33);
}

@media only screen and (max-width: 1280px) {

	#pictures a,
	.w150 div {
		width: calc(calc(100% / 4) - 5px);
	}
}

@media only screen and (max-width: 1024px) {
	#pictures a {
		width: calc(calc(100% / 3) - 3px);
	}
}

#pictures img {
	display: block;
	width: 100%;
	box-sizing: border-box;
	background-color: var(--img-bg-color);
}

.square img {
	aspect-ratio: 1/1;
	object-fit: cover;
}

.lite {
	opacity: 0.125;
	font-size: 0.75em;
}

footer {
	width: 100%;
}

#footer-content {
	background-color: var(--footer-bg-color);
	border-top: 1px solid var(--border-color);
}

#site-meta {
	font-size: 0.8em;
	font-weight: 400;
	line-height: 1.5em;
	opacity: 0.5;
	letter-spacing: 1px;
	margin: -6px 0 -10px 0;
}

#site-meta a {
	text-decoration: none;
	color: var(--text-color) !important;
}

img:not(.bg-less) {
	background-color: var(--bg-color);
}

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

.text-right {
	text-align: right;
}

.uppercase {
	text-transform: uppercase;
}

.italic {
	font-style: italic;
}

.border-rounded {
	border-radius: 4px;
}

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

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

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

.wrap {
	flex-wrap: wrap;
}

.nowrap {
	flex-wrap: nowrap;
}

.grow {
	flex-grow: 1;
}

.center {
	align-items: center;
}

.middle {
	justify-content: center;
}

.end {
	align-items: end;
}

.gap2 {
	gap: 2px;
}

.pad2 {
	padding: 2px;
}

.gap4 {
	gap: 4px;
}

.gap8 {
	gap: 8px;
}

.pad14 {
	padding: 14px;
}

.gap16 {
	gap: 16px;
}

.pad16 {
	padding: 16px;
}

.gap32 {
	gap: 32px;
}

menu.gap32 {
	gap: 24px 32px;
}

.pad32 {
	padding: 32px;
}

.xpad32 {
	padding-left: 32px;
	padding-right: 32px;
}

.x1pad32 {
	padding-top: 32px;
}

@media only screen and (max-width: 600px) {
	article {
		width: 100vw;
	}

	#page-1 #sidebar,
	#sidebar {
		position: static;
		margin: 0;
	}

	body:not(#page-1) #sidebar {
		top: -28px;
	}

	#page-content.nowrap {
		flex-wrap: wrap;
	}

	#page-content.row {
		flex-direction: row-reverse;
	}

	#page-content.row.reverse {
		flex-direction: row;
	}

	.xpad32 {
		padding-left: 24px;
		padding-right: 24px;
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg-color: #000;
		--img-bg-color: #111;
		--text-color: #fff;
		--border-color: #111;
		--other-color: #111;
		--footer-bg-color: #000;
		--link-color: #fff;
	}
	#page-1 #site-title {
		color: #495e35 !important;
	}
	#sidebar-content {
		color: var(--text-color) !important;
	}
	article img {
		opacity: .8;
	}
	#cover {
		filter: brightness(.875);
	}
}