:root {
	--color-primary: #FFB627;
	--color-primary-lighter: #FFC249;
	--color-text: #2D3142;
	--color-background: #F7F7F7;
	--color-card: #FFFFFF;
	--color-accent: #8B1E3F;
	--color-form-bg: #222;
	--shadow-sm: 0 0.125rem 0.25rem rgba(45, 49, 66, 0.1);
	--shadow-md: 0 0.25rem 0.5rem rgba(45, 49, 66, 0.12);
	--border-radius: 0.5rem;
}

/* Latin Extended */
@font-face {
	font-family: 'Bebas Neue';
	font-style: normal;
	font-weight: 400;
	src: url('/assets/fonts/bebas-neue-latin-ext-400-v14.woff2?v=1.0.0') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Latin Basic */
@font-face {
	font-family: 'Bebas Neue';
	font-style: normal;
	font-weight: 400;
	src: url('/assets/fonts/bebas-neue-latin-400-v14.woff2?v=1.0.0') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Latin Extended */
@font-face {
	font-family: 'PT Sans';
	font-style: normal;
	font-weight: 400;
	src: url('/assets/fonts/pt-sans-latin-ext-normal-400-v17.woff2?v=1.0.0') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Latin Basic */
@font-face {
	font-family: 'PT Sans';
	font-style: normal;
	font-weight: 400;
	src: url('/assets/fonts/pt-sans-latin-normal-400-v17.woff2?v=1.0.0') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
	font-family: 'PT Sans', system-ui, sans-serif;
	font-size: 1.5rem;
	background: var(--color-background);
	color: var(--color-text);
}
body {
	margin: 0 auto;
}

main {
	margin: 0 auto;
	padding: .5rem;
}

h1, h2 {
	box-sizing: border-box;
	font-family: 'Bebas Neue', serif;
	font-weight: 400;
	color: var(--color-text);
}

h1 {
	font-size: 2rem;
	text-align: center;
	margin: 2rem 0;
	position: relative;
}

h1::after {
	content: '';
	display: block;
	width: 4rem;
	height: 0.25rem;
	background: var(--color-primary);
	margin: 1rem auto 0;
	border-radius: 1rem;
}

#intro {
	font-size: clamp(1rem, 3vw, 1.25rem);
	max-width: 45rem;
	margin: 0 auto 3rem;
	text-align: center;
	padding: 0 1rem;
	line-height: 1.6;
}

#links-list, #links-list li, #links-list a, #links-list h2 {
	box-sizing: border-box;
}

#links-list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	max-width: 45rem;
	margin: 0 auto;
}

#links-list li {
	background: var(--color-card);
	border: 0.0625rem solid var(--color-primary);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#links-list li:hover {
	transform: translateY(-0.25rem);
	box-shadow: var(--shadow-md);
}

#links-list a {
	display: block;
	padding: 0;
	height: 100%;
	color: var(--color-text);
	text-decoration: none;
	font-size: 1.25rem;
}

#links-list a:hover {
	color: var(--color-primary);
}

#links-list h2 {
	font-size: 1.25rem;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: .25rem .5rem .2rem .5rem;
	background-color: var(--color-primary);
	border-radius: .4375rem .4375rem 0 0;
}

.short-desc {
	display: block;
	font-size: 0.75rem;
	color: #666;
	margin: .3rem .5rem;
	line-height: 1.4;
}

#post-single a {
	padding: 0 .1rem;
	background-color: var(--color-form-bg);
	color: var(--color-primary);
	text-decoration: none;
	font-weight: 500;
}

#post-single a:hover {
	background-color: #000;
	color: var(--color-primary-lighter);
}

footer {
	width: 100%;
	box-sizing: border-box;
	background-color: #222;
	margin: 0;
	padding: 1.25em .5em 0 .5em;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Contact form */
#kontakt-forma, #kontakt-inputi, textarea, input, button {
	width: 100%;
}
#kontakt-forma {
	display: flex;
	padding: 0 .5vh;
	flex-direction: column;
	gap: 0;
	margin-bottom: 2.5vh;
	text-align: center;
	font-size: 0;
}
#or-divider {
	font-size: 1.25vh;
	display: inline-block;
	vertical-align: middle;
	margin: 0;
	padding: 0;
	height: 2.5vh;
	line-height: 2.5vh;
	color: #FFF;
}
textarea, input, button {
	box-sizing: border-box;
	padding: .5em;
	font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 2.5vh;
	border-radius: .25em;
}
textarea, input {
	background-color: #444;
	color: #FFF;
	border: 1px solid #555;
	transition: border-color 0.3s, background 0.3s;
}
textarea, input[type="email"] {
	margin-bottom: 1em;
}
textarea {
	resize: none;
}
input[type="tel"] {
	margin-bottom: 0;
}
textarea::placeholder, input::placeholder {
	color: #AAA;
}
textarea:focus, input:focus {
	outline: none;
	border-color: var(--color-primary);
	background: #555;
}
button {
	background: var(--color-primary);
	color: var(--color-text);
	font-weight: bold;
	border: none;
	cursor: pointer;
	transition: background 0.3s, color 0.3s, transform 0.1s;
}
button:hover {
	background: var(--color-primary-lighter);
	color: var(--color-accent);
}
button:active {
	transform: scale(0.98);
}
/* Contact form - end */

.back-to-home {
	text-align: center;
	margin-top: 2rem;
}
.back-to-home a {
	padding: .35rem .7rem .2rem .7rem !important;
	background-color: var(--color-primary) !important;
	color: var(--color-text) !important;
	font-family: 'Bebas Neue', serif;
	font-size: 1.5rem;
	border-radius: var(--border-radius);
}
.back-to-home a:hover {
	background-color: var(--color-primary-lighter) !important;
	color: var(--color-accent) !important;
}

@media (min-aspect-ratio: 1/1) {
	h1 {
		font-size: 3rem;
	}
	main {
		max-width: 100vh;
		padding: 1rem;
	}

	#links-list {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

/* Contact form */
	#kontakt-forma {
		max-width: 100vh;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2.5vh;
		padding: 0;
	}
	textarea {
		height: 100%;
	}
/* Contact form - end */
}