/*
Theme Name: Proweb
Theme URI: https://example.com/proweb
Author: Your Name
Author URI: https://example.com
Description: Bare minimum starter theme for modern WordPress with PHP 8.3.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.3
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: proweb
*/

:root {
	--proweb-content-width: 70ch;
	--proweb-space: 1rem;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	line-height: 1.6;
	color: #111;
	background: #000;
}

.site-footer,
.site-main {
	max-width: var(--proweb-content-width);
	margin-inline: auto;
	/* padding: var(--proweb-space); */
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
}

.entry-title {
	margin-bottom: 0.5rem;
}

.entry-meta {
	color: #555;
	font-size: 0.9rem;
}

.site-main.proweb-posts {
	max-width: min(1200px, 100%);
	padding: calc(var(--proweb-header-height, 84px) + 2rem) clamp(1rem, 3vw, 2rem) 3rem;
}

.proweb-posts__header {
	margin-bottom: 1.5rem;
}

.proweb-posts__title {
	margin: 0;
	font-size: clamp(1.8rem, 2.4vw, 2.8rem);
	line-height: 1.1;
}

.proweb-posts__description {
	margin-top: 0.7rem;
	max-width: 70ch;
	color: #3b3b3b;
}

.proweb-posts__grid {
	display: block;
}

.proweb-post-card {
	margin: 0;
	overflow: hidden;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.proweb-post-card + .proweb-post-card {
	margin-top: 1.25rem;
}

.proweb-post-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.proweb-post-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
	height: 100%;
}

.proweb-post-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.proweb-post-card__media {
	margin: 0;
}

.proweb-post-card__body {
	padding: 1rem;
	display: grid;
	gap: 0.45rem;
}

.proweb-post-card__title {
	margin: 0;
	font-size: 1.8rem;
	font-weight: 300;
	line-height: 1.3;
}

.proweb-post-card__meta {
	margin: 0;
	font-size: 0.85rem;
	color: #666;
}

.proweb-post-card__excerpt {
	font-size: 0.95rem;
	color: #fff;
}

.proweb-post-card__excerpt p {
	margin: 0;
}

.proweb-posts__pagination {
	margin-top: 2rem;
}

.proweb-posts__empty {
	padding: 1rem 0;
	color: #444;
}

.site-main.proweb-posts-single {
	max-width: min(900px, 100%);
}

.site-main.proweb-posts-archive {
	max-width: min(900px, 100%);
}

.proweb-single {
	display: grid;
	gap: 1.2rem;
}

.proweb-single__meta {
	margin: 0;
	font-size: 0.9rem;
	color: #b8b8b8;
}

.proweb-single__title {
	margin: 0.35rem 0 0;
	font-size: clamp(2rem, 3.5vw, 3.25rem);
	line-height: 1.08;
	color: #fff;
}

.proweb-single__media {
	margin: 0;
	overflow: hidden;
}

.proweb-single__media img {
	display: block;
	width: 100%;
	height: auto;
}

.proweb-single__content {
	font-size: 1.03rem;
	line-height: 1.72;
	color: #f2f2f2;
}

.proweb-single__content > *:first-child {
	margin-top: 0;
}

.proweb-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.proweb-single__tags a {
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.7rem;
	border: 1px solid #3a3a3a;
	border-radius: 999px;
	font-size: 0.85rem;
	text-decoration: none;
	color: #f2f2f2;
}

.proweb-single__post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	padding-top: 0.6rem;
	border-top: 1px solid #2a2a2a;
}

.proweb-single__post-nav-item a {
	text-decoration: none;
	color: #f7f7f7;
	font-weight: 600;
}

.proweb-single__post-nav-item--next {
	text-align: right;
}

@media (max-width: 768px) {
	.proweb-single__post-nav {
		grid-template-columns: 1fr;
	}

	.proweb-single__post-nav-item--next {
		text-align: left;
	}
}
