:root {
	--bg: #f7f3ec;
	--ink: #221f19;
	--card: #fffdf8;
	--line: #e3ddd0;
	--muted: #7d766a;
	--accent: #2f66b0;
	--date: #2f66b0;
	--dashed: #c9c2b2;
	--navy: #101d2a;
	--navy-line: #476278;
	--navy-muted: #c1cedb;
	--navy-text: #f4f6f9;
	--radius: 8px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	background: var(--bg);
	color: var(--ink);
	line-height: 1.6;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* Header and hero share the navy band */
.site-header {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 0.7rem 1.25rem;
	background: var(--navy);
	color: var(--navy-text);
	border-bottom: 1px solid var(--navy-line);
}
.site-header .brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--navy-text); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.site-header .brand img { display: block; border-radius: 50%; }
.site-header nav { display: flex; gap: 0.75rem; margin-left: auto; }
.site-header nav a { color: var(--navy-muted); text-decoration: none; padding: 0.25rem 0.4rem; border-radius: 6px; }
.site-header nav a:hover { color: var(--navy-text); }
.site-header nav a[aria-current="page"] { color: var(--navy-text); font-weight: 600; }
.header-cta { margin-left: 0.5rem; background: #111; color: #fff; text-decoration: none; padding: 0.4rem 0.9rem; border-radius: 6px; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.header-cta img { display: block; width: 20px; height: 20px; }
.header-cta:hover { background: #000; }

.hero { position: relative; overflow: hidden; padding: 5.25rem 0 5.25rem; background: var(--navy); color: var(--navy-text); text-align: center; }
.hero.small { padding: 2.5rem 0 2rem; text-align: left; }
.hero-watermark { position: absolute; top: 50%; width: 660px; height: 660px; max-width: none; opacity: 0.13; pointer-events: none; }
.watermark-red { left: -260px; transform: translateY(-50%); }
.watermark-blue { left: auto; right: -260px; transform: translateY(-50%); }
.hero .wrap { position: relative; }
.hero.small .wrap { max-width: 960px; }
.hero h1 { margin: 0 0 0.4rem; font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -0.02em; }
.hero .lede { color: var(--navy-muted); font-size: 1.02rem; max-width: 30rem; margin: 0 auto; line-height: 1.55; }

.button {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: var(--accent);
	color: #fff;
	text-decoration: none;
	padding: 0.55rem 1.2rem;
	border-radius: 6px;
	font-weight: 600;
}
.button:hover { background: #28579a; }
.button.dark { background: #111; color: #fff; }
.button.dark:hover { background: #000; }
.button.dark img { display: block; width: 18px; height: 18px; }

/* Sections */
.section { padding: 2.25rem 0 1rem; }
.section h2 { margin: 0 0 0.9rem; font-size: 1.15rem; font-weight: 600; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem 1rem; }
.stat-value { display: block; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

/* Upcoming events: plain ruled rows with a sign-up link */
.event-rows { width: 100%; border-collapse: collapse; }
.event-rows td { padding: 0.65rem 0; border-top: 1px solid var(--line); vertical-align: baseline; }
.event-rows tr:first-child td { border-top: 0; }
.event-rows td.when { width: 9.5rem; color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.event-rows td.what strong { font-size: 1rem; font-weight: 600; }
.event-rows td.what span { color: var(--muted); font-size: 0.9rem; }
.event-rows td.players { text-align: right; color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.event-rows td.go { text-align: right; white-space: nowrap; }
.event-rows td.go a { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.event-rows td.go a:hover { text-decoration: underline; text-underline-offset: 3px; }

.empty-state { color: var(--muted); background: var(--card); border: 1px dashed var(--dashed); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; }
.staff-list { list-style: none; padding: 0; margin: 0; }
.staff-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; padding-bottom: 2rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.15rem; }
.contact-label { color: var(--muted); font-size: 0.85rem; }
.check-list { padding-left: 1.25rem; margin: 0 0 1rem; }
.check-list li { margin: 0.3rem 0; }
.muted-note { color: var(--muted); font-size: 0.9rem; }

/* Accessibility */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--accent); color: #fff; padding: 0.5rem 1rem; border-radius: 6px; z-index: 10; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }

main a { color: var(--accent); }

.navigation-error { position: fixed; inset: 1rem 1rem auto; background: var(--accent); color: #fff; padding: 0.75rem 1.25rem; border-radius: var(--radius); z-index: 20; }

/* htmx request indicator */
body.htmx-request { opacity: 0.85; }

@media (max-width: 700px) {
	/* Header: one row, logo without wordmark; tabs with real tap targets and an active underline */
	.site-header { flex-wrap: nowrap; padding: 0.55rem 0.65rem; gap: 0.3rem; }
	.site-header .brand { font-size: 0; gap: 0; }
	.site-header .brand img { width: 34px; height: 34px; }
	.site-header nav { margin-left: auto; gap: 0.2rem; }
	.site-header nav a { font-size: 0.9rem; padding: 0.45rem 0.35rem; position: relative; }
	.site-header nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0.35rem; right: 0.35rem; bottom: 0.1rem; height: 2px; border-radius: 1px; background: currentColor; }
	.header-cta { margin-left: 0; padding: 0.35rem 0.5rem; font-size: 0.75rem; gap: 0.3rem; }
	.header-cta img { width: 15px; height: 15px; }

	/* Hero: tighter band, text centered in the same-height band */
	.hero { padding: 3.5rem 0 3.5rem; }
	.hero.small { padding: 1.75rem 0 1.5rem; }
	.watermark-red { display: none; }
	.watermark-blue { left: 50%; transform: translate(-50%, -50%); width: 480px; height: 480px; }
	.hero h1 { font-size: 1.7rem; }
	.hero .lede { font-size: 0.95rem; max-width: 26rem; }
	.button { padding: 0.5rem 0.9rem; font-size: 0.9rem; }

	/* Sections and cards: tighter rhythm */
	.section { padding: 1.5rem 0 0.5rem; }
	.section h2 { margin-bottom: 0.6rem; }
	.stats-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
	.stat { padding: 0.6rem 0.75rem; }
	.stat-value { font-size: 1.5rem; }

	/* Event rows: date and link on the first line, name, course, and count on the next */
	.event-rows tr { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 0.45rem; border-top: 1px solid var(--line); padding: 0.55rem 0; }
	.event-rows tr:first-child { border-top: 0; }
	.event-rows td { display: block; border-top: 0; padding: 0; }
	.event-rows td.when { width: auto; grid-row: 1; grid-column: 1; }
	.event-rows td.go { grid-row: 1; grid-column: 2; margin: 0; }
	.event-rows td.what { grid-row: 2; grid-column: 1; min-width: 0; }
	.event-rows td.players { grid-row: 2; grid-column: 2; text-align: right; }
	.event-rows td.what span { display: inline; }

	.about-grid, .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 360px) {
	/* Very narrow phones: icon-only Disc Golf Scene button so the tabs keep room */
	.header-cta { font-size: 0; gap: 0; padding: 0.45rem 0.45rem; }
}
