:root {
	--accent: #3f7c9d;
	--strava: #fc4c02;
	--line: #ddd;
	--bg-soft: #f4f6f8;
	--bg: #fff;
	--ink: #111;
	--text: #444;
	--text-muted: #888;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.125rem;
	line-height: 1.6;
}

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

a {
	color: inherit;
}

/* Úvod */

.hero {
	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 34rem;
	overflow: hidden;
	background: #3f7c9d;
}

.hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 80%;
	animation: hero-zoom 9s cubic-bezier(.2, .6, .2, 1) both;
}

/* Jemné světlo za názvem */
.hero::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: 4vh;
	left: 50%;
	width: min(60rem, 120vw);
	aspect-ratio: 2 / 1;
	background: radial-gradient(closest-side, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
	transform: translateX(-50%);
	pointer-events: none;
	animation: hero-glow 6s ease-in-out 1.6s infinite alternate both;
}

.hero-content {
	position: absolute;
	z-index: 2;
	inset: 0 0 auto;
	padding: 14vh 1.25rem 0;
	color: #fff;
	text-align: center;
}

.hero-title {
	margin: 0;
	font-size: clamp(2.75rem, 9vw, 6rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.03em;
	text-shadow: 0 .05em .4em rgba(0, 30, 50, .25);
}

.hero-title {
	position: relative;
	display: inline-block;
}

.hero-word {
	display: inline-block;
	white-space: nowrap;
}

.hero-word > span {
	display: inline-block;
	animation: hero-letter .9s cubic-bezier(.2, .8, .2, 1) calc(.15s + var(--i) * .06s) both;
}

/* Zlatý odlesk přejíždějící přes název */
.hero-title::after {
	content: attr(data-text);
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 35%, #ffe7a3 47%, #fff 50%, #ffe7a3 53%, transparent 65%) no-repeat;
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: none;
	pointer-events: none;
	animation: hero-shine 5s ease-in-out 1.4s infinite both;
}

.hero-lead {
	margin: .9rem 0 0;
	font-size: clamp(1rem, 1.8vw, 1.25rem);
	text-wrap: balance;
	text-shadow: 0 1px .5em rgba(0, 30, 50, .3);
	animation: hero-fade 1s ease-out .9s both;
}

.hero-credit {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: .5rem .75rem;
	color: rgba(255, 255, 255, .85);
	text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
	font-size: .75rem;
	line-height: 1.4;
}

.hero-credit a:hover {
	color: #fff;
}

@keyframes hero-letter {
	from {
		opacity: 0;
		transform: translateY(.45em) scale(.9);
		filter: blur(8px);
	}
}

@keyframes hero-shine {
	0% { background-position: 150% 0; }
	45%, 100% { background-position: -50% 0; }
}

@keyframes hero-fade {
	from {
		opacity: 0;
		transform: translateY(.6rem);
	}
}

@keyframes hero-zoom {
	from { transform: scale(1.08); }
}

@keyframes hero-glow {
	from { opacity: .5; }
	to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.hero *,
	.hero::before,
	.hero-title::after {
		animation: none !important;
	}
}

/* Dopis */

.letter {
	max-width: 38rem;
	margin: 0 auto;
	padding: clamp(3.5rem, 9vw, 6rem) 1.25rem clamp(3rem, 8vw, 5rem);
}

.letter p {
	margin: 0 0 1.5em;
}

.letter strong {
	color: var(--ink);
	font-weight: 700;
}

.letter-heading,
.support-title {
	margin: 2.5rem 0 1rem;
	color: var(--ink);
	font-size: 1.5rem;
	line-height: 1.25;
}

.reasons {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
	counter-reset: reason;
}

.reasons li {
	position: relative;
	margin: 0 0 1.1em;
	padding-left: 2.25rem;
	counter-increment: reason;
}

.reasons li::before {
	content: counter(reason);
	position: absolute;
	top: -.05em;
	left: 0;
	color: var(--strava);
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.2;
}

/* Podpora */

.support {
	position: relative;
	margin: 3.5rem 0 1rem;
	padding: clamp(1.25rem, 5vw, 2.25rem);
	border: 1px solid #e8ecef;
	border-radius: 1.25rem;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -8px rgba(16, 24, 40, .12);
}

.support-title {
	margin-top: 0;
	font-size: 1.75rem;
}

.support-title em {
	color: var(--strava);
	font-style: normal;
}

.letter .support-lead {
	margin-bottom: 1.25em;
}

.letter .support-count {
	position: absolute;
	top: clamp(1.25rem, 5vw, 2.25rem);
	right: clamp(1.25rem, 5vw, 2.25rem);
	margin: 0;
	color: var(--text-muted);
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1.1;
	text-align: right;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.support-count strong {
	display: block;
	color: var(--strava);
	font-size: 2rem;
	letter-spacing: -.02em;
}

.support-count:not([hidden]) + .support-title {
	padding-right: 5.5rem;
}

.support-form {
	display: grid;
	gap: 1.1rem;
	font-size: 1rem;
}

.choice {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .75rem;
}

.choice-option {
	position: relative;
	cursor: pointer;
}

.choice-option input {
	position: absolute;
	opacity: 0;
}

.choice-card {
	display: block;
	height: 100%;
	padding: .9rem 1rem .9rem 2.75rem;
	border: 1.5px solid var(--line);
	border-radius: .875rem;
	background: #fff;
	transition: border-color .2s, background .2s, box-shadow .2s;
}

.choice-card::before {
	content: "";
	position: absolute;
	top: 1.05rem;
	left: 1rem;
	width: 1.1rem;
	height: 1.1rem;
	border: 1.5px solid #b8c0c7;
	border-radius: 50%;
	background: #fff;
	transition: border .2s;
}

.choice-option:hover .choice-card {
	border-color: #c4ccd2;
}

.choice-option input:checked + .choice-card {
	border-color: var(--strava);
	background: #fff7f3;
	box-shadow: 0 0 0 3px rgba(252, 76, 2, .12);
}

.choice-option input:checked + .choice-card::before {
	border: .35rem solid var(--strava);
}

.choice-option input:focus-visible + .choice-card {
	outline: 2px solid var(--strava);
	outline-offset: 2px;
}

.choice-title {
	display: block;
	color: var(--ink);
	font-weight: 700;
	line-height: 1.35;
}

.choice-text {
	display: block;
	margin-top: .15rem;
	color: var(--text-muted);
	font-size: .875rem;
	line-height: 1.4;
}

.field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .75rem;
}

.field label {
	display: block;
	margin-bottom: .35rem;
	color: var(--ink);
	font-size: .875rem;
	font-weight: 600;
}

.field input {
	display: block;
	width: 100%;
	padding: .75rem .9rem;
	border: 1.5px solid transparent;
	border-radius: .75rem;
	background: var(--bg-soft);
	color: var(--ink);
	font: inherit;
	transition: border-color .2s, background .2s, box-shadow .2s;
}

.field input::placeholder {
	color: #a3abb2;
}

.field input:hover {
	background: #eef1f4;
}

.field input:focus {
	border-color: var(--accent);
	background: #fff;
	outline: none;
	box-shadow: 0 0 0 4px rgba(63, 124, 157, .15);
}

.letter .field-hint {
	margin: .35rem 0 0;
	color: var(--text-muted);
	font-size: .8125rem;
}

.checks {
	display: grid;
	gap: .5rem;
}

.check {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
	font-size: .9375rem;
	line-height: 1.45;
	cursor: pointer;
}

.check input {
	flex: none;
	width: 1.1rem;
	height: 1.1rem;
	margin: .15rem 0 0;
	accent-color: var(--strava);
}

.field-trap {
	position: absolute;
	left: -9999px;
}

.support-button {
	width: 100%;
	padding: 1rem 1.75rem;
	border: 0;
	border-radius: .875rem;
	background: var(--strava);
	color: #fff;
	font: inherit;
	font-size: 1.0625rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 6px 16px -6px rgba(252, 76, 2, .6);
	transition: background .2s, transform .2s, box-shadow .2s;
}

.support-button:hover {
	background: #e34402;
	transform: translateY(-1px);
	box-shadow: 0 10px 20px -8px rgba(252, 76, 2, .7);
}

.support-button:disabled {
	opacity: .6;
	cursor: wait;
}

.letter .support-status {
	margin: 0;
	font-weight: 600;
}

.letter .support-status:empty {
	display: none;
}

.support-status.is-error {
	color: #b42318;
}

.support-status.is-success {
	color: #1a7f37;
}

.letter .support-note {
	margin: 1.5rem 0 0;
	color: var(--text-muted);
	font-size: .8125rem;
	line-height: 1.5;
}

.supporters {
	margin-top: 2rem;
}

.supporters-title {
	margin: 0 0 .75rem;
	color: var(--ink);
	font-size: 1rem;
}

.supporters-list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .9375rem;
}

.supporters-list li {
	padding: .6rem 0;
	border-top: 1px solid #eef0f2;
}

.supporters-list b {
	color: var(--ink);
}

.supporters-list small {
	color: var(--text-muted);
}

.supporters-list q {
	display: block;
	margin-top: .15rem;
	font-style: italic;
}

@media (max-width: 34rem) {
	.choice,
	.field-row {
		grid-template-columns: 1fr;
	}
}

/* Patička */

.footer {
	max-width: 38rem;
	margin: 0 auto;
	padding: 0 1.25rem 2.5rem;
	color: var(--text-muted);
	font-size: .8125rem;
	line-height: 1.5;
}

.footer {
	text-align: center;
}

.footer p {
	margin: 0 0 .25rem;
}

.footer .footer-author {
	margin-bottom: .5rem;
	color: var(--text);
	font-size: .9375rem;
}
