:root {
	--background: #ffffff;
	--text: #101010;
	--grey: #e5e5e5;
	--blue: #101010;
	--link: var(--text);
	--red: #c0392b;
	--green: #27ae60;
	--muted: color-mix(in srgb, var(--text) 58%, var(--background));
	--shade: color-mix(in srgb, var(--text) 4%, var(--background));
	--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
	--serif: "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;
}
*,
::before,
::after {
	box-sizing: border-box;
}
html {
	text-size-adjust: 100%;
}
body {
	background: var(--background);
	color: var(--text);
	margin: 0;
	font-family:
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		"Helvetica Neue",
		Arial,
		sans-serif;
	font-size: 19px;
	line-height: 1.7;
	letter-spacing: -0.003em;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
a,
a:focus,
a:active {
	color: var(--link);
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	text-decoration-color: var(--grey);
	transition: text-decoration-color 0.15s;
}
a:hover {
	text-decoration-color: currentColor;
}
a.red {
	color: var(--red);
}
:focus-visible {
	outline: 2px solid var(--text);
	outline-offset: 3px;
	border-radius: 2px;
}
h1,
h2,
h3 {
	letter-spacing: -0.03em;
	line-height: 1.15;
	font-weight: 600;
	text-wrap: balance;
}
h2 {
	font-size: 1.35rem;
	margin: 2.75rem 0px 0.85rem;
}
h3 {
	font-size: 1.1rem;
	margin: 2rem 0px 0.6rem;
}
p {
	margin: 0px 0px 1.35rem;
}
strong {
	font-weight: 600;
}
small,
.help {
	color: var(--muted);
}
header {
	padding: 1rem 0px 0px;
}
nav {
	margin-bottom: 0.5rem;
}
nav ul {
	list-style: none;
	margin: 0px;
	padding: 0px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
nav ul li {
	margin: 0px;
}
nav ul li::after {
	content: "·";
	color: var(--muted);
	margin: 0px 0.5rem;
}
nav ul li:last-child:after {
	content: "";
}
section {
	margin: 1rem 0px;
}
footer {
	text-align: center;
	padding: 2rem 1rem 3rem;
	font-size: 0.85rem;
	color: var(--muted);
}
footer nav ul {
	justify-content: center;
}
blockquote {
	margin: 2rem 0px;
	padding: 0.15rem 0px 0.15rem 1.25rem;
	border: none;
	border-left: 2px solid var(--text);
	font-family: var(--serif);
	font-size: 1.12rem;
	font-style: italic;
}
blockquote p:last-child {
	margin-bottom: 0px;
}
ul,
ol {
	margin: 0px 0px 1.35rem;
	padding-inline-start: 1.15rem;
}
li {
	margin-bottom: 0.4rem;
}
li::marker {
	color: var(--muted);
}
code,
pre {
	background: var(--shade);
	border: 1px solid var(--grey);
}
code {
	font-family: var(--mono);
	font-size: 0.86em;
	border-radius: 4px;
	padding: 0.1em 0.35em;
}
pre {
	border-radius: 6px;
	padding: 1rem 1.1rem;
	overflow-x: auto;
	margin: 0px 0px 1.6rem;
	font-size: 0.9rem;
	line-height: 1.6;
}
pre code {
	background: none;
	border: 0px;
	padding: 0px;
	font-size: inherit;
}
label {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
}
input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="date"],
select,
textarea {
	display: block;
	border: 1px solid var(--grey);
	background: var(--background);
	color: var(--text);
	font-family: inherit;
	font-size: 1rem;
	width: 100%;
	padding: 0.5rem 1rem;
	border-radius: 0.25rem;
	box-sizing: border-box;
	height: 2.5rem;
	outline: none;
	transition: border-color 0.15s;
}
input:focus,
select:focus,
textarea:focus {
	border-color: var(--text);
}
select {
	cursor: pointer;
}
input[type="checkbox"] {
	accent-color: var(--blue);
	width: 1.5em;
	height: 1.5em;
	margin: 0px;
	flex-shrink: 0;
	cursor: pointer;
}
label:has(> input[type="checkbox"]) {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	line-height: 1.4;
	cursor: pointer;
}
input:disabled {
	background-color: var(--grey);
	cursor: not-allowed;
}
textarea {
	resize: vertical;
	field-sizing: content;
	height: auto;
}
textarea[rows="2"] {
	min-height: 5rem;
}
::placeholder {
	color: var(--text);
	opacity: 0.5;
}
button {
	background: var(--text);
	color: var(--background);
	border: 1px solid var(--text);
	box-sizing: border-box;
	border-radius: 0.375rem;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1;
	padding: 0.5rem 1rem;
	min-height: 2.5rem; /* matches the height of inputs */
	cursor: pointer;
	text-decoration: none;
	margin: 0px;
}
button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
button.ghost {
	background: none;
	color: var(--text);
}
details {
	border-top: 1px solid var(--grey);
	padding: 1rem 0px;
}
summary {
	font-size: 1.1rem;
	cursor: pointer;
	font-weight: 600;
	letter-spacing: -0.02em;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	user-select: none;
}
/* Hide default marker */
summary::-webkit-details-marker {
	display: none;
}
summary::after {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.2s ease;
	flex-shrink: 0;
	margin-left: 1rem;
}
details[open] summary::after {
	transform: rotate(45deg);
}
details > *:not(summary) {
	margin-top: 1rem;
}
table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}
th,
td {
	border-bottom: 1px solid var(--grey);
	padding: 0.55rem 0.6rem;
	text-align: left;
}
article {
	padding: 1.25rem 0px;
}
article.maxh {
	border-bottom: 1px solid var(--grey);
}
article .content {
	margin-bottom: 0.25rem;
}
article.maxh .content {
	max-height: 240px;
	overflow: hidden;
	position: relative;
}
article.maxh .content::after {
	content: "";
	position: absolute;
	top: 190px;
	left: 0;
	right: 0;
	height: 50px;
	background: linear-gradient(to top, var(--background), transparent);
	pointer-events: none;
}
article .content p {
	margin: 0px 0px 1rem;
}
article .content p:last-child {
	margin: 0px;
}
article .content img {
	max-width: 100%;
}
hr {
	border: none;
	border-top: 1px solid var(--grey);
	margin: 3rem 0px;
}
.wrap {
	width: 100%;
	max-width: 768px;
	margin-inline: auto;
	padding: 0px 1.5rem;
	box-sizing: border-box;
}
.mini-wrap {
	width: 100%;
	max-width: 480px;
}
.flex {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.flex-1 {
	flex: 1;
}
.spacer {
	height: 1rem;
}
.entry-title {
	margin-top: 1.5rem;
}
.post-meta {
	margin: 1.5rem 0px 0px;
	font-size: 0.92rem;
	color: var(--muted);
}
.post-meta a {
	color: var(--muted);
}
.post-meta + .entry-title {
	margin-top: 0.25rem;
}
.page-title {
	font-size: 2.35rem;
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.1;
	margin: 1rem 0px 0px;
}
.guestbook-form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}
.guestbook-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	width: 100%;
}
@media (max-width: 34rem) {
	.guestbook-form-row {
		grid-template-columns: 1fr;
	}
}
.field {
	margin: 1rem 0px;
}
.field .help {
	font-size: 0.92rem;
}
.empty {
	margin: 6vh auto;
	color: var(--muted);
}
@media (prefers-color-scheme: dark) {
	:root {
		--background: #0b0b0b;
		--text: #ededed;
		--grey: #262626;
		--blue: #ededed;
		--red: #e74c3c;
		--green: #2ecc71;
	}
}

.photo-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 1rem 0;
}
.photo-grid a {
	display: block;
	aspect-ratio: 1 / 1;
	border: 1px solid var(--grey);
	overflow: hidden;
}
.photo-grid img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.photo-full {
	max-width: 100%;
	height: auto;
}
li:has(> .post-date) {
	padding-left: 7rem;
	text-indent: -7rem;
}
.plain-list {
	list-style: none;
	padding-left: 0;
}
.plain-list li {
	margin-bottom: 0.5rem;
}
.post-date {
	display: inline-block;
	width: 7rem;
	text-indent: 0;
	font-family: var(--mono);
	font-size: 0.92rem;
	color: var(--muted);
}
@media (max-width: 34rem) {
	body {
		font-size: 17px;
	}
	header {
		padding-top: 2.5rem;
	}
	.page-title {
		font-size: 1.9rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
details.muted-collapsible {
	border-top: none;
	padding: 0px;
}
details.muted-collapsible summary {
	display: inline-flex;
	gap: 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: normal;
	color: var(--muted);
}
details.muted-collapsible summary:hover {
	color: var(--text);
}
details.muted-collapsible summary::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.2s ease;
	flex-shrink: 0;
}
details.muted-collapsible[open] summary::before {
	transform: rotate(45deg);
}
details.muted-collapsible summary::after {
	content: none;
}
