/* Pebbled website. Soft stone colors, serif titles, system fonts only, and golden-ratio proportions:
   type steps, spacing, and the measure all grow by φ ≈ 1.618. */
:root {
	--phi: 1.618;
	--sand: #f6f1e9;
	--stone: #ebe1d1;
	--clay: #cdbfa9;
	--blush: #dba59d;
	--blush-deep: #a8655c;
	--sage: #a3b19a;
	--charcoal: #2b2826;
	--ink: #2b2826;
	--muted: #6b6159;
	--line: #e2d8c9;
	--card: #fbf8f3;
	--s1: 0.618rem;
	--s2: 1rem;
	--s3: 1.618rem;
	--s4: 2.618rem;
	--s5: 4.236rem;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--sand: #1a1817;
		--ink: #ebe1d1;
		--muted: #b3a798;
		--line: #3a3532;
		--card: #232020;
		--blush-deep: #e3b2aa;
	}
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--sand);
	color: var(--ink);
	font: 1.0625rem/1.618 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* The measure is φ⁷ ≈ 29 rem, about 65 characters. */
main, header, footer {
	width: min(100% - 2 * var(--s3), 29rem);
	margin-inline: auto;
}

h1, h2, h3, .serif {
	font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.236;
	text-wrap: balance;
}

h1 { font-size: 2.618rem; margin: var(--s3) 0 var(--s2); }
h2 { font-size: 1.618rem; margin: var(--s4) 0 var(--s1); }
h3 { font-size: 1.236rem; margin: var(--s3) 0 var(--s1); }
p, ul { margin: 0 0 var(--s2); }
ul { padding-left: var(--s3); }
li + li { margin-top: 0.382rem; }

a { color: var(--blush-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--blush-deep); outline-offset: 3px; border-radius: 4px; }

header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: var(--s3);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: var(--s1);
	color: inherit;
	text-decoration: none;
	font-family: ui-serif, "New York", Georgia, serif;
	font-size: 1.236rem;
	font-weight: 600;
}

.brand img { width: 2.618rem; height: 2.618rem; border-radius: 22.5%; }

.hero { padding-top: var(--s4); }

.hero .pebbles { display: block; width: 61.8%; max-width: 16rem; height: auto; margin: 0 0 var(--s2) -3%; }

.lede { font-size: 1.236rem; color: var(--ink); }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.button {
	display: inline-block;
	margin: var(--s1) 0 var(--s2);
	padding: 0.764rem 1.618rem;
	border-radius: 999px;
	background: var(--charcoal);
	color: var(--stone);
	text-decoration: none;
	font-weight: 600;
}

.button:hover { background: #3d3835; }

@media (prefers-color-scheme: dark) {
	.button { background: var(--stone); color: var(--charcoal); }
	.button:hover { background: #fff8ee; }
}

.points { list-style: none; padding: 0; margin: var(--s3) 0; display: grid; gap: var(--s2); }
.points li { margin: 0; padding: var(--s2) var(--s3); background: var(--card); border: 1px solid var(--line); border-radius: var(--s2); }
.points h2 { margin-top: 0; font-size: 1.236rem; }
.points p { margin: 0; }

.dot { display: inline-block; width: 0.618em; height: 0.618em; border-radius: 50%; margin-right: 0.382em; vertical-align: 0.05em; }
.dot.sand { background: var(--clay); }
.dot.blush { background: var(--blush); }
.dot.sage { background: var(--sage); }

ol.steps { padding-left: var(--s3); }

.note {
	padding: var(--s2) var(--s3);
	border-left: 3px solid var(--blush);
	background: var(--card);
	border-radius: 0 var(--s1) var(--s1) 0;
	margin: var(--s3) 0;
}

table { border-collapse: collapse; width: 100%; margin: 0 0 var(--s2); font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: var(--s1) var(--s1) var(--s1) 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }

footer {
	margin-top: var(--s5);
	padding: var(--s3) 0 var(--s4);
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.875rem;
}

footer nav { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin-bottom: var(--s1); }
footer a { color: inherit; }

/* On phones, each table row becomes a small card with its column names as labels. */
@media (max-width: 36rem) {
	table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
	table.stack tr { padding: var(--s1) 0; border-bottom: 1px solid var(--line); }
	table.stack td { border: 0; padding: 0.236rem 0; }
	table.stack td::before { content: attr(data-label); display: block; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
}
