:root {
	--nounas-rule: var(--wp--preset--color--rule, #e2d7cb);
	--nounas-rule-strong: var(--wp--preset--color--rule-strong, #c7b4a3);
}

html {
	scroll-behavior: smooth;
}

body {
	overflow-x: hidden;
}

:where(a) {
	text-underline-offset: .22em;
	transition: color 150ms cubic-bezier(.4, 0, .2, 1);
}

:where(.wp-site-blocks) {
	padding: 0;
}

:where(.wp-site-blocks > *, .is-style-nounas-section > *) {
	margin-block-start: 0;
}

.wp-block-post-content main.wp-block-group > .wp-block-group.alignfull + .wp-block-group.alignfull,
.editor-styles-wrapper main.wp-block-group > .wp-block-group.alignfull + .wp-block-group.alignfull {
	margin-block-start: 0;
}

.wp-site-blocks .wp-block-separator,
.editor-styles-wrapper .wp-block-separator {
	box-sizing: border-box;
	height: 0;
	border: 0;
	border-bottom: 1px solid var(--nounas-rule);
	background: transparent;
	opacity: 1;
}

.wp-site-blocks .wp-block-separator.is-style-nounas-dotted,
.editor-styles-wrapper .wp-block-separator.is-style-nounas-dotted {
	border-bottom-style: dotted;
}

:where(.wp-block-navigation a, .wp-block-button__link) {
	text-decoration: none;
}

:where(.nounas-wordmark) {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.15rem);
	line-height: 1;
}

:where(.nounas-wordmark a) {
	color: inherit;
	text-decoration: none;
}

:where(.nounas-apostrophe) {
	color: var(--wp--preset--color--primary);
}

:where(.wp-block-button__link) {
	display: inline-flex;
	align-items: center;
	min-height: 50px;
	transition: color 150ms cubic-bezier(.4, 0, .2, 1), background-color 150ms cubic-bezier(.4, 0, .2, 1), border-color 150ms cubic-bezier(.4, 0, .2, 1);
}

:where(.wp-block-button.is-style-outline .wp-block-button__link:hover) {
	border-color: var(--wp--preset--color--primary);
	background: transparent;
	color: var(--wp--preset--color--primary);
}

:where(header.wp-block-template-part) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0);
	z-index: 30;
	background: rgb(250 243 232 / 92%);
	backdrop-filter: blur(8px);
}

header.wp-block-template-part .wp-block-navigation__container {
	gap: 36px;
}

header.wp-block-template-part .wp-block-navigation-item__content {
	color: rgb(92 53 36 / 60%);
}

header.wp-block-template-part .wp-block-navigation-item__content:hover,
header.wp-block-template-part .wp-block-navigation-item__content:focus {
	color: var(--wp--preset--color--contrast);
}

header.wp-block-template-part .wp-block-navigation-item__content:focus:not(:focus-visible) {
	outline: none;
}

header.wp-block-template-part .wp-block-navigation-item__content:focus-visible {
	outline: 1px auto rgb(92 53 36 / 60%);
	outline-offset: 1px;
}

header.wp-block-template-part .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--primary);
}

:where(.is-style-nounas-hero, .is-style-nounas-section) {
	border-bottom: 1px solid var(--nounas-rule);
}

:where(.is-style-nounas-hero h1 em, .nounas-accent-heading h1 em) {
	color: var(--wp--preset--color--primary);
}

:where(.is-style-nounas-hero > .wp-block-columns > .wp-block-column) {
	animation: nounas-rise 700ms cubic-bezier(.32, .72, 0, 1) both;
}

:where(.wp-block-image.is-style-nounas-portrait) {
	overflow: hidden;
}

:where(.wp-block-image.is-style-nounas-portrait img) {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: transform 1.2s ease;
}

:where(.wp-block-image.is-style-nounas-portrait:hover img) {
	transform: scale(1.03);
}

:where(.wp-block-image.is-style-nounas-landscape img) {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

:where(.wp-block-image.is-style-nounas-square img) {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

:where(.is-style-nounas-contact-card) {
	border: 1px solid var(--nounas-rule-strong);
}

:where(.is-style-nounas-menu-list > .wp-block-group) {
	max-width: 816px;
}

:where(.is-style-nounas-menu-list .wp-block-group.is-nowrap) {
	align-items: baseline;
}

:where(.is-style-nounas-footer-bottom) {
	border-top: 1px solid var(--nounas-rule);
}

@keyframes nounas-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 781px) {
	:where(header.wp-block-template-part > .wp-block-group) {
		padding: 18px 24px;
	}

	:where(.wp-block-navigation__responsive-container.is-menu-open) {
		background: var(--wp--preset--color--base);
		color: var(--wp--preset--color--contrast);
		padding: 2rem;
	}

	:where(.is-style-nounas-hero, .is-style-nounas-section) {
		padding: 56px 24px;
	}

	:where(footer.wp-block-template-part > .wp-block-group) {
		padding: 56px 24px 32px;
	}
}

@media (min-width: 700px) and (max-width: 781px) {
	/* Core forces columns to stack at 781px; the reference keeps its tablet grid. */
	.wp-block-columns:not(.is-not-stacked-on-mobile) {
		column-gap: 40px;
		flex-wrap: nowrap !important;
	}
}

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

	:where(.is-style-nounas-hero > .wp-block-columns > .wp-block-column) {
		animation: none;
	}

	:where(.wp-block-image.is-style-nounas-portrait img) {
		transition: none;
	}
}
