/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=SUSE+Mono:ital,wght@0,300;1,300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poltawski+Nowy:ital@1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alan+Sans:wght@300..900&display=swap');

/* Material icons */

@font-face {
	font-family: 'Material Symbols Outlined';
	font-style: normal;
	font-weight: 100 700;
	font-size: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	transform: translate(0px, 0.3ex);
	src: url(res/material_icons.woff2) format('woff2');
}

.material-symbols-outlined {
	font-family: 'Material Symbols Outlined';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-feature-settings: 'liga';
	-webkit-font-smoothing: antialiased;
	font-size: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	transform: translate(0px, 0.1ex);
}

.boldicon {
	font-weight: 700;
}

/* Main segments of the page */

html, body {
	margin: 0;
	font-family: "Alan Sans", sans-serif;
	font-weight: 300;
	display: flex;
	flex-direction: column;
	height: 100%;
	background-image: url(res/background.png);
	background-attachment: fixed;
	background-size: cover;
	background-position: center;
	background-color: rgba(0, 0, 0, 0.7);
	background-blend-mode: darken;
}

header {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5em 0;
	background-color: #030303dd;
	backdrop-filter: blur(5px);
	color: white;
	border-bottom: 2px solid #030303;
	box-shadow: 2px 2px 15px 0 rgba(0, 0, 0, 0.4);
}

header > .logo {
	font-size: 2em;
	margin-left: .6em;
}

header > .logo > a:hover {
	color: #a0a0a0;
}

nav {
	font-size: 1.2em;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 1.2em;
	margin-right: 1.2em;
}

#theme {
	cursor: pointer;
	user-select: none;
}

#heading {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: #cfcfcf;
}

#heading > div {
	padding: 4em 2em;
	width: calc(100% - 4em);
	max-width: 800px;
	margin: 0 auto;
	padding-bottom: calc(1rem + 1vw);
	transition: padding-bottom 0.3s ease-in-out;
}

#main {
	width: 100%;

	backdrop-filter: blur(5px);
	padding: 1.5em 0;
	transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

main {
	/* padding: 1em 2.5em; */
	max-width: 800px;
	margin: auto;
	margin-top: 2em;
	transition: margin-top 0.3s ease-in-out,
}

section {
	padding: 1em 2em;
	margin-bottom: 2em;
	transition: box-shadow 0.3s ease-in-out, border-bottom 0.3s ease-in-out, margin 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

section.embedded {
	margin: 2em -2em;
	margin-bottom: -1em;
	border: none;
}

section.card img {
	margin: -1em -2em;
	margin-bottom: 0.5em;
	width: calc(100% + 4em);
	box-shadow: 2px 2px 15px 0 rgba(0, 0, 0, 0.4);
	aspect-ratio: 18 / 9;
	max-height: 25dvh;
	object-fit: cover;
	z-index: 5;
	transition: opacity 0.3s ease-in-out;
}

h2 {
	text-shadow: 1px 1px 12px rgba(0, 0, 0, .2);
}

section.card h2 {
	z-index: 10;
	transtion: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
}

@media only screen and (max-width: 935px) {
	#main {
		padding: 0;
	}

	main {
		margin: 0;
		padding: 0;
		box-shadow: none;
		max-width: 100%;
	}

	section {
		padding: 1em 2em;
		margin-bottom: 0;
		box-shadow: none;
	}
}

footer {
	text-align: center;
	padding: 1.2em;
	padding-top: 2.0em;
	background-color: #2f2f2f;
	color: #cacaca;
	border-top: 2px solid #333333;
	font-size: 0.9em;
	flex-shrink: 0;
}

footer > div {
	max-width: 600px;
	margin: auto;
}

#content {
	flex: 1 0 auto;
}

.logo {
	font-family: "SUSE Mono", monospace;
	font-weight: 600;
}

.logo-breve {
	font-family: "Poltawski Nowy", serif;
	font-size: 1.1em;
	font-weight: 600;
	margin-left: 0.02em;
	letter-spacing: 0.02em;
}

a {
	color: inherit;
	text-decoration: none;
	font-weight: 400;
}

a:hover {
	color: #3f5a58;
	transition: color 0.1s;
}

ul {
	padding-left: 0em;
}

ul > li {
	margin-bottom: 0.4em;
	list-style: none;
	border-left: 2px solid #ba8412;
	padding-left: 1.0em;
	margin-left: 0;
}

footer a#contact-phone:hover { color: #4fac3f; }
footer a#contact-email:hover { color: #209acc; }
footer a#contact-email { margin-left: 1em; }

#contact .material-symbols-outlined {
	margin-right: 0.4em;
}

@media only screen and (max-width: 600px) {
	header {
		flex-direction: column;
		align-items: center;
		padding: 1em 0;
		gap: 0.3em;
	}

	header > .logo {
		margin-left: 0;
	}

	nav {
		margin-right: 0;
		font-size: 1em;
		gap: 0.8em;
	}
}

h1 {
	/* font-size: 2em; */
	font-size: calc(.75rem + 3vw);
	margin-top: 4.5rem;
	margin-bottom: 0.4em;
	transition: font-size 0.3s ease-in-out;
	color: #cfcfcf;
}

hr {
	border: none;
	height: 1px;
	background-color: #3f3f3f1f;
	margin: 1.5em -.5em;
}

#subtitle {
	font-size: calc(.9rem + .2vw);
	font-weight: 100;
	color: #e0e0e0;
	margin-bottom: 0.6em;
	color: #cfcfcf;
}

@media only screen and (min-width: 935px) {
	#heading > div {
		padding-bottom: calc(1rem + 2vw);
	}
}

@media only screen and (min-width: 1500px) {
	h1 {
		font-size: 4.5rem;
	}
}

@media only screen and (max-width: 600px) {
	#header > div {
		padding-top: 7rem;
	}
}

a.btn {
	margin: 0;
	display: inline-block;
	font-size: 0.8rem;
	padding: 0.8em 1.2em;
	border: none;
	border-radius: 0;
	font-family: inherit;
	background-color: #ba8412cf;
	color: #e7e7e7;
	box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.2);
	transition: background-color 0.2s ease-in-out,
		color 0.2s ease-in-out,
		box-shadow 0.2s ease-in-out;
}

a.btn:hover, a.btn:focus {
	background-color: #9a6400cf;
	color: #ffffff;
	box-shadow: 2px 2px 12px 0 rgba(0, 0, 0, 0.4);
}
