/* Handmade Kelsy — base layout & chrome */

:root {
	--hk-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
.wp-block-image img,
.wp-block-post-featured-image img {
	height: auto;
	max-width: 100%;
	vertical-align: middle;
}

a {
	transition: color 180ms var(--hk-ease);
}

/* Announcement strip */
.hk-announcement p {
	margin: 0;
}

/* Header: brand as hero signal */
.hk-header .hk-brand .wp-block-site-title,
.hk-header .hk-brand a {
	text-decoration: none;
}

.hk-header .wp-block-navigation a {
	text-decoration: none;
}

.hk-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--accent);
}

@media (min-width: 782px) {
	.hk-header .wp-block-group.alignwide {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
		gap: 1.5rem;
	}

	.hk-header .hk-brand {
		justify-self: center;
		text-align: center;
	}

	.hk-header .wp-block-group:last-child {
		justify-self: end;
	}
}

/* Footer links — no card chrome */
.hk-footer-links,
.hk-footer-links li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hk-footer-links a {
	text-decoration: none;
	color: var(--wp--preset--color--muted);
}

.hk-footer-links a:hover {
	color: var(--wp--preset--color--ink);
	text-decoration: underline;
}

/* Full-bleed hero plane */
.hk-hero {
	position: relative;
	min-height: min(88vh, 56rem);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background-color: var(--wp--preset--color--ink, #1c1f1c);
}

.hk-hero__media,
.hk-hero .wp-block-cover__embed-background,
.hk-hero .wp-block-cover__embed-background .wp-block-embed__wrapper,
.hk-hero .wp-block-video {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	overflow: hidden;
}

.hk-hero__media img,
.hk-hero__media .wp-block-cover__image-background,
.hk-hero .wp-block-cover__image-background,
.hk-hero .wp-block-cover__video-background:not(.wp-block-cover__embed-background),
.hk-hero .wp-block-video video,
.hk-hero video {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center !important;
	pointer-events: none;
}

/* YouTube/Vimeo Cover embed: size set in JS (real pixels) so YouTube serves HD */
.hk-hero .wp-block-cover__embed-background iframe {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;
	max-width: none !important;
	max-height: none !important;
	border: 0;
	pointer-events: none;
	transform: translate(-50%, -50%);
}

.hk-hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: clamp(2rem, 6vw, 4.5rem) var(--wp--preset--spacing--50);
	background: linear-gradient(
		to top,
		rgba(28, 31, 28, 0.55) 0%,
		rgba(28, 31, 28, 0.15) 55%,
		transparent 100%
	);
	color: var(--wp--preset--color--surface);
}

.hk-hero__content .wp-block-site-title,
.hk-hero__content h1,
.hk-hero__content p {
	color: inherit;
}

.hk-hero__content a {
	color: inherit;
	text-decoration: none;
}

.hk-hero__cta .wp-block-button__link {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
}

.hk-hero__cta .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--ink);
}

/* Subtle entrance motion */
@keyframes hk-fade-up {
	from {
		opacity: 0;
		transform: translateY(0.75rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hk-hero__content > * {
	animation: hk-fade-up 700ms var(--hk-ease) both;
}

.hk-hero__content > *:nth-child(2) {
	animation-delay: 80ms;
}

.hk-hero__content > *:nth-child(3) {
	animation-delay: 160ms;
}

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

	.hk-hero__content > * {
		animation: none;
	}

	a {
		transition: none;
	}
}

/* Editorial / lookbook sections */
.hk-lookbook-grid {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

@media (min-width: 782px) {
	.hk-lookbook-grid {
		grid-template-columns: 1.2fr 0.8fr;
		align-items: stretch;
	}
}

.hk-section-label {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin: 0 0 0.75rem;
}

/* Forms / search polish */
.wp-block-search__inside-wrapper {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
}

.wp-block-search__input {
	border: 0 !important;
	background: var(--wp--preset--color--surface);
	padding: 0.75rem 1rem;
}

.wp-block-search__button {
	border-radius: 0 !important;
}
