/* The site's one stylesheet: a single plain column that follows the reader's light or dark setting. */
@layer site {
	/* ---------- Tokens ---------- */
	:root {
		color-scheme: light dark;
		--marktone-text: light-dark( #1d1d1f, #f2f2f2 );
		--marktone-background: light-dark( #ffffff, #161617 );
		--marktone-muted: light-dark( #6e6e73, #a1a1a6 );
		--marktone-accent: light-dark( #0a5fd8, #6aa8ff );
	}

	/* ---------- Page ---------- */
	* { box-sizing: border-box; }
	body { margin: 0; background: var( --marktone-background ); color: var( --marktone-text ); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
	main { max-width: 40rem; margin: 0 auto; padding: clamp( 2rem, 8vw, 4rem ) 1rem; }
	h1 { font-size: 2rem; margin: 0 0 0.5rem; }
	h2 { font-size: 1.15rem; margin: 2.5rem 0 0.5rem; }
	a { color: var( --marktone-accent ); }
	code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }

	/* ---------- Reusable pieces ---------- */
	.muted { color: var( --marktone-muted ); }
	/* The button text takes the page background, so it contrasts with the accent in both themes. */
	.button { display: inline-block; padding: 0.7rem 1.2rem; border-radius: 0.5rem; background: var( --marktone-accent ); color: var( --marktone-background ); text-decoration: none; font-weight: 600; }
	.button:hover { opacity: 0.9; }
}
