/* Duck Digital — base layout & chrome */

:root {
	--dd-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(--dd-ease);
}

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

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

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

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

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

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

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

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

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

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

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

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

.dd-hero__media img,
.dd-hero__media .wp-block-cover__image-background,
.dd-hero .wp-block-cover__image-background,
.dd-hero .wp-block-cover__video-background:not(.wp-block-cover__embed-background),
.dd-hero .wp-block-video video,
.dd-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 */
.dd-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%);
}

.dd-hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: clamp(2rem, 6vw, 4.5rem) var(--wp--preset--spacing--50);
	padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
	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);
}

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

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

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

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

.dd-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 1.25rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	color: var(--wp--preset--color--surface);
	opacity: 0.85;
	transform: translateX(-50%);
	animation: dd-scroll-bounce 1.8s var(--dd-ease) infinite;
}

.dd-hero__scroll:hover {
	opacity: 1;
	color: var(--wp--preset--color--surface);
}

.dd-hero__scroll svg {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
}

@keyframes dd-scroll-bounce {
	0%,
	100% {
		transform: translateX(-50%) translateY(0);
	}
	50% {
		transform: translateX(-50%) translateY(0.35rem);
	}
}

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

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

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

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

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

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

	.dd-hero__scroll {
		animation: none;
	}

	a {
		transition: none;
	}
}

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

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

.dd-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;
}

/* Pull quote — Fraunces mark in the accent colour */
.dd-quote,
.wp-block-quote.dd-quote {
	margin: 0;
	padding: 0;
	border: 0;
	display: flex;
    align-items: flex-start;
}

.dd-quote::before,
.wp-block-quote.dd-quote::before {
	content: "\201C";
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 3rem;
	line-height: 0.7;
	color: var(--wp--preset--color--accent);
	padding-top: 9px;
    height: 1px;
}

/* 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;
}
