/* The look of the app's App Store screenshots: a dark ground lit by soft glows in the pads'
   colors, white headings with the pads' green under them, and each screen in a dark bezel. */
:root {
	--ground: #0c0c0e;
	--text: #ece9e3;
	--muted: #a19e97;
	--white: #f6f4f0;
	--green: #70de96;
	--bezel: #0a0a0c;
	--edge: #5c5e64;
	--rule: rgb(236 233 227 / 0.14);
	--body: "Mulish", "Avenir Next", system-ui, sans-serif;
	color-scheme: dark;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background-color: var(--ground);
	background-image:
		radial-gradient(60rem 42rem at 12% 6rem, rgb(70 210 120 / 0.14), transparent 70%),
		radial-gradient(52rem 38rem at 92% 14rem, rgb(80 210 235 / 0.11), transparent 70%),
		linear-gradient(#1e1f24, var(--ground) 60rem);
	background-repeat: no-repeat;
	color: var(--text);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.65;
}

a { color: var(--green); }
img, video { display: block; max-width: 100%; height: auto; }

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

/* The masthead */
.band { padding: 40px 0 24px; }
.logo-title { display: flex; align-items: center; gap: 20px; }
.masthead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.store-button { padding: 10px 20px; border-radius: 999px; background: var(--green); color: #0c0c0e; font-weight: 800; text-decoration: none; white-space: nowrap; }
.store-button:hover { background: var(--white); }
.logo-title img { width: 84px; height: 84px; border-radius: 19px; box-shadow: 0 10px 28px rgb(0 0 0 / 0.5); }
.titles { display: grid; }
/* the panel's lettering, drawn in the text color */
.product { margin: 0; color: var(--white); line-height: 0; }
.product .wordmark { display: block; width: clamp(15rem, 52vw, 26rem); height: auto; }
a.product { color: var(--muted); }
a.product .wordmark { width: clamp(9rem, 28vw, 13rem); margin-bottom: 8px; }
.page { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin: 0; color: var(--white); }
.subtitle { margin: 16px 0 0; color: var(--muted); font-size: 1.1rem; }

.site-nav {
	max-width: 62rem;
	margin: 0 auto 8px;
	padding: 10px max(16px, env(safe-area-inset-left, 0px));
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	font-weight: 700;
}
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a:hover { color: var(--green); }
.site-nav .current { color: var(--green); }
.site-nav .outside { color: var(--muted); }
.site-nav .outside::after { content: " \2197"; }
.outside-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; }
/* where the pages and the other sites no longer fit on one row, the other sites go below under a rule */
@media (max-width: 980px) {
	.outside-links { flex-basis: 100%; margin-left: 0; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
	.outside-links { flex-direction: column; }
}

/* The text */
.prose { padding: 24px 0 8px; }
.prose p, .prose ul { max-width: 44rem; }
.prose h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); font-weight: 800; line-height: 1.2; color: var(--white); margin: 64px 0 14px; text-wrap: balance; }
.prose h3 { font-size: 1.12rem; font-weight: 800; color: var(--white); margin: 32px 0 6px; }
.quiet { color: var(--muted); font-size: 0.96rem; margin-top: 56px; }
.prose img { max-width: 100%; }
.prose figure img { width: 100%; }
.toc { line-height: 1.8; }

/* A screen in a dark bezel with a thin lighter edge */
.hero img, figure img, .gallery img, .video video {
	padding: 2.4%;
	background: var(--bezel);
	border-radius: 18px;
	box-shadow: 0 0 0 1px var(--edge), 0 18px 40px rgb(0 0 0 / 0.55);
}
.hero { margin: 8px 0 32px; }
.hero-copy { margin-top: 26px; text-shadow: 0 2px 10px rgb(0 0 0 / 0.55); }
.hero-copy h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.15; color: var(--white); }
.hero-copy p { margin: 2px 0 0; font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.15; color: var(--green); }

figure { margin: 24px 0; display: grid; gap: 10px; min-width: 0; }
figcaption { color: var(--muted); font-size: 0.92rem; }
figure.detail { max-width: 44rem; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0; }
.shots figure { margin: 0; }
.gallery { margin-top: 56px; }
.video { margin: 32px 0; }
.video video { width: 100%; }

/* The App Store card */
.store-card {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 28px 0;
	padding: 16px 20px;
	max-width: 44rem;
	border-radius: 16px;
	background: rgb(255 255 255 / 0.05);
	box-shadow: 0 0 0 1px var(--rule);
	color: var(--text);
	text-decoration: none;
}
a.store-card:hover { box-shadow: 0 0 0 1px var(--green); }
.store-card img { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.store-card-text { display: grid; gap: 2px; }
.store-card-text strong { color: var(--white); font-size: 1.08rem; }
.store-card-text span { color: var(--muted); font-size: 0.95rem; }

.site-footer { margin: 72px 0 40px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }

/* Click a screen for the whole picture */
.lightbox { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgb(0 0 0 / 0.88); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.lightbox-close { position: absolute; top: 14px; right: 20px; font-size: 1.6rem; color: var(--white); }

@media (max-width: 700px) {
	.shots { grid-template-columns: 1fr; }
	.logo-title img { width: 64px; height: 64px; border-radius: 15px; }
}
.prose > h2:first-child { margin-top: 24px; }
.wordmark .app { fill: var(--green); }
