/* Styles for the static pages (404.html, privacy.html, legal-notice.html); they do not load the app bundle */
:root {
	--bg: #fafaf9;
	--surface: #ffffff;
	--border: #e7e5e4;
	--text: #44403c;
	--text-strong: #1c1917;
	--muted: #78716c;
	--accent: #4f46e5;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #17171e;
		--surface: #1e1e27;
		--border: #33333f;
		--text: #d0d0d8;
		--text-strong: #f6f6f8;
		--muted: #9a9aa6;
		--accent: #a5b4fc;
		color-scheme: dark;
	}
}

html {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	background: var(--bg);
	color: var(--text);
	-webkit-font-smoothing: antialiased;
}

body {
	margin: 0;
	background: var(--bg);
}

main {
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 20px 40px;
}

h1,
h2,
h3 {
	color: var(--text-strong);
	line-height: 1.3;
	letter-spacing: -0.015em;
}

h1 {
	font-size: 2rem;
	margin: 0 0 8px;
}

h2 {
	font-size: 1.3rem;
	margin: 40px 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border);
}

h3 {
	font-size: 1.05rem;
	margin: 24px 0 8px;
}

a {
	color: var(--accent);
	text-underline-offset: 3px;
}

.lead {
	color: var(--muted);
	margin-top: 0;
}

.notice {
	margin: 20px 0;
	padding: 16px 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent);
	border-radius: 6px;
}

.not-found {
	text-align: center;
	padding-top: 18vh;
}

.not-found .code {
	font-size: 4rem;
	font-weight: 700;
	color: var(--text-strong);
	margin: 0;
	line-height: 1;
}

/* Fixed to the bottom of the viewport like the app footer; the body keeps its height free */
:root {
	--footer-h: 32px;
	--footer-space: calc(var(--footer-h) + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 479px) {
	:root {
		--footer-h: 48px;
	}
}

html {
	scroll-padding-bottom: var(--footer-space);
}

body {
	padding-bottom: var(--footer-space);
}

.site-footer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: var(--footer-space);
	padding: 4px 16px calc(4px + env(safe-area-inset-bottom, 0px));
	background: var(--bg);
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
}

.site-footer p {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 6px;
	margin: 0;
}

.site-footer p > * {
	white-space: nowrap;
}

.site-footer a {
	color: var(--text);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--accent);
	text-decoration: underline;
}
