/* Design system: ~/Sites/gerganadavid-site/design-system.md */
:root {
	--blue: #0055f5;
	--dark-blue: #003393;
	--blue-hover: #0047d1;
	--blue-active: #003db3;
	--secondary-hover: #cfdffd;
	--secondary-active: #bdd2fb;
	--black: #20202a;
	--white: #ffffff;
	--light-white: #f0f1f5;
	--gray: #e3e5ed;
	--dark-gray: #393f4b;
	--yellow: #ffe201;
	--green: #139a2b;
	--secondary-bg: #e0ebfe;
	--text-soft: #636c80;
	--text-soft-on-gray: #5a6376;

	/* Fluid values between Big Bloom's own 390 and 1440 sizes. */
	--h1: min(calc(2.471rem + 0.588vw), 3rem);
	--h2: min(calc(1.644rem + 0.951vw), 2.5rem);
	--h3: min(calc(1.235rem + 0.294vw), 1.5rem);
	--section: min(calc(1.617rem + 5.981vw), 7rem);

	--s-1: 0.5rem;
	--s-2: 0.75rem;
	--s-3: 1rem;
	--s-4: 1.5rem;
	--s-5: 2rem;
	--s-6: 3rem;
	--s-7: 4rem;

	--r-control: 0.75rem;
	--r-card: 1rem;
	--r-panel: 2rem;
	--r-edge: 4rem;

	--gutter: min(5vw, 4.5rem);
	--container: 84rem;
	--header-h: 5rem;
	--ease: 0.2s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1.5rem); }

body {
	margin: 0;
	background: var(--white);
	color: var(--black);
	font-family: 'Red Hat Display', Arial, sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.375;
	text-wrap: pretty;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; color: inherit; font-family: inherit; font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--h1); line-height: 1.1; }
h2 { font-size: var(--h2); line-height: 1.2; }
h3 { font-size: var(--h3); line-height: 1.2; }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--dark-blue); }
img { display: block; max-width: 100%; height: auto; }

:focus-visible { outline: 0.1875rem solid var(--blue); outline-offset: 0.1875rem; border-radius: 0.25rem; }
.gd-dark :focus-visible { outline-color: var(--white); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
