/* The app's colours (Components.kt): primary FF8A50 in dark mode; in light mode D9480F darkened for text contrast. */
:root {
	color-scheme: light dark;
	--bg: #fbfaf8;
	--card: #ffffff;
	--text: #1d1b19;
	--muted: #5f5953;
	--line: #e7e2dc;
	--accent: #b83c0c;
	--accent-soft: #fbe9e0;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #141210;
		--card: #1e1b18;
		--text: #f1ece6;
		--muted: #b3aaa1;
		--line: #34302b;
		--accent: #ff8a50;
		--accent-soft: #3a2418;
	}
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 1rem;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main,
footer,
.hero,
nav.top {
	max-width: 44rem;
	margin: 0 auto;
	padding: 0 16px;
}

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

h1,
h2,
h3 {
	line-height: 1.25;
	text-wrap: balance;
}

h2 {
	margin: 2.5rem 0 0.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	font-size: 1.4rem;
}

h3 {
	margin: 1.75rem 0 0.5rem;
	font-size: 1.1rem;
}

ul,
ol {
	padding-left: 1.4rem;
}

li {
	margin: 0.35rem 0;
}

.hero {
	display: flex;
	gap: 1.25rem;
	align-items: center;
	padding-top: 1rem;
	padding-bottom: 0.5rem;
}

.hero img {
	flex: none;
	border-radius: 22%;
	box-shadow: 0 2px 10px rgb(0 0 0 / 0.15);
}

.hero h1 {
	margin: 0;
	font-size: 2.2rem;
}

.hero p {
	margin: 0.25rem 0 0;
	color: var(--muted);
}

.lead {
	font-size: 1.15rem;
}

.toc {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1.5rem 0 0;
}

.toc a {
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	background: var(--accent-soft);
	font-size: 0.95rem;
	text-decoration: none;
}

.note {
	margin-top: 1.5rem;
	padding: 0.9rem 1rem;
	border-radius: 12px;
	background: var(--card);
	border: 1px solid var(--line);
}

footer {
	margin-top: 3rem;
	padding-top: 1.5rem;
	padding-bottom: 2.5rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.9rem;
}

nav.top {
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	padding-top: 1.25rem;
}

.langs {
	margin-left: auto;
}

/* Screenshots from the emulator in demo mode (light and dark, following the system), a row to swipe through. It
   runs from edge to edge on a phone, so the next screenshot peeks in. */
.screens {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(70%, 15rem);
	gap: 1rem;
	margin: 1rem -16px 0;
	padding: 0 16px 0.75rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 16px;
	scrollbar-width: thin;
	list-style: none;
}

.screens li {
	margin: 0;
	scroll-snap-align: start;
}

.screens figure {
	margin: 0;
}

.screens img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--card);
	box-shadow: 0 2px 10px rgb(0 0 0 / 0.12);
}

.screens figcaption {
	margin-top: 0.5rem;
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.4;
}

.screens-note {
	margin-top: 0.25rem;
	color: var(--muted);
	font-size: 0.9rem;
}

/* The policy, rendered from PRIVACY.md. */
.policy h1 {
	margin-top: 1rem;
	font-size: 1.9rem;
}

.policy h2 {
	margin-top: 2rem;
}

@media (max-width: 480px) {
	body {
		font-size: 16px;
	}

	.hero {
		gap: 1rem;
		padding-top: 0.75rem;
	}

	.hero img {
		width: 64px;
		height: 64px;
	}

	.hero h1 {
		font-size: 1.8rem;
	}
}
