@font-face {
	font-family: "Magnitaki Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/NotoSerifDisplay-Regular.ttf") format("truetype");
}

@font-face {
	font-family: "Magnitaki Serif";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/NotoSerifDisplay-Bold.ttf") format("truetype");
}

:root {
	--color-background: #fffdf8;
	--color-surface: #ffffff;
	--color-text: #16283a;
	--color-muted: #66717d;
	--color-aegean: #123f67;
	--color-aegean-deep: #0b2f50;
	--color-blue-soft: #e9f1f6;
	--color-sand: #eadfca;
	--color-gold: #b99558;
	--color-gold-soft: #d9c39b;
	--color-border: #e6dccb;
	--font-heading: "Magnitaki Serif", Georgia, "Times New Roman", serif;
	--font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--container: 1380px;
	--gutter: clamp(1rem, 3vw, 3.75rem);
	--frame-size: 12px;
	--frame-gap: 10px;
	--radius-small: 4px;
	--shadow-subtle: 0 8px 24px rgba(17, 47, 79, 0.08);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	min-width: 320px;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
}

body.admin-bar .meander-frame {
	top: 46px;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--color-aegean);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.22em;
}

a:hover {
	color: var(--color-aegean-deep);
}

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 3px solid var(--color-gold);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.7em;
	color: var(--color-aegean-deep);
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.12;
}

h1 {
	font-size: clamp(2.25rem, 8vw, 4.75rem);
}

h2 {
	font-size: clamp(1.75rem, 5vw, 3rem);
}

p {
	margin: 0 0 1.25rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 1rem;
	left: 1rem;
	display: block;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--color-surface);
	box-shadow: var(--shadow-subtle);
	color: var(--color-aegean-deep);
}

.site-shell {
	position: relative;
	z-index: 0;
	min-height: 100vh;
	overflow-x: hidden;
	padding: calc(var(--frame-size) + var(--frame-gap));
	background:
		linear-gradient(rgba(255, 253, 248, 0.94), rgba(255, 253, 248, 0.94)),
		radial-gradient(circle at top left, rgba(217, 195, 155, 0.22), transparent 32rem);
}

.content-container {
	width: min(100%, var(--container));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.content-stack {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
}

.meander-frame {
	position: fixed;
	inset: 0;
	z-index: 30;
	pointer-events: none;
}

.meander-frame__edge {
	position: absolute;
	display: block;
	background-image: url("../images/meander.svg");
	background-repeat: repeat;
	background-size: 24px 24px;
	opacity: 0.82;
	pointer-events: none;
}

.meander-frame__edge--top,
.meander-frame__edge--bottom {
	right: 0;
	left: 0;
	height: var(--frame-size);
}

.meander-frame__edge--top {
	top: 0;
}

.meander-frame__edge--bottom {
	bottom: 0;
}

.meander-frame__edge--right,
.meander-frame__edge--left {
	top: var(--frame-size);
	bottom: var(--frame-size);
	width: var(--frame-size);
}

.meander-frame__edge--right {
	right: 0;
}

.meander-frame__edge--left {
	left: 0;
}

.site-header {
	position: relative;
	z-index: 2;
	border-bottom: 1px solid var(--color-border);
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
}

.site-header__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	width: 100%;
	max-width: none;
	min-height: clamp(5.75rem, 9vw, 7rem);
	padding-block: 0.95rem;
}

.site-branding {
	flex: 1 1 auto;
	min-width: 0;
}

.site-branding__link {
	display: inline-flex;
	align-items: center;
	gap: clamp(0.75rem, 1.5vw, 1.15rem);
	color: var(--color-aegean-deep);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.site-branding__mark {
	flex: 0 0 auto;
	width: clamp(2.6rem, 7vw, 4.5rem);
}

.site-branding__mark img {
	width: 100%;
	height: auto;
}

.site-branding__text {
	display: inline-grid;
	gap: 0.15rem;
	min-width: 0;
}

.site-branding__title {
	font-family: var(--font-heading);
	font-size: clamp(1.65rem, 5vw, 3rem);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1;
}

.site-branding__tagline {
	display: block;
	position: relative;
	max-width: 22rem;
	color: var(--color-gold);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.site-branding__tagline::before,
.site-branding__tagline::after {
	content: "";
	display: inline-block;
	width: clamp(1.5rem, 4vw, 3.5rem);
	height: 1px;
	margin-inline: 0 0.65rem;
	vertical-align: 0.25em;
	background: var(--color-gold);
}

.site-branding__tagline::after {
	margin-inline: 0.65rem 0;
}

.site-navigation--desktop {
	display: none;
}

.site-navigation--mobile {
	flex: 0 0 auto;
	justify-self: end;
	position: relative;
}

.site-navigation--mobile summary {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	padding: 0.55rem 0.85rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-small);
	background: var(--color-surface);
	color: var(--color-aegean-deep);
	cursor: pointer;
	font-weight: 700;
	list-style: none;
}

.site-navigation--mobile summary::-webkit-details-marker {
	display: none;
}

.site-navigation--mobile[open] summary {
	border-color: var(--color-gold);
}

.site-navigation--mobile nav {
	position: absolute;
	z-index: 10;
	top: calc(100% + 0.6rem);
	right: 0;
	min-width: min(18rem, calc(100vw - 3rem));
	padding: 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-small);
	background: var(--color-surface);
	box-shadow: var(--shadow-subtle);
}

.nav-menu,
.footer-menu {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-menu {
	flex-direction: column;
	gap: 0.25rem;
}

.nav-menu a,
.footer-menu a {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: var(--color-aegean-deep);
	font-weight: 700;
	text-decoration: none;
}

.nav-menu a {
	min-height: 2.5rem;
	padding: 0.35rem 0.25rem;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
	color: var(--color-aegean);
}

.nav-menu a::after {
	content: "";
	position: absolute;
	right: 0.2rem;
	bottom: 0.2rem;
	left: 0.2rem;
	height: 2px;
	background: var(--color-gold);
	opacity: 0;
	transform: scaleX(0.45);
	transition: opacity 160ms ease, transform 160ms ease;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after {
	opacity: 1;
	transform: scaleX(1);
}

.site-main {
	position: relative;
	z-index: 1;
	padding-block: clamp(2rem, 5vw, 4rem);
}

.home .site-main {
	width: 100%;
	max-width: none;
	padding-inline: 0;
}

.entry {
	max-width: 48rem;
	margin-inline: auto;
	padding: clamp(1.25rem, 4vw, 2.5rem);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-small);
	background: rgba(255, 255, 255, 0.86);
	box-shadow: var(--shadow-subtle);
}

.entry__header {
	margin-bottom: 1rem;
}

.entry__title {
	margin-bottom: 0.35em;
}

.entry__content > *:last-child {
	margin-bottom: 0;
}

.home-hero {
	position: relative;
	display: grid;
	gap: clamp(1.5rem, 5vw, 3.5rem);
	align-items: center;
	width: calc(100% + (2 * var(--gutter)));
	margin-inline: calc(-1 * var(--gutter));
	margin-block: 0 clamp(2.5rem, 7vw, 5rem);
	padding: clamp(1.35rem, 4vw, 3.25rem);
	overflow: hidden;
	border: 1px solid var(--color-border);
	background:
		linear-gradient(90deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 253, 248, 0.88) 48%, rgba(233, 241, 246, 0.58) 100%),
		var(--color-surface);
	box-shadow: var(--shadow-subtle);
}

.home-hero::before {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--color-gold-soft), transparent);
}

.home-hero__content {
	position: relative;
	z-index: 1;
	max-width: 46rem;
}

.home-hero__eyebrow {
	margin-bottom: 0.75rem;
	color: var(--color-gold);
	font-size: clamp(0.78rem, 2vw, 0.9rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.home-hero__title {
	max-width: 20ch;
	margin-bottom: clamp(0.8rem, 2vw, 1rem);
	font-size: clamp(2.45rem, 6.4vw, 3.9rem);
}

.home-hero__divider {
	width: min(7.5rem, 42vw);
	height: 1rem;
	margin-bottom: clamp(1rem, 3vw, 1.5rem);
	background:
		linear-gradient(var(--color-gold), var(--color-gold)) center / 100% 1px no-repeat;
}

.home-hero__divider::after {
	content: "";
	display: block;
	width: 0.42rem;
	height: 0.42rem;
	margin: 0.3rem auto 0;
	background: var(--color-gold);
	transform: rotate(45deg);
}

.home-hero__text {
	max-width: 31rem;
	margin-bottom: clamp(1.25rem, 4vw, 2rem);
	color: var(--color-text);
	font-size: clamp(1rem, 2.5vw, 1.12rem);
	line-height: 1.75;
}

.home-hero__button {
	display: inline-flex;
	min-height: 3rem;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.35rem;
	border: 1px solid var(--color-aegean-deep);
	border-radius: var(--radius-small);
	background: var(--color-aegean);
	color: var(--color-surface);
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 0.6rem 1.5rem rgba(18, 63, 103, 0.18);
}

.home-hero__button:hover {
	background: var(--color-aegean-deep);
	color: var(--color-surface);
}

.home-hero__visual {
	position: relative;
	z-index: 1;
	margin: 0;
	min-width: 0;
}

.home-hero__visual::before {
	content: "";
	position: absolute;
	inset: 12% -9% -7% 15%;
	z-index: -1;
	border-radius: 999px;
	background: rgba(185, 149, 88, 0.14);
}

.home-hero__image,
.home-hero__image-fallback {
	width: 100%;
	margin-inline: auto;
	aspect-ratio: 1916 / 821;
	border: 1px solid rgba(217, 195, 155, 0.55);
	border-radius: var(--radius-small);
	background:
		linear-gradient(135deg, rgba(18, 63, 103, 0.08), rgba(185, 149, 88, 0.16)),
		var(--color-blue-soft);
	box-shadow: 0 1rem 2.5rem rgba(17, 47, 79, 0.16);
	object-fit: cover;
	object-position: center;
}

.home-hero__image-fallback {
	display: block;
}

.site-footer {
	position: relative;
	z-index: 1;
	border-top: 1px solid var(--color-border);
	background: rgba(255, 255, 255, 0.9);
}

.site-footer__inner {
	display: grid;
	gap: 1.5rem;
	padding-block: clamp(2rem, 5vw, 3.25rem);
}

.site-footer__brand {
	max-width: 33rem;
}

.site-footer__title {
	margin-bottom: 0.4rem;
	color: var(--color-aegean-deep);
	font-family: var(--font-heading);
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.1;
}

.site-footer__nav:empty {
	display: none;
}

.footer-menu {
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.site-footer__bar {
	background: var(--color-aegean-deep);
	color: var(--color-surface);
	font-size: 0.875rem;
}

.site-footer__bar .content-container {
	padding-block: 0.8rem;
}

.site-footer__bar p {
	margin: 0;
	overflow-wrap: anywhere;
}

@media (min-width: 783px) {
	body.admin-bar .meander-frame {
		top: 32px;
	}
}

@media (min-width: 768px) {
	:root {
		--frame-size: 16px;
		--frame-gap: 14px;
	}

	.site-footer__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: start;
	}
}

@media (max-width: 899px) {
	.site-header__inner {
		grid-template-columns: 1fr;
		justify-items: start;
	}

	.site-navigation--mobile {
		justify-self: start;
	}
}

@media (min-width: 900px) {
	.home .site-main {
		padding-top: 0;
	}

	.home-hero {
		display: block;
		min-height: clamp(26rem, 38vw, 34rem);
		padding-left: clamp(3.25rem, 6vw, 6.5rem);
	}

	.home-hero::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 0;
		background: linear-gradient(90deg, rgba(255, 253, 248, 0.95) 0%, rgba(255, 253, 248, 0.78) 42%, rgba(255, 253, 248, 0.04) 70%);
		pointer-events: none;
	}

	.home-hero__visual {
		position: absolute;
		inset: 0;
		z-index: 0;
	}

	.home-hero__visual::before {
		content: none;
	}

	.home-hero__image,
	.home-hero__image-fallback {
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		border: 0;
		box-shadow: none;
		object-fit: cover;
		object-position: center right;
	}

	.site-navigation--desktop {
		display: block;
	}

	.site-navigation--mobile {
		display: none;
	}

	.nav-menu {
		flex-direction: row;
		align-items: center;
		gap: clamp(1rem, 3vw, 2rem);
	}
}

@media (min-width: 900px) and (max-width: 1199px) {
	.home-hero__content {
		max-width: 38rem;
	}

	.home-hero__title {
		max-width: 14.5ch;
		font-size: clamp(3.2rem, 6vw, 3.65rem);
	}
}

@media (max-width: 479px) {
	:root {
		--frame-size: 8px;
		--frame-gap: 6px;
	}

	.meander-frame__edge--right,
	.meander-frame__edge--left {
		display: none;
	}

	.site-shell {
		padding-inline: var(--frame-gap);
	}

	.site-header__inner {
		padding-inline: clamp(0.85rem, 5vw, 1.25rem);
	}

	.site-branding__tagline {
		display: none;
	}

	.site-branding__mark {
		width: 2.35rem;
	}
}

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
