/* rush the sky: the game's sky, its light cards and its keys (ui/theme.tres, ui/palette.gd). */

@font-face {
	font-family: "Rubik";
	src: url("/assets/rubik.woff2") format("woff2");
	font-weight: 300 900;
	font-display: swap;
}

:root {
	--ink: #21405e;
	--soft: #5f7a93;
	--mist: #eef7fd;
	--sky-top: #3884ef;  /* the launch picture's sky, top… */
	--sky-mid: #72abf3;  /* …where sky.webp starts… */
	--sky-low: #bcdbf7;  /* …and where it ends */
	--teal: #22c3b0;
	--teal-deep: #159886;
	--teal-dark: #0f7365;
	--sun: #ffc928;
	--sun-deep: #e3a10b;
	--sun-ink: #5a3a00;
	--link: #1a6bb0;
	--card-shadow: #bcd3e6;
	--track: #e3edf5;
}

* { box-sizing: border-box; }

html {
	background: var(--mist);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--mist);
	color: var(--ink);
	font: 400 17px/1.55 "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }

.wrap {
	max-width: 720px;
	margin: 0 auto;
	padding-left: max(16px, env(safe-area-inset-left));
	padding-right: max(16px, env(safe-area-inset-right));
}

/* ---- the sky on top ---- */

.sky {
	color: #fff;
	background: linear-gradient(180deg, var(--sky-top) 0, var(--sky-mid) calc(100% - 96px), var(--mist) 100%);
	padding-bottom: 72px;
}
.page-home .sky { background: var(--sky-top); padding-bottom: 0; }
.page-home .hero { background: linear-gradient(180deg, var(--sky-top), var(--sky-mid)); }

.bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	max-width: 720px;
	margin: 0 auto;
	padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
	min-height: 62px;
}

.mark {
	color: #fff;
	font-weight: 800;
	font-size: 22px;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.lang {
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
}
.lang:hover { background: rgba(255, 255, 255, 0.32); }

.head {
	max-width: 720px;
	margin: 0 auto;
	padding: 22px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}
.head h1 {
	margin: 0 0 8px;
	font-weight: 800;
	font-size: clamp(26px, 7.2vw, 46px); /* «конфиденциальности» whole on a 390 px phone */
	overflow-wrap: break-word;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.lead { margin: 0; font-size: 17px; opacity: 0.94; }

/* ---- home: the title over the launch picture ---- */

.hero {
	text-align: center;
	padding: 18px 16px 4px;
}
.hero h1 {
	margin: 0 0 14px;
	font-weight: 800;
	font-size: clamp(40px, 12vw, 92px);
	line-height: 1;
	white-space: nowrap;
	letter-spacing: -0.02em;
}
.tag {
	max-width: 30em;
	margin: 0 auto 6px;
	font-size: 18px;
	line-height: 1.45;
	text-wrap: balance;
}

.art { background: linear-gradient(180deg, var(--sky-mid), var(--sky-low)); }
.art img {
	display: block;
	width: 100%;
	max-width: 560px;
	height: auto;
	margin: 0 auto;
}
@media (min-width: 560px) {
	/* narrower than the screen: its cut clouds and trail fade into the same sky */
	.art img {
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
		mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
	}
}

.soon {
	text-align: center;
	padding: 4px 16px 36px;
	background: linear-gradient(180deg, var(--sky-low), var(--mist));
}
.pill {
	display: inline-block;
	margin: 0;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--sun);
	border-bottom: 4px solid var(--sun-deep);
	color: var(--sun-ink);
	font-weight: 700;
	font-size: 16px;
}
@media (min-width: 560px) { .pill { font-size: 18px; padding: 11px 24px; } }

/* ---- cards: the settings sheet's light panels ---- */

main { margin-top: -56px; position: relative; }
.page-home main { margin-top: 0; }

.card {
	display: block;
	margin: 0 0 18px;
	padding: 20px 20px 18px;
	background: #fff;
	border-radius: 26px;
	box-shadow: 0 6px 0 var(--card-shadow);
}
.card h2 {
	margin: 0 0 8px;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
}
.card p, .card ul, .card ol { margin: 0 0 10px; }
.card > :last-child { margin-bottom: 0; }
.card ul { padding-left: 1.2em; }
.card li { margin-bottom: 6px; }
.card li::marker { color: var(--teal-deep); }

a.go {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	color: var(--ink);
	text-decoration: none;
}
a.go strong { display: block; font-size: 20px; font-weight: 700; }
.note { display: block; color: var(--soft); font-size: 15px; line-height: 1.4; margin-top: 4px; }
.arrow {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: var(--teal);
	border-bottom: 4px solid var(--teal-deep);
	color: #fff;
	font-weight: 800;
	font-size: 22px;
	line-height: 1;
}
a.go:hover .arrow { background: var(--teal-deep); border-bottom-color: var(--teal-dark); }

/* The way through the game's menus, as its keys. */
ol.path {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 6px;
}
ol.path li { margin: 0; color: var(--soft); font-size: 16px; }
ol.path li span {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--mist);
	border-bottom: 3px solid var(--track);
	color: var(--ink);
	font-weight: 600;
}
ol.path li + li::before {
	content: "→";
	margin-right: 6px;
	color: var(--teal-deep);
	font-weight: 700;
}

.callout {
	padding: 10px 16px;
	border-radius: 16px;
	background: var(--mist);
	font-weight: 600;
	display: inline-block;
}

a.key {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--teal-deep);
	border-bottom: 5px solid var(--teal-dark);
	color: #fff;
	font-weight: 700;
	font-size: 18px;
	text-decoration: none;
}
a.key:hover { background: var(--teal-dark); }

/* ---- footer ---- */

.foot {
	padding-top: 14px;
	padding-bottom: max(40px, env(safe-area-inset-bottom));
	color: var(--soft);
	font-size: 15px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.foot nav a {
	padding: 8px 14px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 3px 0 var(--card-shadow);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}
.foot nav a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; }
.foot p { margin: 0 0 6px; }
.copy { margin-top: 12px !important; }

@media (min-width: 720px) {
	body { font-size: 18px; }
	.head { padding-top: 36px; }
	.sky { padding-bottom: 84px; }
	.card { padding: 26px 30px 24px; }
	.tag { font-size: 20px; }
}
