:root {
	color-scheme: light dark;
	--fg: #182225;
	--bg: #fbfaf6;
	--muted: #667175;
	--accent: #0e7c86;
	--accent-2: #e8734a;
	--border: #e4e0d6;
	--sidebar-bg: #f2efe6;
	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
	:root {
		--fg: #eef2f1;
		--bg: #0d1618;
		--muted: #93a3a1;
		--accent: #4fd1c5;
		--accent-2: #ff9466;
		--border: #1e2b2d;
		--sidebar-bg: #121d1f;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	color: var(--fg);
	background:
		radial-gradient(ellipse 900px 500px at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent),
		radial-gradient(ellipse 700px 500px at 0% 100%, color-mix(in srgb, var(--accent-2) 7%, transparent), transparent),
		var(--bg);
	background-attachment: fixed;
	line-height: 1.5;
}

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.01em;
}

@media (prefers-reduced-motion: no-preference) {
	main {
		animation: fade-in-up 0.5s ease both;
	}
}

@keyframes fade-in-up {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.site-shell {
	display: flex;
	min-height: 100vh;
}

.sidebar {
	width: 280px;
	flex-shrink: 0;
	background: var(--sidebar-bg);
	border-right: 1px solid var(--border);
	padding: 2rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.sidebar-section {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.sidebar-section:not(:first-child) {
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}

.sidebar .brand {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.25rem;
	text-decoration: none;
	color: var(--fg);
}

.sidebar nav {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.sidebar nav a {
	position: relative;
	display: inline-block;
	width: fit-content;
	text-decoration: none;
	color: var(--muted);
	font-size: 0.95rem;
	transition: color 0.15s ease;
}

.sidebar nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: -2px;
	height: 2px;
	background: var(--accent-2);
	transition: right 0.2s ease;
}

.sidebar nav a:hover,
.sidebar nav a[aria-current="page"] {
	color: var(--accent);
}

.sidebar nav a:hover::after,
.sidebar nav a[aria-current="page"]::after {
	right: 0;
}

.strava-widget {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.strava-widget iframe {
	max-width: 100%;
	border-radius: 8px;
}

.strava-profile-link {
	font-size: 0.8rem;
	color: var(--muted);
	text-decoration: none;
}

.strava-profile-link:hover {
	color: var(--accent);
}

.content-column {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

main {
	flex: 1;
	max-width: 780px;
	padding: 3rem 2rem;
}

.site-footer {
	max-width: 780px;
	padding: 2rem;
	color: var(--muted);
	font-size: 0.85rem;
}

a {
	color: var(--accent);
	transition: color 0.15s ease;
}

a:hover {
	color: var(--accent-2);
}

@media (max-width: 800px) {
	.site-shell {
		flex-direction: column;
	}

	.sidebar {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid var(--border);
		flex-direction: column;
		gap: 1rem;
		padding: 1.25rem 1.5rem;
	}

	.sidebar-section {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.75rem 1.5rem;
	}

	.sidebar-section:not(:first-child) {
		padding-top: 0.75rem;
	}

	.sidebar nav {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.5rem 1rem;
	}

	main {
		padding: 2rem 1.25rem;
	}

	.site-footer {
		padding: 1.5rem 1.25rem;
	}
}

/* Simple gallery layout, shared by Home Services and Fishing pages */
.project-section {
	margin-bottom: 3rem;
}

.project-section h2 {
	border-bottom: 2px solid var(--accent-2);
	padding-bottom: 0.5rem;
	display: inline-block;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
	align-items: start;
}

.gallery-item img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--sidebar-bg);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover img {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--fg) 35%, transparent);
}

.gallery-item p {
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
	color: var(--muted);
}

.placeholder-note {
	background: var(--sidebar-bg);
	border: 1px dashed var(--border);
	border-radius: 8px;
	padding: 1rem 1.25rem;
	color: var(--muted);
	font-size: 0.9rem;
}

.project-list {
	list-style: none;
	padding: 0;
	margin: 2rem 0 0;
}

.project-list li {
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-list li:hover {
	transform: translateY(-2px);
	border-color: var(--accent);
	box-shadow: 0 12px 24px -16px color-mix(in srgb, var(--fg) 35%, transparent);
}

.project-list h3 {
	margin: 0 0 0.35rem;
}

.project-list p {
	margin: 0;
	color: var(--muted);
}

.store-badges {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.photo-banner {
	display: flex;
	gap: 0.75rem;
	overflow-x: auto;
	margin: 1.5rem 0 2rem;
	padding-bottom: 0.25rem;
}

.photo-banner img {
	height: 220px;
	width: auto;
	max-width: none;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.photo-banner img:hover {
	transform: scale(1.03);
}

@media (max-width: 800px) {
	.photo-banner img {
		height: 160px;
	}
}

.home-hero-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.home-hero-row > img {
	flex: 1 1 0;
	min-width: 150px;
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

.logo-card {
	background: #ffffff;
	border-radius: 8px;
	padding: 0.5rem;
	display: flex;
	justify-content: center;
	flex: 1 1 0;
	min-width: 150px;
	margin-bottom: 0;
}

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

.beta-callout {
	background: var(--sidebar-bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 1.5rem;
	margin-top: 2rem;
}

.beta-callout h2 {
	margin-top: 0;
}

.beta-buttons {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 1rem;
}

.beta-button {
	display: inline-block;
	background: var(--accent);
	color: var(--bg);
	text-decoration: none;
	font-weight: 600;
	padding: 0.65rem 1.1rem;
	border-radius: 6px;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.beta-button:hover {
	background: var(--accent-2);
	transform: translateY(-2px);
	box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--accent-2) 60%, transparent);
}

.lightbox-trigger {
	cursor: zoom-in;
}

.lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 12, 12, 0.9);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 2rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease;
	z-index: 100;
}

.lightbox-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.lightbox-img {
	max-width: 90vw;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
}

.lightbox-caption {
	color: #f4f2ec;
	font-size: 0.95rem;
	margin: 0;
	text-align: center;
}

.lightbox-close {
	position: absolute;
	top: 1.25rem;
	right: 1.5rem;
	background: none;
	border: none;
	color: #f4f2ec;
	font-size: 2.25rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.25rem 0.75rem;
}

.lightbox-close:hover {
	color: var(--accent-2);
}

.schedule-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 1.5rem;
}

.schedule-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	border: 1px solid var(--border);
	border-left: 4px solid var(--border);
	border-radius: 8px;
	padding: 1rem 1.25rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.schedule-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -16px color-mix(in srgb, var(--fg) 35%, transparent);
}

.schedule-item--home {
	border-left-color: var(--accent);
}

.schedule-item--away {
	border-left-color: var(--accent-2);
}

.schedule-item--practice {
	border-left-color: var(--muted);
}

.schedule-badge {
	flex-shrink: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 0.3rem 0.6rem;
	border-radius: 999px;
	color: var(--bg);
	white-space: nowrap;
}

.schedule-badge--home {
	background: var(--accent);
}

.schedule-badge--away {
	background: var(--accent-2);
}

.schedule-badge--practice {
	background: var(--muted);
}

.schedule-title {
	margin: 0;
	font-weight: 600;
}

.schedule-note {
	font-weight: 400;
	color: var(--muted);
}

.schedule-when {
	margin: 0.2rem 0 0;
	color: var(--muted);
	font-size: 0.9rem;
}

.schedule-location {
	margin: 0.2rem 0 0;
	color: var(--muted);
	font-size: 0.85rem;
}
