:root {
	--metalart-copper: #b96320;
	--metalart-copper-hover: #c47a2c;
	--metalart-text: #e0e0e0;
	--metalart-muted: #b7b7b7;
	--metalart-dark: #101419;
	--metalart-content: 900px;
	--metalart-wide: 1200px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	overflow-x: hidden;
	margin: 0;
	color: var(--metalart-text);
	font-family: Montserrat, "Segoe UI", Arial, sans-serif;
	background: var(--metalart-dark);
	isolation: isolate;
}

body::before {
	position: fixed;
	z-index: -2;
	inset: 0;
	content: "";
	background-image: url("../images/metalart-background.webp");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	transform: scale(1.015);
}

body::after {
	position: fixed;
	z-index: -1;
	inset: 0;
	content: "";
	background: rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

body.home::after,
body.front-page::after {
	background: rgba(0, 0, 0, 0.22);
}

img {
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0 0 2rem;
}

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

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

.site-shell {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

.admin-bar .site-shell {
	min-height: calc(100vh - 32px);
	min-height: calc(100dvh - 32px);
}

.site-header {
	min-height: 104px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 24px 0;
}

.main-nav__list,
.footer-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-nav__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 52px;
	font-size: 16px;
	font-weight: 600;
	text-shadow: 1px 2px 7px rgba(0, 0, 0, 0.9);
}

.main-nav__list a,
.footer-nav__list a {
	text-decoration: none;
	transition: color 0.2s ease;
}

.main-nav__list .current-menu-item > a,
.main-nav__list .current_page_item > a,
.main-nav__list a[aria-current="page"] {
	color: var(--metalart-copper-hover);
}

.front-page-main {
	flex: 1 1 auto;
	min-height: 0;
	display: grid;
	place-items: center;
	padding: 0 24px 34px;
}

.hero {
	text-align: center;
	transform: translateY(-3px);
}

.hero h1 {
	margin: 0;
	color: var(--metalart-copper);
	font-size: clamp(58px, 5vw, 80px);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.025em;
	text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.95);
}

.hero p {
	margin: 24px 0 0;
	font-family: Poppins, Montserrat, "Segoe UI", Arial, sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
	text-shadow: 2px 2px 10px #000;
}

.site-main {
	width: min(calc(100% - 48px), var(--metalart-content));
	margin: 0 auto;
	padding: 54px 0 72px;
	flex: 1 0 auto;
}

.article-header {
	margin-bottom: 40px;
}

.article-title,
.archive-header h1 {
	margin: 0;
	color: var(--metalart-copper);
	font-size: clamp(38px, 4.2vw, 52px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.018em;
	text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.95);
}

.article-meta {
	margin: 16px 0 0;
	color: var(--metalart-muted);
	font-size: 14px;
	line-height: 1.5;
	text-shadow: 1px 2px 6px #000;
}

.article-meta a {
	color: inherit;
}

.article-content,
.archive-description,
.post-card__excerpt {
	font-size: 18px;
	line-height: 1.78;
	text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.8);
}

.single-post .article-content > p:first-child {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.65;
}

.article-content p,
.archive-description p,
.post-card__excerpt p {
	margin: 0 0 25px;
}

.article-content h2,
.article-content h3,
.article-content h4,
.no-results h2 {
	color: var(--metalart-copper);
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.9);
}

.article-content h2,
.no-results h2 {
	margin: 48px 0 18px;
	font-size: 30px;
}

.article-content h3 {
	margin: 38px 0 16px;
	font-size: 25px;
}

.article-content h4 {
	margin: 30px 0 14px;
	font-size: 21px;
}

.article-content ul,
.article-content ol {
	margin: 0 0 28px;
	padding-left: 24px;
}

.article-content li {
	margin-bottom: 10px;
}

.article-content img,
.article-content .wp-block-image img,
.article-content .wp-block-cover,
.article-content .wp-block-video,
.article-content .wp-block-embed,
.article-content .wp-block-gallery {
	margin-top: 12px;
	margin-bottom: 42px;
}

.article-content .wp-block-image img,
.article-content > img {
	display: block;
	width: 100%;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}

.article-content figcaption,
.wp-caption-text {
	margin-top: 10px;
	color: var(--metalart-muted);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.article-content blockquote {
	margin: 32px 0;
	padding: 2px 0 2px 22px;
	border-left: 3px solid var(--metalart-copper);
	color: var(--metalart-text);
}

.article-content hr {
	margin: 42px 0;
	border: 0;
	border-top: 1px solid rgba(224, 224, 224, 0.22);
}

.article-content table {
	width: 100%;
	margin: 0 0 32px;
	border-collapse: collapse;
}

.article-content th,
.article-content td {
	padding: 10px 12px;
	border: 1px solid rgba(224, 224, 224, 0.28);
	text-align: left;
}

.article-content code,
.article-content pre {
	font-family: Consolas, Monaco, monospace;
}

.article-content pre {
	overflow-x: auto;
	padding: 18px;
	background: rgba(0, 0, 0, 0.4);
}

.article-content .wp-block-button__link,
.button-link,
.search-submit {
	display: inline-block;
	padding: 11px 18px;
	border: 1px solid var(--metalart-copper);
	border-radius: 3px;
	color: var(--metalart-text);
	background: rgba(0, 0, 0, 0.26);
	text-decoration: none;
	cursor: pointer;
}

.article-content .wp-block-button__link:hover,
.button-link:hover,
.search-submit:hover {
	color: #fff;
	background: var(--metalart-copper);
}

.wp-block-gallery.has-nested-images figure.wp-block-image img,
.article-content .gallery img {
	border: 2px solid #b87333;
	border-radius: 8px;
	box-shadow: 0 10px 25px #000;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
}

.alignwide {
	width: min(100%, var(--metalart-wide));
	max-width: var(--metalart-wide);
	margin-right: auto;
	margin-left: auto;
}

.alignfull {
	width: 100vw;
	max-width: none;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
}

.archive-header {
	margin-bottom: 42px;
}

.archive-description {
	margin-top: 18px;
}

.post-list {
	display: grid;
	gap: 42px;
}

.post-card {
	overflow: hidden;
	background: rgba(5, 8, 11, 0.3);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.post-card__image {
	display: block;
}

.post-card__image img {
	display: block;
	width: 100%;
	max-height: 460px;
	object-fit: cover;
}

.post-card__body {
	padding: 28px 30px 30px;
}

.post-card__title {
	margin: 0;
	color: var(--metalart-copper);
	font-size: 30px;
	line-height: 1.2;
}

.post-card__title a {
	color: inherit;
	text-decoration: none;
}

.post-card__excerpt {
	margin-top: 20px;
}

.post-card__more {
	margin: 0;
}

.post-card__more a {
	color: var(--metalart-copper-hover);
	font-weight: 600;
}

.navigation.pagination {
	margin-top: 48px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pagination ul.page-numbers > li {
	margin: 0;
}

.page-numbers > li > a,
.page-numbers > li > span,
.nav-links > .page-numbers {
	display: inline-flex;
	min-width: 38px;
	min-height: 38px;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border: 1px solid rgba(224, 224, 224, 0.25);
	text-decoration: none;
}

.page-numbers .current,
.nav-links > .page-numbers.current {
	border-color: var(--metalart-copper);
	color: var(--metalart-copper-hover);
}

.site-footer {
	min-height: 92px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 13px;
	padding: 12px 20px 18px;
	font-size: 14px;
	line-height: 1;
	text-shadow: 1px 2px 6px #000;
}

.site-footer__copyright {
	margin: 0;
}

.footer-nav__list {
	display: flex;
	gap: 25px;
}

.search-form {
	display: flex;
	gap: 10px;
	margin-top: 24px;
}

.search-field,
.article-content input:not([type="submit"]),
.article-content textarea,
.article-content select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(224, 224, 224, 0.35);
	border-radius: 2px;
	color: var(--metalart-text);
	background: rgba(0, 0, 0, 0.38);
}

.search-form label {
	flex: 1;
}

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

.screen-reader-text:focus,
.skip-link:focus {
	z-index: 100000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 16px;
	color: #fff;
	background: #000;
}

:focus-visible {
	outline: 2px solid var(--metalart-copper-hover);
	outline-offset: 4px;
}

@media (max-width: 720px) {
	.site-header {
		min-height: 96px;
		padding-top: 22px;
	}

	.main-nav__list {
		flex-wrap: wrap;
		gap: 13px 24px;
		font-size: 15px;
	}

	.front-page-main {
		min-height: 430px;
		padding-bottom: 30px;
	}

	.hero h1 {
		font-size: clamp(48px, 15vw, 68px);
	}

	.hero p {
		font-size: 18px;
	}

	.site-main {
		width: min(calc(100% - 32px), var(--metalart-content));
		padding: 40px 0 56px;
	}

	.article-header {
		margin-bottom: 30px;
	}

	.article-title,
	.archive-header h1 {
		font-size: clamp(35px, 10vw, 46px);
	}

	.article-content,
	.archive-description,
	.post-card__excerpt {
		font-size: 17px;
		line-height: 1.72;
	}

	.single-post .article-content > p:first-child {
		font-size: 18px;
	}

	.article-content h2,
	.no-results h2 {
		font-size: 27px;
	}

	.post-card__body {
		padding: 22px 20px 24px;
	}

	.post-card__title {
		font-size: 26px;
	}

	.footer-nav__list {
		gap: 16px;
	}
}

@media (max-height: 650px) and (min-width: 721px) {
	.home .site-header {
		min-height: 82px;
		padding-top: 8px;
	}

	.home .site-footer {
		min-height: 76px;
		gap: 9px;
	}

	.home .hero h1 {
		font-size: 62px;
	}

	.home .hero p {
		margin-top: 16px;
		font-size: 18px;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-shell {
		min-height: calc(100vh - 46px);
		min-height: calc(100dvh - 46px);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
