/*
Theme Name: Faz Simples
Theme URI: https://fazsimples.com.br/
Author: Faz Simples
Author URI: https://fazsimples.com.br/
Description: Tema editorial leve, responsivo e acessível, criado para conteúdos práticos.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: faz-simples
Tags: blog, news, one-column, custom-logo, custom-menu, featured-images, accessibility-ready
*/

:root {
	--fs-bg: #f7f8f5;
	--fs-surface: #fff;
	--fs-text: #17211b;
	--fs-muted: #5c6861;
	--fs-primary: #176b47;
	--fs-primary-dark: #0f5135;
	--fs-border: #dfe5e0;
	--fs-radius: 14px;
	--fs-shadow: 0 10px 30px rgba(23, 33, 27, .07);
	--fs-content: 760px;
	--fs-layout: 1160px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--fs-bg);
	color: var(--fs-text);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 18px;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--fs-primary);
	text-decoration-thickness: .08em;
	text-underline-offset: .18em;
}

a:hover {
	color: var(--fs-primary-dark);
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid #f1b842;
	outline-offset: 3px;
}

.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;
}

.skip-link:focus {
	z-index: 9999;
	top: 10px;
	left: 10px;
	width: auto;
	height: auto;
	padding: 10px 14px;
	margin: 0;
	clip: auto;
	background: var(--fs-surface);
}

.site-header {
	background: var(--fs-surface);
	border-bottom: 1px solid var(--fs-border);
}

.site-header__inner,
.site-footer__inner,
.site-main {
	width: min(calc(100% - 32px), var(--fs-layout));
	margin-inline: auto;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-height: 78px;
}

.site-branding {
	flex: 0 0 auto;
}

.custom-logo {
	max-height: 48px;
	width: auto;
}

.site-title {
	margin: 0;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 800;
	line-height: 1.1;
}

.site-title a {
	color: var(--fs-text);
	text-decoration: none;
}

.site-description {
	margin: 5px 0 0;
	color: var(--fs-muted);
	font-size: .85rem;
	line-height: 1.3;
}

.main-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation a {
	color: var(--fs-text);
	font-size: .92rem;
	font-weight: 650;
	text-decoration: none;
}

.main-navigation a:hover {
	color: var(--fs-primary);
}

.site-main {
	padding-block: clamp(36px, 7vw, 72px);
}

.page-header,
.post-card,
.single-post,
.empty-state {
	background: var(--fs-surface);
	border: 1px solid var(--fs-border);
	border-radius: var(--fs-radius);
	box-shadow: var(--fs-shadow);
}

.page-header {
	margin-bottom: 28px;
	padding: clamp(24px, 4vw, 40px);
}

.page-title,
.entry-title {
	margin: 0;
	line-height: 1.15;
	letter-spacing: -.025em;
	text-wrap: balance;
}

.page-title {
	font-size: clamp(2rem, 5vw, 3.25rem);
}

.page-intro {
	max-width: 700px;
	margin: 14px 0 0;
	color: var(--fs-muted);
	font-size: 1.05rem;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.post-card {
	overflow: hidden;
}

.post-card__thumbnail {
	aspect-ratio: 16 / 9;
	background: #e9eeea;
}

.post-card__thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__body {
	padding: clamp(22px, 4vw, 32px);
}

.post-card .entry-title {
	font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.post-card .entry-title a {
	color: var(--fs-text);
	text-decoration: none;
}

.post-card .entry-title a:hover {
	color: var(--fs-primary);
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-bottom: 12px;
	color: var(--fs-muted);
	font-size: .83rem;
}

.entry-summary {
	color: #354139;
}

.read-more {
	display: inline-flex;
	align-items: center;
	margin-top: 6px;
	font-weight: 750;
}

.single-post {
	max-width: 880px;
	margin-inline: auto;
	padding: clamp(24px, 6vw, 64px);
}

.single-post .entry-header,
.single-post .entry-content,
.single-post .entry-footer,
.post-navigation {
	max-width: var(--fs-content);
	margin-inline: auto;
}

.single-post .entry-title {
	font-size: clamp(2rem, 6vw, 3.7rem);
}

.single-post .featured-image {
	margin: 32px calc(clamp(24px, 6vw, 64px) * -1) 36px;
}

.single-post .featured-image img {
	width: 100%;
	max-height: 560px;
	object-fit: cover;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.65em;
	margin-bottom: .55em;
	line-height: 1.25;
	letter-spacing: -.015em;
}

.entry-content h2 {
	font-size: clamp(1.55rem, 4vw, 2.1rem);
}

.entry-content h3 {
	font-size: clamp(1.25rem, 3vw, 1.55rem);
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
	margin-top: 0;
	margin-bottom: 1.35em;
}

.entry-content blockquote {
	margin-inline: 0;
	padding: 12px 0 12px 24px;
	border-left: 4px solid var(--fs-primary);
	color: #354139;
	font-size: 1.08rem;
}

.entry-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 10px 14px;
	border: 1px solid var(--fs-border);
	text-align: left;
}

.entry-footer {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--fs-border);
	color: var(--fs-muted);
	font-size: .9rem;
}

.pagination .nav-links,
.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 32px;
}

.site-footer {
	padding-block: 34px;
	background: #122019;
	color: #dbe4de;
}

.site-footer__inner {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	align-items: center;
}

.site-footer a {
	color: #fff;
}

.site-footer p {
	margin: 0;
	font-size: .86rem;
}

@media (max-width: 760px) {
	body {
		font-size: 17px;
	}

	.site-header__inner,
	.site-footer__inner {
		align-items: flex-start;
		flex-direction: column;
		padding-block: 20px;
	}

	.main-navigation ul {
		gap: 8px 16px;
	}

	.post-grid {
		grid-template-columns: 1fr;
	}

	.single-post .featured-image {
		margin-inline: calc(clamp(24px, 6vw, 64px) * -1);
	}
}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
	}
}
