/*
 * LodgePage public site styles. Colors come from theme.css (CSS variables per color theme).
 * Sized for older readers: 20px base text, generous spacing, large tap targets.
 */

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

html {
	font-size: 125%; /* 20px */
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

h1,
h2,
h3,
.brand-name {
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.25;
	font-weight: 700;
}

h1 {
	font-size: 2rem;
	margin: 1.5rem 0 1rem;
	color: var(--accent);
}

h2 {
	font-size: 1.5rem;
	margin: 0 0 0.75rem;
	color: var(--accent);
}

h3 {
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
}

p {
	margin: 0 0 1rem;
}

a {
	color: var(--link);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-thickness: 3px;
}

:focus-visible {
	outline: 4px solid var(--accent);
	outline-offset: 3px;
}

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

.wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 16px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--accent);
	color: var(--accent-text);
	padding: 0.75rem 1rem;
	z-index: 10;
}

.skip-link:focus {
	left: 0;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.muted {
	color: var(--muted);
}

.small {
	font-size: 0.85rem;
}

.big {
	font-size: 1.15rem;
}

.lead {
	font-size: 1.25rem;
	color: var(--muted);
}

/* Header and navigation */

.site-header {
	border-bottom: 4px solid var(--accent);
	background: var(--surface);
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.9rem 0;
	color: var(--text);
	text-decoration: none;
}

.brand img {
	width: 56px;
	height: 56px;
	flex: none;
}

.brand-name {
	display: block;
	font-size: 1.4rem;
}

.brand-sub {
	display: block;
	font-size: 0.9rem;
	color: var(--muted);
}

.site-nav ul {
	list-style: none;
	margin: 0 auto;
	padding-bottom: 0.9rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.site-nav a {
	display: block;
	min-height: 48px;
	padding: 0.6rem 1.1rem;
	border: 2px solid var(--border);
	border-radius: 8px;
	color: var(--text);
	background: var(--bg);
	font-weight: 600;
	text-decoration: none;
}

.site-nav a:hover {
	border-color: var(--accent);
}

.site-nav a[aria-current="page"] {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-text);
}

/* Content blocks */

main {
	flex: 1;
	padding-bottom: 2rem;
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 1.25rem;
	margin: 0 0 1.25rem;
}

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

.grid-2 {
	display: grid;
	gap: 0 1.25rem;
}

@media (min-width: 800px) {
	.grid-2 {
		grid-template-columns: 1fr 1fr;
	}
}

.button {
	display: inline-block;
	min-height: 48px;
	padding: 0.65rem 1.4rem;
	border-radius: 8px;
	background: var(--accent);
	color: var(--accent-text);
	font-weight: 700;
	text-decoration: none;
}

.button:hover {
	filter: brightness(1.08);
}

/* Homepage hero */

.hero {
	text-align: center;
	padding: 1.5rem 0 1rem;
}

.hero h1 {
	font-size: 2.2rem;
	margin: 1rem 0 0.5rem;
}

.hero-emblem {
	width: 200px;
	height: 200px;
	margin: 0 auto;
}

.hero-photo {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid var(--border);
}

.map iframe {
	width: 100%;
	height: 380px;
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 1.25rem;
}

/* News */

.post-title {
	font-size: 1.75rem;
}

.post-photo {
	width: 100%;
	border-radius: 8px;
	margin: 0 0 1rem;
}

.post-body {
	max-width: 70ch;
}

.post-body img {
	height: auto;
}

.archive-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.archive-list li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--border);
}

.archive-list li:last-child {
	border-bottom: 0;
}

/* Officers */

.officers-photo {
	margin: 0 0 1.25rem;
}

.officers {
	margin: 0;
	display: grid;
	gap: 0;
}

@media (min-width: 800px) {
	.officers {
		grid-template-columns: 1fr 1fr;
		column-gap: 2rem;
	}
}

.officer {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--border);
}

.officer dt {
	color: var(--muted);
	font-size: 0.95rem;
}

.officer dd {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
}

/* Calendar: month grid on wide screens, agenda list on phones. */

.calendar iframe {
	width: 100%;
	border: 0;
	border-radius: 10px;
	background: #fff;
}

.calendar--month iframe {
	height: 700px;
}

.calendar--agenda {
	display: none;
}

.calendar--agenda iframe {
	height: 600px;
}

@media (max-width: 700px) {
	.calendar--month {
		display: none;
	}

	.calendar--agenda {
		display: block;
	}
}

/* Contact form. Fields are white with dark text on every theme so typing is easy to read. */

.contact-form {
	max-width: 36rem;
	margin: 1.5rem 0 2rem;
}

.contact-form label {
	display: block;
	margin: 1rem 0 0.35rem;
	font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 0.6rem 0.75rem;
	border: 2px solid var(--border);
	border-radius: 8px;
	background: #fff;
	color: #111;
	font: inherit;
}

.contact-form textarea {
	resize: vertical;
}

.contact-form button {
	border: 0;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.contact-form button:disabled {
	opacity: 0.6;
	cursor: default;
}

.contact-form .cf-turnstile {
	margin: 1.25rem 0 0;
}

.contact-form .hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-error {
	padding: 0.6rem 0.9rem;
	border-radius: 8px;
	background: #fff;
	color: #8a1f11;
	font-weight: 700;
}

/* Footer */

.site-footer {
	border-top: 4px solid var(--accent);
	background: var(--surface);
	padding: 1.5rem 0;
}

.site-footer p {
	margin: 0 0 0.35rem;
}

.footer-name {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	font-size: 1.15rem;
}

@media print {
	.site-nav,
	.map,
	.skip-link {
		display: none;
	}
}
