/* ---------- design tokens (estilo "Lookout Local") ---------- */
#app {
	--bg: #ffffff;
	--surface: #f6f5f2;
	--text: #16181c;
	--text-muted: #5a5f68;
	--border: #e3e1db;
	--font-head: 'Archivo', system-ui, sans-serif;
	--font-body: 'Source Serif 4', Georgia, serif;
	--accent: #2f7f83;
	--accent-strong: #21797d;
	--accent-2: #c97815;
	background: var(--bg);
	color: var(--text);
	max-width: 1180px;
	margin: 0 auto;
}
@media (prefers-color-scheme: dark) {
	#app {
		--bg: #131518; --surface: #1b1e22; --text: #eceef0; --text-muted: #9ba1aa; --border: #2b2f34;
		--accent: #6bd6da; --accent-strong: #8fe4e7; --accent-2: #f3a433;
	}
}
:root[data-theme="dark"] #app {
	--bg: #131518; --surface: #1b1e22; --text: #eceef0; --text-muted: #9ba1aa; --border: #2b2f34;
	--accent: #6bd6da; --accent-strong: #8fe4e7; --accent-2: #f3a433;
}
:root[data-theme="light"] #app {
	--bg: #ffffff; --surface: #f6f5f2; --text: #16181c; --text-muted: #5a5f68; --border: #e3e1db;
	--accent: #2f7f83; --accent-strong: #21797d; --accent-2: #c97815;
}

body { font-family: var(--font-body); }

/* ---------- topbar ---------- */
.topbar {
	display: flex;
	justify-content: flex-end;
	gap: 20px;
	padding: 7px 24px;
	background: var(--accent-strong);
	color: #fff;
	font-family: var(--font-head);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .02em;
}
.topbar a { color: #fff; text-decoration: none; opacity: .92; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar-menu { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }

/* ---------- masthead ---------- */
.masthead {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 18px 24px 14px 24px;
	border-bottom: 3px solid var(--accent);
	flex-wrap: wrap;
}
.masthead .site-logo-link { display: block; }
.masthead .custom-logo { height: 184px; width: auto; display: block; }
.masthead .site-title-text {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 24px;
	text-decoration: none;
	color: var(--text);
}
.masthead nav.primary-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.masthead nav.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.masthead nav.primary-nav a {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .01em;
	color: var(--text);
	text-decoration: none;
	padding-bottom: 3px;
	border-bottom: 2px solid transparent;
}
.masthead nav.primary-nav a:hover,
.masthead nav.primary-nav a:focus-visible { border-color: var(--accent-2); color: var(--accent-strong); }
.masthead .subscribe {
	margin-left: auto;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 13.5px;
	color: #fff;
	background: var(--accent-2);
	border: none;
	padding: 10px 18px;
	border-radius: 3px;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	display: inline-block;
}
.masthead .subscribe:hover { filter: brightness(1.06); }
.masthead .subscribe:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.masthead .menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero-wrap {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
	padding: 32px 24px 8px 24px;
}
.hero-card { text-decoration: none; color: inherit; display: block; }
.hero-card img {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	border-radius: 2px;
	display: block;
	background: var(--surface);
}
.eyebrow {
	display: inline-block;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff;
	background: var(--accent);
	padding: 4px 10px;
	border-radius: 2px;
	margin-top: 16px;
	text-decoration: none;
}
.hero-card h1, .hero-card h2.hero-title {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 14px 0 10px 0;
}
.byline {
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--text-muted);
}
.mais-lidas h2 {
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--accent-strong);
	margin: 0 0 4px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--border);
}
.mais-lidas ol { list-style: none; margin: 0; padding: 0; counter-reset: item; }
.mais-lidas li {
	counter-increment: item;
	display: flex;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
}
.mais-lidas li::before {
	content: counter(item);
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 22px;
	color: var(--border);
	line-height: 1;
	flex-shrink: 0;
}
.mais-lidas a {
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.3;
	color: var(--text);
	text-decoration: none;
}
.mais-lidas a:hover { color: var(--accent-strong); text-decoration: underline; }

/* ---------- grid section ---------- */
.section-title {
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--text);
	margin: 40px 24px 16px 24px;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--text);
}
.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	padding: 0 24px 8px 24px;
}
.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.card img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	border-radius: 2px;
	display: block;
	background: var(--surface);
}
.card .eyebrow { margin-top: 12px; font-size: 11px; padding: 3px 8px; }
.card h3 {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.28;
	margin: 8px 0 6px 0;
}
.card .byline { font-size: 12.5px; }

.pagination { display: flex; justify-content: center; gap: 10px; padding: 24px; font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--border); border-radius: 3px; text-decoration: none; color: var(--text); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination a:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---------- article (single) ---------- */
.article-wrap { display: grid; grid-template-columns: 2.2fr 1fr; gap: 48px; padding: 32px 24px 8px 24px; align-items: start; }
.article-main { min-width: 0; }
.article-main .eyebrow { margin-top: 0; }
.article-main h1 {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 16px 0 12px 0;
}
.article-excerpt { font-family: var(--font-body); font-size: 19px; line-height: 1.5; color: var(--text-muted); margin: 0 0 16px 0; }
.article-meta { font-family: var(--font-body); font-size: 14px; color: var(--text-muted); padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.article-figure { margin: 0 0 28px 0; }
.article-figure img { width: 100%; border-radius: 2px; display: block; }
.article-figure figcaption { font-family: var(--font-body); font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.article-body { font-family: var(--font-body); font-size: 19px; line-height: 1.65; color: var(--text); }
.article-body p { margin: 0 0 22px 0; }
.article-body h2 { font-family: var(--font-head); font-weight: 800; font-size: 26px; margin: 40px 0 16px 0; }
.article-body h3 { font-family: var(--font-head); font-weight: 700; font-size: 21px; margin: 32px 0 14px 0; }
.article-body a { color: var(--accent-strong); }
.article-body img { border-radius: 2px; }
.article-body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-style: italic; color: var(--text-muted); }
.article-tags { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; flex-wrap: wrap; }
.article-tags a { font-family: var(--font-head); font-size: 12.5px; font-weight: 600; color: var(--text-muted); text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }
.article-tags a:hover { border-color: var(--accent); color: var(--accent-strong); }

.aside-widget { margin-bottom: 40px; }
.aside-widget h2, .aside-widget .widget-title {
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--accent-strong);
	margin: 0 0 4px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--border);
}
.aside-widget ul { list-style: none; margin: 0; padding: 0; }
.aside-widget li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.aside-widget li a { text-decoration: none; }
.aside-widget li a:hover { color: var(--accent-strong); text-decoration: underline; }
.aside-widget input[type="search"], .aside-widget input[type="text"] {
	width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 3px; font-family: var(--font-body); font-size: 14px;
}
.aside-widget .search-submit, .aside-widget input[type="submit"] {
	margin-top: 8px; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: #fff; background: var(--accent); border: none; padding: 9px 16px; border-radius: 3px; cursor: pointer;
}

.comments-area { margin-top: 48px; padding-top: 24px; border-top: 3px solid var(--text); font-family: var(--font-body); }
.comments-area .comments-title { font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-list ol.children { list-style: none; margin: 0 0 0 32px; padding: 0; }

/* ---------- 404 / archive header ---------- */
.page-header-block { padding: 40px 24px 8px 24px; }
.page-header-block h1 { font-family: var(--font-head); font-weight: 800; font-size: 30px; margin: 0; }
.page-header-block p { font-family: var(--font-body); color: var(--text-muted); }
.not-found-block { padding: 60px 24px; text-align: center; font-family: var(--font-body); }
.not-found-block h1 { font-family: var(--font-head); font-weight: 800; font-size: 32px; }

/* ---------- footer ---------- */
footer.site-footer {
	margin-top: 48px;
	padding: 32px 24px;
	background: var(--surface);
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
footer .foot-brand { display: flex; align-items: center; gap: 14px; }
footer .foot-brand img { height: 30px; width: auto; opacity: .9; }
footer .foot-copy { font-family: var(--font-body); font-size: 13px; color: var(--text-muted); }
footer .foot-links { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
footer .foot-links a {
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 600;
	color: var(--text-muted);
	text-decoration: none;
}
footer .foot-links a:hover { color: var(--accent-strong); }
footer .footer-widgets { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 24px; }
footer .footer-widgets:empty { display: none; }

.screen-reader-text { position: absolute; left: -9999px; }
.skip-link { position: absolute; top: -60px; left: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 999; font-family: var(--font-head); }
.skip-link:focus { top: 0; }

@media (max-width: 860px) {
	.hero-wrap { grid-template-columns: 1fr; }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.article-wrap { grid-template-columns: 1fr; }
	.masthead nav.primary-nav { order: 3; width: 100%; }
	footer .footer-widgets { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.cards { grid-template-columns: 1fr; }
	footer .footer-widgets { grid-template-columns: 1fr; }
}
