/* cont8nuum account: the Metro look. Selawik as on the desktop, the
 * accent behind the sign-in pages, PC settings' two panes for the
 * account. One column below 700 px. */

@font-face {
	font-family: Selawik;
	font-weight: 300;
	src: url(fonts/selawkl.ttf);
	font-display: swap;
}
@font-face {
	font-family: Selawik;
	font-weight: 400;
	src: url(fonts/selawk.ttf);
	font-display: swap;
}
@font-face {
	font-family: Selawik;
	font-weight: 600;
	src: url(fonts/selawksb.ttf);
	font-display: swap;
}

:root {
	--accent: #4617b4;
	--accent-dark: #2e0f78;
	--ink: #1a1a1a;
	--soft: #666;
	--line: #d0d0d0;
	--danger: #c0392b;
}

* {
	box-sizing: border-box;
}

html {
	font: 400 16px/1.45 Selawik, "Segoe UI", "Open Sans", sans-serif;
	color: var(--ink);
}

body {
	margin: 0;
	min-height: 100vh;
	background: #fff;
}

body.narrow {
	background: var(--accent);
	color: #fff;
}

a {
	color: var(--accent);
}

.narrow a {
	color: #fff;
}

h1 {
	font-weight: 300;
	font-size: 2.6rem;
	line-height: 1.15;
	margin: 0 0 1.5rem;
}

h2 {
	font-weight: 600;
	font-size: 1rem;
	margin: 0 0 0.75rem;
}

/* The strip along the top */

.top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1rem 2.5rem;
}

.wide .top {
	background: #1d1d1d;
	color: #fff;
}

.brand {
	font-weight: 300;
	font-size: 1.3rem;
	color: inherit;
	text-decoration: none;
}

.wide .brand {
	color: #fff;
}

.who {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0;
	min-width: 0;
}

.who span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

button.link {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	text-decoration: underline;
	cursor: pointer;
	white-space: nowrap;
}

.flash {
	margin: 0;
	padding: 0.8rem 2.5rem;
	background: #107c10;
	color: #fff;
}

/* Sign-in pages */

.card, .hero {
	max-width: 30rem;
	margin: 0 auto;
	padding: 3rem 1.5rem 4rem;
}

.hero {
	max-width: 42rem;
	padding-top: 6rem;
}

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

.hero p {
	font-size: 1.2rem;
	font-weight: 300;
}

/* Forms */

label {
	display: block;
	margin: 0 0 1.1rem;
}

label small {
	display: block;
	margin-top: 0.3rem;
	opacity: 0.8;
}

input[type=text], input[type=email], input[type=password] {
	display: block;
	width: 100%;
	max-width: 24rem;
	margin-top: 0.35rem;
	padding: 0.5rem 0.6rem;
	font: inherit;
	color: var(--ink);
	background: #fff;
	border: 2px solid var(--line);
	border-radius: 0;
}

.narrow input {
	max-width: none;
	border-color: #fff;
}

input:focus {
	outline: none;
	border-color: var(--ink);
}

.narrow input:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem 0 1rem;
}

.button {
	display: inline-block;
	min-width: 6.5rem;
	padding: 0.45rem 1.2rem;
	font: inherit;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background: var(--accent);
	border: 2px solid var(--accent);
	border-radius: 0;
	cursor: pointer;
}

.button.quiet {
	color: var(--ink);
	background: #e6e6e6;
	border-color: #e6e6e6;
}

.button.danger {
	background: var(--danger);
	border-color: var(--danger);
}

.narrow .button {
	color: var(--accent);
	background: #fff;
	border-color: #fff;
}

.narrow .button.quiet {
	color: #fff;
	background: transparent;
}

.button:hover {
	filter: brightness(1.1);
}

.button:focus-visible, a:focus-visible, button.link:focus-visible {
	outline: 2px dotted currentColor;
	outline-offset: 2px;
}

.error {
	padding: 0.7rem 0.9rem;
	color: #fff;
	background: var(--danger);
}

.asks {
	padding-left: 1.2rem;
}

.asks li {
	margin-bottom: 0.4rem;
}

/* The account: pages on the left, the page beside them */

.settings {
	display: flex;
	min-height: calc(100vh - 3.6rem);
}

.pages {
	flex: 0 0 17rem;
	padding: 2.5rem 0;
	background: #1d1d1d;
	color: #fff;
}

.pages h2 {
	font-weight: 300;
	font-size: 2rem;
	margin: 0 0 1.5rem;
	padding: 0 2.5rem;
}

.pages a {
	display: block;
	padding: 0.6rem 2.5rem;
	color: #fff;
	text-decoration: none;
}

.pages a:hover {
	background: #333;
}

.pages a.here {
	background: var(--accent);
}

.settings main {
	flex: 1;
	min-width: 0;
	padding: 2.5rem 3rem 4rem;
}

section {
	max-width: 40rem;
	margin-bottom: 2.5rem;
}

.notice {
	margin-bottom: 1.5rem;
	padding: 0.9rem 1rem;
	background: #fff4ce;
}

.notice p {
	margin: 0 0 0.75rem;
}

.empty {
	color: var(--soft);
}

.rows {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rows li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.8rem 0;
	border-bottom: 1px solid var(--line);
}

.rows div {
	min-width: 0;
}

.rows strong {
	display: block;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.rows span {
	display: block;
	color: var(--soft);
	font-size: 0.9rem;
	overflow-wrap: anywhere;
}

.rows form {
	margin: 0;
	flex: none;
}

@media (max-width: 700px) {
	.top, .flash {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	h1, .hero h1 {
		font-size: 2rem;
	}

	.card, .hero {
		padding: 1.5rem 1rem 3rem;
	}

	/* The pages become a row to pick from above the page */
	.settings {
		display: block;
		min-height: 0;
	}

	.pages {
		display: flex;
		overflow-x: auto;
		padding: 0;
	}

	.pages h2 {
		display: none;
	}

	.pages a {
		flex: none;
		padding: 0.7rem 1rem;
	}

	.settings main {
		padding: 1.5rem 1rem 3rem;
	}

	.rows li {
		flex-wrap: wrap;
	}
}

/* The front page: Start's night blue with its rings, tiles in the
 * Metro colours, pictures of the real thing. */

body.landing {
	background: #14054a;
	color: #fff;
}

.landing a {
	color: #fff;
}

.landing .top {
	position: relative;
	z-index: 1;
	padding: 1.4rem 4vw;
}

.landing .brand {
	font-size: 1.6rem;
}

.sections {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.sections a {
	text-decoration: none;
	opacity: 0.8;
}

.sections a:hover {
	opacity: 1;
}

.sections .account {
	opacity: 1;
	padding: 0.35rem 1rem;
	border: 2px solid #fff;
}

.sections .account:hover {
	background: #fff;
	color: #14054a;
}

.landing .hero {
	position: relative;
	max-width: none;
	margin: -5rem 0 0;
	padding: 9rem 4vw 0;
	text-align: left;
	overflow: hidden;
	/* The rings of Start's background */
	background:
		radial-gradient(circle at 85% 10%, transparent 0 18rem,
			rgba(255, 255, 255, 0.035) 18rem 26rem, transparent 26rem),
		radial-gradient(circle at 10% 95%, transparent 0 22rem,
			rgba(255, 255, 255, 0.03) 22rem 34rem, transparent 34rem),
		radial-gradient(circle at 55% 60%, transparent 0 30rem,
			rgba(255, 255, 255, 0.025) 30rem 44rem, transparent 44rem),
		linear-gradient(#1b0a66, #14054a);
}

.hero-text {
	max-width: 46rem;
	animation: enter 0.7s cubic-bezier(0.1, 0.9, 0.2, 1) both;
}

.landing .hero h1 {
	font-size: clamp(2.6rem, 7vw, 5.6rem);
	line-height: 1.02;
	letter-spacing: -0.02em;
	margin-bottom: 1.5rem;
}

.landing .hero h1 span {
	display: block;
	color: #1ba1e2;
}

.landing .hero p {
	max-width: 36rem;
	font-size: 1.25rem;
}

.landing .button {
	color: #14054a;
	background: #fff;
	border-color: #fff;
	padding: 0.6rem 1.6rem;
}

.landing .button.quiet {
	color: #fff;
	background: transparent;
}

.hero-shot {
	display: block;
	max-width: 1100px;
	margin: 3.5rem auto 0;
	animation: enter 0.9s 0.15s cubic-bezier(0.1, 0.9, 0.2, 1) both;
}

.hero-shot img, .shot img {
	display: block;
	width: 100%;
	height: auto;
}

.hero-shot a {
	display: block;
}

.hero-shot img {
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 -1rem 6rem rgba(27, 161, 226, 0.35);
}

.hero-shot figcaption {
	padding: 0.8rem 0 1.4rem;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.65);
}

/* Metro's way in: from the right, slowing down */
@keyframes enter {
	from {
		opacity: 0;
		transform: translateX(5rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-text, .hero-shot {
		animation: none;
	}

	.tile {
		transition: none;
	}
}

/* Tiles */

.mosaic {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 0.5rem;
	max-width: 1100px;
	margin: 0 auto;
	padding: 5rem 4vw;
}

.tile {
	grid-column: span 2;
	min-height: 11rem;
	padding: 1rem 1.1rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: #fff;
	transition: transform 0.15s;
}

.tile:hover {
	transform: scale(0.975);
}

.tile.wide {
	grid-column: span 4;
}

a.tile {
	color: #fff;
	text-decoration: none;
}

.tile h2, .tile h3 {
	font-weight: 300;
	font-size: 1.9rem;
	line-height: 1.1;
	margin: 0 0 0.4rem;
}

.tile p {
	margin: 0;
	font-size: 0.95rem;
	max-width: 30rem;
}

.blue { background: #1ba1e2; }
.green { background: #008a00; }
.violet { background: #6a00ff; }
.orange { background: #fa6800; }
.magenta { background: #d80073; }
.teal { background: #00aba9; }
.red { background: #e51400; }
.dark { background: #2b2b2b; }
.lime { background: #7a9a00; }
.steel { background: #647687; }

/* Pictures with words beside them */

.section-title {
	font-weight: 300;
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	line-height: 1.1;
	margin: 0 0 3rem;
}

.looks, .xr, .apps, .inside, .join {
	max-width: none;
	margin: 0;
	padding: 5rem max(4vw, calc((100vw - 1200px) / 2));
}

.looks {
	background: #fff;
	color: var(--ink);
}

.look {
	display: flex;
	align-items: center;
	gap: 3.5rem;
	margin-bottom: 5rem;
}

.look:last-child {
	margin-bottom: 0;
}

.look.flip {
	flex-direction: row-reverse;
}

.look .shot {
	flex: 0 0 62%;
	min-width: 0;
}

.shot img {
	box-shadow: 0 0.5rem 2.5rem rgba(0, 0, 0, 0.28);
}

.look h3, .columns h3 {
	font-weight: 300;
	font-size: 2rem;
	line-height: 1.15;
	margin: 0 0 0.8rem;
}

.look p {
	margin: 0;
	font-size: 1.1rem;
	color: #444;
}

.xr {
	background: #000;
}

.xr .lead {
	max-width: 46rem;
	margin: -1.5rem 0 4rem;
	font-size: 1.15rem;
	font-weight: 300;
	color: #ddd;
}

.xr .columns h3 {
	color: #00aba9;
}

.xr .look p {
	color: #ccc;
}

.xr .shot img {
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: none;
}

.xr .columns {
	margin-top: 5rem;
}

.apps {
	background: #1b0a66;
}

.app-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.5rem;
}

.app-row .tile {
	grid-column: auto;
}

.inside {
	background: #111;
}

.columns {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2.5rem;
}

.columns h3 {
	font-size: 1.5rem;
	color: #1ba1e2;
}

.columns p {
	margin: 0;
	color: #ccc;
}

.join {
	background: var(--accent);
	max-width: none;
}

.join h2 {
	font-weight: 300;
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	margin: 0 0 1rem;
}

.join p {
	max-width: 38rem;
	font-size: 1.15rem;
	font-weight: 300;
}

.join .button {
	color: var(--accent);
}

.join .button.quiet {
	color: #fff;
}

.foot {
	padding: 2.5rem 4vw;
	background: #000;
	color: #999;
	font-size: 0.9rem;
}

.foot p {
	margin: 0 0 0.4rem;
	max-width: 46rem;
}

@media (max-width: 900px) {
	.columns, .app-row {
		grid-template-columns: repeat(2, 1fr);
	}

	.look, .look.flip {
		display: block;
		margin-bottom: 3.5rem;
	}

	.look .shot {
		display: block;
		margin-bottom: 1.5rem;
	}
}

@media (max-width: 700px) {
	.landing .top {
		padding: 1rem;
	}

	/* Only the account stays up there; the page is short enough */
	.sections a:not(.account) {
		display: none;
	}

	.landing .hero {
		margin-top: -4.2rem;
		padding: 6.5rem 1rem 0;
	}

	.landing .hero p {
		font-size: 1.1rem;
	}

	.mosaic {
		grid-template-columns: repeat(2, 1fr);
		padding: 3rem 1rem;
	}

	.tile, .tile.wide {
		grid-column: span 2;
		min-height: 8rem;
	}

	.looks, .xr, .apps, .inside, .join {
		padding: 3rem 1rem;
	}

	.section-title {
		margin-bottom: 2rem;
	}

	.columns, .app-row {
		grid-template-columns: 1fr;
	}

	.app-row .tile {
		grid-column: auto;
	}
}
