:root {
	--lmd-night: #132238;
	--lmd-ivory: #f6f0e7;
	--lmd-copper: #b8734a;
	--lmd-stone: #d8cec2;
	--lmd-slate: #5e6b78;
	--lmd-green: #304a46;
	--lmd-white: #fff;
	--lmd-border: color-mix(in srgb, var(--lmd-night) 18%, transparent);
	--lmd-shadow: 0 24px 80px rgba(19, 34, 56, 0.08);
}

html {
	scroll-behavior: smooth;
}

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

a {
	text-underline-offset: 0.22em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.wp-block-navigation a:focus-visible {
	outline: 3px solid var(--lmd-copper);
	outline-offset: 3px;
}

.lmd-site-header {
	border-bottom: 1px solid rgba(19, 34, 56, 0.12);
	position: sticky;
	top: 0;
	z-index: 20;
	backdrop-filter: blur(14px);
}

.lmd-brand-mark {
	align-items: center;
	display: flex;
	gap: 0.75rem;
}

.lmd-monogram {
	align-items: center;
	aspect-ratio: 1;
	border: 1px solid var(--lmd-copper);
	color: var(--lmd-copper);
	display: inline-flex;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.25rem;
	justify-content: center;
	width: 2.6rem;
}

.lmd-eyebrow {
	color: var(--lmd-copper);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lmd-kicker {
	color: var(--lmd-slate);
	font-size: 0.95rem;
	line-height: 1.45;
}

.lmd-section {
	padding-bottom: clamp(3.5rem, 8vw, 7rem);
	padding-top: clamp(3.5rem, 8vw, 7rem);
}

.lmd-hero {
	min-height: min(760px, 86vh);
	overflow: hidden;
	position: relative;
}

.lmd-hero::before {
	background:
		linear-gradient(90deg, rgba(19, 34, 56, 0.95), rgba(19, 34, 56, 0.78) 46%, rgba(19, 34, 56, 0.35)),
		repeating-linear-gradient(90deg, rgba(246, 240, 231, 0.08) 0 1px, transparent 1px 72px),
		repeating-linear-gradient(0deg, rgba(246, 240, 231, 0.06) 0 1px, transparent 1px 72px);
	content: "";
	inset: 0;
	position: absolute;
}

.lmd-hero::after {
	background:
		linear-gradient(135deg, transparent 0 30%, rgba(184, 115, 74, 0.36) 30% 31%, transparent 31% 100%),
		linear-gradient(45deg, transparent 0 58%, rgba(216, 206, 194, 0.2) 58% 59%, transparent 59% 100%);
	content: "";
	inset: 0;
	opacity: 0.9;
	position: absolute;
}

.lmd-hero > .wp-block-group {
	position: relative;
	z-index: 1;
}

.lmd-hero h1 {
	max-width: 820px;
}

.lmd-card {
	background: rgba(255, 255, 255, 0.58);
	border: 1px solid rgba(19, 34, 56, 0.12);
	border-radius: 8px;
	box-shadow: 0 18px 55px rgba(19, 34, 56, 0.05);
	height: 100%;
	padding: 1.35rem;
}

.lmd-card-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lmd-card-grid.lmd-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lmd-card-grid.lmd-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lmd-card:hover {
	border-color: rgba(184, 115, 74, 0.5);
}

.lmd-card a {
	color: inherit;
	text-decoration: none;
}

.lmd-number {
	align-items: center;
	border: 1px solid var(--lmd-copper);
	color: var(--lmd-copper);
	display: inline-flex;
	font-weight: 800;
	height: 2rem;
	justify-content: center;
	width: 2rem;
}

.lmd-house {
	display: grid;
	gap: 0.45rem;
	margin: 2rem auto;
	max-width: 860px;
}

.lmd-house a {
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(19, 34, 56, 0.16);
	color: var(--lmd-night);
	display: block;
	padding: 1.05rem 1.2rem;
	text-decoration: none;
	transition: border-color 160ms ease, transform 160ms ease;
}

.lmd-house a:hover,
.lmd-house a:focus-visible {
	border-color: var(--lmd-copper);
	transform: translateY(-2px);
}

.lmd-house-roof {
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
	min-height: 150px;
	padding-top: 4.5rem !important;
	text-align: center;
}

.lmd-house-grid {
	display: grid;
	gap: 0.45rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lmd-house-base {
	background: var(--lmd-night) !important;
	color: var(--lmd-ivory) !important;
}

.lmd-house strong {
	display: block;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.1;
}

.lmd-house span {
	display: block;
	font-size: 0.92rem;
	margin-top: 0.25rem;
}

.lmd-divider {
	border-top: 1px solid rgba(19, 34, 56, 0.14);
}

.lmd-link-card {
	color: inherit;
	display: block;
	text-decoration: none;
}

.lmd-link-card::after {
	color: var(--lmd-copper);
	content: " ->";
	font-weight: 800;
}

.lmd-pill-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	list-style: none;
	padding: 0;
}

.lmd-pill-list li {
	border: 1px solid rgba(19, 34, 56, 0.16);
	border-radius: 999px;
	padding: 0.5rem 0.85rem;
}

.lmd-regulatory-note {
	background: rgba(48, 74, 70, 0.08);
	border-left: 4px solid var(--lmd-green);
	padding: 1rem 1.15rem;
}

.lmd-lead {
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	line-height: 1.55;
}

.lmd-page-title-band {
	border-bottom: 1px solid rgba(19, 34, 56, 0.12);
	padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
	padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.lmd-footer a {
	color: var(--lmd-ivory);
}

@media (max-width: 760px) {
	.lmd-site-header {
		position: static;
	}

	.lmd-hero {
		min-height: auto;
	}

	.lmd-hero::before {
		background:
			linear-gradient(180deg, rgba(19, 34, 56, 0.95), rgba(19, 34, 56, 0.84)),
			repeating-linear-gradient(90deg, rgba(246, 240, 231, 0.08) 0 1px, transparent 1px 54px),
			repeating-linear-gradient(0deg, rgba(246, 240, 231, 0.06) 0 1px, transparent 1px 54px);
	}

	.lmd-house-grid {
		grid-template-columns: 1fr;
	}

	.lmd-card-grid,
	.lmd-card-grid.lmd-grid-2,
	.lmd-card-grid.lmd-grid-4 {
		grid-template-columns: 1fr;
	}

	.lmd-house-roof {
		clip-path: none;
		min-height: 0;
		padding-top: 1.05rem !important;
		text-align: left;
	}
}
