/* La Spunta base layout, type, footer, pages, archives. */

:root {
	--ls-accent: #2563eb;
	--ls-accent-hover: #1d4ed8;
	--ls-text: #1e293b;
	--ls-muted: #64748b;
	--ls-border: #e2e8f0;
	--ls-bg: #fff;
	--ls-header-bg: #f5f6fb;
	--ls-max: 1200px;
	--ls-font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--ls-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ls-text);
	background: var(--ls-bg);
}

img { max-width: 100%; height: auto; }
a { color: var(--ls-accent); }
a:hover { color: var(--ls-accent-hover); }

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

.wrap,
.ts-contain {
	width: 100%;
	max-width: var(--ls-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.main-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1 0 auto; width: 100%; }

.ls-site-footer {
	--ls-footer-bg: #e9eaf2;
	--ls-footer-ink: #1c2430;
	--ls-footer-muted: #5b6573;
	margin-top: auto;
	background: var(--ls-footer-bg);
	color: var(--ls-footer-ink);
	padding: 56px 0;
}
.ls-site-footer a {
	color: var(--ls-footer-ink);
	text-decoration: none;
}
.ls-site-footer a:hover {
	color: var(--ls-accent);
}
.ls-site-footer__inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px 48px;
}
.ls-site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
.ls-site-footer__name {
	margin: 0;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: 1.85rem;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0;
	color: var(--ls-footer-ink);
}
.ls-site-footer__copy {
	margin: 0;
	font-family: var(--ls-font);
	font-size: 0.92rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--ls-footer-muted);
}
.ls-site-footer__nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: flex-end;
}
.ls-site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ls-site-footer__menu li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.ls-site-footer__menu a {
	font-family: var(--ls-font);
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ls-footer-ink);
	white-space: nowrap;
}
.ls-legal-bar {
	display: none;
}

@media (max-width: 860px) {
	.ls-site-footer {
		padding: 40px 0 36px;
	}
	.ls-site-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 28px;
	}
	.ls-site-footer__nav {
		width: 100%;
		justify-content: flex-start;
	}
	.ls-site-footer__menu {
		justify-content: flex-start;
		gap: 12px 22px;
	}
}

.widget { margin: 0 0 1.5rem; }
.widget-title { margin: 0 0 0.75rem; font-size: 1.05rem; }

.ls-page,
.ls-archive {
	max-width: 860px;
	margin: 0 auto;
	padding: 32px 20px 64px;
}
.ls-page__title,
.ls-archive__title {
	margin: 0 0 1rem;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	line-height: 1.2;
}
.ls-page__content,
.entry-content {
	font-size: 1.05rem;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.15em; }

.ls-archive-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ls-archive-card {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--ls-border);
	text-decoration: none;
	color: inherit;
}
.ls-archive-card h2 {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
}
.ls-archive-card p { margin: 0; color: var(--ls-muted); }
.ls-archive-card img {
	width: 100%;
	height: 110px;
	object-fit: cover;
	border-radius: 6px;
}
@media (max-width: 640px) {
	.ls-archive-card { grid-template-columns: 1fr; }
}

.ls-empty,
.ls-404 {
	max-width: 640px;
	margin: 0 auto;
	padding: 64px 20px;
	text-align: center;
}

.main-pagination { margin: 28px 0; }
.main-pagination .page-numbers,
.main-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}
.main-pagination a,
.main-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	text-decoration: none;
	color: var(--ls-text);
}
.main-pagination .current {
	background: var(--ls-accent);
	border-color: var(--ls-accent);
	color: #fff;
}

.comments-area {
	max-width: 720px;
	margin: 40px auto 0;
	padding: 24px 0 48px;
}
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment { margin: 0 0 20px; padding: 16px; border: 1px solid var(--ls-border); border-radius: 8px; }

.ls-modal[hidden] { display: none; }
.ls-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
}
.ls-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}
.ls-modal-container {
	position: relative;
	z-index: 1;
	max-width: 420px;
	margin: 8vh auto;
	background: #fff;
	border-radius: 12px;
	padding: 28px 24px 24px;
	box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}
.ls-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: var(--ls-muted);
}
.auth-widget .heading { margin: 0 0 8px; }
.auth-widget .message { margin: 0 0 16px; color: var(--ls-muted); }
.auth-widget input[type="text"],
.auth-widget input[type="password"],
.auth-widget input[type="email"] {
	width: 100%;
	height: 44px;
	margin: 0 0 12px;
	padding: 0 12px;
	border: 1px solid var(--ls-border);
	border-radius: 8px;
}
.auth-widget .button,
.auth-widget input[type="submit"],
.auth-widget .ls-header-cta {
	width: 100%;
	min-height: 44px;
	border: 0;
	border-radius: 999px;
	background: var(--ls-accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.auth-widget .lost-pass { margin-top: 12px; font-size: 0.9rem; }

.wp-caption-text,
figcaption,
.wp-element-caption {
	margin: 8px 0 0;
	color: #1f2937;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.45;
}
.wp-block-image { margin: 1.25em 0; }
.alignwide { max-width: 100%; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

.ls-contact__intro {
	margin: 0 0 1.5rem;
	color: var(--ls-muted);
	max-width: 40rem;
}
.ls-contact__form-wrap {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ls-border);
}
.ls-contact__form-title {
	margin: 0 0 1rem;
	font-size: 1.35rem;
}
.ls-contact__form {
	display: grid;
	gap: 16px;
	max-width: 36rem;
}
.ls-contact__field label {
	display: block;
	margin: 0 0 6px;
	font-size: 0.92rem;
	font-weight: 700;
}
.ls-contact__field abbr {
	text-decoration: none;
}
.ls-contact__field input,
.ls-contact__field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--ls-border);
	border-radius: 8px;
	font: inherit;
	color: var(--ls-text);
	background: #fff;
}
.ls-contact__field textarea {
	min-height: 160px;
	resize: vertical;
}
.ls-contact__field input:focus-visible,
.ls-contact__field textarea:focus-visible {
	outline: 2px solid var(--ls-accent);
	outline-offset: 1px;
}
.ls-contact__field input[aria-invalid="true"],
.ls-contact__field textarea[aria-invalid="true"] {
	border-color: #b91c1c;
}
.ls-contact__error {
	display: block;
	margin-top: 6px;
	color: #b91c1c;
	font-size: 0.88rem;
}
.ls-contact__submit {
	justify-self: start;
	min-height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--ls-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.ls-contact__submit:hover,
.ls-contact__submit:focus-visible {
	background: var(--ls-accent-hover);
}
.ls-contact__notice {
	margin: 0 0 1.25rem;
	padding: 12px 14px;
	border-radius: 8px;
	max-width: 36rem;
}
.ls-contact__notice.is-success {
	background: #ecfdf3;
	color: #166534;
}
.ls-contact__notice.is-error {
	background: #fef2f2;
	color: #991b1b;
}
.ls-contact__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cf::after { content: ""; display: table; clear: both; }
