/**
 * Make Things Well - Static Landing Page Styles
 *
 * Styles for the static wordmark landing page.
 * Responsive layout with mobile-friendly word stacking.
 *
 * @package maker
 */

/* ==========================================================================
   Base reset
   ========================================================================== */

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ==========================================================================
   Root variables
   ========================================================================== */

:root {
	--lettering: #000;
	--bg: #fff;
}

@media (prefers-color-scheme: dark) {
	:root {
		--lettering: #fff;
		--bg: #000;
	}
}

/* ==========================================================================
   Body layout
   ========================================================================== */

body {
	display: grid;
	min-height: 100vh;
	min-height: 100dvh;
	gap: min(1.75rem, 4vh);
	gap: min(1.75rem, 4dvh);
	justify-content: center;
	grid-template-columns: 100%;
	grid-template-rows: auto 1fr auto;
	place-items: center;
	background-color: var(--bg);
	color: var(--lettering);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* ==========================================================================
   Name styles
   ========================================================================== */

h1 {
	display: flex;
	grid-row: 2 / 3;
	width: 100%;
	height: auto;
	max-width: 1200px;
	gap: 2rem;
	justify-content: center;
	align-items: center;
	color: var(--lettering);
}

h1 path {
	fill: currentColor;
}

/* Individual words */
svg {
	width: auto;
	height: auto;
	flex: 0 0 auto;
}

/* ==========================================================================
   Subtitle styles
   ========================================================================== */

h2 {
	grid-row: 1 / 2;
	margin-top: min(3rem, 5vh);
	margin-top: min(3rem, 5dvh);
	font-size: clamp(1.125rem, 3vw, 1.625rem);
	font-weight: 200;
}

/* ==========================================================================
   Email styles
   ========================================================================== */

a {
	grid-row: 3 / 4;
	margin-bottom: min(3rem, 5vh);
	margin-bottom: min(3rem, 5dvh);
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	text-decoration: none;
	transition: transform 0.2s ease-out;
}

a:hover {
	transform: scale(1.05) translateY(-1px);
}

a:active {
	transform: scale(1.025) translateY(1px);
}

a:focus {
	outline: 0.125rem solid var(--lettering);
	outline-offset: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
	a {
		transition: none;
	}

	a:hover,
	a:active {
		transform: none;
	}
}

/* ==========================================================================
   Responsive layout
   ========================================================================== */

/* Mobile */
@media (max-width: 767.98px) {
	h1 {
		gap: min(2rem, 5vh);
		gap: min(2rem, 5dvh);
		flex-direction: column;
	}

	svg {
		max-height: 12vh;
		max-height: 12dvh;
	}
}

/* Tablet */
@media (min-width: 768px) {
	h1 {
		max-width: 90vw;
		gap: min(3rem, 5vw);
	}

	svg {
		max-height: max(70px, 9vw);
	}
}
