/*
 * The frame's base: the shared values of the site's one responsive rule, a zero-specificity margin
 * reset, keyboard focus, and anchor scrolling. Colours and type come from theme.json presets.
 *
 * Responsive rule: the phone is drawn at 390 and the desktop at 1440. Type and spacing interpolate
 * linearly between the two with clamp(); the layout switches to the desktop shape at min-width
 * 768px. Above 1440 the content column stays 1312px wide and centred, backgrounds stay full-bleed.
 */

:root {
	/* Side gutter: 24px on the 390 phone frame (33:561 padding), 64px on the 1440 frame (30:208 padding). */
	--inv-gutter: clamp(24px, calc(24px + 40 * (100vw - 390px) / 1050), 64px);
	/* The desktop content column (30:228 is 1312px wide). */
	--inv-column: 1312px;
	/* Inline padding that keeps a full-bleed band's content in the column: the gutter, or more above 1440. */
	--inv-inline: max(var(--inv-gutter), calc((100% - var(--inv-column)) / 2));
	/* Motion (U5, operator request 2026-10-16; the design draws none): ONE easing curve for every
	   movement on the site, a long ease-out with no overshoot, and the two durations it runs at -
	   text and small parts, then photos and drawn lines, which travel further and settle slower. */
	--inv-ease: cubic-bezier(0.33, 1, 0.68, 1);
	--inv-motion-text: 800ms;
	--inv-motion-photo: 1200ms;
}

body {
	margin: 0;
	/* The design's Inter is the text cut at every size. The shipped variable Inter has an optical-size
	   axis that the browser would otherwise tighten above 14px (a 22px line measured 658px against
	   the design's 680px). */
	font-optical-sizing: none;
	/* Figma renders type with grayscale antialiasing; Chrome and Safari on macOS default to subpixel,
	   which draws Inter visibly heavier than the frames (U2 measured it). */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

:where(h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote) {
	margin: 0;
}

/* Keyboard focus is visible everywhere; the design draws no focus state, so it is plain. */
:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Anchor links scroll smoothly, unless the visitor asks for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}
