/*
Theme Name: Guimoura Cultura
Author: Guilherme Moura
Description: Portfólio editorial de dados e políticas culturais.
Version: 1.0.0
Text Domain: guimoura-cultura
*/

:root {
	--paper: #f4f2eb;
	--surface: #fffdf8;
	--ink: #172b29;
	--muted: #566864;
	--green: #174a43;
	--green-dark: #103a35;
	--coral: #c35b43;
	--line: #d8ded7;
	--shell: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 17px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--green); text-underline-offset: .18em; }
a:hover { color: var(--coral); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

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

h1, h2, h3, h4 {
	margin: 0 0 .55em;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -.025em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1.2em; }

.site-shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 1rem; z-index: 100; padding: .6rem 1rem; background: var(--surface); }
.skip-link:focus { left: 1rem; }

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-layout { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { display: grid; gap: .05rem; color: var(--ink); text-decoration: none; line-height: 1.15; }
.wordmark-name { font: 600 1.35rem/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.wordmark-domain { color: var(--muted); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 1.7rem; }
.site-nav a { color: var(--ink); font-size: .9rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover { color: var(--coral); }

.home-main { padding: 2rem 0 5rem; }
.hero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(220px, .5fr);
	align-items: end;
	gap: 3rem;
	min-height: 440px;
	padding: clamp(2rem, 6vw, 5rem);
	border-radius: 20px;
	background: linear-gradient(125deg, var(--green-dark), var(--green));
	color: #fffdf8;
}
.hero::after {
	position: absolute;
	inset: 0 0 0 45%;
	background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
	background-size: 34px 34px;
	content: "";
	mask-image: linear-gradient(90deg, transparent, #000 55%);
	pointer-events: none;
}
.hero-copy, .hero-note { position: relative; z-index: 1; }
.eyebrow, .section-kicker { margin: 0 0 1rem; color: var(--coral); font-size: .76rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { color: #f0a28e; }
.hero h1 { max-width: 780px; margin-bottom: .45em; color: #fffdf8; }
.hero-lede { max-width: 690px; margin-bottom: 1.6rem; color: #e0e9e4; font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.hero-note { max-width: 235px; padding: 1.2rem 0 0 1.2rem; border-left: 1px solid rgba(255,255,255,.42); color: #d5e2dc; font-size: .93rem; }
.hero-note strong { display: block; margin-bottom: .5rem; color: #fffdf8; font: 1.3rem/1.2 Georgia, "Times New Roman", serif; }
.button-link { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .65rem 1.1rem; border: 1px solid var(--coral); border-radius: 999px; background: var(--coral); color: #fff; font-size: .9rem; font-weight: 700; text-decoration: none; }
.button-link:hover { border-color: #e38b72; background: #e38b72; color: #172b29; }
.button-link--light { border-color: rgba(255,255,255,.65); background: transparent; color: #fffdf8; }
.button-link--light:hover { border-color: #fffdf8; background: #fffdf8; color: var(--green-dark); }

.section { padding: 5rem 0 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading h2 { margin-bottom: 0; }
.section-intro { max-width: 560px; color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.work-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.work-card__image { aspect-ratio: 16 / 10; overflow: hidden; background: #e5e9e2; }
.work-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.work-card:hover .work-card__image img { transform: scale(1.025); }
.work-card__body { padding: 1.35rem; }
.work-card__meta, .entry-meta { display: flex; flex-wrap: wrap; gap: .4rem .85rem; margin-bottom: .75rem; color: var(--muted); font-size: .78rem; }
.work-card h3 { margin-bottom: .55rem; }
.work-card h3 a { color: var(--ink); text-decoration: none; }
.work-card h3 a:hover { color: var(--coral); }
.work-card__excerpt { color: var(--muted); font-size: .93rem; }
.work-card__excerpt p { margin-bottom: 0; }
.empty-state { padding: 2rem; border: 1px dashed #aebbb2; border-radius: 14px; color: var(--muted); }

.about-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; padding: clamp(2rem, 5vw, 4rem); border-radius: 18px; background: #e6ebe3; }
.about-band h2 { max-width: 390px; }
.about-band p { max-width: 680px; color: #3c504b; }
.project-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.3rem; }
.project-links a { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem .9rem; border: 1px solid #91a39a; border-radius: 999px; color: var(--green-dark); font-size: .88rem; font-weight: 700; text-decoration: none; }
.project-links a:hover { border-color: var(--green); background: var(--green); color: white; }
.contact-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.contact-band h2 { max-width: 420px; }
.contact-band p { max-width: 600px; color: var(--muted); }
.contact-form { display: grid; gap: .55rem; }
.contact-form label { margin-top: .45rem; font-size: .9rem; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; padding: .8rem .9rem; border: 1px solid #aebbb2; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(195,91,67,.3); border-color: var(--coral); }
.contact-form button { justify-self: start; margin-top: .6rem; cursor: pointer; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-notice { margin-bottom: 1rem; padding: .85rem 1rem; border-left: 3px solid var(--green); background: #e6ebe3; }

.site-footer { padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.footer-layout { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--ink); text-decoration: none; }

.content-shell { width: min(900px, calc(100% - 48px)); margin: 0 auto; padding: 4rem 0 6rem; }
.archive-heading { margin-bottom: 2rem; }
.archive-heading h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.archive-description { max-width: 680px; color: var(--muted); }
.post-list { display: grid; gap: 1rem; }
.post-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.5rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.post-card__image { overflow: hidden; align-self: start; aspect-ratio: 4 / 3; border-radius: 8px; background: #e5e9e2; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card h2 { margin-bottom: .5rem; font-size: 1.8rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--coral); }
.post-card__excerpt { color: var(--muted); }
.post-card__excerpt p { margin-bottom: 0; }
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.pagination a, .pagination span { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-decoration: none; }
.pagination .current { background: var(--green); color: white; }

.single-content { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 4rem 0 6rem; }
.single-content h1 { margin-bottom: .7rem; font-size: clamp(2.7rem, 7vw, 4.75rem); }
.entry-featured-image { margin: 2rem 0; overflow: hidden; border-radius: 14px; }
.entry-content { font-size: 1.08rem; }
.entry-content > * { max-width: 100%; }
.entry-content > p, .entry-content > ul, .entry-content > ol, .entry-content > blockquote { max-width: 720px; }
.entry-content h2 { margin-top: 2.2em; }
.entry-content h3 { margin-top: 1.8em; }
.entry-content blockquote { margin: 2rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--coral); color: var(--muted); font: 1.4rem/1.45 Georgia, "Times New Roman", serif; }
.entry-content figure { margin: 2rem 0; }
.entry-content figcaption { margin-top: .5rem; color: var(--muted); font-size: .82rem; }
.entry-content iframe { max-width: 100%; }
.entry-content .wp-block-embed { margin: 2rem 0; }
.back-link { display: inline-block; margin-top: 2.5rem; font-weight: 700; }

@media (max-width: 820px) {
	.hero { grid-template-columns: 1fr; gap: 2rem; min-height: 0; }
	.hero-note { max-width: 540px; }
	.work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.about-band { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 600px) {
	body { font-size: 16px; }
	.site-shell, .content-shell, .single-content { width: min(100% - 32px, var(--shell)); }
	.header-layout { min-height: 72px; gap: 1rem; }
	.header-layout { flex-wrap: wrap; padding: .9rem 0; }
	.site-nav { width: 100%; justify-content: space-between; gap: .4rem; }
	.site-nav a { font-size: .82rem; }
	.wordmark-name { font-size: 1.15rem; }
	.wordmark-domain { font-size: .64rem; }
	.home-main { padding-top: 1rem; }
	.hero { padding: 2rem 1.4rem; border-radius: 14px; }
	.hero h1 { font-size: clamp(2.5rem, 12vw, 3.8rem); }
	.section { padding-top: 3.5rem; }
	.section-heading { display: block; }
	.work-grid { grid-template-columns: 1fr; }
	.about-band, .contact-band { padding: 1.5rem; }
	.contact-band { grid-template-columns: 1fr; gap: 1.2rem; }
	.post-card { grid-template-columns: 1fr; gap: 1rem; }
	.footer-layout { align-items: flex-start; flex-direction: column; }
	.single-content, .content-shell { padding-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; }
}
