/*
Theme Name: Henri Haka Creative
Description: A responsive one-page portfolio theme for Henri Haka Creative.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
*/

@font-face {
	font-family: "Athelas";
	src: url("assets/fonts/athelas-regular.woff2?v=1.0.3") format("woff2");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Athelas";
	src: url("assets/fonts/athelas-bold.woff2?v=1.0.3") format("woff2");
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}

:root {
	--color-ink: #17191c;
	--color-blue: #3e57a4;
	--font-display: "Athelas", Georgia, serif;
	--page-gutter: clamp(1.25rem, 5vw, 6rem);
	--text-block-gap: clamp(16px, 1.6667vw, 32px);
}

* {
	box-sizing: border-box;
}

.container {
	width: 100%;
	margin-inline: auto;
	padding-inline: 0.75rem;
}

@media (min-width: 576px) {
	.container {
		max-width: 540px;
	}
}

@media (min-width: 768px) {
	.container {
		max-width: 720px;
	}
}

@media (min-width: 992px) {
	.container {
		max-width: 960px;
	}
}

@media (min-width: 1200px) {
	.container {
		max-width: 1140px;
	}
}

@media (min-width: 1400px) {
	.container {
		max-width: 1320px;
	}
}

@media (min-width: 991px) {
	.container {
		max-width: min(1320px, 68.75vw);
	}
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-ink);
	color: #fff;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.55;
}

a {
	color: inherit;
}

a:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 5px;
}

.site-header {
	position: absolute;
	z-index: 5;
	top: 0;
	left: 0;
	width: 100%;
	padding: 1.5rem var(--page-gutter);
}

.site-header__inner,
.contact-section__inner {
	width: 100%;
	margin-inline: auto;
}

.site-header__inner {
	position: relative;
}

.site-logo {
	position: absolute;
	top: 0;
	left: 0;
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
}

.site-logo img {
	display: block;
	width: 106px;
	height: auto;
}

.site-main {
	display: block;
}

.hero,
.feature-section,
.about-section,
.contact-section {
	min-height: 100vh;
	min-height: 100svh;
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.hero {
	display: grid;
	align-items: center;
	padding: 9rem var(--page-gutter);
	background: #22242b;
}

.hero__image,
.feature-section__image,
.about-section__image,
.contact-section__image {
	position: absolute;
	z-index: -2;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__image {
	object-position: center 38%;
}

.hero::after,
.feature-section::after,
.about-section::after {
	position: absolute;
	z-index: -1;
	inset: 0;
	content: "";
	pointer-events: none;
}

.hero::after {
	background: linear-gradient(90deg, rgb(9 11 15 / 40%) 0%, rgb(9 11 15 / 28%) 55%, rgb(9 11 15 / 10%) 100%);
}

.hero__content {
	width: 100%;
	margin-inline: auto;
}

h1,
h2,
p {
	margin-top: 0;
	margin-bottom: var(--text-block-gap);
}

h1,
h2 {
	font-weight: 700;
	line-height: 0.9;
}

h1,
h2 {
	font-size: clamp(60px, calc(10.7527vw - 46.4516px), 160px);
}

p {
	margin-right: 0;
	margin-left: 0;
	font-size: clamp(22px, calc(2.15054vw + 0.7097px), 42px);
	line-height: 1.3;
	text-align: left;
}

.hero__copy,
.feature-section__copy,
.about-section__copy,
.contact-section__copy {
	margin-inline: auto;
	text-shadow: 0 2px 8px rgb(0 0 0 / 32%);
}

.hero__copy,
.feature-section__copy,
.about-section__copy,
.contact-section__copy {
	width: 100%;
}

.hero h1 span {
	display: block;
}

.button {
	display: inline-flex;
	min-height: 3rem;
	align-items: center;
	justify-content: center;
	margin-top: 1.25rem;
	padding: 0.65rem 1.75rem;
	border-radius: 999px;
	background: var(--color-blue);
	color: #fff;
	font-family: Arial, sans-serif;
	font-size: clamp(22px, calc(0.8602vw + 13.4839px), 30px);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover {
	transform: translateY(-2px);
	background: #304894;
}

@media (min-width: 991px) {
	.site-header__inner {
		max-width: none;
		padding-inline: 0;
	}

	.button {
		padding: 1rem 3.5rem;
	}
}

.feature-section {
	display: grid;
	align-items: center;
	padding: 6rem var(--page-gutter);
	background: var(--section-background, #333);
}

.feature-section::after {
	z-index: 2;
	background: rgb(0 0 0 / 30%);
}

.feature-section__image {
	z-index: 1;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.feature-section__content,
.about-section__content {
	width: 100%;
	margin-inline: auto;
}

.feature-section__copy {
	position: relative;
	z-index: 3;
	text-shadow: none;
}

.feature-section h2 span {
	display: block;
}

.section-illustrations {
	position: absolute;
	z-index: 0;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.illustration {
	display: block;
	width: auto;
	height: auto;
	max-width: min(18vw, 17rem);
	max-height: 20vh;
	object-fit: contain;
}

.illustration-rail {
	position: absolute;
	top: 0;
	bottom: 0;
	display: flex;
	width: min(14.4vw, 14.4rem);
	overflow: hidden;
}

.illustration-rail--left {
	left: clamp(12px, 1vw, 24px);
}

.illustration-rail--right {
	right: clamp(12px, 1vw, 24px);
}

.illustration-rail__track {
	display: flex;
	width: 100%;
	height: max-content;
	flex: none;
	flex-direction: column;
	animation: drift-up 48s linear infinite;
	animation-play-state: paused;
}

.illustration-rail--right .illustration-rail__track {
	animation-name: drift-down;
}

.feature-section.is-animating .illustration-rail__track.is-ready {
	animation-play-state: running;
	will-change: transform;
}

.illustration-rail__group {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 20px;
	padding-bottom: 20px;
}

.illustration-rail .illustration {
	position: static;
	max-width: 100%;
	max-height: 50vh;
}

.illustration--flipped {
	transform: scaleX(-1);
}

.illustration-rail .illustration--flipped {
	transform: scaleX(-1);
}

.about-section {
	display: grid;
	align-items: center;
	padding: 7rem var(--page-gutter);
	background: #191a1c;
}

.about-section::after {
	opacity: 0.2;
	background: linear-gradient(90deg, rgb(8 8 8 / 70%) 0%, rgb(8 8 8 / 47%) 55%, rgb(8 8 8 / 20%) 100%);
}

.contact-section {
	display: grid;
	align-items: center;
	padding: 6rem var(--page-gutter);
	background: var(--color-blue);
}

.contact-section__image {
	inset: 50% auto auto 50%;
	width: 130vw;
	height: auto;
	transform: translate(-50%, -50%);
}

.contact-details {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 1.5rem 0 2.5rem;
}

.contact-details a {
	font-size: clamp(22px, calc(2.15054vw + 0.7097px), 42px);
	text-underline-offset: 0.2em;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	clip-path: inset(50%);
}

@keyframes drift-up {
	from {
		transform: translateY(0);
	}
	to {
		transform: translateY(var(--rail-distance, 0px));
	}
}

@keyframes drift-down {
	from {
		transform: translateY(var(--rail-distance, 0px));
	}
	to {
		transform: translateY(0);
	}
}

@media (min-width: 1025px) {
	.feature-section__image {
		inset: 50% auto auto 50%;
		width: 100vw;
		height: auto;
		transform: translate(-50%, -50%);
	}
}

@media (max-width: 1024px) {
	.site-header {
		padding-top: 1rem;
	}

	.hero,
	.feature-section,
	.about-section,
	.contact-section {
		min-height: max(44rem, 100vh);
		min-height: max(44rem, 100svh);
	}

	.hero {
		min-height: 100vh;
		min-height: 100svh;
		align-items: center;
		padding-block: 7rem;
	}

	.hero__image {
		object-position: 56% center;
	}

	.about-section::after {
		background: linear-gradient(180deg, rgb(9 11 15 / 38%) 0%, rgb(9 11 15 / 75%) 60%, rgb(9 11 15 / 86%) 100%);
	}

	.feature-section {
		min-height: max(46rem, 100vh);
		min-height: max(46rem, 100svh);
		align-items: start;
		padding-top: 5rem;
		padding-bottom: 3rem;
	}

	.feature-section__image {
		object-position: center bottom;
	}

	.section-illustrations {
		display: none;
	}

	.about-section,
	.contact-section {
		align-items: start;
		padding-top: 6rem;
		padding-bottom: 4rem;
	}

	.about-section__image {
		object-position: 54% center;
	}

	.contact-section__image {
		object-position: 58% center;
	}

}

@media (max-width: 990px) {
	.site-logo {
		left: 0.75rem;
	}

	.site-logo img {
		width: 46px;
	}

	.feature-section__image {
		inset: 50% auto auto 50%;
		width: 140%;
		height: auto;
		transform: translate(-50%, -50%);
		object-position: center;
	}

	h1,
	h2 {
		font-size: 60px;
	}

	p,
	.contact-details a {
		font-size: 18px;
	}

	.button {
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.feature-section.is-animating .illustration-rail__track.is-ready {
		animation-play-state: paused;
		will-change: auto;
	}

	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
