* { box-sizing: border-box; }

:root {
	color-scheme: light;

	--light: #F7F7F5;
	--dark: #161311;

	--color-yellow-400: #F2C230;
	--color-yellow-500: #E5B01C;
	--color-yellow-600: #C99412;

	--color-gray-300: oklch(87.2% .01 258.338);
	--color-gray-400: oklch(70.7% .022 261.325);
	--color-gray-500: oklch(55.1% .027 264.364);
	--color-gray-700: oklch(37.3% .034 259.733);
}

body {
	background: var(--light);

	margin: 0;

	display: flex;
	flex-direction: column;
	min-height: 100vh;

	font-family:
		ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
		Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
	color: var(--dark);
	line-height: 1.6;
}

body > * {
	background: #fff;

	padding: 2.5em;
	width: min(80%, 70em);
	margin: 3em auto;

	border-radius: 1rem;
	box-shadow:
		0 1px 2px rgba(0, 0, 0, .04),
		0 8px 24px rgba(0, 0, 0, .06);
}

body > header {
	background:
		linear-gradient(rgba(22, 19, 17, .35), rgba(22, 19, 17, .75)),
		url(/assets/images/backgrounds/header-splash.jpg) center/cover no-repeat,
		var(--dark);
	box-shadow: none;
	padding: 0;
	width: 100%;
	margin: 0;
	border-radius: 0;
}

a, a:visited { color: var(--dark); }

img { max-width: 100%; }

h1, h2, h3 {
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--dark);
}

h1 {
	margin: 0;
	margin-bottom: .5rem;
	font-size: 2rem;
}

h2 { font-size: 1.2rem; }

.eyebrow {
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: .8rem;
	font-weight: 700;
	color: var(--color-yellow-400);
	margin: 0 0 .5rem;
}

.section-intro {
	color: var(--color-gray-500);
	font-size: 1.05rem;
	margin-top: 0;
	margin-bottom: 2em;
}

/* Top nav bar */

nav.site-nav {
	color: var(--light);

	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	row-gap: .5em;

	padding: 1em 1.5em;
}

nav.site-nav a.brand {
	display: flex;
	align-items: center;
}

nav.site-nav a.brand img {
	display: block;
	height: 3rem;
	width: auto;
}

nav.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;

	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5em 1.5em;
}

nav.site-nav a:not(.etsy-link),
nav.site-nav a:not(.etsy-link):visited {
	color: var(--color-gray-300);
	text-decoration: none;
	font-weight: 600;
	font-size: .95rem;
}

nav.site-nav a:not(.etsy-link):hover { color: var(--light); }

.etsy-link,
.etsy-link:visited {
	background: var(--color-yellow-400);
	color: var(--dark);
	text-decoration: none;
	font-weight: 700;
	padding: .5em 1.1em;
	border-radius: 3.4e38px;
}

.etsy-link:hover { background: var(--color-yellow-500); }

nav.site-nav .etsy-link { font-size: .95rem; }

/* Hero */

header .hero {
	color: var(--light);

	padding: 4em 1.5em;
	text-align: center;
}

header .hero h1 img {
	width: min(100%, 20rem);
	height: auto;
}

header .hero p {
	max-width: 36em;
	margin: 0 auto 1.5rem;
	font-size: 1.125rem;
	color: var(--color-gray-300);
}

.hero-features {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .75em;
	list-style: none;
	padding: 0;
	margin: 0 auto 2em;
}

.hero-features li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .35em;

	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--color-gray-300);
}

.hero-features svg {
	width: 2.25rem;
	height: 2.25rem;
}

.hero-features li + li {
	border-left: 1px solid rgba(255, 255, 255, .2);
	padding-left: 1.5em;
	margin-left: .25em;
}

.cta {
	display: inline-block;
	text-decoration: none;
	font-weight: 700;
	padding: .75em 1.5em;
	border-radius: .5rem;
	transition: background-color .15s ease, color .15s ease;
}

main { max-width: 35em; }

/* Products grid (shared by homepage "featured" + /products) */

main#featured, main#products { max-width: 75em; }

main#featured ul,
main#products ul {
	list-style: none;
	padding: 0;
	margin: 0;

	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
	gap: 1.5em;
}

main#featured ul li,
main#products ul li {
	border: 1px solid var(--color-gray-300);
	border-radius: .75rem;
	overflow: hidden;
}

main#featured ul li > a,
main#products ul li > a {
	display: block;
	color: inherit;
	text-decoration: none;
}

main#featured ul li > a:hover h2,
main#products ul li > a:hover h2 {
	text-decoration: underline;
}

main#featured .product-image,
main#products .product-image {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--light);
	position: relative;
	display: block;
	text-decoration: none;
}

main#featured .product-image img,
main#products .product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery-image { display: none; }
.gallery-image.is-active { display: block; }

.gallery-thumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5em;
	margin-bottom: 1.5em;
}

.gallery-thumb {
	width: 3.5em;
	height: 3.5em;
	border-radius: .5rem;
	overflow: hidden;
	border: 2px solid transparent;
	padding: 0;
	cursor: pointer;
	background: var(--light);
}

.gallery-thumb.is-active { border-color: var(--color-yellow-400); }

.gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

main#featured .gallery-thumbs,
main#products .gallery-thumbs {
	gap: .3em;
	margin: .5em 1em 1em;
	justify-content: flex-start;
}

main#featured .gallery-thumb,
main#products .gallery-thumb {
	width: 1.6em;
	height: 1.6em;
	border-radius: .3rem;
}

main#featured ul li h2,
main#products ul li h2 {
	margin: 1em 1em 0;
}

.product-price {
	margin: .25em 1em 1em;
	color: var(--color-gray-500);
	font-weight: 600;
}

main#featured ul li .cta,
main#products ul li .cta {
	display: block;
	margin: 0 1em 1em;
	text-align: center;
}

#see-all {
	text-align: center;
	margin-top: 2em;
	margin-bottom: 0;
}

/* Single product page */

main#product {
	max-width: 30em;
	text-align: center;
}

main#product .product-image {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--light);
	border-radius: .75rem;
	margin-bottom: 1.5em;
}

main#product .product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

main#product .product-price {
	margin: 0 0 1.5em;
	font-size: 1.1rem;
}

.product-description {
	text-align: left;
	margin-top: 2em;
	color: var(--color-gray-700);
	line-height: 1.7;
}

.product-description p { margin: 0 0 1em; }

/* Footer */

footer {
	margin-top: auto;
	margin-bottom: 0;

	background: var(--dark);
	color: var(--color-gray-300);

	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5em;

	padding: 1.5em;
}

footer p { margin: 0 0 .5em; }

footer a, footer a:visited { color: var(--color-gray-300); }
footer a:hover { color: var(--light); }

footer h1 {
	color: var(--light);
	font-size: 1rem;
	margin-bottom: .5em;
}

footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

footer ul li { margin: .4em 0; }

footer ul.social-icons {
	display: flex;
	gap: .75em;
	margin-top: .75em;
}

footer ul.social-icons li { margin: 0; }

footer ul.social-icons a {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 2.25em;
	height: 2.25em;
	border-radius: 50%;

	background: rgba(255, 255, 255, .08);
	color: var(--color-gray-300);
}

footer ul.social-icons a:hover {
	background: rgba(255, 255, 255, .15);
	color: var(--light);
}

footer ul.social-icons svg { fill: currentColor; }

footer #copyright {
	grid-column: 1 / -1;
	margin-top: 1em;
	color: var(--color-gray-500);
	font-size: .85rem;
}

@media screen and (max-width: 700px) {
	body > * { width: 92%; padding: 1.5em; }

	nav.site-nav {
		flex-direction: column;
		align-items: flex-start;
		gap: .5em;
	}

	footer { grid-template-columns: 1fr; }
}
