/* ==========================================================================
   Sirmione — base: tokens, reset, typography, buttons
   ========================================================================== */

:root {
	--c-blue: #0f3d5e;
	--c-blue-deep: #0a2b43;
	--c-blue-soft: #1d5479;
	--c-travertine: #f8f6f2;
	--c-travertine-dark: #ede8df;
	--c-white: #ffffff;
	--c-terracotta: #c88a55;
	--c-terracotta-dark: #a96f3f;
	--c-ink: #14232f;
	--c-muted: #5b6670;
	--c-line: rgba(15, 61, 94, 0.14);
	--c-line-light: rgba(255, 255, 255, 0.22);

	--f-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--f-body: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;

	--fs-xs: 0.75rem;
	--fs-sm: 0.875rem;
	--fs-base: 1.0625rem;
	--fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
	--fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
	--fs-h2: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
	--fs-h1: clamp(2.6rem, 1.6rem + 4.6vw, 5.75rem);

	--space-section: clamp(5rem, 3.5rem + 6vw, 9.5rem);
	--gutter: clamp(1.25rem, 0.75rem + 2.5vw, 3rem);
	--radius: 4px;
	--radius-lg: 10px;
	--shadow: 0 24px 60px -30px rgba(10, 43, 67, 0.45);
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--header-h: 76px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: var(--fs-base);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--f-display);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: inherit;
}

p {
	margin: 0 0 1.2em;
}

a {
	color: var(--c-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.2s var(--ease);
}

a:hover {
	color: var(--c-terracotta-dark);
}

:focus-visible {
	outline: 2px solid var(--c-terracotta);
	outline-offset: 3px;
}

::selection {
	background: var(--c-terracotta);
	color: var(--c-white);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

/* Accessibility ----------------------------------------------------------- */

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

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.75rem 1.25rem;
	clip: auto;
	background: var(--c-white);
	color: var(--c-blue);
	box-shadow: var(--shadow);
}

/* Type helpers ------------------------------------------------------------ */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
	font-family: var(--f-body);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--c-terracotta-dark);
}

.eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
}

.eyebrow--light {
	color: #e8b98d;
}

.section-title {
	font-size: var(--fs-h2);
	max-width: 18ch;
	margin-bottom: 0.4em;
}

.section-title--xl {
	max-width: 16ch;
}

.section-intro {
	max-width: 52ch;
	font-size: var(--fs-lg);
	color: var(--c-muted);
}

/* Buttons ----------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 52px;
	padding: 0.85rem 1.9rem;
	border: 1px solid var(--c-blue);
	border-radius: 999px;
	background: var(--c-blue);
	color: var(--c-white);
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
	background: var(--c-blue-deep);
	border-color: var(--c-blue-deep);
	color: var(--c-white);
	transform: translateY(-2px);
}

.btn:active {
	transform: translateY(0);
}

.btn--accent {
	background: var(--c-terracotta);
	border-color: var(--c-terracotta);
}

.btn--accent:hover {
	background: var(--c-terracotta-dark);
	border-color: var(--c-terracotta-dark);
}

.btn--outline {
	background: transparent;
	color: var(--c-blue);
}

.btn--outline:hover {
	background: var(--c-blue);
	color: var(--c-white);
}

.btn--ghost {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.55);
	color: var(--c-white);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.btn--ghost:hover {
	background: var(--c-white);
	border-color: var(--c-white);
	color: var(--c-blue);
}

.btn--small {
	min-height: 42px;
	padding: 0.55rem 1.25rem;
	font-size: var(--fs-xs);
}

.btn--block {
	width: 100%;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--c-blue);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 0.2rem;
}

.link-arrow .icon {
	transition: transform 0.25s var(--ease);
}

.link-arrow:hover .icon {
	transform: translateX(4px);
}

.link-arrow--light {
	color: var(--c-white);
}

.icon {
	flex-shrink: 0;
}

/* Prose (post content) ---------------------------------------------------- */

.prose {
	max-width: 720px;
	font-size: 1.125rem;
	line-height: 1.8;
}

.prose > * + * {
	margin-top: 1.25em;
}

.prose h2 {
	margin-top: 2em;
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
}

.prose h3 {
	margin-top: 1.75em;
	font-size: var(--fs-h3);
}

.prose blockquote {
	margin: 2.5em 0;
	padding: 0 0 0 1.5rem;
	border-left: 2px solid var(--c-terracotta);
	font-family: var(--f-display);
	font-size: 1.5rem;
	font-style: italic;
	line-height: 1.45;
	color: var(--c-blue);
}

.prose img,
.prose figure {
	border-radius: var(--radius);
}

.prose figcaption,
.wp-element-caption {
	margin-top: 0.6rem;
	font-size: var(--fs-sm);
	color: var(--c-muted);
}

.prose ul,
.prose ol {
	padding-left: 1.25em;
}

.alignwide {
	max-width: 1100px;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}
