/*
Theme Name: silesia
Theme URI: http://underscores.me/
Author: netby
Author URI: http://underscores.me/
Description: Custom theme based on Underscores.
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: silesia
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
	--color-background: #272727;
	--color-text: #e5dbcf;
	--color-text-secondary: #e5dbcf;
	--color-accent: #a18871;
	--color-accent-contrast: #272727;
	--font-family-base: "Unbounded", sans-serif;
	--font-family-heading: "Unbounded", sans-serif;
	--font-size-base: 14px;
	--font-weight-light: 300;
	--container-max-width: 100%;
	--container-padding: clamp(20px, 4vw, 40px);
}

/* Modern CSS reset */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

ul[role="list"],
ol[role="list"] {
	margin: 0;
	padding: 0;
	list-style: none;
}

img,
picture,
svg,
video,
canvas {
	display: block;
	max-width: 100%;
}

input,
button,
textarea,
select {
	font: inherit;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
	cursor: pointer;
}

textarea:not([rows]) {
	min-height: 10em;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

html:focus-within {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

body {
	min-height: 100vh;
	background-color: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-light);
	line-height: 1.5;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--color-text);
	font-family: var(--font-family-heading);
	font-weight: var(--font-weight-light);
	line-height: 1.1;
	text-wrap: balance;
}

h1,
h2,
h3 {
	font-weight: 100;
}

h1 {
	font-size: clamp(2.5rem, 6vw, 5.5rem);
}

h2 {
	font-size: clamp(2rem, 4.5vw, 4rem);
}

h3 {
	font-size: clamp(1.125rem, 2vw, 1.3rem);
}

h4 {
	font-size: clamp(1.25rem, 2vw, 1.75rem);
}

h5,
h6 {
	font-size: 1rem;
}

p {
	color: var(--color-text-secondary);
	font-size: 14px;
}

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
	color: var(--color-accent);
}

:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

.site-container {
	width: 100%;
	max-width: var(--container-max-width);
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

@media (min-width: 992px) {
	:root {
		--container-padding: 40px;
	}
}
