/* Colours follow the XIII LO Szczecin site (cloudbaseuniversity "red" theme). */
:root {
	--red: #a3231b;
	--red-dark: #720505;
	--red-light: #d2534c;
	--beige: #e0dccf;
	--beige-light: #ece9e0;
	--border: #b8b4a8;
	--text: #333;
	--muted: #666;
	--white: #fff;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--beige);
	color: var(--text);
	font: 16px/1.5 Georgia, Times, serif;
}

.site-header {
	background: linear-gradient(var(--red), var(--red-dark));
	color: var(--white);
	border-bottom: 4px solid var(--red-dark);
	padding: 18px 16px;
	text-align: center;
}

.site-header p {
	margin: 0;
	font-size: 1.25rem;
	font-weight: bold;
	letter-spacing: .02em;
}

.site-header small {
	display: block;
	font-size: .9rem;
	opacity: .85;
}

main {
	max-width: 560px;
	margin: 24px auto;
	padding: 0 16px;
}

.card {
	background: var(--white);
	border: 1px solid var(--border);
	border-top: 4px solid var(--red);
	border-radius: 4px;
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.card h1 {
	margin: 0 0 6px;
	color: var(--red);
	font-size: 1.6rem;
	line-height: 1.25;
}

.card-lead {
	margin: 0 0 20px;
	color: var(--muted);
}

.form-field {
	margin-bottom: 18px;
}

.form-field > label,
fieldset legend {
	display: block;
	margin-bottom: 6px;
	font-weight: bold;
}

.form-optional {
	font-weight: normal;
	color: var(--muted);
}

input[type="text"],
select,
textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--beige-light);
	color: var(--text);
	/* 16px stops iOS from zooming in on focus */
	font: inherit;
	font-size: 16px;
}

textarea {
	resize: vertical;
}

select {
	appearance: none;
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a3231b' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--red);
	background-color: var(--white);
	box-shadow: 0 0 0 3px rgba(163, 35, 27, .2);
}

fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.form-radio {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	margin-bottom: 8px;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--beige-light);
	cursor: pointer;
}

.form-radio:has(input:checked) {
	border-color: var(--red);
	background: var(--white);
}

.form-radio input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--red);
}

.btn {
	display: inline-block;
	width: 100%;
	padding: 12px 20px;
	border: 1px solid var(--red-dark);
	border-radius: 4px;
	background: linear-gradient(var(--red), var(--red-dark));
	color: var(--white);
	font: inherit;
	font-weight: bold;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
	background: var(--red-dark);
}

@media (min-width: 600px) {
	main {
		margin-top: 40px;
	}

	.card {
		padding: 32px;
	}
}
