@import url("./fonts/nunito.css");

*,
*::before,
*::after {
	box-sizing: border-box;
}
[hidden] {
	display: none !important;
}
body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family:
		"Nunito", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
		"Noto Color Emoji";
	line-height: 1.5;
	background: white;
	color: black;
}
body::before {
	content: "";
	position: fixed;
	inset: 0;
	height: 100vh;
	background:
		url("./images/background.jpg") center / cover no-repeat,
		linear-gradient(#55b4e8, #4fa9d8 25%, #79b9cc 50%, #c7c2c7 75%, #387ca7);
}
h1,
h2,
p,
ul,
ol {
	margin: 0;
}
button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}
a {
	color: inherit;
}
.container {
	--skycards-logo-max-width: 36rem;
	position: relative;
	margin: auto;
	width: 100%;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}
@media (min-width: 40rem) {
	.container {
		max-width: 40rem;
	}
}
@media (min-width: 48rem) {
	.container {
		max-width: 48rem;
	}
}
@media (min-width: 64rem) {
	.container {
		max-width: 64rem;
	}
}
@media (min-width: 80rem) {
	.container {
		max-width: 80rem;
	}
}
@media (min-width: 96rem) {
	.container {
		max-width: 96rem;
	}
}
.masthead {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
	width: 100%;
}
.masthead img {
	display: block;
	height: auto;
}
.fr24-logo {
	width: 25%;
	max-width: 12rem;
}
.skycards-logo {
	width: 66.6667%;
	max-width: var(--skycards-logo-max-width);
}
.tagline {
	padding: 0 1rem;
	text-align: center;
	font-size: 1.5rem;
	font-weight: 900;
	line-height: 1.25;
}
.posts {
	display: grid;
	width: 100%;
	max-width: calc(1.5 * var(--skycards-logo-max-width));
	gap: 1rem;
}
.post {
	background: white;
	border-radius: 0.5rem;
	padding: 2rem;
	box-shadow:
		0 10px 15px -3px rgb(0 0 0 / 0.1),
		0 4px 6px -4px rgb(0 0 0 / 0.1);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.post-nav {
	font-size: 0.875rem;
}
.feed-link {
	justify-self: end;
	font-size: 0.875rem;
}
.post-header {
	padding-bottom: 1rem;
}
.post-title {
	font-size: 1.5rem;
	font-weight: 900;
	line-height: 1.25;
	text-transform: uppercase;
}
.post-title a {
	text-decoration: none;
}
.post-header time {
	display: block;
	font-size: 0.875rem;
	line-height: 1.25;
	opacity: 0.25;
}
.post-body {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	font-size: 1.125rem;
	line-height: 1.25;
}
.post-body h2 {
	font-size: 1.25rem;
	font-weight: 900;
	text-transform: uppercase;
}
.post-body li > code:first-child {
	display: inline-block;
	min-width: 4ch;
}
.post-body img {
	display: block;
	max-width: 100%;
	height: auto;
}
.post-body .news-lead {
	padding-top: 1rem;
	font-weight: 700;
}
.post-body .news-checklist {
	padding: 0;
	list-style: none;
}
.footer {
	display: grid;
	gap: 1rem;
	padding: 2rem;
	text-align: center;
	font-size: 0.75rem;
	line-height: 1.25;
}
.footer p,
.footer-links {
	padding: 0 1rem;
}
.footer-links {
	display: flex;
	justify-content: center;
	gap: 1rem;
}
.footer button {
	border: 0;
	padding: 0;
	background: none;
	text-decoration: underline;
}

.contact-modal {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgb(0 0 0 / 0.9);
}
.contact-modal form {
	position: relative;
	width: 100%;
	min-width: 20rem;
	max-width: 32rem;
	padding: 1rem;
	background: white;
	border-radius: 0.5rem;
	display: grid;
	gap: 1rem;
}
.contact-close {
	position: absolute;
	right: 0;
	top: 0;
	border: 0;
	padding: 1rem;
	background: none;
}
.contact-close img {
	display: block;
}
.contact-modal label {
	font-size: 1.25rem;
	font-weight: 900;
}
.contact-modal input,
.contact-modal textarea {
	display: block;
	width: 100%;
	margin-top: 0.5rem;
	padding: 1rem;
	line-height: 1.5;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
	border: 1px solid rgb(0 0 0 / 0.5);
	border-radius: 0.5rem;
}
.contact-modal textarea {
	height: 16rem;
	resize: vertical;
}
.contact-actions {
	display: flex;
	justify-content: flex-end;
}
.contact-actions button {
	border: 0;
	border-radius: 0.5rem;
	background: #08baef;
	color: white;
	font-size: 1.25rem;
	font-weight: 900;
	padding: 1rem 2rem;
}
.contact-actions button:disabled {
	opacity: 0.5;
	cursor: default;
}
.contact-modal [aria-live] {
	text-align: center;
}
.contact-modal [aria-live] p {
	padding: 1rem;
}
[data-contact-state="sending"] {
	opacity: 0.5;
}
[data-contact-state="success"] {
	color: #22c55e;
}
[data-contact-state="error"] {
	color: #ef4444;
}
@media (min-width: 48rem) {
	.contact-modal form {
		padding: 2rem;
	}
}
