@font-face {
	font-family: "B612";
	src: url("B612-Regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "B612";
	src: url("B612-Italic.woff") format("woff");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "B612";
	src: url("B612-Bold.woff") format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "B612";
	src: url("B612-BoldItalic.woff") format("woff");
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

:root {
	color-scheme: light dark;
	--blue: #0088FF;
	--gray: #8E8E93;
	--charcoal: color-mix(in oklab, color-mix(in oklab, #000000, var(--gray) 50%), var(--blue) 12%);
	--text-background: #FFFFFF;
	--label: var(--charcoal);
	--secondary-label: color-mix(in srgb, var(--charcoal), transparent 25%);
	--separator: rgba(0, 0, 0, 0.1);
	--secondary-fill: rgba(0, 0, 0, 0.08);
	--gutter: 22px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--blue: #0091FF;
		--text-background: #1E1E1E;
		--label: rgba(255, 255, 255, 0.85);
		--secondary-label: rgba(255, 255, 255, 0.55);
		--separator: rgba(255, 255, 255, 0.12);
		--secondary-fill: rgba(255, 255, 255, 0.08);
	}
}

body {
	margin: 0;
	background-color: var(--text-background);
	color: var(--secondary-label);
	font-family: "B612", sans-serif;
	font-size: 17px;
	line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--label);
}

h1 {
	font-size: 1.8em;
}

h1, h2, h3, h4, h5, h6, .hero p {
	text-wrap: balance;
}

p, li {
	text-wrap: pretty;
}

a {
	color: var(--blue);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

#navigation, #content, #footer {
	max-width: 800px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

#navigation {
	padding-block: 1.8em 0.65em;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

#navigation img {
	display: block;
	width: auto;
	height: 36px;
}

#navigation ul {
	display: flex;
	column-gap: 2em;
	margin: 0;
	padding: 0;
}

#navigation li {
	list-style: none;
}

#navigation li.current a {
	color: var(--label);
	font-weight: 700;
}

#content {
	min-height: 400px;
	margin-block: 3em 1em;
}

.hero {
	text-align: center;
}

.get-app {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 4em 0 2em;
}

.get-app .app-name {
	margin: 12px 0 20px;
	font-size: 21px;
	line-height: 1.2;
}

.footnote {
	margin-top: 4em;
}

.footnote hr {
	width: 4em;
	margin: 0 0 1em;
	border: none;
	border-top: 1px solid var(--separator);
}

#footer {
	margin-top: 3em;
	padding-block: 1em 2em;
	border-top: 1px solid var(--separator);
	text-align: center;
}

div.post {
	padding: 3em 0;
}

div.post:first-child {
	padding-top: 0;
}

div.post + div.post {
	border-top: 1px solid var(--separator);
}

h2.post {
	margin-top: 0;
}

#content code {
	background: var(--secondary-fill);
	padding: 0.15em 0.35em;
	border-radius: 4px;
	font-size: 0.9em;
}

.gallery {
	display: grid;
	gap: 24px;
	margin: 2em 0;
}

.gallery img {
	width: 100%;
	height: auto;
}

@media (max-width: 600px) {
	:root { --gutter: 16px; }
	#navigation ul { column-gap: 1.5em; }
}
