/* ========================================= */
/* SHARED STYLES - Used by all pages        */
/* ========================================= */

:root {
	--clr-bg: #ece9e3;
	--clr-text: #444;
	--clr-border: #888;
	--clr-light: white;
	--clr-dark: #333;
}

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

body {
	font-family:
		"Inter",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		system-ui,
		sans-serif;
	background-color: var(--clr-bg);
	color: var(--clr-text);

	display: flex;
	flex-flow: column nowrap;
	gap: 4rem;
}

/* Keep Comic Sans for headings */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family:
		"Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", sans-serif;
}

h1 {
	font-size: 3.5rem;
	margin-bottom: 0;
}

h3 {
	font-weight: normal;
}

@media (max-width: 600px) {
	h1 {
		font-size: 2.675rem;
	}
}

@media (max-width: 400px) {
	h1 {
		font-size: 2.375rem;
		margin-bottom: 1rem;
	}
}

a {
	color: var(--clr-text);
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/*     SHARED CARD HOVER EFFECT                             */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.card-hover {
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.card-hover:hover,
.card-hover:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/*     FOOTER                                               */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
footer {
	padding-block: 2.5rem 2.75rem;
	border-top: 1px solid var(--clr-border);

	background-color: var(--clr-light);
	color: var(--clr-text);

	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	justify-content: center;
	gap: 2rem;
}

#links {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: center;
	column-gap: 1.75rem;
}

.link {
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
	transition: color 0.2s ease;
}

.link:hover,
.link:focus-visible {
	color: #000;
}
