/* =============================================================================
   Shopfront — home.css
   Front-page sections: hero video, Underpinnings accordion, Land Art band.
   ============================================================================= */

.home-main {
	padding: 0;
}

/* -----------------------------------------------------------------------------
   0. Hero — full-bleed video with the artist's name overlaid.
   Video autoplays muted + looped (browser policy requires muted for autoplay).
   The poster image renders instantly so something is on screen before the
   video has finished loading; users on slow connections / data savers see
   only the still.
   ----------------------------------------------------------------------------- */
.home-hero {
	position: relative;
	width: 100%;
	height: 60vh;
	min-height: 420px;
	max-height: 720px;
	overflow: hidden;
	background: #111;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.home-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.home-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.25) 0%,
		rgba(0, 0, 0, 0.35) 60%,
		rgba(0, 0, 0, 0.55) 100%
	);
}

.home-hero__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-hero__content {
	position: relative;
	z-index: 1;
	width: min(100% - 2rem, 1200px);
	margin-inline: auto;
	text-align: center;
	padding-block: var(--sf-space-6);
}

.home-hero__name {
	font-family: var(--sf-font-display);
	font-weight: 400;
	font-size: clamp(3rem, 10vw, 8rem);
	line-height: 0.95;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	margin: 0;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

/* Honor users who prefer reduced motion: hide the looping video and let the
   poster image (set via inline background-image on .home-hero) show through. */
@media (prefers-reduced-motion: reduce) {
	.home-hero__video {
		display: none;
	}
	.home-hero {
		background-size: cover;
		background-position: center;
	}
}

/* -----------------------------------------------------------------------------
   1. Underpinnings — artist statement accordion
   Large Anton display heading, then a vertical stack of <details> items
   separated by hairlines. Custom +/× marker replaces the native triangle.
   ----------------------------------------------------------------------------- */
.home-underpinnings {
	padding: var(--sf-space-10) 0;
	border-top: 1px solid var(--sf-color-border);
	background: #fff;
}

.home-underpinnings__inner {
	width: min(100% - 2rem, 1100px);
	margin-inline: auto;
}

.home-underpinnings__title {
	font-family: var(--sf-font-display);
	font-weight: 400;
	font-size: clamp(3rem, 8vw, 6.5rem);
	line-height: 0.95;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	margin: 0 0 var(--sf-space-8);
}

.home-underpinnings__accordion details {
	border-top: 1px solid var(--sf-color-text);
	padding: var(--sf-space-4) 0;
}

.home-underpinnings__accordion details:last-child {
	border-bottom: 1px solid var(--sf-color-text);
}

.home-underpinnings__accordion summary {
	list-style: none;
	cursor: pointer;
	font-size: clamp(1.125rem, 1.5vw + 0.75rem, 1.5rem);
	font-weight: 500;
	letter-spacing: -0.005em;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--sf-space-4);
	padding: var(--sf-space-2) 0;
}

.home-underpinnings__accordion summary::-webkit-details-marker {
	display: none;
}

.home-underpinnings__accordion summary::after {
	content: "+";
	font-family: var(--sf-font-display);
	font-size: 1.75rem;
	line-height: 1;
	transition: transform 200ms ease;
	flex: none;
}

.home-underpinnings__accordion details[open] summary::after {
	transform: rotate(45deg);
}

.home-underpinnings__body {
	padding: var(--sf-space-3) 0 var(--sf-space-2);
	max-width: 70ch;
	color: var(--sf-color-muted);
	font-size: 1.0625rem;
	line-height: 1.65;
}

.home-underpinnings__body p {
	margin: 0;
}

/* -----------------------------------------------------------------------------
   2. Land Art section
   Full-bleed dark section with a background image (video optional) behind
   a dimming layer; centered quote + caption + CTA over top.
   ----------------------------------------------------------------------------- */
.home-landart {
	position: relative;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: var(--sf-color-earth);
	color: #fff;
}

.home-landart__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.home-landart__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.5);
}

.home-landart__media img,
.home-landart__media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-landart__content {
	position: relative;
	z-index: 1;
	width: min(100% - 2rem, 900px);
	margin-inline: auto;
	text-align: center;
	padding-block: var(--sf-space-10);
}

.home-landart__quote {
	font-family: var(--sf-font-display);
	font-weight: 400;
	font-size: clamp(1.5rem, 3vw + 0.5rem, 3rem);
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: none;
	color: #fff;
	margin: 0 0 var(--sf-space-5);
}

.home-landart__caption {
	font-size: 0.9375rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin: 0 0 var(--sf-space-6);
	opacity: 0.85;
}

.home-landart__caption em {
	font-style: italic;
}

.home-landart .button {
	background: transparent;
	color: #fff;
	border-color: #fff;
}

.home-landart .button:hover,
.home-landart .button:focus-visible {
	background: #fff;
	color: var(--sf-color-text);
	border-color: #fff;
}

/* -----------------------------------------------------------------------------
   3. New Work carousel
   Horizontal scroll-snap strip below the Land Art band. Pure CSS — no JS
   needed. Each tile snaps into place; users can drag/wheel/keyboard-scroll.
   Tile width is sized to show ~1.2 tiles on phone, ~3 on tablet, ~4 on
   desktop, so there's always a peek of the next tile to signal scrollability.
   ----------------------------------------------------------------------------- */
.home-carousel {
	padding: var(--sf-space-10) 0;
	background: #fff;
	border-top: 1px solid var(--sf-color-border);
}

.home-carousel__inner {
	width: min(100% - 2rem, 1400px);
	margin-inline: auto;
}

.home-carousel__header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--sf-space-4);
	flex-wrap: wrap;
	margin-bottom: var(--sf-space-6);
}

.home-carousel__title {
	font-family: var(--sf-font-display);
	font-weight: 400;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	margin: 0;
}

.home-carousel__more {
	font-size: 0.9375rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--sf-color-text);
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

.home-carousel__more:hover,
.home-carousel__more:focus-visible {
	opacity: 0.7;
}

/* The scrolling strip. Slim scrollbar styling — visible enough to signal
   "there's more" but not loud. Browsers that don't support these properties
   fall back to their default scrollbar. */
.home-carousel__track {
	display: flex;
	gap: var(--sf-space-4);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--sf-space-2);
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding-bottom: var(--sf-space-3);
	scrollbar-width: thin;
	scrollbar-color: var(--sf-color-border) transparent;
}

.home-carousel__track::-webkit-scrollbar {
	height: 6px;
}

.home-carousel__track::-webkit-scrollbar-thumb {
	background: var(--sf-color-border);
	border-radius: 3px;
}

.home-carousel__track:focus-visible {
	outline: 2px solid var(--sf-color-text);
	outline-offset: 4px;
}

.home-carousel__item {
	flex: 0 0 auto;
	width: clamp(220px, 80vw, 320px);
	scroll-snap-align: start;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-2);
	transition: transform 200ms ease;
}

.home-carousel__item:hover,
.home-carousel__item:focus-visible {
	transform: translateY(-2px);
}

.home-carousel__item:focus-visible {
	outline: 2px solid var(--sf-color-text);
	outline-offset: 4px;
}

.home-carousel__thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--sf-color-border);
}

.home-carousel__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
}

.home-carousel__item:hover .home-carousel__thumb img,
.home-carousel__item:focus-visible .home-carousel__thumb img {
	transform: scale(1.03);
}

.home-carousel__caption {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	padding-inline: 2px;
}

.home-carousel__name {
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: -0.005em;
}

.home-carousel__meta {
	font-size: 0.8125rem;
	color: var(--sf-color-muted);
	letter-spacing: 0.02em;
}

/* Wider tiles on bigger screens so a tablet shows ~3 and a desktop shows ~4. */
@media (min-width: 768px) {
	.home-carousel__item {
		width: clamp(260px, 30vw, 340px);
	}
}

@media (min-width: 1100px) {
	.home-carousel__item {
		width: 320px;
	}
}

/* Pagination dots — one per slide, beneath the strip. JS handles autoplay
   and click-to-jump; the CSS just provides a clear active state. */
.home-carousel__dots {
	list-style: none;
	margin: var(--sf-space-5) 0 0;
	padding: 0;
	display: flex;
	justify-content: center;
	gap: var(--sf-space-2);
}

.home-carousel__dot {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 1px solid var(--sf-color-text);
	width: 10px;
	height: 10px;
	border-radius: 50%;
	padding: 0;
	cursor: pointer;
	transition: background 200ms ease, transform 200ms ease;
}

.home-carousel__dot:hover {
	background: var(--sf-color-muted);
}

.home-carousel__dot.is-active,
.home-carousel__dot[aria-current="true"] {
	background: var(--sf-color-text);
	transform: scale(1.15);
}

.home-carousel__dot:focus-visible {
	outline: 2px solid var(--sf-color-text);
	outline-offset: 3px;
}

/* -----------------------------------------------------------------------------
   4. Editor fallback
   If the site owner adds block content to the Home page in wp-admin, render
   it beneath the designed sections with a clean separator so it doesn't
   butt up against the dark Land Art band.
   ----------------------------------------------------------------------------- */
.home-content {
	padding: var(--sf-space-8) 0;
	background: #fff;
}

.home-content .entry-content {
	margin-inline: auto;
}
