/* The site's one stylesheet: kcalloc's DESIGN.md §2 and §3, light only (the
   design system defines no dark tokens, and §7 rules a dark theme out).
   System stacks, no font, image or style from another host. */
:root {
	--paper: #FAF8F4;
	--surface-2: #F3F0EA;
	--ink: #1C1A17;
	--ink-soft: #6B6459;
	--rule: #E4DED3;
	--accent: #2F6B5A;
	--serif: ui-serif, Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
	--sans: ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
	overflow-wrap: break-word;
}

.top, main, .foot {
	max-width: 40em;
	margin: 0 auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

.top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-top: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--rule);
}

.top .name {
	font-family: var(--serif);
	font-size: 1.2rem;
	color: var(--ink);
	text-decoration: none;
}

/* The app's icon: beside the name on every page, larger above the home's
   title. It is decorative (the name is written beside it), so its alt is empty. */
.top .name {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.top .name img { display: block; }

.appicon {
	display: block;
	margin: 0.5rem 0 1rem;
}

main { padding-top: 1.5rem; padding-bottom: 2rem; }

h1, h2 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.15;
	color: var(--ink);
}

h1 { font-size: 1.9rem; margin: 0 0 0.75rem; }

h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }

p, ul { margin: 0 0 1rem; }

ul { padding-left: 1.25rem; }

li { margin-bottom: 0.25rem; }

.lead { font-size: 1.15rem; }

.dated { color: var(--ink-soft); }

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

a:focus-visible, .scroll:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* A table scrolls inside its own box rather than widening the page. */
.scroll {
	overflow-x: auto;
	margin: 0 0 1rem;
	border: 1px solid var(--rule);
}

table {
	border-collapse: collapse;
	min-width: 40rem;
	font-size: 0.9rem;
}

th, td {
	text-align: left;
	vertical-align: top;
	padding: 0.5rem 0.6rem;
	border-bottom: 1px solid var(--rule);
}

th { background: var(--surface-2); }

tr:last-child td { border-bottom: 0; }

.foot {
	padding-top: 1rem;
	padding-bottom: 2rem;
	border-top: 1px solid var(--rule);
	color: var(--ink-soft);
	font-size: 0.9rem;
}

/* A screenshot: at most 18rem wide, side by side where the column allows. */
.figs {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0 0 1rem;
}

figure { margin: 0 0 1rem; }

.figs figure {
	margin: 0;
	flex: 1 1 14rem;
	max-width: 18rem;
}

figure img {
	display: block;
	width: 100%;
	max-width: 18rem;
	height: auto;
	border: 1px solid var(--rule);
	border-radius: 0.8125rem;
}

figcaption {
	max-width: 18rem;
	margin-top: 0.4rem;
	color: var(--ink-soft);
	font-size: 0.9rem;
}
