/* Base */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
}

body {
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Headings and links inherit color inside colored sections */
:where(.has-text-color) :is(h1, h2, h3, h4, h5, h6):not(.has-text-color) {
	color: inherit;
}

:is(.has-ink-background-color, .has-ink-2-background-color, .has-brand-background-color, .has-ink-to-brand-gradient-background) a:where(:not(.wp-element-button, .wp-block-button__link)) {
	color: var(--wp--preset--color--white);
}

.lv-section {
	padding-block: clamp(56px, 7vw, 80px);
}

.lv-main {
	padding-block: clamp(40px, 6vw, 72px);
}

/* Header */
.lv-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
}

body.admin-bar .lv-site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .lv-site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	body.admin-bar .lv-site-header {
		top: 0;
	}
}

.lv-header {
	background: rgba(244, 246, 245, 0.92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--wp--preset--color--cloud);
}

.lv-header__inner {
	padding-block: 14px;
}

.lv-header .wp-block-button__link {
	font-size: 14px;
	padding: 10px 18px;
}

@media (max-width: 600px) {
	.lv-header .wp-block-navigation {
		order: 3;
	}

	.lv-header .wp-block-button__link {
		font-size: 13px;
		padding: 9px 14px;
	}

	.lv-header .wp-block-site-title {
		display: none;
	}
}

.wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px;
	font-size: 18px;
}

/* Buttons */
.wp-block-button__link {
	transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms;
}

.wp-block-button__link:hover {
	transform: scale(1.02);
}

.wp-block-button:not([class*="is-style-lv-"]) .wp-block-button__link:not(.has-background):hover {
	box-shadow: 0 8px 24px -6px rgba(0, 103, 164, 0.35);
}

.is-style-lv-dark .wp-block-button__link:not(.has-background) {
	background: var(--wp--preset--color--ink);
}

.is-style-lv-dark .wp-block-button__link:not(.has-text-color) {
	color: var(--wp--preset--color--white);
}

.is-style-lv-light .wp-block-button__link:not(.has-background) {
	background: var(--wp--preset--color--white);
}

.is-style-lv-soft .wp-block-button__link:not(.has-background),
.is-style-lv-phone .wp-block-button__link:not(.has-background) {
	background: var(--wp--preset--color--paper);
}

.is-style-lv-light .wp-block-button__link,
.is-style-lv-soft .wp-block-button__link {
	border: 1px solid var(--wp--preset--color--cloud);
}

.is-style-lv-light .wp-block-button__link:not(.has-text-color),
.is-style-lv-soft .wp-block-button__link:not(.has-text-color),
.is-style-lv-phone .wp-block-button__link:not(.has-text-color) {
	color: var(--wp--preset--color--ink);
}

.is-style-lv-phone .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	font-variant-numeric: tabular-nums;
}

.is-style-lv-phone .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: var(--wp--preset--color--brand);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.is-style-lv-phone .wp-block-button__link:hover {
	color: var(--wp--preset--color--brand);
}

/* Paragraph styles */
.is-style-lv-eyebrow,
.is-style-lv-eyebrow-dot,
.is-style-lv-eyebrow-live {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

:is(.is-style-lv-eyebrow, .is-style-lv-eyebrow-dot, .is-style-lv-eyebrow-live):not(.has-text-color) {
	color: var(--wp--preset--color--slate);
}

.is-style-lv-eyebrow-dot::before,
.is-style-lv-eyebrow-live::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--wp--preset--color--brand);
}

.is-style-lv-eyebrow-live::before {
	background: var(--wp--preset--color--lime);
	animation: lv-pulse 1.6s ease-in-out infinite;
}

@keyframes lv-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.is-style-lv-tag {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.is-style-lv-tag:not(.has-text-color) {
	color: var(--wp--preset--color--lime);
}

.is-style-lv-stat {
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.is-style-lv-stat:not(.has-text-color) {
	color: var(--wp--preset--color--ink);
}

.is-style-lv-avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.is-style-lv-avatar:not(.has-background) {
	background: var(--wp--preset--color--brand);
}

.is-style-lv-avatar:not(.has-text-color) {
	color: var(--wp--preset--color--white);
}

/* Group styles */
.is-style-lv-card,
.is-style-lv-card-dark,
.is-style-lv-contact-card {
	transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms;
}

.is-style-lv-card:hover,
.is-style-lv-card-dark:hover,
.is-style-lv-contact-card:hover {
	transform: scale(1.02);
}

.is-style-lv-card {
	border: 1px solid var(--wp--preset--color--cloud);
	border-radius: 18px;
	padding: 24px;
}

.is-style-lv-card:hover {
	box-shadow: 0 12px 32px -8px rgba(11, 20, 22, 0.12);
}

.is-style-lv-card:not(.has-background),
.is-style-lv-contact-card:not(.has-background),
.is-style-lv-stats:not(.has-background) {
	background: var(--wp--preset--color--white);
}

.is-style-lv-card-dark {
	border-radius: 18px;
	overflow: hidden;
}

.is-style-lv-card-dark:not(.has-background) {
	background: var(--wp--preset--color--ink-2);
}

.is-style-lv-card-dark > .wp-block-image {
	margin: 0;
}

.is-style-lv-card-dark > .wp-block-image img {
	border-radius: 0;
}

.is-style-lv-contact-card {
	border: 1px solid var(--wp--preset--color--cloud);
	border-radius: 18px;
	padding: 18px 20px;
	color: var(--wp--preset--color--ink);
}

.is-style-lv-contact-card a {
	color: inherit;
}

.is-style-lv-contact-card p:not([class*="is-style-lv-eyebrow"]) {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.is-style-lv-stats {
	border-radius: 18px;
	padding: 16px 20px;
	box-shadow: 0 12px 32px -8px rgba(11, 20, 22, 0.12);
}

.is-style-lv-stats > * + * {
	border-left: 1px solid var(--wp--preset--color--cloud);
	padding-left: 24px;
}

.is-style-lv-stats p:not(.is-style-lv-stat) {
	font-size: 12px;
	font-weight: 600;
	color: var(--wp--preset--color--slate);
}

.is-style-lv-hero-media {
	position: relative;
}

.is-style-lv-hero-media > .wp-block-image {
	margin: 0;
}

.is-style-lv-hero-media > .is-style-lv-stats {
	position: absolute;
	left: 20px;
	bottom: 20px;
	margin: 0;
}

/* Crest watermark */
.is-style-lv-crest-left,
.is-style-lv-crest-right {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.is-style-lv-crest-left::before,
.is-style-lv-crest-right::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: min(60vw, 640px);
	aspect-ratio: 1024 / 896;
	background: url("../images/crest.png") center / contain no-repeat;
	opacity: 0.2;
	filter: blur(10px);
	pointer-events: none;
}

.is-style-lv-crest-left::before {
	left: -8%;
	top: -10%;
}

.is-style-lv-crest-right::before {
	right: -6%;
	top: -40px;
	width: min(50vw, 480px);
	opacity: 0.14;
}

:is(.has-ink-background-color, .has-ink-2-background-color).is-style-lv-crest-right::before,
:is(.has-ink-background-color, .has-ink-2-background-color).is-style-lv-crest-left::before {
	opacity: 0.32;
	filter: blur(12px) brightness(1.9);
}

:is(.has-ink-background-color, .has-ink-2-background-color).is-style-lv-crest-right::before {
	top: auto;
	bottom: -12%;
	width: min(70vw, 760px);
}

/* Image styles */
.is-style-lv-rounded img {
	border-radius: 18px;
	box-shadow: 0 12px 32px -8px rgba(11, 20, 22, 0.12);
}

.is-style-lv-rounded-lg img {
	border-radius: 24px;
	box-shadow: 0 24px 48px -16px rgba(11, 20, 22, 0.18);
}

.is-style-lv-rounded-sm img,
.wp-block-gallery.is-style-lv-rounded-sm img {
	border-radius: 12px;
}

.wp-block-image.is-style-lv-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	border-radius: 12px;
	background: var(--wp--preset--color--paper);
}

.wp-block-image.is-style-lv-icon img {
	width: 22px;
	height: 22px;
}

/* Gallery */
.wp-block-gallery.has-nested-images figure.wp-block-image img {
	border-radius: 12px;
}

/* Footer */
.lv-footer-brand .wp-block-site-logo {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--wp--preset--color--white);
}

.lv-footer-brand .wp-block-site-logo img {
	width: 34px;
	height: auto;
}

.lv-footer .wp-block-site-title a {
	color: var(--wp--preset--color--white);
}

.lv-footer-links p {
	margin: 0;
	font-weight: 600;
}

/* Posts */
.wp-block-post-featured-image img {
	border-radius: 18px;
}

.lv-post-card {
	border-bottom: 1px solid var(--wp--preset--color--cloud);
	padding-bottom: 32px;
}

.lv-footer {
	padding-block: 56px 32px;
}

.lv-footer-bottom {
	margin-block-start: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--graphite);
	font-weight: 500;
}

.lv-footer-bottom p {
	margin: 0;
}

.lv-card-body {
	padding: 24px;
}

:is(.is-style-lv-eyebrow, .is-style-lv-eyebrow-dot, .is-style-lv-eyebrow-live) + :is(h1, h2, h3) {
	margin-block-start: 16px;
}

.wp-block-column > :is(.is-style-lv-card, .is-style-lv-card-dark):only-child {
	box-sizing: border-box;
	height: 100%;
}

.lv-main .wp-block-post-content :is(p, li) a {
	text-decoration: underline;
	text-underline-offset: 3px;
}
