:root {
	color-scheme: light dark;
	--background: #fbf8fa;
	--text: #242129;
	--secondary-text: #5f5964;
	--muted-text: #776f7a;
	--accent: #e52d6a;
	--border: #d8d1d8;
	--control-text: #5f5964;
	--dialog-background: rgb(251 248 250 / 82%);
	--backdrop: rgb(28 24 29 / 54%);
	--header-background: rgb(251 248 250 / 88%);
}

:root[data-theme="dark"] {
	--background: #111115;
	--text: #ffffff;
	--secondary-text: #dddde0;
	--muted-text: #99999a;
	--accent: #e52d6a;
	--border: #666666;
	--control-text: #dddde0;
	--dialog-background: rgb(36 36 42 / 82%);
	--backdrop: rgb(0 0 0 / 60%);
	--header-background: rgb(17 17 21 / 88%);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--background: #111115;
		--text: #ffffff;
		--secondary-text: #dddde0;
		--muted-text: #99999a;
		--accent: #e52d6a;
		--border: #666666;
		--control-text: #dddde0;
		--dialog-background: rgb(36 36 42 / 82%);
		--backdrop: rgb(0 0 0 / 60%);
		--header-background: rgb(17 17 21 / 88%);
	}
}

body {
	font-size: 1em;
	font-family: -apple-system, Helvetica, sans-serif;
	color: var(--text);
	background-color: var(--background);
	margin: 0;
	padding: 0;
	width: 100%;
}

body.lightbox-open {
	overflow: hidden;
}

h1 {
	font-size: 300%;
	line-height: 120%;
	margin-top: 0.25em;
	margin-bottom: 0;
}

.wordmark-accent {
	color: var(--accent);
}

h2 {
	font-size: 120%;
	font-weight: normal;
	line-height: 120%;
	margin-top: 0;
	margin-bottom: 2em;
	color: var(--secondary-text);
}

p,
ul,
li {
	color: var(--secondary-text);
	font-size: 0.85em;
	line-height: 160%;
}

ul,
li {
	padding: 0;
	margin: 0;
	list-style: square;
}

ul {
	padding-left: 1.25em;
	padding-bottom: 1em;
}

li {
	padding-bottom: 0.25em;
}

p.footer {
	font-size: 0.8em;
	color: var(--muted-text);
	display: inline-block;
	vertical-align: baseline;
}

a {
	color: var(--accent);
	text-decoration: none;
}

hr {
	height: 1px;
	border-width: 0;
	border-top: 0.5px solid var(--border);
	margin: 0;
	padding: 0;
}

@media (max-width: 600px) {
	div#main {
		padding: 12px 12px 12px;
		max-width: 100%;
	}

	p,
	ul,
	li {
		font-size: 1rem;
	}
}

@media (min-width: 601px) {
	div#main {
		margin: 0 auto !important;
		padding: 32px 32px 32px;
		max-width: 800px;
	}
}

p#intro {
	padding-bottom: 2em;
}

div#main > ul,
div#main > ul li {
	font-size: 1rem;
}

div#app-hero {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1em;
	padding: 0.75rem 0;
	margin-top: -0.75rem;
	transition: background-color 180ms ease, box-shadow 180ms ease;
}

body.app-hero-is-compact div#app-hero {
	align-items: center;
	background-color: var(--header-background);
	box-shadow: 0 1px 0 var(--border);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	backdrop-filter: blur(12px) saturate(140%);
}

.compact-brand {
	display: none;
	min-width: 0;
	flex: 1;
}

body.app-hero-is-pinned .compact-brand {
	display: grid;
	gap: 0.1rem;
}

.compact-brand-title {
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1;
}

.compact-brand-subtitle {
	overflow: hidden;
	color: var(--secondary-text);
	font-size: 0.75rem;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

div#appearance-switcher {
	display: inline-flex;
	gap: 0.2em;
	margin-top: 0;
}

div#appearance-switcher button {
	appearance: none;
	border: 0;
	border-bottom: 1px solid transparent;
	padding: 0.3em 0.4em;
	font: inherit;
	font-size: 0.8em;
	color: var(--control-text);
	background: transparent;
	opacity: 0.72;
	cursor: pointer;
}

div#appearance-switcher button[aria-pressed="true"] {
	color: var(--accent);
	border-bottom-color: currentColor;
	opacity: 1;
}

div#appearance-switcher button:hover {
	opacity: 1;
}

div#appearance-switcher button:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

img#appicon {
	width: 128px;
	height: 128px;
	margin-bottom: 1em;
	border: 0;
	transition: width 220ms cubic-bezier(0.2, 0.8, 0.2, 1), height 220ms cubic-bezier(0.2, 0.8, 0.2, 1), margin-bottom 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.app-hero-is-compact img#appicon {
	width: 56px;
	height: 56px;
	margin-bottom: 0;
}

div#screenshots {
	display: flex;
	gap: 20px;
	align-items: start;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 2.5em;
}

div#screenshots img {
	width: 100%;
	height: auto;
	border: 0;
}

button.screenshot-thumbnail {
	display: block;
	flex: 0 0 min(30%, 260px);
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
	scroll-snap-align: start;
}

dialog#screenshot-lightbox {
	width: min(92vw, 620px);
	max-width: none;
	max-height: calc(100dvh - 2rem);
	margin: auto;
	padding: 0.75rem;
	border: 1px solid var(--border);
	border-radius: 16px;
	color: var(--text);
	background-color: var(--dialog-background);
	overflow: hidden;
	touch-action: pan-y;
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
}

dialog#screenshot-lightbox::backdrop {
	background: var(--backdrop);
	-webkit-backdrop-filter: brightness(0.65);
	backdrop-filter: brightness(0.65);
}

dialog#screenshot-lightbox img {
	display: block;
	max-width: 100%;
	max-height: calc(100dvh - 4rem);
	margin: 0 auto;
	object-fit: contain;
	transform-origin: center;
}

dialog#screenshot-lightbox img.is-zooming {
	animation: lightbox-image-zoom 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes lightbox-image-zoom {
	from {
		opacity: 0.45;
		transform: scale(0.88);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	dialog#screenshot-lightbox img.is-zooming {
		animation: none;
	}
}

button.lightbox-close,
.lightbox-navigation button {
	padding: 0.45em 0.7em;
	border: 1px solid var(--border);
	border-radius: 7px;
	font: inherit;
	font-size: 0.85rem;
	color: var(--text);
	background: transparent;
	cursor: pointer;
}

button.lightbox-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: var(--border);
	margin: 0;
}

.lightbox-navigation button {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
}

button.lightbox-close::before,
.lightbox-navigation button::before {
	content: "";
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	background-color: var(--accent);
	-webkit-mask: center / contain no-repeat;
	mask: center / contain no-repeat;
}

button.lightbox-close::before {
	width: 2rem;
	height: 2rem;
	background-color: var(--dialog-background);
	-webkit-mask-image: url("images/icons/xmark.svg");
	mask-image: url("images/icons/xmark.svg");
}

button[data-lightbox-direction="previous"]::before {
	-webkit-mask-image: url("images/icons/chevron-left.svg");
	mask-image: url("images/icons/chevron-left.svg");
}

button[data-lightbox-direction="next"]::before {
	-webkit-mask-image: url("images/icons/chevron-right.svg");
	mask-image: url("images/icons/chevron-right.svg");
}

.lightbox-navigation {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.lightbox-navigation button {
	position: absolute;
	top: 0;
	bottom: 0;
	height: auto;
	pointer-events: auto;
	background-color: transparent;
}

button[data-lightbox-direction="previous"] {
	left: 0;
	width: min(30%, 8rem);
	justify-items: start;
	padding-left: 0.25rem;
}

button[data-lightbox-direction="next"] {
	right: 0;
	width: min(30%, 8rem);
	justify-items: end;
	padding-right: 0.25rem;
}

#lightbox-position {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 600px) {
	div#screenshots {
		display: flex;
		gap: 10px;
		justify-content: flex-start;
		overflow-x: auto;
		padding-bottom: 1.5em;
	}

	button.screenshot-thumbnail {
		flex-basis: min(24vw, 88px);
	}

	button.screenshot-thumbnail img {
		border-radius: 8px;
	}
}

img#appStoreBadge {
	width: 180px;
	height: 60px;
	border: 0;
	padding-top: 1em;
	padding-bottom: 0.5em;
}

.alignLeft {
	float: left;
}

.alignRight {
	float: right;
}
