/*
Theme Name: Museu Minas Gerais Vale
Theme URI: https://www.ciclope.art.br/
Author: Ateliê Ciclope
Author URI: https://www.ciclope.art.br/
Description: Tema em blocos para o Museu Minas Gerais Vale.
Version: 0.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: museuvalemg
Tags: block-theme, full-site-editing, custom-colors, custom-menu, featured-images, translation-ready
*/

@font-face {
	font-family: 'ValeSans';
	src: url("assets/fonts/ValeSans-Light.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'ValeSans';
	src: url("assets/fonts/ValeSans-LightItalic.woff2") format("woff2");
	font-weight: 300;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'ValeSans';
	src: url("assets/fonts/ValeSans-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'ValeSans';
	src: url("assets/fonts/ValeSans-Italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'ValeSans';
	src: url("assets/fonts/ValeSans-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'ValeSans';
	src: url("assets/fonts/ValeSans-BoldItalic.woff2") format("woff2");
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

:root {
	--mv-header-height: 104px;
	--mv-container: 1050px;
	--mv-accent: #ecb11f;
	--mv-ink: #747779;
	--mv-title: #737578;
	--mv-muted: #6c6b75;
	--mv-line: #d9d9d9;
	--mv-surface: #f5f5f5;
	--mv-footer: #e6e7e8;
	--mv-radius: 10px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #fff;
	color: var(--mv-ink);
	font-family: "ValeSans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 18px;
	line-height: 1.5;
}

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

a {
	color: var(--mv-accent);
	text-underline-offset: 0.16em;
}

a:hover,
a:focus {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--mv-accent);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	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 {
	clip: auto !important;
	display: block;
	width: auto;
	height: auto;
	padding: 12px 18px;
	background: #fff;
	color: #1e1e1e;
	font-weight: 700;
	z-index: 100000;
}

.mv-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 12px 18px;
	background: #fff;
	color: #1e1e1e;
	font-weight: 700;
}

.mv-skip-link:focus {
	left: 12px;
	top: 12px;
}

.mv-site-main {
	min-height: 40vh;
}

.mv-container {
	width: min(100% - 40px, var(--mv-container));
	margin: 0 auto;
}

/* Modelo padrão de páginas: título + conteúdo na mesma margem da home. */
.mv-page {
	width: min(100% - 40px, var(--mv-container));
	margin: 56px auto 80px;
}

.mv-page-title {
	margin: 0 0 55px;
	color: var(--mv-accent);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.15;
}

/* Resultados de busca */
.mv-search-title {
	margin-bottom: 14px;
}

.mv-search-form {
	max-width: 520px;
	margin: 0 0 40px;
}

.mv-search-results .wp-block-post-template {
	margin: 0;
}

.mv-search-results .wp-block-post {
	margin: 0 0 28px;
}

.mv-search-results .wp-block-post-title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
}

.mv-search-results .wp-block-post-title a {
	color: var(--mv-ink);
	text-decoration: none;
}

.mv-search-results .wp-block-post-title a:hover,
.mv-search-results .wp-block-post-title a:focus {
	color: var(--mv-accent);
}

.mv-search-results .wp-block-post-excerpt {
	margin: 4px 0 0;
	color: var(--mv-ink);
	font-size: 16px;
	line-height: 1.45;
}

.mv-search-results .wp-block-post-excerpt__excerpt {
	margin: 0;
}

@media (max-width: 900px) {
	.mv-page {
		width: min(100% - 24px, var(--mv-container));
		margin: 40px auto 60px;
	}

	.mv-page-title {
		margin-bottom: 30px;
		font-size: 28px;
	}
}
