/* Цвета — палитра приложения (android/.../ui/theme/TivyraTokens.kt). */
:root {
	color-scheme: light dark;
	--bg: #f3f1e9;
	--surface: #ffffff;
	--text: #233543;
	--muted: #526875;
	--line: #d5dde1;
	--accent: #3d6782;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #1a2631;
		--surface: #233543;
		--text: #f3f1e9;
		--muted: #a9bbc7;
		--line: #3e5568;
		--accent: #b8cedb;
	}
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

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

header,
main {
	max-width: 44rem;
	margin: 0 auto;
	padding: 0 20px;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-top: 28px;
}

a {
	color: var(--accent);
	text-underline-offset: 0.18em;
}

a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 2px;
}

.brand {
	color: var(--text);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-decoration: none;
}

main {
	padding-top: 40px;
	padding-bottom: 96px;
}

h1 {
	margin: 0 0 8px;
	font-size: 32px;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

h1 + p {
	margin-top: 0;
	color: var(--muted);
}

h2 {
	margin: 48px 0 12px;
	font-size: 21px;
	line-height: 1.3;
}

p,
ul {
	margin: 0 0 16px;
}

ul {
	padding-left: 1.2em;
}

li {
	margin-bottom: 8px;
}

code {
	font: 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	overflow-wrap: anywhere;
}

.table {
	margin: 0 0 16px;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.45;
}

th,
td {
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--line);
}

th {
	color: var(--muted);
	font-weight: 600;
}

tbody tr:last-child td {
	border-bottom: 0;
}

/* На телефоне три колонки не помещаются: строка таблицы становится блоком. */
@media (max-width: 560px) {
	thead {
		display: none;
	}

	tr,
	td {
		display: block;
	}

	tr {
		padding: 12px 14px;
		border-bottom: 1px solid var(--line);
	}

	tbody tr:last-child {
		border-bottom: 0;
	}

	td {
		padding: 0;
		border: 0;
	}

	td:first-child {
		font-weight: 600;
	}

	td + td {
		margin-top: 2px;
		color: var(--muted);
	}
}

/* Главная. */
.home {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: 0;
	padding-bottom: 0;
}

.home h1 {
	font-size: 44px;
	font-weight: 600;
}

.home p {
	color: var(--muted);
}
