/* Shared by every coming-soon option: the homepage's tokens (homepage/src/styles/base/tokens.css)
   and a small reset. Each page adds its own layout in a <style> block.

   Segoe UI is only on Windows, where most visitors are. Everywhere else Open Sans takes its place:
   the same designer (Steve Matteson) and close proportions, so the page looks the same on a Mac or
   a phone. The browser only downloads it when Segoe is missing. */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
	--font: 'Segoe UI Variable Text', 'Segoe UI', 'Open Sans', system-ui, sans-serif;
	--font-display: 'Segoe UI Variable Display', 'Segoe UI', 'Open Sans', system-ui, sans-serif;
	--sunset: linear-gradient(135deg, #ffd08a 0%, #ff7d86 45%, #6b4dd8 100%);

	--bg: #fbfaff;
	--alt: #f3f0fb;
	--surface: #ffffff;
	--text: #1d1830;
	--text-dim: #5d5774;
	--line: #e6e2f2;
	--accent: #5b3dc8;
	--shadow: 0 30px 60px -30px rgb(29 24 48 / 0.45);
	color-scheme: light;
}

/* Dark when the system is dark and the visitor didn't choose light, or when they chose dark
   (data-theme on <html>, see theme.js). The dark values are listed twice for that; keep both in
   step. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) {
		--bg: #13111c;
		--alt: #181622;
		--surface: #1c1928;
		--text: #f2effa;
		--text-dim: #a9a3bf;
		--line: #2e2a40;
		--accent: #8f75f0;
		--shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8);
		color-scheme: dark;
	}
}

:root[data-theme='dark'] {
	--bg: #13111c;
	--alt: #181622;
	--surface: #1c1928;
	--text: #f2effa;
	--text-dim: #a9a3bf;
	--line: #2e2a40;
	--accent: #8f75f0;
	--shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8);
	color-scheme: dark;
}

/* The theme switch, as on the homepage (segmented.css there): a pill of three segments, the
   current one raised. Built from currentColor, so it works over a photo as well. The current
   segment comes from data-theme, set before the first paint. */
.theme-switch {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border-radius: 99px;
	background: color-mix(in srgb, currentColor 10%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent);
}

.theme-switch button {
	display: grid;
	place-items: center;
	width: 1.875rem;
	height: 1.875rem;
	padding: 0;
	border: 0;
	border-radius: 99px;
	background: none;
	color: inherit;
	opacity: 0.7;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.theme-switch button:hover {
	opacity: 1;
}

.theme-switch button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

:root:not([data-theme]) [data-theme-choice='system'],
:root[data-theme='light'] [data-theme-choice='light'],
:root[data-theme='dark'] [data-theme-choice='dark'] {
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 1px 3px rgb(0 0 0 / 0.18);
	opacity: 1;
	cursor: default;
}

.theme-switch svg {
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
}

body {
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--bg);
	color: var(--text);
	font: 400 1.0625rem/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
p {
	margin: 0;
}

h1 {
	font-family: var(--font-display);
	font-weight: 650;
	letter-spacing: -0.02em;
	line-height: 1.08;
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

img {
	display: block;
	max-width: 100%;
}

.sunset-text {
	background: var(--sunset);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font: 650 1.25rem/1 var(--font-display);
	letter-spacing: -0.01em;
}

.brand img {
	width: 2.5rem;
	height: 2.5rem;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pill::before {
	content: '';
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: currentColor;
	animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
	50% {
		opacity: 0.3;
	}
}

/* Slow crossfades, like the app itself. A .fader holds stacked .slide elements; fader.js moves
   .is-on along them. */
.fader {
	position: relative;
	overflow: hidden;
}

.fader .slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 2.4s ease;
}

.fader .slide.is-on {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
