/*
Theme Name: Sunday Ultimate
Theme URI: https://example.com/
Author: Eric
Description: A one-page block theme for the Emporia, KS Sunday pickup ultimate game — game info, field map, photos, rules links, and a built-in SMS reminder signup form (no plugins required).
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sunday-ultimate
Tags: one-column, block-patterns, full-site-editing, custom-colors
*/

/* Most styling lives in theme.json. This file holds the few things theme.json can't express. */

html { scroll-behavior: smooth; }
/* Sections butt up against each other; no gap between header, main and footer. */
.wp-site-blocks > * + * { margin-block-start: 0; }
:where(section[id], .wp-block-group[id]) { scroll-margin-top: 1rem; }

.su-kicker {
	text-transform: uppercase;
	letter-spacing: .12em;
	font-weight: 700;
	font-size: .8rem;
}

/* Info cards */
.su-card {
	border-radius: 14px;
	height: 100%;
}
.su-card h3 { margin-top: 0; }

/* Map */
.su-map {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--wp--preset--color--mist);
	box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 24px rgba(20,40,30,.10);
}
.su-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .su-map { aspect-ratio: 4 / 5; } }

/* Gallery */
.su-gallery img { border-radius: 10px; }
.su-credits { opacity: .75; }

/* Rules link cards */
.su-rule-card {
	border-radius: 14px;
	transition: transform .15s ease, box-shadow .15s ease;
	height: 100%;
}
.su-rule-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,40,30,.12); }
.su-rule-card a { text-decoration: none; }
.su-rule-card a::after { content: " →"; }

/* ---------- Signup form ---------- */
.su-signup {
	display: grid;
	gap: 1rem;
	max-width: 560px;
}
.su-signup .su-field { display: grid; gap: .35rem; }
.su-signup label { font-weight: 600; }
.su-signup input[type="text"],
.su-signup input[type="email"],
.su-signup input[type="tel"] {
	font: inherit;
	font-size: 1rem;
	padding: .8rem .9rem;
	border: 2px solid var(--wp--preset--color--line);
	border-radius: 10px;
	background: #fff;
	color: var(--wp--preset--color--ink);
	width: 100%;
	box-sizing: border-box;
}
.su-signup input:focus-visible {
	outline: 3px solid var(--wp--preset--color--disc);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--field);
}
.su-signup .su-consent {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: .6rem;
	align-items: start;
	font-size: .85rem;
	line-height: 1.45;
	font-weight: 400;
}
.su-signup .su-consent input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--wp--preset--color--field); }
.su-signup button {
	font: inherit;
	font-weight: 700;
	font-size: 1.05rem;
	cursor: pointer;
	padding: .9rem 1.4rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--disc);
	color: var(--wp--preset--color--ink);
	justify-self: start;
}
.su-signup button:hover { filter: brightness(1.06); }
.su-signup button:focus-visible { outline: 3px solid var(--wp--preset--color--ink); outline-offset: 2px; }
.su-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.su-note { font-size: .8rem; opacity: .8; margin: 0; }

.su-alert {
	padding: .9rem 1rem;
	border-radius: 10px;
	font-weight: 600;
	margin-bottom: 1rem;
	max-width: 560px;
}
.su-alert--ok { background: #e3f4e8; color: #11442a; border: 2px solid #7cc496; }
.su-alert--err { background: #fdeaea; color: #6b1515; border: 2px solid #e59a9a; }
