/*
 *
 * Website design: Copyright (c) T.B.
 * https://t-5.top/
 *
 * Typeface: Oranienbaum. License: https://sleepycreekboyscamp.org/assets/Oranienbaum/OFL.txt
 *
 */

* {
	border: none;
	box-shadow: none;
	box-sizing: border-box;
	margin: 0;
	outline: none;
	padding: 0;
	cursor: default;
	user-select: none;
	-webkit-user-select: none;
}

@font-face {
	font-family: "Oranienbaum";
	src: url("/assets/Oranienbaum/Oranienbaum-Regular.ttf");
	font-weight: 400;
}

:root {
	--color: #d15757;
	--color-text: #222;
	--color-page: #fafafa;
	--color-matte: #eaeaea;
	--color-bg-menu: #444;
	--color-menu: #fafafa;
	--color-bg-title: #333;
	--color-title: #fafafa;
	--color-shadow: rgba(0,0,0,.35);
	--m-unit-4x: 80px;
	--m-unit-2x: 40px;
	--m-unit: 20px;
	--m-unit-05x: 10px;
	--m-unit-025x: 5px;
}

@media (prefers-color-scheme: dark) {
	:root {
		xx--color: #e86060;
		--color-text: #fafafa;
		--color-page: #111;
		--color-matte: #222;
		--color-shadow: transparent;
	}
	#logo {
		filter: brightness(4);
		opacity: .95;
	}
	main a:not(:has(img)) { filter: brightness(1.3) saturate(.9) }
	a img { opacity: .875 }
}

.hidden { display: none !important }

body, input, textarea, button {
	font-family: "Oranienbaum", serif;
	font-size: 19px;
}

body {
	background-color: var(--color-matte);
	color: var(--color-text);
	caret-color: var(--color);
	min-height: 100vh;
}

.text, .text *, h1, h2, h3, h4, h5, h6, label, ol, ul, ol *, ul *, blockquote, blockquote *, cite, cite *, p, p *, figcaption, address {
	user-select: text;
	-webkit-user-select: text;
}
a, a *, button, button *, input[type=submit] {
	cursor: pointer;
}
a, button, input, textarea {
	-webkit-tap-highlight-color: transparent;
}
a, img, span:has(img) { line-height: 0; }
a {
	color: var(--color);
	text-decoration: none;
}
ul, ol {
	list-style-position: inside;
	display: flex;
	flex-flow: column nowrap;
}
ol {
	padding-left: 16px;
}

/* titles and headings */

h1 {
	font-size: 1.65em;
	line-height: 1em;
	text-transform: uppercase;
	font-weight: 500;
	margin: var(--m-unit) 0;
}
h2 {
	font-size: 1.35em;
	line-height: 1.2em;
	text-transform: uppercase;
	font-weight: 500;
	margin: var(--m-unit) 0;
}
h3 {
	font-size: 1em;
	line-height: 1.2em;
	text-transform: uppercase;
	font-weight: 500;
	margin: var(--m-unit) 0;
}
#site-title {
	white-space: nowrap;
	line-height: 0;
	font-size: 1.5em;
	text-transform: uppercase;
	font-weight: 500;
	background-color: var(--color-bg-title);
	color: var(--color-title);
	display: block;
	margin-left: -24px;
	padding: 42px 14px 40px 20px;
}

/* text style */

main p { text-indent: 16px }
.large {
	font-size: 1.3em;
	line-height: 1.3em;
}
.regular { font-weight: 400 }
.bold, strong { font-weight: 700 }
.italic { font-style: italic }
.normal { font-style: normal }
.text-center { text-align: center }
.no-indent { text-indent: 0 }
.dropcap {
	font-size: 3em;
	line-height: 0;
	display: inline-block;
	margin-top: 32px;
	letter-spacing: 0;
}

.absolute {
	position: absolute;
	top: 0;
	z-index: 99;
}

/* menu */

#menu {
	list-style: none;
	white-space: nowrap;
	background-color: var(--color-bg-menu);
	position: relative;
	z-index: 8;
	padding: 30px 20px 30px 20px;
	font-size: 20px;
}
#menu a {
	color: var(--color-menu);
	display: block;
	padding: 15px 0;
}
#toggle {
	touch-action: manipulation;
	width: 80px;
	height: 80px;
	position: fixed;
	z-index: 10;
	right: 0;
	bottom: 80;
	background-color: var(--color);
	color: var(--color-page);
	padding: 20px 10px 19px 10px;
	justify-content: space-between;
	gap: 0 !important;
}
.line {
	display: block;
	width: 60px;
	border-top: 1px solid var(--color-page);
}
#close {
	display: none;
	position: fixed;
	z-index: 4;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background-color: var(--color-page);
	opacity: 0;
}
/* menu: fixed */
@media only screen and (min-width: 640px) {
	#close, #toggle { display: none }
	main { padding-right: 190px }
	#menu {
		display: flex;
		position: fixed;
		margin-left: -180px;
		top: 80px;
	}
	body:has(#cover) #menu {
		position: relative;
		top: -72px;
		right: -13.5px;
	}
}
/* menu: collapsible */
@media only screen and (max-width: 640px) {
	nav {
		display: block;
		width: auto;
		max-width: 100%;
		float: right;
		position: fixed;
		z-index: 12;
		right: 0;
		left: auto;
		bottom: 120px;
	}
	#toggle {
		position: fixed;
		right: 0;
		bottom: 60px;
	}
	#menu {
		display: none;
		position: fixed;
		right: 20px;
		bottom: 120px;
		overflow-y: scroll;
		max-height: calc(100vh - 120px);
	}
	#toggle, .non-js nav:hover #menu, .navigator #menu, .navigator #close { display: flex }
}

/* display layout style */

.row {
	display: flex;
	flex-flow: row wrap;
	gap: var(--m-unit);
}
.row.reverse { flex-direction: row-reverse }
.col, ul, ol {
	display: flex;
	flex-flow: column wrap;
	gap: var(--m-unit);
}

.nowrap { flex-wrap: nowrap }
.max { flex-grow: 1 }

.items-center { align-items: center }
.items-end { align-items: flex-end }
.content-center { justify-content: center }

.gap-4x { gap: var(--m-unit-4x) }
.gap-2x { gap: var(--m-unit-2x) }
.gap-05x { gap: var(--m-unit-05x) }
.gap-025x { gap: var(--m-unit-025x) }
.gap-0 { gap: 0 }

/* */

hr {
	width: 100%;
	height: 0;
	border-top: 1px solid var(--color-matte);
	margin: var(--m-unit) 0;
}
.vr {
	display: block;
	min-height: 100%;
	border-left: 1px solid var(--color-matte);
}
.hl {
	width: 100%;
	height: 1px;
	background-color: var(--color-text);
}
.border-transparent { border-color: transparent !important }

/* */

.page {
	width: 100%;
	max-width: 1080px;
	background-color: var(--color-page);
	margin: 0 auto;
	padding: 24px;
	@media only screen and (max-width: 640px) { padding: 24px 16px; }
}
main {
	padding-bottom: var(--m-unit-2x);
	line-height: 1.3em;
}

.color-block {
	background-color: #254144;
	display: block;
	width: 100vw;
	max-width: 100vw;
	height: 500px;
	@media only screen and (max-width: 640px) { height: 300px; }
}
#cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top left;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	filter: brightness(130%);
}

.frame-1 {
	padding: var(--m-unit-05x);
	color: var(--color-text);
	border: 2px solid var(--color-text);
}

/* figures and images */

figure {
	display: flex;
	flex-flow: column nowrap;
	gap: var(--m-unit-025x) !important;
}
figure img {
	background-color: var(--color-matte);
	box-shadow: 0 0 1px var(--color-shadow);
}
figcaption {
	font-size: 15px !important;
	line-height: 1.2em;
	font-style: italic;
}

/* archive */

#archive figure { width: 125px }
#archive figure img {
	border: 4px solid var(--color-matte);
	width: 100%;
	outline: none;
}

/* gallery */

#gallery figure {
	max-width: calc(calc(100% - var(--m-unit-2x)) / 3);
	@media only screen and (max-width: 420px) { max-width: calc(calc(100% - var(--m-unit)) / 2); }
}
#gallery figure img { max-width: 100% }

/* columned page */

.columned {
	display: flex;
	flex-flow: row wrap;
	gap: var(--m-unit);
}
.columned.reverse { flex-direction: row-reverse }
.columned figure img { max-width: 100% }
.columned .item { width: calc(calc(100% - var(--m-unit-2x) - 1px) / 2) }
.columned:has(.dropcap) .item:nth-last-child(1) { margin-top: 1.85em }
@media only screen and (max-width: 640px) {
	.columned .vr { display: none }
	.columned .item { width: 100% }
}

/* forms, inputs, buttons */

input, textarea {
	background-color: var(--color-matte);
	color: var(--color-text);
	border: 1px solid var(--color-text);
	padding: 12px 16px;
	border-radius: 0;
	cursor: text;
}
textarea { min-height: 300px }
input[type=email]:focus, input[type=text]:focus, textarea:focus {
	outline: 1px solid var(--color);
	outline-offset: 2px;
	caret-color: var(--color);
	background-color: var(--color-page);
}
input[type=submit], button, .button {
	font-weight: 400;
	font-size: 19px !important;
	line-height: 1em;
	background-color: var(--color);
	color: #fff;
	border: none;
	text-decoration: none;
	text-transform: uppercase;
	padding: 12px 8px;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
}
.zeffy {
	background-color: #5555e6;
	color: #fff;
}
.feed {
	background-color: #ff8000;
	color: #000;
}
.error, .success {
	padding: 12px 8px;
	margin-bottom: var(--m-unit);
}
.error { background-color: rgba(255,130,65,.5) }
.success { background-color: rgba(66,189,94,.5) }

/* footer */

footer.page {
	border-top: 1px solid var(--color-matte);
	padding-top: var(--m-unit-2x);
	padding-bottom: var(--m-unit);
}
#copyright {
	font-size: 16px;
	line-height: 1.1em;
	opacity: .85;
	margin: 0 -8px;
	justify-content: space-between;
}
#copyright a {
	color: var(--color-text);
	text-decoration: underline;
	text-decoration-color: gray;
}

/*
 * end of document
 * (c) T.B.
 */
