/*
Theme Name: Journey Hallows
Theme URI: https://journeyhallows.com/
Author: David Martin Design
Description: A gallery-forward block theme for mural artist and fabricator Journey Hallows.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: journey-hallows
*/

:root {
	--jh-transition: 180ms ease;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 0.08em;
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--marigold);
	outline-offset: 4px;
}

.site-header {
	position: relative;
	z-index: 20;
}

.site-header .wp-block-site-title a {
	text-decoration: none;
}

.site-header .wp-block-navigation-item__content {
	text-decoration: none;
}

.site-header .wp-block-navigation-item__content:hover,
.site-header .wp-block-navigation-item__content:focus-visible {
	text-decoration: underline;
}

.jh-contact-strip .wp-block-button__link {
	color: var(--wp--preset--color--paper);
}

.jh-hero {
	background-color: var(--wp--preset--color--ink);
	background-image: url("assets/images/home-hero-sacred-geometry-mural.jpg");
	background-position: center 48%;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--wp--preset--color--paper);
	isolation: isolate;
	position: relative;
	overflow: clip;
}

.jh-hero::after {
	background:
		linear-gradient(90deg, rgb(21 22 21 / 90%) 0%, rgb(21 22 21 / 72%) 46%, rgb(21 22 21 / 25%) 100%),
		linear-gradient(0deg, rgb(21 22 21 / 28%), transparent 55%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 0;
}

.jh-hero > * {
	position: relative;
	z-index: 1;
}

.jh-hero .jh-eyebrow {
	color: var(--wp--preset--color--marigold) !important;
}

.jh-hero .is-style-outline .wp-block-button__link {
	border-color: currentColor;
	color: var(--wp--preset--color--paper);
}

.jh-eyebrow {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.jh-display {
	max-width: 12ch;
}

.jh-rule {
	border: 0;
	border-top: 2px solid currentColor;
	margin: 0;
	width: 4rem;
}

.jh-card {
	height: 100%;
	transition: transform var(--jh-transition), box-shadow var(--jh-transition);
}

.jh-work-grid {
	margin-top: var(--wp--preset--spacing--50);
}

.jh-work-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jh-category-groups {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: var(--wp--preset--spacing--50);
}

.jh-category-card {
	border-top: 4px solid var(--wp--preset--color--coral);
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: var(--wp--preset--spacing--30);
}

.jh-category-card--woodworking {
	border-color: var(--wp--preset--color--marigold);
}

.jh-category-card--signage {
	border-color: var(--wp--preset--color--teal);
}

.jh-category-card > :first-child {
	margin-top: 0;
}

.jh-category-thumbnails {
	display: grid;
	gap: 0.45rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--20);
}

.jh-category-thumb {
	aspect-ratio: 1;
	margin: 0;
	overflow: hidden;
}

.jh-category-thumb a {
	display: block;
	height: 100%;
}

.jh-category-thumb img {
	height: 100%;
	object-fit: cover;
	transition: transform 350ms ease;
	width: 100%;
}

.jh-category-thumb a:hover img,
.jh-category-thumb a:focus-visible img {
	transform: scale(1.06);
}

.jh-category-link {
	font-weight: 700;
	margin-bottom: 0;
}

.jh-card:hover {
	box-shadow: 0 18px 40px rgb(21 22 21 / 12%);
	transform: translateY(-4px);
}

.jh-card__visual {
	align-items: flex-end;
	aspect-ratio: 4 / 3;
	background:
		linear-gradient(145deg, rgb(255 255 255 / 8%), transparent 45%),
		linear-gradient(135deg, var(--wp--preset--color--teal), var(--wp--preset--color--violet));
	display: flex;
	min-height: 0;
	overflow: hidden;
}

.jh-card:nth-child(3n + 2) .jh-card__visual {
	background: linear-gradient(135deg, var(--wp--preset--color--coral), var(--wp--preset--color--marigold));
}

.jh-card:nth-child(3n + 3) .jh-card__visual {
	background: linear-gradient(135deg, var(--wp--preset--color--violet), var(--wp--preset--color--coral));
}

.jh-card__visual .wp-block-post-featured-image {
	height: 100%;
	margin: 0;
	width: 100%;
}

.jh-card__visual .wp-block-post-featured-image img {
	height: 100%;
	object-fit: cover;
	transition: transform 450ms ease;
	width: 100%;
}

.jh-card:hover .wp-block-post-featured-image img {
	transform: scale(1.025);
}

.jh-service {
	border-top: 4px solid var(--wp--preset--color--ink);
	height: 100%;
}

.jh-service:nth-child(2) {
	border-color: var(--wp--preset--color--coral);
}

.jh-service:nth-child(3) {
	border-color: var(--wp--preset--color--teal);
}

.project-meta {
	border-bottom: 1px solid var(--wp--preset--color--line);
	border-top: 1px solid var(--wp--preset--color--line);
	display: grid;
	gap: 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0 0 var(--wp--preset--spacing--60);
	padding: var(--wp--preset--spacing--30) 0;
}

.project-meta__item {
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30) var(--wp--preset--spacing--20) 0;
}

.project-meta dt {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.project-meta dd {
	margin: 0.35rem 0 0;
}

.jh-contact-strip a {
	color: inherit;
}

footer.has-ink-background-color a:not(.wp-block-button__link) {
	color: inherit;
}

footer.has-ink-background-color a:not(.wp-block-button__link):hover,
footer.has-ink-background-color a:not(.wp-block-button__link):focus-visible {
	color: var(--wp--preset--color--marigold);
}

.jh-icon-link {
	align-items: center;
	display: inline-flex;
	gap: 0.38em;
	vertical-align: middle;
}

.jh-icon-link::before {
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	content: "";
	flex: 0 0 1.25em;
	height: 1.25em;
	width: 1.25em;
}

.jh-icon-link--instagram::before {
	background-image: url("assets/icons/instagram.png");
}

.jh-icon-link--etsy::before {
	background-image: url("assets/icons/etsy.png");
}

.jh-icon-link--pinterest::before {
	background-image: url("assets/icons/pinterest.png");
}

.jh-icon-link--david-martin-design::before {
	background-image: url("assets/icons/david-martin-design.png");
}

.jh-site-credit {
	flex-basis: 100%;
	margin-top: 0;
	text-align: right;
}

.jh-site-credit a {
	color: inherit;
}

@media (max-width: 700px) {
	.jh-category-groups {
		grid-template-columns: 1fr;
	}

	.jh-site-credit {
		text-align: left;
	}

	.jh-hero {
		background-position: 61% center;
	}

	.jh-hero::after {
		background: linear-gradient(90deg, rgb(21 22 21 / 92%) 0%, rgb(21 22 21 / 76%) 72%, rgb(21 22 21 / 45%) 100%);
	}

	.project-meta {
		grid-template-columns: 1fr;
	}

	.jh-work-grid .wp-block-post-template {
		grid-template-columns: 1fr;
	}
}
