/* Shared styling for the Postcard pages. Palette follows the app's own look —
   the sun-faded terracotta it tints everything with, against the cream of the
   card in the icon. */

:root {
	--clay: #c2542f;
	--deep: #98401f;
	--cream: #faf6f0;
	--ink: #17161a;
	--body: #43403f;
	--muted: #726c69;
	--rule: #e7e3de;
	--page: #f9f8f6;
	--card: #ffffff;
	--link: #b34c2a;
}

@media (prefers-color-scheme: dark) {
	:root {
		--clay: #f28a69;
		--deep: #d9704e;
		--cream: #2a2522;
		--ink: #f4f2f0;
		--body: #d3cecb;
		--muted: #9b9390;
		--rule: #322d2a;
		--page: #131110;
		--card: #1c1917;
		--link: #f0916f;
	}
}

* {
	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 postcard with a stamp in the corner — the same mark as the app icon, at the
   same tilt. */
.mark {
	display: inline-block;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: linear-gradient(135deg, #e68359, #b44732);
	vertical-align: middle;
	margin-right: 14px;
	position: relative;
	overflow: hidden;
}

.mark::before {
	content: "";
	position: absolute;
	left: 9px;
	top: 15px;
	width: 38px;
	height: 27px;
	background: #faf8f4;
	border-radius: 4px;
	transform: rotate(-7deg);
	box-shadow: 0 1px 3px rgba(60, 20, 10, 0.3);
}

.mark::after {
	content: "";
	position: absolute;
	left: 35px;
	top: 19px;
	width: 9px;
	height: 9px;
	background: #c4522f;
	border-radius: 1px;
	transform: rotate(-7deg);
}

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

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

/* The three verdicts, set the way the app sets them. */
.verdict {
	font-weight: 600;
	white-space: nowrap;
}

.loved { color: #e0245e; }
.fine { color: #2f7fd8; }
.skip { color: var(--muted); }

@media (prefers-color-scheme: dark) {
	.loved { color: #ff5c86; }
	.fine { color: #6db2f5; }
}

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