/* Color tokens and fallback type. Layout and the viewer are in gallery.css;
   Nothing Sans is set in typography.css, loaded last. */

:root {
	--bg: #fbfaf7;
	--ink: #1d1d1b;
	--muted: #6b6a66;
	--faint: #8f8c85;
	--rule: #dcd9d2;
	--reading: #3d3c39;
	/* Link underline colors for the link rule in typography.css. */
	--nothing-link-underline: var(--faint);
	--nothing-link-underline-hover: var(--ink);
	--nothing-small: 15px;
	--nothing-copy: 20px;
	--measure: calc(var(--nothing-small) * 38);
	--wide: 72em;
	--gutter: 16px;
	color-scheme: light dark;
}

/* Night version. Follows the system appearance unless the Light / Dark /
   Auto switch (assets/js/theme.js) sets data-theme on <html>. The two dark blocks
   must stay identical. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #141413;
		--ink: #e8e6e1;
		--muted: #a19e97;
		--faint: #85827b;
		--rule: #34332f;
		--reading: #cfccc4;
	}
}
:root[data-theme="dark"] {
	--bg: #141413;
	--ink: #e8e6e1;
	--muted: #a19e97;
	--faint: #85827b;
	--rule: #34332f;
	--reading: #cfccc4;
	color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
@media screen and (max-width: 1024px) { :root { --nothing-copy: 18px; --nothing-small: 14px; } }

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); color: var(--ink); }

body {
	font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	font-size: var(--nothing-small);
	line-height: 1.3333;
	padding: 0 var(--gutter);
	font-synthesis: none;
}

h1 {
	font-weight: 700;
	font-size: clamp(40px, 6vw, 88px);
	line-height: 0.98;
	letter-spacing: -0.01em;
	margin: 0;
}

h2 {
	font-weight: 400;
	font-size: calc(var(--nothing-copy) * 0.96);
	line-height: 1.25;
	margin: 0;
	color: var(--ink);
}

.kicker {
	font-size: var(--nothing-small);
	line-height: 1.3333;
	color: var(--muted);
	margin: 0 0 0.75em;
}

.pending { color: var(--muted); font-style: italic; }

/* Links follow the noth-ing.com link rule in typography.css: a thin
   underline in --nothing-link-underline that thickens and darkens on hover or
   keyboard focus. A standalone "go to" link (a record title, Next) carries
   class="go" for a trailing arrow; links inside a sentence are underlined
   only. */
