/* Shared styling for the Ticklist pages. Palette follows the app's own look —
   the deep teal it tints its ticks and progress rings with, and the cream of
   the card in its icon. */

:root {
	--teal: #16717f;
	--deep: #0f4c57;
	--ticked: #16717f;
	--ink: #11161d;
	--body: #39414c;
	--muted: #6b7280;
	--rule: #e3e6ea;
	--page: #f7f8fa;
	--card: #ffffff;
	--cream: #fbf9f4;
	--link: #10646f;
}

@media (prefers-color-scheme: dark) {
	:root {
		--teal: #4ab3c2;
		--deep: #2b8b99;
		--ticked: #4ab3c2;
		--ink: #f2f5f8;
		--body: #ccd3db;
		--muted: #929aa5;
		--rule: #2c333c;
		--page: #101318;
		--card: #191d24;
		--cream: #f0ede6;
		--link: #5cc7d6;
	}
}

* {
	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;
}

/* A ticked card — the same mark as the app icon. */
.mark {
	position: relative;
	display: inline-block;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: linear-gradient(135deg, #34a0ad, #10535f);
	vertical-align: middle;
	margin-right: 14px;
	overflow: hidden;
}

/* The card the list is written on. */
.mark::before {
	content: "";
	position: absolute;
	inset: 11px 9px;
	border-radius: 4px;
	background: #fbf9f4;
}

/* One thick tick across it, drawn as two borders of a rotated box — the icon
   uses a single stroke with rounded ends for the same reason. */
.mark::after {
	content: "";
	position: absolute;
	left: 20px;
	top: 19px;
	width: 15px;
	height: 8px;
	border-left: 3.5px solid #0f4c57;
	border-bottom: 3.5px solid #0f4c57;
	transform: rotate(-45deg);
}

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(--teal);
	border-radius: 8px;
	padding: 14px 16px;
	margin: 20px 0;
}

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

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;
}
