@import url("variables.css");

@font-face {
	font-family: "Nunito";
	src: url("/assets/fonts/Nunito-VariableFont_wght.ttf") format("truetype");
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Nunito";
	src: url("/assets/fonts/Nunito-Italic-VariableFont_wght.ttf")
		format("truetype");
	font-style: italic;
	font-display: swap;
}

html,
body {
	font-family:
		Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
		Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
	background-color: var(--white);
	width: 100%;
	scroll-behavior: smooth;
}

html {
	overflow-x: hidden;
}

body {
	min-height: 100vh;
}

/* Typography */
p {
	padding-bottom: 1em;
	padding-top: 0.5em;
	font-size: clamp(1rem, 5vw, 1.15rem);
	line-height: 1.6em;
}

li {
	list-style-type: none;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.footer-email {
	overflow-wrap: anywhere;
}

.back-to-top {
	position: fixed;
	right: clamp(1rem, 4vw, 2.5rem);
	bottom: clamp(1rem, 4vw, 2.5rem);
	z-index: 50;
}

.site-heading {
	color: var(--green);
	font-size: clamp(2rem, 5vw, 3rem);
	position: relative;
	font-weight: 600;
	--site-heading-bar-height: 4px;
	margin-top: 3rem;
	margin-bottom: calc(var(--site-heading-bar-height) * 5);
}

.site-heading::before {
	content: "";
	position: absolute;
	background-color: var(--green);
	border-radius: 10000px;
	height: var(--site-heading-bar-height);
	opacity: 0.8;
	width: min(125px, 100%);
	bottom: calc(var(--site-heading-bar-height) * -1);
}

h4 {
	font-size: clamp(1rem, 5vw, 1.15rem);
}

h5 {
	font-size: clamp(1.1rem, 7vw, 1.25rem);
}

h5:not(:first-child) {
	padding-top: 1.5rem;
}

/* Article Content Styles */
article {
	font-size: clamp(1rem, 5vw, 1.15rem);
	width: min(40rem, 100%);
	margin: 0 auto;
}

article a {
	color: var(--blue);
}

article a:hover {
	text-decoration: underline;
}

article table {
	border-collapse: collapse;
	width: 100%;
}

article td {
	border: 1px solid rgb(193, 199, 208);
	padding: 8px;
}

article img,
.block-text img,
figure img {
	width: 100%;
	max-height: clamp(10rem, 25vw, 35rem);
	border-radius: 10px;
	object-fit: cover;
}

/* Block styles */
figure {
	margin: 1.5rem 0;
}

figure figcaption {
	font-size: 0.9rem;
	color: #666;
	margin-top: 0.5rem;
	text-align: center;
}

.block-text {
	margin: 1rem 0;
}

article ul li {
	list-style-type: disc;
	padding: 0.2rem 0;
	margin: 0;
	margin-left: 16px;
}

article ul li p {
	padding: 0;
}

/* Form Elements */
input {
	background: transparent;
	border: 0;
	border-bottom: 1px solid #666;
	border-top: 1px solid transparent;
	padding: 0.5em;
	font-size: 1rem;
}

input::placeholder {
	color: #666;
	opacity: 1;
}

input:focus {
	outline: none;
}

button {
	background-color: transparent;
	border: none;
	text-decoration: none;
	outline: none;
	cursor: pointer;
}

select {
	padding: 1em 0.5em;
	border: 0;
	outline: 0;
	border: 1px solid #666;
}

input.search {
	background-image: url("/assets/images/search.svg");
	background-repeat: no-repeat;
	background-position: 95% 50%;
	background-size: 1.5em;
	width: 20em;
	padding-right: 3em;
	margin-left: 2em;
}

/* Button Styles */
.btn {
	background-color: var(--blue);
	border: none;
	cursor: pointer;
	text-decoration: none;
	outline: none;
	color: #fff;
	position: relative;
	border-radius: 20px;
	padding: 1em 2em;
	text-transform: uppercase;
	border-bottom: 5px solid var(--blue-sec);
	border-top: 5px solid var(--blue);
	font-weight: bold;
	font-size: clamp(0.8rem, 1vw, 1rem);
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
}

.btn:hover {
	background-color: var(--blue-sec);
	border-top-color: var(--blue-sec);
}

.btn.gray {
	color: #222;
	background-color: #ccc;
	border-top-color: #ccc;
	border-bottom-color: #aaa;
}

.btn.gray:hover {
	background-color: #aaa;
	border-top-color: #aaa;
}

.btn.green {
	background-color: var(--green);
	border-top-color: var(--green);
	border-bottom-color: var(--green-sec);
}

.btn.green:hover {
	background-color: var(--green-sec);
	border-top-color: var(--green-sec);
}

.btn.red {
	background-color: var(--red);
	border-top-color: var(--red);
	border-bottom-color: var(--red-sec);
}

.btn.red:hover {
	background-color: var(--red-sec);
	border-top-color: var(--red-sec);
}

/* Card Styles */
.card {
	background-color: #fff;
	box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.16);
	border-radius: 30px;
}

.card.clickable {
	transition: all 0.1s ease;
	cursor: pointer;
}

.card.clickable:hover {
	transform: scale(1.1) rotate(-2deg);
}

/* Modal Styles */
.modalOverlay {
	position: fixed;
	z-index: 99999;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.6);
}

.modalContent {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: min(40rem, 80%);
	transform: translate(-50%, -50%);
	right: initial;
	bottom: initial;
	border: none;
	background: #fff;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 50px;
	box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.1);
	outline: none;
	padding: 2rem;
}
