/* ==========================================================================
   JH Snedker - landing page
   ========================================================================== */

@font-face {
	font-family: "Neue Haas Grotesk Display Pro";
	src: url("../fonts/NeueHaasDisplay-XThin.ttf") format("truetype");
	font-weight: 200;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Neue Haas Grotesk Display Pro";
	src: url("../fonts/NeueHaasDisplay-Thin.ttf") format("truetype");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Neue Haas Grotesk Display Pro";
	src: url("../fonts/NeueHaasDisplay-Light.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Neue Haas Grotesk Display Pro";
	src: url("../fonts/NeueHaasDisplay-Medium.ttf") format("truetype");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

:root {
	--color-text: #2e4b2e;
	--color-highlight: #8d9b8b;
	--color-paper: #fffffd;
	--color-white: #ffffff;

	--font-main: "Neue Haas Grotesk Display Pro", "Jost", sans-serif;

	--content-width: 1200px;

	--space-xxsmall: clamp(5px, 1vw, 10px);
	--space-xsmall: clamp(10px, 2vw, 20px);
	--space-small: clamp(20px, 4vw, 40px);
	--space-medium: clamp(30px, 6vw, 60px);
	--space-large: clamp(40px, 8vw, 80px);

	--fs-tiny: clamp(10px, 0.625rem + ((1vw - 3.2px) * 0.227), 12px);
	--fs-xxsmall: clamp(12px, 0.75rem + ((1vw - 3.2px) * 0.227), 14px);
	--fs-xsmall: clamp(16px, 1rem + ((1vw - 3.2px) * 1), 16px);
	--fs-small: clamp(16px, 1rem + ((1vw - 3.2px) * 0.227), 18px);
	--fs-large: clamp(24px, 1.5rem + ((1vw - 3.2px) * 0.909), 32px);

	--fs-hero-title: clamp(44.551px, 2.784rem + ((1vw - 3.2px) * 4.71), 86px);
	--fs-hero-heading: clamp(37.821px, 2.364rem + ((1vw - 3.2px) * 3.657), 70px);
	--fs-footer-title: clamp(38.682px, 2.418rem + ((1vw - 3.2px) * 3.786), 72px);
}

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

html {
	scroll-behavior: smooth;
}

body {
	--grid-size: 200px;
	--grid-strength: 1px;
	--grid-dash: 10px;
	--grid-gap: 20px;
	--grid-color: #2E4B2E60;

	margin: 0;
	color: var(--color-text);
	font-family: var(--font-main);
	font-weight: 300;
	line-height: 1.4;
	background-color: var(--color-paper);
	background-size: var(--grid-gap) var(--grid-gap), var(--grid-size) var(--grid-size);
	background-image:
		linear-gradient(to bottom, transparent var(--grid-dash), var(--color-paper) var(--grid-dash)),
		linear-gradient(to right, var(--grid-color) var(--grid-strength), transparent var(--grid-strength)),
		linear-gradient(to right, transparent var(--grid-dash), var(--color-paper) var(--grid-dash)),
		linear-gradient(to bottom, var(--grid-color) var(--grid-strength), transparent var(--grid-strength));
}

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

h1,
h2 {
	margin: 0;
	color: var(--color-text);
	font-weight: 200;
	line-height: 1.05;
	text-transform: uppercase;
}

p {
	margin: 0;
}

a {
	color: inherit;
}

.highlight {
	background-color: rgba(46, 75, 46, 0.5);
	color: var(--color-paper);
	padding: 0.1em 0.1em;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
	padding: var(--space-small) var(--space-small) var(--space-xsmall);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-small);
	max-width: var(--content-width);
	margin: 0 auto;
}

.brand {
	display: flex;
	align-items: center;
	gap: var(--space-xxsmall);
	color: var(--color-text);
	text-decoration: none;
}

.brand__logo {
	width: 33px;
}

.brand__name {
	font-size: var(--fs-tiny);
	font-weight: 300;
}

.btn {
	display: inline-flex;
	align-items: center;
	font-family: inherit;
	font-size: var(--fs-tiny);
	font-weight: 300;
	line-height: 1.6;
	text-transform: uppercase;
	text-decoration: none;
}

.btn--outline {
	border: 1px solid var(--color-text);
	border-radius: 100px;
	padding: 6px 24px;
	color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-height: 828px;
	margin-top: var(--space-xxsmall);
	padding: var(--space-small) var(--space-small) var(--space-small);
	overflow: hidden;
}

.hero__background {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 100% 0%;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: var(--color-paper);
	opacity: 0.5;
}

.hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--content-width);
}

.hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-xsmall);
	padding-bottom: var(--space-small);
}

.hero__grid > * {
	min-width: 0;
}

.hero__title {
	border-top: 1px solid var(--color-white);
	border-bottom: 1px solid var(--color-white);
}

.hero h1 {
	font-size: var(--fs-hero-title);
}

.hero h2 {
	font-size: var(--fs-hero-heading);
}

.hero__intro {
	text-align: left;
	font-size: var(--fs-xsmall);
	font-weight: 400;
}

.hero__body {
	font-size: var(--fs-xsmall);
	font-weight: 400;
}

.hero__media,
.hero__thumb {
	margin: 0;
	overflow: hidden;
}

.hero__media img,
.hero__thumb img {
	width: 100%;
	height: auto;
}

.hero__media-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-xsmall);
}

.hero__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-xsmall);
}

.hero__stack,
.hero__feature-text {
	display: flex;
	flex-direction: column;
	gap: var(--space-xsmall);
}

.hero__feature {
	display: flex;
	flex-direction: column;
	gap: var(--space-xsmall);
	width: 100%;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
	padding: 0 var(--space-small);
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-medium);
	max-width: var(--content-width);
	margin: 0 auto;
	border-top: 1px solid var(--color-text);
	padding: var(--space-medium) 0;
}

.site-footer__kicker {
	font-size: var(--fs-large);
	font-weight: 200;
	text-transform: uppercase;
}

.site-footer__title {
	font-size: var(--fs-footer-title);
	font-weight: 200;
	text-transform: uppercase;
}

.site-footer__label {
	margin-bottom: var(--space-xsmall);
	font-size: var(--fs-small);
	font-weight: 600;
	text-transform: uppercase;
}

.site-footer__contact ul {
	display: flex;
	flex-direction: column;
	gap: var(--space-xxsmall);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__contact a {
	color: var(--color-text);
	font-size: var(--fs-xsmall);
	font-weight: 300;
	text-decoration: none;
}

.site-footer__contact a:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Desktop layout
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
	.hero h1 {
		font-size: clamp(41.23px, 2.577rem + ((1vw - 3.2px) * 4.178), 78px);
	}

	.hero h2 {
		font-size: clamp(35.641px, 2.228rem + ((1vw - 3.2px) * 3.336), 65px);
	}

	.hero__grid {
		grid-template-columns: repeat(10, minmax(0, 1fr));
		gap: var(--space-xsmall);
	}

	.hero__title {
		grid-column: span 7;
	}

	.hero__intro {
		grid-column: span 3;
		text-align: right;
		font-size: var(--fs-xxsmall);
	}

	.hero__body {
		font-size: var(--fs-xxsmall);
	}

	.hero__media-pair {
		display: contents;
	}

	.hero__media--a {
		grid-column: span 6;
		grid-row: span 2;
	}

	.hero__media--b,
	.hero__media--c {
		grid-column: span 2;
		grid-row: span 2;
	}

	.hero__media img,
	.hero__thumb img {
		height: 100%;
		object-fit: cover;
	}

	.hero__media--b img,
	.hero__media--c img {
		height: auto;
		object-fit: contain;
	}

	.hero__card--story {
		grid-column: span 6;
	}

	.hero__media--d {
		grid-column: span 4;
	}

	.hero__media--e {
		grid-column: span 6;
	}

	.hero__card--materials {
		grid-column: span 4;
	}

	.hero__card--history {
		grid-column: span 4;
	}

	.hero__media--f {
		grid-column: span 6;
	}

	.hero__feature {
		flex-direction: row;
		align-items: flex-start;
	}

	.hero__feature-text {
		order: 0;
		flex: 1 1 auto;
		text-align: right;
	}

	.hero__feature .hero__thumb {
		order: 0;
		flex: 0 0 50%;
	}

	.site-footer__inner {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
	}

	.site-footer__contact {
		text-align: right;
	}

	.site-footer__contact ul {
		align-items: flex-end;
	}
}

/* --------------------------------------------------------------------------
   Mobile-only tweaks
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
	.site-header {
		padding-bottom: var(--space-small);
	}

	.hero__intro {
		margin-top: var(--space-small);
	}

	.hero h2 {
		margin-top: var(--space-small);
	}

	.hero__card--story,
	.hero__feature,
	.hero__feature-text,
	.hero__card--materials,
	.hero__stack {
		display: contents;
	}

	.hero__title {
		order: 1;
	}

	.hero__intro {
		order: 2;
	}

	.hero__media--a {
		order: 3;
	}

	.hero__media-pair {
		order: 4;
	}

	.hero__lead {
		order: 5;
	}

	.hero__media--d {
		order: 6;
	}

	.hero__heading--detail {
		order: 7;
	}

	.hero__detail-body {
		order: 8;
	}

	.hero__thumb--detail {
		order: 9;
	}

	.hero__heading--materials {
		order: 10;
	}

	.hero__materials-body {
		order: 11;
	}

	.hero__media--e {
		order: 12;
	}

	.hero__thumb--wide {
		order: 13;
	}

	.hero__card--history {
		order: 14;
	}

	.hero__media--f {
		order: 15;
	}
}
