:root {
	--ink: #183833;
	--muted: #61736f;
	--cream: #fffaf1;
	--paper: rgba(255, 255, 255, 0.88);
	--green: #24695f;
	--green-dark: #174c45;
	--amber: #e6a34d;
	--coral: #df735e;
	--lavender: #8d82b7;
	--border: rgba(36, 105, 95, 0.16);
	--danger: #a93636;
	--shadow: 0 22px 70px rgba(39, 64, 58, 0.13);
	--radius: 28px;
	font-family:
		Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
		"Segoe UI", sans-serif;
	color: var(--ink);
	background: var(--cream);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(circle at 10% 4%, rgba(230, 163, 77, 0.18), transparent 28rem),
		radial-gradient(circle at 95% 18%, rgba(141, 130, 183, 0.16), transparent 25rem),
		var(--cream);
	line-height: 1.55;
}

a {
	color: var(--green-dark);
	text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid rgba(230, 163, 77, 0.7);
	outline-offset: 3px;
}

.shell {
	width: min(1160px, calc(100% - 32px));
	margin-inline: auto;
}

.ambient {
	position: fixed;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.15;
	pointer-events: none;
	z-index: -1;
}

.ambient-one {
	left: -160px;
	top: 30%;
	background: var(--coral);
}

.ambient-two {
	right: -160px;
	top: 55%;
	background: var(--green);
}

.hero {
	position: relative;
	overflow: hidden;
	padding-bottom: 76px;
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 86px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--ink);
	text-decoration: none;
	font-weight: 800;
}

.brand-mark {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 16px 16px 16px 5px;
	color: white;
	background: linear-gradient(135deg, var(--green), var(--green-dark));
	box-shadow: 0 10px 26px rgba(36, 105, 95, 0.25);
}

.quiet-link {
	font-weight: 700;
	text-decoration-thickness: 1px;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 50px;
	align-items: center;
	min-height: 510px;
}

.eyebrow,
.step-label {
	margin: 0 0 10px;
	color: var(--coral);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

.hero h1 {
	max-width: 760px;
	margin-bottom: 22px;
	font-size: clamp(3rem, 7vw, 6.4rem);
	line-height: 0.94;
	letter-spacing: -0.06em;
}

.lead {
	max-width: 640px;
	color: var(--muted);
	font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.event-facts {
	display: grid;
	gap: 12px;
	margin: 28px 0 34px;
}

.event-facts div {
	display: flex;
	align-items: center;
	gap: 12px;
}

.fact-icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 12px;
	color: white;
	background: var(--green);
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: 16px;
	color: var(--ink);
	background: white;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition:
		transform 160ms ease,
		box-shadow 160ms ease,
		background 160ms ease;
}

.button:hover {
	transform: translateY(-2px);
}

.button-primary {
	color: white;
	background: linear-gradient(135deg, var(--green), var(--green-dark));
	box-shadow: 0 14px 34px rgba(36, 105, 95, 0.25);
}

.button-secondary {
	border-color: var(--border);
	background: rgba(255, 255, 255, 0.72);
}

.button-small {
	min-height: 40px;
	padding: 8px 14px;
	border-radius: 12px;
}

.button-danger {
	color: white;
	background: var(--danger);
}

.button:disabled {
	opacity: 0.65;
	cursor: wait;
	transform: none;
}

.family-art {
	position: relative;
	min-height: 420px;
	border-radius: 46% 54% 42% 58% / 46% 39% 61% 54%;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.15)),
		linear-gradient(145deg, #f7cc8e, #e9876e);
	box-shadow: var(--shadow);
}

.sun {
	position: absolute;
	top: 58px;
	right: 70px;
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background: #fff3c7;
	box-shadow: 0 0 60px rgba(255, 243, 199, 0.8);
}

.ground {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 34%;
	border-radius: 50% 50% 42% 58%;
	background: linear-gradient(165deg, #45877a, #1d5e55);
}

.person {
	position: absolute;
	bottom: 22%;
	width: 54px;
	height: 145px;
	border-radius: 28px 28px 18px 18px;
	transform-origin: bottom;
}

.person::before {
	content: "";
	position: absolute;
	top: -50px;
	left: 5px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #f7d1ae;
}

.person-one {
	left: 20%;
	height: 160px;
	background: #f7ece0;
	transform: rotate(-4deg);
}

.person-two {
	left: 39%;
	height: 180px;
	background: var(--green-dark);
}

.person-three {
	left: 59%;
	width: 45px;
	height: 112px;
	background: #f1ae55;
}

.person-four {
	left: 74%;
	width: 40px;
	height: 92px;
	background: #8d82b7;
	transform: rotate(4deg);
}

.page-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 28px;
	align-items: start;
	padding-bottom: 70px;
}

.form-card,
.info-card,
.success-card,
.login-card,
.admin-panel,
.table-wrap {
	border: 1px solid rgba(255, 255, 255, 0.85);
	background: var(--paper);
	box-shadow: var(--shadow);
	backdrop-filter: blur(16px);
}

.form-card {
	padding: clamp(24px, 5vw, 56px);
	border-radius: var(--radius);
}

.section-heading {
	margin-bottom: 42px;
}

.section-heading h2 {
	margin-bottom: 12px;
	font-size: clamp(2rem, 5vw, 3.4rem);
	line-height: 1.04;
	letter-spacing: -0.04em;
}

.section-heading p {
	max-width: 680px;
	color: var(--muted);
}

fieldset {
	min-width: 0;
	margin: 0 0 38px;
	padding: 0;
	border: 0;
}

legend {
	width: 100%;
	margin-bottom: 18px;
	font-size: 1.25rem;
	font-weight: 900;
}

.fieldset-hint,
.field small,
.radio-cards small,
.subtle {
	color: var(--muted);
}

.field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.field {
	display: grid;
	gap: 8px;
	margin-bottom: 16px;
	font-weight: 750;
}

.field input,
.field select,
.field textarea,
.search-form input,
.search-form select {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: 14px;
	color: var(--ink);
	background: rgba(255, 255, 255, 0.84);
}

.field textarea {
	resize: vertical;
}

.counter-list {
	display: grid;
	gap: 12px;
}

.counter-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.55);
}

.counter-row > div:first-child {
	display: grid;
}

.counter-row span {
	color: var(--muted);
	font-size: 0.9rem;
}

.counter {
	display: grid;
	grid-template-columns: 42px 54px 42px;
	align-items: center;
}

.counter button {
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 13px;
	color: white;
	background: var(--green);
	font-size: 1.4rem;
	cursor: pointer;
}

.counter input {
	width: 54px;
	border: 0;
	background: transparent;
	text-align: center;
	font-weight: 900;
	-moz-appearance: textfield;
}

.counter input::-webkit-inner-spin-button {
	appearance: none;
}

.donation-panel {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 24px;
	align-items: center;
	margin: 0 0 38px;
	padding: 24px;
	border-radius: 22px;
	color: white;
	background:
		radial-gradient(circle at 100% 0, rgba(230, 163, 77, 0.48), transparent 45%),
		linear-gradient(135deg, var(--green), var(--green-dark));
}

.donation-panel p {
	margin-bottom: 0;
	color: rgba(255, 255, 255, 0.8);
}

.donation-panel .eyebrow {
	color: #ffd89c;
}

.donation-total {
	display: grid;
	min-width: 190px;
	text-align: right;
}

.donation-total strong {
	font-size: 2rem;
	letter-spacing: -0.04em;
}

.radio-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.radio-cards label {
	display: flex;
	gap: 12px;
	padding: 17px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
}

.radio-cards label:has(input:checked) {
	border-color: var(--green);
	box-shadow: 0 0 0 2px rgba(36, 105, 95, 0.12);
}

.radio-cards span {
	display: grid;
}

.radio-cards input {
	width: 20px;
	height: 20px;
	accent-color: var(--green);
}

.donation-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	margin-top: 18px;
}

.upload-box {
	display: grid;
	place-items: center;
	min-height: 180px;
	padding: 28px;
	border: 2px dashed rgba(36, 105, 95, 0.35);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.48);
	text-align: center;
	cursor: pointer;
	transition: background 160ms ease, border 160ms ease;
}

.upload-box.dragging {
	border-color: var(--green);
	background: rgba(36, 105, 95, 0.08);
}

.upload-box input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.upload-icon {
	font-size: 2.2rem;
	color: var(--green);
}

.file-list {
	margin: 12px 0 0;
	padding-left: 22px;
	color: var(--muted);
}

.consent-box {
	margin: 24px 0;
	padding: 20px;
	border-left: 4px solid var(--amber);
	border-radius: 6px 16px 16px 6px;
	background: rgba(230, 163, 77, 0.09);
	font-size: 0.92rem;
}

.consent-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
}

.submit-button {
	width: 100%;
	min-height: 58px;
	font-size: 1.05rem;
}

.info-column {
	display: grid;
	gap: 18px;
	position: sticky;
	top: 20px;
}

.info-card {
	padding: 24px;
	border-radius: 22px;
}

.info-card h2 {
	font-size: 1.4rem;
}

.organizer-card {
	font-size: 0.88rem;
}

.check-list {
	display: grid;
	gap: 10px;
	padding: 0;
	list-style: none;
}

.check-list li::before {
	content: "✓";
	margin-right: 9px;
	color: var(--green);
	font-weight: 900;
}

.error-summary,
.closed-message,
.notice {
	margin-bottom: 24px;
	padding: 18px;
	border-radius: 16px;
}

.error-summary {
	border: 1px solid rgba(169, 54, 54, 0.3);
	color: #742525;
	background: rgba(169, 54, 54, 0.08);
}

.closed-message,
.notice {
	border: 1px solid rgba(230, 163, 77, 0.4);
	background: rgba(230, 163, 77, 0.12);
}

.footer {
	padding: 28px 0 50px;
	color: var(--muted);
	text-align: center;
}

.success-body,
.admin-login-body {
	display: grid;
	place-items: center;
	padding: 24px;
}

.success-card,
.login-card {
	width: min(680px, 100%);
	padding: clamp(26px, 6vw, 56px);
	border-radius: var(--radius);
}

.success-mark {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	margin-bottom: 24px;
	border-radius: 24px;
	color: white;
	background: var(--green);
	font-size: 2rem;
}

.registration-code {
	display: grid;
	gap: 4px;
	margin: 28px 0;
	padding: 22px;
	border-radius: 20px;
	background: var(--ink);
	color: white;
	text-align: center;
}

.registration-code strong {
	font-size: clamp(1.6rem, 6vw, 2.7rem);
	letter-spacing: 0.08em;
}

.summary-list {
	display: grid;
	gap: 0;
}

.summary-list div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
}

.summary-list dd {
	margin: 0;
	font-weight: 800;
	text-align: right;
}

.success-actions {
	display: flex;
	gap: 12px;
	margin-top: 26px;
}

.legal-page {
	max-width: 850px;
	padding-block: 70px;
}

.legal-page h1 {
	font-size: clamp(2rem, 6vw, 4rem);
	line-height: 1;
}

.legal-text {
	margin: 30px 0;
	padding: 28px;
	border-radius: 22px;
	background: white;
	box-shadow: var(--shadow);
	white-space: pre-line;
}

.login-card form {
	display: grid;
}

.admin-body {
	background: #f4f6f4;
}

.admin-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 70px;
	padding: 14px max(20px, calc((100vw - 1280px) / 2));
	color: white;
	background: var(--ink);
}

.admin-header a {
	color: white;
}

.admin-header > div {
	display: grid;
}

.text-button {
	padding: 0;
	border: 0;
	color: white;
	background: transparent;
	text-decoration: underline;
	cursor: pointer;
}

.admin-main {
	width: min(1280px, calc(100% - 32px));
	margin: 36px auto 70px;
}

.admin-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.admin-title h1 {
	margin-bottom: 4px;
	font-size: clamp(2rem, 5vw, 3.5rem);
}

.event-toggle {
	display: flex;
	align-items: center;
	gap: 12px;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-bottom: 20px;
}

.stats-grid > div {
	display: grid;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: white;
}

.stats-grid span {
	color: var(--muted);
}

.stats-grid strong {
	font-size: 2rem;
}

.admin-panel {
	margin-bottom: 20px;
	padding: 22px;
	border-radius: 20px;
}

.search-form {
	display: grid;
	grid-template-columns: 1fr 240px auto;
	gap: 14px;
	align-items: end;
}

.table-wrap {
	overflow-x: auto;
	border-radius: 20px;
}

table {
	width: 100%;
	border-collapse: collapse;
	background: white;
}

th,
td {
	padding: 15px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

th {
	color: var(--muted);
	font-size: 0.8rem;
	text-transform: uppercase;
}

td small,
.receipt-row small {
	display: block;
	color: var(--muted);
}

.status {
	display: inline-flex;
	margin-bottom: 5px;
	padding: 4px 9px;
	border-radius: 999px;
	background: #e6eeeb;
	font-size: 0.78rem;
	font-weight: 800;
}

.status-confirmed {
	color: #145d37;
	background: #dff4e8;
}

.status-cancelled,
.status-anonymized {
	color: #7a2f2f;
	background: #f5dddd;
}

.admin-detail {
	max-width: 980px;
}

.admin-edit-form {
	display: grid;
}

.receipt-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
}

.danger-panel {
	border-color: rgba(169, 54, 54, 0.25);
}

.pulse {
	animation: pulse 280ms ease;
}

.reveal {
	animation: reveal 600ms ease both;
}

@keyframes reveal {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

@keyframes pulse {
	50% {
		transform: scale(1.04);
	}
}

@media (max-width: 900px) {
	.hero-grid,
	.page-grid {
		grid-template-columns: 1fr;
	}

	.family-art {
		min-height: 340px;
	}

	.info-column {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.search-form {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 620px) {
	.shell,
	.admin-main {
		width: min(100% - 20px, 1160px);
	}

	.hero {
		padding-bottom: 38px;
	}

	.hero-grid {
		gap: 25px;
		min-height: 0;
	}

	.hero h1 {
		font-size: clamp(2.9rem, 17vw, 4.4rem);
	}

	.family-art {
		min-height: 280px;
	}

	.form-card {
		padding: 22px 16px;
		border-radius: 22px;
	}

	.field-grid,
	.radio-cards,
	.info-column,
	.stats-grid {
		grid-template-columns: 1fr;
	}

	.counter-row,
	.donation-panel,
	.admin-title,
	.event-toggle,
	.receipt-row {
		align-items: stretch;
		flex-direction: column;
	}

	.donation-panel {
		grid-template-columns: 1fr;
	}

	.donation-total {
		text-align: left;
	}

	.success-actions,
	.donation-actions {
		flex-direction: column;
	}

	.success-actions .button,
	.donation-actions .button {
		width: 100%;
	}

	.admin-header {
		padding-inline: 14px;
	}
}

@media print {
	body {
		background: white;
	}

	.button,
	.success-actions,
	.ambient {
		display: none !important;
	}

	.success-card {
		box-shadow: none;
		border: 1px solid #ccc;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		animation: none !important;
		transition: none !important;
	}
}

.church-mark {
	display: block;
	width: auto;
	height: 46px;
	object-fit: contain;
}

.donation-page-button {
	min-height: 56px;
	padding-inline: 28px;
	font-size: 1.02rem;
	box-shadow:
			0 16px 38px rgba(36, 105, 95, 0.32),
			0 0 0 4px rgba(230, 163, 77, 0.14);
}
