:root {
	--color-bg: #fbfbfb;
	--color-bg-alt: #f0f0f0;
	--color-text: #404040;
	--color-text-alt: #171717;
	--color-primary: #AA0F62;
	--font-family: "Inter", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	--font-size-base: 0.9375rem;
	--line-height: 1.6;
	--font-weight-normal: 400;

	--max-width: 800px;
	--space: 1rem;

	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@layer reset {

	/* Josh's Custom CSS Reset https://www.joshwcomeau.com/css/custom-css-reset/ */
	*, *::before, *::after {
		box-sizing: border-box;
	}

	*:not(dialog) {
		margin: 0;
	}

	/* Prevent font size inflation, see https://piccalil.li/blog/a-more-modern-css-reset/ */
	html {
		-moz-text-size-adjust: none;
		-webkit-text-size-adjust: none;
		text-size-adjust: none;
	}

	body {
		line-height: 1.5;
		min-height: 100vh;
	}

	img, picture, video, canvas, svg {
		display: block;
		max-width: 100%;
	}

	input, button, textarea, select {
		font: inherit;
	}

	textarea:not([rows]) {
		min-height: 10em;
	}

	p, h1, h2, h3, h4, h5, h6 {
		overflow-wrap: break-word;
	}

	p {
		text-wrap: pretty;
	}

	h1, h2, h3, h4 {
		text-wrap: balance;
	}

	ul[role="list"],
	ol[role="list"] {
		list-style: none;
	}

	h1, h2, h3, h4, button, input, label {
		line-height: 1.1;
	}

	a:not([class]) {
		text-decoration-skip-ink: auto;
		color: currentColor;
	}
}

@layer custom-reset {
	html, body {
		scroll-behavior: smooth;
	}

	fieldset {
		border: 0;
		padding: 0;
	}

	table {
		width: 100%;
	}
}

@layer global {
	body {
		font-family: var(--font-family);
		font-size: var(--font-size-base);
		font-weight: var(--font-weight-normal);
		line-height: var(--line-height);
		color: var(--color-text);
		background-color: var(--color-bg);

		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		text-rendering: optimizeLegibility;
	}

	/* flex to push footer down */
	body {
		display: flex;
		flex-direction: column;
	}

	/* stretch main to push footer down */
	main {
		flex: 1;
	}

	main, footer {
		padding-block-start: var(--space);
		padding-block-end: var(--space);
	}

	p {
		color: var(--color-text);
	}

	h1, h2, h3 {
		font-size: 1.375rem;
		font-weight: 600;
		color: var(--color-text-alt);
	}

	a {
		color: var(--color-text-alt);
		font-weight: 500;
		text-decoration: none;
		&:hover {
			color: var(--color-primary);
		}
	}

	footer {
		font-size: calc(var(--font-size-base) * 0.8125);
		margin: calc(var(--space) * 1.5) 0;
		& a {
			color: inherit;
		}
	}
}

@layer layout {
	.container {
		width: 100%;
		max-width: var(--max-width);
		margin-left: auto;
		margin-right: auto;
		padding-inline-start: var(--space);
		padding-inline-end: var(--space);
	}

	.stack {
		--gap: var(--space);
		display: grid;
		gap: var(--gap);
		align-content: start;
	}

}

@layer components {
	.intro {
		margin-top: calc(var(--space) * 10);
	}
	.company-headline {
		color: var(--color-primary);
		font-size: calc(var(--font-size-base) * 1.375);
	}
	.showcase {
		margin-top: calc(var(--space) * 3);
	}
	.showcase-image {
		box-shadow: var(--shadow-sm);
		border-radius: 16px;
		transition: transform 0.25s ease;
		&:hover {
			transform: scale(1.05) rotate(2deg);
		}
	}
	.social-link {
		display: inline-flex;
		flex-direction: row;
		align-items: center;
		gap: calc(var(--space) * 0.25);
		font-weight: 500;
		background-color: var(--color-bg-alt);
		border-radius: 4px;
		padding: calc(var(--space) * 0.25) calc(var(--space) * 0.75);
		transition: background-color 0.2s ease;
		&:hover {
			color: inherit;
			background-color: color-mix(in srgb, var(--color-bg-alt) 94%, black);
		}
	}
}

@layer utilities {
	.text-center {
		text-align: center;
	}
	.text-alt {
		color: var(--color-text-alt);
		font-weight: 500;
	}
	.link-list {
		list-style: none;
		padding: 0;
		display: flex;
		gap: var(--space);
		& li {
			text-wrap: balance;
		}
	}
}