/* Shared styling for the Thumbs pages. Palette follows the app's own look — the
   amber it uses for the caret, the timer and its icon, with red kept for the one
   thing the app uses red for: a keystroke that went wrong. */

:root {
	--amber: #b26b05;
	--deep: #8a5204;
	--wrong: #c62f26;
	--ink: #14161a;
	--body: #3c414a;
	--muted: #6b7280;
	--rule: #e4e6ea;
	--page: #f8f8f9;
	--card: #ffffff;
	--link: #9a5d04;
}

@media (prefers-color-scheme: dark) {
	:root {
		--amber: #fab336;
		--deep: #d9970f;
		--wrong: #ff6b63;
		--ink: #f3f4f6;
		--body: #ccd1d9;
		--muted: #919aa5;
		--rule: #2b2f36;
		--page: #0f1013;
		--card: #191b1f;
		--link: #f0ad3c;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0 20px 72px;
	background: var(--page);
	color: var(--body);
	font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-text-size-adjust: 100%;
}

.wrap {
	max-width: 720px;
	margin: 0 auto;
}

header.site {
	padding: 48px 0 8px;
	border-bottom: 1px solid var(--rule);
	margin-bottom: 32px;
}

/* One typed word and the caret waiting on the next — the same mark as the app
   icon, at the same proportions. */
.mark {
	display: inline-block;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background:
		linear-gradient(rgba(255, 255, 255, 0.3) 0 0) 14px 25px / 21px 6px no-repeat,
		linear-gradient(#fab336 0 0) 38px 20px / 5px 16px no-repeat,
		linear-gradient(135deg, #23262c, #0d0e11);
	vertical-align: middle;
	margin-right: 14px;
}

h1 {
	display: inline-block;
	vertical-align: middle;
	margin: 0;
	font-size: 30px;
	letter-spacing: -0.02em;
	color: var(--ink);
}

h2 {
	margin: 40px 0 12px;
	font-size: 21px;
	color: var(--ink);
	letter-spacing: -0.01em;
}

h3 {
	margin: 28px 0 6px;
	font-size: 17px;
	color: var(--ink);
}

p {
	margin: 0 0 14px;
}

.lede {
	font-size: 19px;
	color: var(--ink);
	margin: 20px 0 8px;
}

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

ul {
	padding-left: 22px;
	margin: 0 0 16px;
}

li {
	margin-bottom: 8px;
}

.shots {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 28px 0 8px;
	justify-content: center;
}

.shots figure {
	margin: 0;
	text-align: center;
	flex: 0 0 auto;
	width: 160px;
}

.shots img {
	width: 100%;
	height: auto;
	border-radius: 18px;
	border: 1px solid var(--rule);
}

.shots figcaption {
	font-size: 13px;
	color: var(--muted);
	margin-top: 8px;
}

.note {
	background: var(--card);
	border: 1px solid var(--rule);
	border-left: 3px solid var(--amber);
	border-radius: 8px;
	padding: 14px 16px;
	margin: 20px 0;
}

.note p:last-child {
	margin-bottom: 0;
}

/* The way the app marks up a word, reused inline so the text can show it
   rather than only describe it. */
.typed {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	color: var(--ink);
}

.miss {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	color: var(--wrong);
	text-decoration: underline;
	text-decoration-color: var(--wrong);
}

.ahead {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	color: var(--muted);
}

nav.sub {
	margin-top: 14px;
	font-size: 15px;
}

nav.sub a {
	margin-right: 18px;
}

footer {
	margin-top: 56px;
	padding-top: 20px;
	border-top: 1px solid var(--rule);
	font-size: 14px;
	color: var(--muted);
}

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.9em;
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: 4px;
	padding: 1px 5px;
}
