:root {
	--color-base: #131313;
	--color-band: #252525;
	--color-text: #fff;
	--color-accent: #996515;
	--color-border: #ffffff33;
	--color-muted: #888;

	--text-sm: 0.875rem;
	--text-md: clamp(1rem, 1rem + (1vw - 0.2rem) * 0.196, 1.125rem);
	--text-lg: clamp(1.125rem, 1.125rem + (1vw - 0.2rem) * 0.392, 1.375rem);
	--text-xl: clamp(1.4rem, 1.4rem + (1vw - 0.2rem) * 0.627, 1.8rem);
	--text-2xl: clamp(2rem, 2rem + (1vw - 0.2rem) * 0.941, 2.6rem);
	--text-display: clamp(2.2rem, 2.2rem + (1vw - 0.2rem) * 1.333, 3.5rem);

	--space-xs: 0.5rem;
	--space-sm: 0.75rem;
	--space-md: 1.25rem;
	--space-lg: 2.5rem;
	--space-xl: 4rem;
	--space-page: clamp(50px, 8vw, 100px);
	--gutter: clamp(30px, 5vw, 50px);

	--width-narrow: 670px;
	--width-text: 860px;
	--width-wide: 1340px;
}

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

body {
	margin: 0;
	background: var(--color-base);
	color: var(--color-text);
	font-family: system-ui, sans-serif;
	font-size: var(--text-lg);
	font-weight: 300;
	letter-spacing: -0.22px;
	line-height: 1.5;
}

h1,
h2,
h3 {
	margin: 0 0 var(--space-md);
	font-weight: 400;
	letter-spacing: -0.1px;
	line-height: 1.125;
	text-wrap: pretty;
}

h1 {
	font-size: var(--text-2xl);
}

h2 {
	font-size: var(--text-xl);
}

h3 {
	font-size: var(--text-lg);
}

p {
	margin: 0 0 var(--space-md);
	text-wrap: pretty;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.1em;
}

a:hover {
	text-decoration: none;
}

img,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

figcaption {
	margin-top: var(--space-xs);
	font-size: var(--text-sm);
	line-height: 1.4;
}

.skip-link {
	position: absolute;
	top: 5px;
	left: 5px;
	z-index: 1;
	padding: 15px 23px;
	background: #eee;
	color: #444;
	font-size: 1rem;
	text-decoration: none;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

/* Header */

.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm) var(--space-md);
	max-width: calc(var(--width-wide) + 2 * var(--gutter));
	margin: 0 auto;
	padding: var(--space-md) var(--gutter);
}

.site-header img {
	width: 140px;
}

.site-header ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs) var(--space-lg);
	margin: 0;
	padding: 0;
	font-size: var(--text-md);
	list-style: none;
}

.site-header ul a {
	text-decoration: none;
}

.site-header ul a:hover,
.site-header ul a[aria-current] {
	text-decoration: underline;
}

/* Page layouts */

.page {
	max-width: calc(var(--width-narrow) + 2 * var(--gutter));
	margin: 0 auto;
	padding: var(--space-page) var(--gutter) 0;
}

.page-text {
	max-width: calc(var(--width-text) + 2 * var(--gutter));
}

.page-wide {
	max-width: calc(var(--width-wide) + 2 * var(--gutter));
}

.page h2 {
	margin-top: var(--space-xl);
}

.page h3,
.page .product-title {
	margin-top: var(--space-lg);
}

section:first-child > h2:first-child {
	margin-top: 0;
}

/* Homepage */

.hero {
	padding-bottom: var(--space-page);
	text-align: center;
}

.hero + .page {
	padding-top: 0;
}

.hero h1 {
	font-size: var(--text-xl);
}

.hero-intro {
	font-size: clamp(1.25rem, 1.25rem + (1vw - 0.2rem) * 0.392, 1.5rem);
	line-height: 1.2;
}

.hero-stats {
	font-size: var(--text-sm);
}

.buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-md);
	margin-bottom: var(--space-md);
}

.video {
	margin-top: var(--space-lg);
}

.product-title {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	margin-bottom: var(--space-md);
}

.product-title h3,
.product-title h2 {
	margin: 0;
	font-size: var(--text-lg);
}

.product-title img {
	flex: none;
	width: 32px;
	height: 32px;
	object-fit: contain;
}

/* Buttons */

.button {
	display: inline-block;
	padding: 1rem 2.25rem;
	border-radius: 9999px;
	background: var(--color-text);
	color: var(--color-accent);
	font-size: var(--text-md);
	font-weight: 600;
	letter-spacing: 1.44px;
	text-decoration: none;
	text-transform: uppercase;
}

.button:hover {
	background: color-mix(in srgb, var(--color-text) 85%, transparent);
	color: var(--color-base);
}

.button:focus-visible {
	outline: 2px solid var(--color-text);
	outline-offset: 2px;
}

.button-primary {
	background: var(--color-accent);
	color: var(--color-text);
}

.button-outline {
	border: 1px solid;
	background: none;
	color: inherit;
	font-size: var(--text-sm);
}

.button-outline:hover {
	color: var(--color-base);
}

/* Products */

.products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: var(--gutter);
	margin-top: var(--space-lg);
}

.product {
	padding-top: var(--space-md);
	border-top: 1px solid var(--color-border);
}

.product .product-title {
	margin-top: 0;
}

/* About */

.about-intro {
	padding-bottom: var(--space-page);
}

.person {
	padding: var(--gutter);
}

.person:last-child {
	padding-bottom: 0;
}

.person-band {
	background: var(--color-band);
}

.person-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: var(--gutter);
	max-width: var(--width-wide);
	margin: 0 auto;
}

.person h2 {
	font-size: var(--text-2xl);
}

.person-bio {
	font-size: var(--text-md);
}

.person img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.person-flip img {
	order: -1;
}

@media (max-width: 781px) {
	.person-inner {
		grid-template-columns: 1fr;
	}

	.person-flip img {
		order: 0;
	}
}

/* Contact */

address {
	margin-bottom: var(--space-md);
	font-style: normal;
}

.contact-cta {
	margin-top: var(--space-xl);
	font-size: var(--text-display);
	line-height: 1.2;
	text-align: center;
}

/* WordPress stats */

.stats {
	font-variant-numeric: tabular-nums;
}

.stats h3 {
	font-size: var(--text-md);
}

.stats table {
	width: 100%;
	border-collapse: collapse;
}

.stats th,
.stats td {
	padding: 0.4rem 0.75rem;
	border-bottom: 1px solid rgb(255 255 255 / 10%);
	font-weight: 300;
	text-align: right;
}

.stats th {
	font-weight: 400;
}

.stats th:first-child,
.stats td:first-child {
	text-align: left;
}

.stats details {
	margin-top: var(--space-sm);
}

.stats summary {
	margin-bottom: var(--space-sm);
	font-size: 0.9em;
	opacity: 0.5;
	cursor: pointer;
}

.stats summary:hover {
	opacity: 0.8;
}

.stats-bar {
	display: block;
	min-width: 60px;
	height: 4px;
	overflow: hidden;
	border-radius: 2px;
	background: rgb(255 255 255 / 8%);
}

.stats-bar span {
	display: block;
	height: 100%;
	border-radius: 2px;
	background: rgb(255 255 255 / 30%);
}

.stats-db {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--gutter);
}

.stats-db h3 {
	margin-top: 0;
}

@media (max-width: 640px) {
	.stats .hide-sm {
		display: none;
	}

	.stats th,
	.stats td {
		padding-inline: 0.25rem;
	}

	.stats-db {
		grid-template-columns: 1fr;
	}
}

/* Footer */

.site-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-md);
	padding: var(--space-page) var(--gutter);
}

/* The logo is white, so grayscale alone won't dim it: brightness takes it to --color-muted. */
.site-footer img {
	width: 120px;
	filter: grayscale(1) brightness(0.533);
}

.site-footer a:hover img {
	filter: none;
}

.site-footer ul {
	display: flex;
	gap: var(--space-sm);
	margin: 0;
	padding: 0;
	color: var(--color-muted);
	list-style: none;
}

.site-footer ul a {
	display: block;
}

.site-footer ul a:hover {
	color: var(--color-text);
}

.site-footer svg {
	display: block;
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
