/*
Theme Name: Ativa Ideia Molde
Theme URI: https://ativaideia.org/
Author: Ativa Ideia
Description: Moldes de costura recortados em papel manilha: peças com piques, fio reto e margem de costura, traço preto e marcador laranja.
Version: 1.0.0
Requires PHP: 8.2
License: GPL-2.0-or-later
Text Domain: ativaideia-molde
*/

/* ---------- Fontes (OFL, dentro do tema) ---------- */
@font-face {
	font-family: "Gabarito";
	src: url("assets/fonts/gabarito.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Alegreya Sans";
	src: url("assets/fonts/alegreya-sans-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Alegreya Sans";
	src: url("assets/fonts/alegreya-sans-400-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Alegreya Sans";
	src: url("assets/fonts/alegreya-sans-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Alegreya Sans";
	src: url("assets/fonts/alegreya-sans-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Alegreya Sans";
	src: url("assets/fonts/alegreya-sans-700-italic.woff2") format("woff2");
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Alegreya Sans";
	src: url("assets/fonts/alegreya-sans-800.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--manilha: #f2e6c6;
	--giz: #fbf8ef;
	--traco: #221d16;
	--marcador: #ef5b1b;
	--ligacao: #b23d0a;
	--lapis: #8a8170;
	--apagado: #5e5546;
	--titulo: "Gabarito", "Arial Narrow", Arial, sans-serif;
	--texto: "Alegreya Sans", "Trebuchet MS", Arial, sans-serif;
	--medida: 30.5em;
	--borda: 3px;
	--canto: 22px;
	--folga: clamp(1rem, 4vw, 3rem);
	--largura: 78rem;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
body {
	margin: 0;
	background-color: var(--manilha);
	background-image: radial-gradient(circle at 1px 1px, rgba(138, 129, 112, 0.28) 1px, transparent 1.4px);
	background-size: 26px 26px;
	color: var(--traco);
	font-family: var(--texto);
	font-size: 1.1875rem;
	line-height: 1.6;
	font-kerning: normal;
	font-variant-ligatures: common-ligatures;
}
img,
svg {
	max-width: 100%;
	height: auto;
}
a {
	color: var(--ligacao);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.16em;
}
a:hover {
	color: var(--traco);
	text-decoration-color: var(--marcador);
	text-decoration-thickness: 0.16em;
}
:focus-visible {
	outline: 3px solid var(--traco);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--marcador);
	border-radius: 2px;
}
h1,
h2,
h3,
h4 {
	font-family: var(--titulo);
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0;
	text-wrap: balance;
}
p {
	margin: 0 0 1em;
}
.atalho-corte {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 30;
	background: var(--giz);
	border: var(--borda) solid var(--traco);
	padding: 0.5rem 1rem;
	font-family: var(--titulo);
	font-weight: 700;
	color: var(--traco);
}
.atalho-corte:focus {
	top: 1rem;
}
.tecido {
	width: min(100% - 2 * var(--folga), var(--largura));
	margin-inline: auto;
}

/* ---------- A peça de molde: recorte com piques, papel e margem de costura ---------- */
.peca {
	--corte: polygon(0 0, calc(100% - var(--canto)) 0, 100% var(--canto), 100% 100%, var(--canto) 100%, 0 calc(100% - var(--canto)));
	--papel: var(--giz);
	position: relative;
	isolation: isolate;
	padding: clamp(1.3rem, 3vw, 2.3rem);
}
.peca::before,
.peca::after {
	content: "";
	position: absolute;
	clip-path: var(--corte);
	z-index: -1;
}
.peca::before {
	inset: 0;
	background: var(--traco);
}
.peca::after {
	inset: var(--borda);
	background: var(--papel);
}
.peca--piques {
	--corte: polygon(0 0, calc(34% - 10px) 0, 34% 13px, calc(34% + 10px) 0, calc(100% - var(--canto)) 0, 100% var(--canto), 100% calc(58% - 10px), calc(100% - 13px) 58%, 100% calc(58% + 10px), 100% 100%, calc(70% + 10px) 100%, 70% calc(100% - 13px), calc(70% - 10px) 100%, var(--canto) 100%, 0 calc(100% - var(--canto)), 0 calc(40% + 10px), 13px 40%, 0 calc(40% - 10px));
}
.peca--duplo {
	--corte: polygon(var(--canto) 0, calc(62% - 22px) 0, calc(62% - 12px) 13px, calc(62% - 2px) 0, calc(62% + 2px) 0, calc(62% + 12px) 13px, calc(62% + 22px) 0, 100% 0, 100% calc(100% - var(--canto)), calc(100% - var(--canto)) 100%, calc(28% + 10px) 100%, 28% calc(100% - 13px), calc(28% - 10px) 100%, 0 100%, 0 var(--canto));
}
.peca--manilha {
	--papel: var(--manilha);
}
.peca--laranja {
	--papel: var(--marcador);
}
.margem-costura {
	position: absolute;
	inset: 14px;
	border: 1.5px dashed var(--lapis);
	pointer-events: none;
	z-index: -1;
}
.peca--laranja .margem-costura {
	border-color: rgba(34, 29, 22, 0.55);
}

/* O fio reto: uma linha com setas nas duas pontas, e o texto escrito sobre ela */
.fio {
	display: flex;
	align-items: center;
	gap: 0.7em;
	margin: 0;
	font-family: var(--titulo);
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.01em;
	color: var(--apagado);
}
.fio::before,
.fio::after {
	content: "";
	flex: 1 1 1.5rem;
	min-width: 1.5rem;
	height: 12px;
	background:
		linear-gradient(var(--traco), var(--traco)) center / 100% 2px no-repeat;
}
.fio::before {
	clip-path: polygon(0 50%, 10px 0, 10px 4px, 100% 4px, 100% 8px, 10px 8px, 10px 100%);
	background: var(--traco);
}
.fio::after {
	clip-path: polygon(100% 50%, calc(100% - 10px) 0, calc(100% - 10px) 4px, 0 4px, 0 8px, calc(100% - 10px) 8px, calc(100% - 10px) 100%);
	background: var(--traco);
}
.peca--laranja .fio {
	color: var(--traco);
}

/* ---------- Cabeçalho ---------- */
.gola {
	padding-top: clamp(1rem, 2.4vw, 1.8rem);
}
.gola-faixa {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.8rem 2rem;
}
.molde-marca {
	display: block;
	line-height: 0;
}
.molde-marca img {
	display: block;
	width: clamp(14rem, 34vw, 25rem);
	height: auto;
}
.trilho ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 1.6rem;
	margin: 0;
	padding: 0 0 0.35rem;
	list-style: none;
}
.trilho a {
	position: relative;
	display: inline-block;
	padding: 0.25rem 0.1rem 0.45rem;
	font-family: var(--titulo);
	font-weight: 700;
	font-size: 1.2rem;
	color: var(--traco);
	text-decoration: none;
}
.trilho a:hover {
	color: var(--ligacao);
}
.trilho .current-menu-item > a::after,
.trilho .current-menu-parent > a::after,
.trilho .current-post-ancestor > a::after,
.trilho a[aria-current]::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -0.55rem;
	width: 18px;
	height: 13px;
	transform: translateX(-50%);
	background: var(--marcador);
	clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.linha-corte {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.9rem;
}
.linha-corte svg {
	flex: none;
	width: 30px;
	height: 22px;
}
.linha-corte::after {
	content: "";
	flex: 1;
	border-top: 2.5px dashed var(--traco);
}

/* ---------- Página inicial ---------- */
.mesa {
	padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2rem, 5vw, 4rem);
}
.mesa-grade {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(1rem, 2.2vw, 2rem);
	align-items: start;
}
.mesa-frase {
	grid-column: 1 / span 8;
	grid-row: 1;
}
.mesa-frase h1 {
	margin: 0;
	font-weight: 900;
	font-size: clamp(3rem, 8.4vw, 8.2rem);
	line-height: 0.92;
	letter-spacing: -0.035em;
	text-wrap: balance;
}
.mesa-frase p {
	margin: 0.9rem 0 0;
	max-width: 30em;
	font-family: var(--titulo);
	font-weight: 600;
	font-size: clamp(1.05rem, 1.6vw, 1.35rem);
	line-height: 1.35;
	color: var(--apagado);
	text-wrap: pretty;
}
.mesa-destaque {
	grid-column: 8 / span 5;
	grid-row: 1 / span 2;
	margin-top: clamp(3rem, 12vw, 11rem);
	transform: rotate(-1.4deg);
}
.mesa-nicho {
	grid-column: 1 / span 4;
	grid-row: 2;
	transform: rotate(1.2deg);
	margin-top: clamp(0rem, 1vw, 1rem);
}
.mesa-sobre {
	grid-column: 5 / span 3;
	grid-row: 2;
	margin-top: clamp(1rem, 5vw, 4.5rem);
	transform: rotate(-2.2deg);
}
.cartao h2,
.cartao h3 {
	font-weight: 800;
	font-size: clamp(1.45rem, 2.3vw, 2.05rem);
	line-height: 1.08;
	margin-bottom: 0.6rem;
}
.cartao h2 a,
.cartao h3 a {
	color: var(--traco);
	text-decoration: none;
	background-image: linear-gradient(var(--marcador), var(--marcador));
	background-size: 0 0.16em;
	background-position: 0 100%;
	background-repeat: no-repeat;
}
.cartao h2 a:hover,
.cartao h3 a:hover,
.cartao h2 a:focus-visible,
.cartao h3 a:focus-visible {
	background-size: 100% 0.16em;
}
.cartao-figura {
	display: block;
	margin: 0 0 1rem;
	border: 2px solid var(--traco);
	line-height: 0;
	background: var(--manilha);
}
.cartao-figura img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.cartao p {
	margin-bottom: 0.9rem;
}
.cartao .fio {
	margin-top: 0.4rem;
}
.cartao-nicho {
	display: inline-block;
	margin-bottom: 0.5rem;
	font-family: var(--titulo);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--traco);
	text-decoration: none;
	border-bottom: 3px solid var(--marcador);
}
.peca--laranja a {
	color: var(--traco);
}
.peca--laranja .cartao-nicho {
	border-bottom-color: var(--traco);
}
.mesa-texto {
	padding-block: 1rem clamp(2rem, 5vw, 4rem);
}

/* ---------- Colunas de leitura ---------- */
.tira {
	max-width: var(--medida);
	margin-left: clamp(0rem, 7vw, 7rem);
}
.tira > * + * {
	margin-top: 0;
}

/* ---------- Conteúdo: o que os artigos e páginas trazem ---------- */
.folha-texto h2 {
	position: relative;
	margin: 2.6rem 0 1rem;
	font-weight: 800;
	font-size: clamp(1.6rem, 2.6vw, 2.15rem);
	padding-left: 1.5rem;
}
.folha-texto h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.22em;
	width: 15px;
	height: 0.8em;
	background: var(--marcador);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.folha-texto h3 {
	margin: 2rem 0 0.7rem;
	font-weight: 700;
	font-size: 1.35rem;
}
.folha-texto p,
.folha-texto li {
	hyphens: auto;
	hyphenate-limit-chars: 9 4 4;
	text-wrap: pretty;
}
.folha-texto strong {
	font-weight: 700;
}
.folha-texto code {
	font-family: var(--titulo);
	font-weight: 700;
	font-size: 0.92em;
	padding: 0.05em 0.3em;
	background: rgba(239, 91, 27, 0.16);
	border-bottom: 2px solid var(--marcador);
}
.folha-texto ul {
	padding-left: 0;
	list-style: none;
	margin: 0 0 1.2em;
}
.folha-texto ul > li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.4rem;
}
.folha-texto ul > li::before {
	content: "";
	position: absolute;
	left: 0.1rem;
	top: 0.45em;
	width: 11px;
	height: 11px;
	background: var(--marcador);
	clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.folha-texto ol {
	counter-reset: passo;
	list-style: none;
	padding-left: 0;
	margin: 1.4rem 0 1.6rem;
}
.folha-texto ol > li {
	counter-increment: passo;
	position: relative;
	min-height: 2.6rem;
	padding: 0.35rem 0 0.35rem 3.6rem;
	margin-bottom: 0.7rem;
}
.folha-texto ol > li::before {
	content: counter(passo);
	position: absolute;
	left: 0;
	top: 0;
	width: 2.6rem;
	height: 2.6rem;
	display: grid;
	place-items: center;
	font-family: var(--titulo);
	font-weight: 900;
	font-size: 1.3rem;
	color: var(--traco);
	background: var(--marcador);
	border: var(--borda) solid var(--traco);
	clip-path: polygon(0 0, 35% 0, 50% 22%, 65% 0, 100% 0, 100% 100%, 0 100%);
}
.folha-texto ol > li::after {
	content: "";
	position: absolute;
	left: 1.3rem;
	top: 2.6rem;
	bottom: -0.7rem;
	border-left: 2px dashed var(--lapis);
}
.folha-texto ol > li:last-child::after {
	display: none;
}

/* As dicas: pequenas peças recortadas, em laranja, que saem da coluna */
.folha-texto aside {
	--corte: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% calc(55% - 9px), calc(100% - 11px) 55%, 100% calc(55% + 9px), 100% 100%, 18px 100%, 0 calc(100% - 18px), 0 calc(30% + 9px), 11px 30%, 0 calc(30% - 9px));
	position: relative;
	isolation: isolate;
	margin: 1.8rem 0;
	padding: 1.3rem 1.5rem 1.2rem 1.6rem;
	font-size: 1.04rem;
	line-height: 1.5;
	transform: rotate(-0.8deg);
}
.folha-texto aside::before,
.folha-texto aside::after {
	content: "";
	position: absolute;
	clip-path: var(--corte);
	z-index: -1;
}
.folha-texto aside::before {
	inset: 0;
	background: var(--traco);
}
.folha-texto aside::after {
	inset: var(--borda);
	background: var(--marcador);
}
.folha-texto aside p:last-child {
	margin-bottom: 0;
}
.folha-texto aside strong:first-child {
	display: block;
	margin-bottom: 0.25rem;
	font-family: var(--titulo);
	font-weight: 800;
	font-size: 1.15rem;
	line-height: 1.2;
}
.folha-texto aside a {
	color: var(--traco);
}
.folha-texto aside:nth-of-type(even) {
	transform: rotate(0.9deg);
}

/* As figuras: folhas de molde */
.folha-texto figure {
	--corte: polygon(0 0, calc(100% - var(--canto)) 0, 100% var(--canto), 100% 100%, 0 100%);
	position: relative;
	isolation: isolate;
	margin: 2rem 0;
	padding: clamp(0.8rem, 2vw, 1.3rem);
}
.folha-texto figure::before,
.folha-texto figure::after {
	content: "";
	position: absolute;
	clip-path: var(--corte);
	z-index: -1;
}
.folha-texto figure::before {
	inset: 0;
	background: var(--traco);
}
.folha-texto figure::after {
	inset: 2px;
	background: var(--giz);
}
.folha-texto figure img {
	display: block;
	width: 100%;
	height: auto;
}
.folha-texto figcaption {
	position: relative;
	margin-top: 0.8rem;
	padding: 0.7rem 0 0.1rem 1.6rem;
	border-top: 2px dashed var(--lapis);
	font-size: 0.98rem;
	line-height: 1.45;
	color: var(--apagado);
}
.folha-texto figcaption::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.95rem;
	width: 13px;
	height: 13px;
	background: var(--marcador);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.folha-texto figcaption strong {
	color: var(--traco);
}

/* Tabelas: a folha de instruções do molde */
.folha-texto table {
	width: 100%;
	margin: 1.8rem 0;
	border-collapse: collapse;
	border: 2px solid var(--traco);
	background: var(--giz);
	font-size: 1rem;
	line-height: 1.4;
}
.folha-texto table:has(caption) {
	border-top: 0;
}
.folha-texto th,
.folha-texto td {
	padding: 0.7rem 0.9rem;
	text-align: left;
	vertical-align: top;
	min-width: 9rem;
}
.folha-texto thead th {
	font-family: var(--titulo);
	font-weight: 800;
	font-size: 1rem;
	border-bottom: var(--borda) solid var(--traco);
	white-space: nowrap;
}
.folha-texto tbody tr + tr td,
.folha-texto tbody tr + tr th {
	border-top: 1.5px dashed var(--lapis);
}
.folha-texto tbody th {
	font-weight: 700;
}
.folha-texto caption {
	caption-side: top;
	padding: 0.75rem 0.9rem 0.6rem 2.1rem;
	position: relative;
	text-align: left;
	font-family: var(--titulo);
	font-weight: 800;
	font-size: 1.05rem;
	line-height: 1.25;
	background: var(--giz);
	border: 2px solid var(--traco);
	border-bottom: 1.5px dashed var(--lapis);
}
.folha-texto caption::before {
	content: "";
	position: absolute;
	left: 0.9rem;
	top: 1rem;
	width: 12px;
	height: 12px;
	background: var(--marcador);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Perguntas e respostas */
.folha-texto details {
	position: relative;
	margin: 0 0 0.9rem;
	background: var(--giz);
	border: 2px solid var(--traco);
	clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.folha-texto summary {
	position: relative;
	cursor: pointer;
	list-style: none;
	padding: 0.95rem 3.4rem 0.95rem 1.2rem;
	font-family: var(--titulo);
	font-weight: 700;
	font-size: 1.12rem;
	line-height: 1.3;
}
.folha-texto summary::-webkit-details-marker {
	display: none;
}
.folha-texto summary::after {
	content: "";
	position: absolute;
	right: 1.15rem;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	background:
		linear-gradient(var(--marcador), var(--marcador)) center / 100% 4px no-repeat,
		linear-gradient(var(--marcador), var(--marcador)) center / 4px 100% no-repeat;
	transition: transform 0.18s ease;
}
.folha-texto details[open] summary::after {
	transform: rotate(45deg);
}
.folha-texto details[open] summary {
	border-bottom: 1.5px dashed var(--lapis);
}
.folha-texto details > :not(summary) {
	margin: 0.9rem 1.2rem 1rem;
}

/* Termos */
.folha-texto dl {
	margin: 1.4rem 0;
}
.folha-texto dt {
	font-family: var(--titulo);
	font-weight: 700;
	font-size: 1.1rem;
	margin-top: 1rem;
}
.folha-texto dd {
	margin: 0.3rem 0 0;
	padding-left: 1rem;
	border-left: 2.5px dashed var(--marcador);
}

/* Lição em destaque */
.folha-texto blockquote {
	position: relative;
	margin: 2.2rem 0;
	padding: 1.2rem 0 1.2rem;
	border-top: 2.5px dashed var(--traco);
	border-bottom: 2.5px dashed var(--traco);
	font-family: var(--titulo);
	font-weight: 800;
	font-size: clamp(1.4rem, 2.4vw, 1.85rem);
	line-height: 1.2;
}
.folha-texto blockquote p {
	margin: 0;
}
.folha-texto blockquote p + p {
	margin-top: 0.6rem;
	font-family: var(--texto);
	font-weight: 500;
	font-size: 1.05rem;
}
.folha-texto blockquote strong {
	font-weight: 900;
	text-decoration: underline 0.16em var(--marcador);
	text-underline-offset: 0.1em;
	text-decoration-skip-ink: none;
}

/* ---------- Artigo ---------- */
.artigo-topo {
	margin-top: clamp(1.6rem, 4vw, 3.2rem);
	padding: clamp(1.5rem, 4vw, 3.2rem);
}
.artigo-topo-grade {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(1.2rem, 3vw, 3rem);
	align-items: center;
}
.artigo-topo h1 {
	font-weight: 900;
	font-size: clamp(2.1rem, 4.4vw, 3.9rem);
	line-height: 1;
	letter-spacing: -0.025em;
	margin: 0.2rem 0 1rem;
}
.artigo-resumo {
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	line-height: 1.45;
	max-width: 32em;
	margin: 0;
}
.artigo-figura {
	margin: 0;
	border: 2.5px solid var(--traco);
	line-height: 0;
	background: var(--manilha);
	transform: rotate(1.2deg);
}
.artigo-figura img {
	width: 100%;
	height: auto;
}
.autoria-molde {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-top: clamp(1.4rem, 3vw, 2.2rem);
	padding-top: 1.1rem;
	border-top: 2px dashed var(--lapis);
}
.autoria-molde img {
	flex: none;
	width: 3rem;
	height: 3rem;
}
.autoria-molde-nome {
	font-family: var(--titulo);
	font-weight: 800;
	font-size: 1.05rem;
	line-height: 1.2;
	margin: 0;
}
.autoria-molde-nome span {
	display: block;
	font-family: var(--texto);
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--apagado);
}
.autoria-molde .fio {
	flex: 1;
	min-width: 12rem;
}
.artigo-miolo {
	position: relative;
	padding-block: clamp(1.5rem, 4vw, 3rem) 1rem;
}
.artigo-corpo > p:first-child {
	font-size: 1.22rem;
	line-height: 1.5;
}
.artigo-pe {
	padding-block: 1rem 3rem;
}
.ficha-equipe {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem 1.3rem;
	align-items: start;
	max-width: 44rem;
	margin: 1rem 0 2.5rem clamp(0rem, 7vw, 7rem);
}
.ficha-equipe img {
	width: 4.2rem;
	height: 4.2rem;
}
.ficha-equipe h2 {
	font-weight: 800;
	font-size: 1.3rem;
	margin-bottom: 0.4rem;
}
.ficha-equipe p {
	margin: 0;
	font-size: 1.02rem;
	color: var(--apagado);
}
.mais-ideias h2 {
	font-weight: 900;
	font-size: clamp(1.8rem, 3.2vw, 2.6rem);
	margin: 0 0 1.4rem;
}
.mais-ideias-grade {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: 1.8rem;
	align-items: start;
}
.mais-ideias-grade > :nth-child(2n) {
	transform: rotate(1.1deg);
	margin-top: 1.4rem;
}
.mais-ideias-grade > :nth-child(2n + 1) {
	transform: rotate(-0.8deg);
}

/* A pergunta no fim do artigo */
.pergunta {
	margin: 2.6rem 0 1rem;
}

/* ---------- Arquivo do nicho, busca, 404 ---------- */
.arquivo-topo {
	margin-top: clamp(1.6rem, 4vw, 3.2rem);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1rem 2rem;
	align-items: end;
}
.arquivo-topo h1 {
	font-weight: 900;
	font-size: clamp(3rem, 9vw, 7.4rem);
	line-height: 0.9;
	letter-spacing: -0.04em;
}
.arquivo-topo p {
	margin: 1rem 0 0;
	max-width: 34em;
	font-size: 1.15rem;
}
.arquivo-contagem {
	margin: 0;
	font-family: var(--titulo);
	font-weight: 700;
	font-size: 1.05rem;
	white-space: nowrap;
}
.arquivo-lista {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 2.4rem clamp(1rem, 2.5vw, 2.4rem);
	padding-block: clamp(2rem, 5vw, 3.5rem);
	align-items: start;
}
.arquivo-lista > * {
	grid-column: span 6;
}
.arquivo-lista > :nth-child(4n + 1) {
	grid-column: 1 / span 7;
	transform: rotate(-0.9deg);
}
.arquivo-lista > :nth-child(4n + 2) {
	grid-column: 8 / span 5;
	margin-top: 3.5rem;
	transform: rotate(1.3deg);
}
.arquivo-lista > :nth-child(4n + 3) {
	grid-column: 2 / span 5;
	transform: rotate(1deg);
}
.arquivo-lista > :nth-child(4n + 4) {
	grid-column: 7 / span 6;
	margin-top: 2rem;
	transform: rotate(-1.2deg);
}
.arquivo-lista > :only-child {
	grid-column: 1 / span 8;
}
.paginas-nav {
	display: flex;
	gap: 1.2rem;
	padding-bottom: 3rem;
	font-family: var(--titulo);
	font-weight: 700;
}
.peca-vazia {
	padding-block: clamp(2rem, 6vw, 5rem);
}
.peca-vazia-desenho {
	width: min(22rem, 70vw);
	margin-bottom: 1.5rem;
}
.peca-vazia h1 {
	font-weight: 900;
	font-size: clamp(2.4rem, 6vw, 4.6rem);
	line-height: 0.95;
	letter-spacing: -0.03em;
	margin-bottom: 1rem;
}
.peca-vazia p {
	max-width: 32em;
	font-size: 1.15rem;
}
.trilhas {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}
.trilhas a {
	display: inline-block;
	padding: 0.55rem 1.2rem;
	font-family: var(--titulo);
	font-weight: 700;
	color: var(--traco);
	text-decoration: none;
	background: var(--giz);
	border: var(--borda) solid var(--traco);
	clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.trilhas a:hover {
	background: var(--marcador);
}

/* ---------- Páginas institucionais e políticas ---------- */
.pagina-topo {
	margin-top: clamp(1.6rem, 4vw, 3.2rem);
	max-width: 52rem;
}
.pagina-topo h1 {
	font-weight: 900;
	font-size: clamp(2.3rem, 5.4vw, 4.4rem);
	line-height: 0.98;
	letter-spacing: -0.03em;
	margin-bottom: 0.8rem;
}
.pagina-topo p {
	margin: 0;
	font-size: 1.2rem;
	max-width: 34em;
	color: var(--apagado);
}
.pagina-topo .fio {
	margin-top: 1.2rem;
	max-width: 32rem;
}
.pagina-miolo {
	padding-block: clamp(1.2rem, 3vw, 2.4rem) clamp(2.5rem, 6vw, 4.5rem);
}
.peca-folha--sobre .pagina-miolo .tira {
	margin-left: clamp(0rem, 7vw, 7rem);
}
.peca-folha--politica .folha-texto h2 {
	font-size: clamp(1.35rem, 2.1vw, 1.7rem);
}

/* ---------- Rodapé ---------- */
.barra {
	padding-bottom: 2.5rem;
	margin-top: 1rem;
}
.barra .linha-corte {
	margin: 0 0 2rem;
	flex-direction: row-reverse;
}
.barra .linha-corte svg {
	transform: scaleX(-1);
}
.barra-grade {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 2rem clamp(1.5rem, 5vw, 5rem);
}
.barra-marca {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.3rem 1rem;
	align-items: start;
}
.barra-marca img {
	grid-row: span 2;
	width: 3.6rem;
	height: 3.6rem;
}
.barra-nome {
	margin: 0;
	font-family: var(--titulo);
	font-weight: 900;
	font-size: 1.5rem;
	line-height: 1.1;
}
.barra-marca p {
	margin: 0;
	color: var(--apagado);
}
.barra-marca .barra-nome {
	color: var(--traco);
}
.barra-editor {
	margin: 1.2rem 0 0;
	font-size: 1rem;
}
.barra-menu ul {
	columns: 2 12rem;
	column-gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.barra-menu li {
	break-inside: avoid;
	margin-bottom: 0.45rem;
}
.barra-menu a {
	font-family: var(--titulo);
	font-weight: 600;
	color: var(--traco);
	text-decoration-color: var(--lapis);
}
.barra-menu a:hover {
	color: var(--ligacao);
}
.barra-direitos {
	margin: 2rem 0 0;
	font-size: 0.95rem;
	color: var(--apagado);
}

/* ---------- Publicidade: o espaço que sobra no encaixe ---------- */
.encaixe {
	position: relative;
	clear: both;
	margin: 2.6rem 0;
	padding: 2rem 1rem 1rem;
	text-align: center;
	border: 2px dashed var(--lapis);
	background-color: rgba(251, 248, 239, 0.45);
	background-image: repeating-linear-gradient(-45deg, rgba(138, 129, 112, 0.14) 0 2px, transparent 2px 11px);
}
.encaixe iframe {
	display: block;
	margin: 0 auto;
	border: 0;
	max-width: 100%;
	background: var(--giz);
}
.marcacao {
	position: absolute;
	top: -0.85rem;
	left: 1rem;
	padding: 0.1rem 0.6rem;
	font-family: var(--titulo);
	font-weight: 600;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--apagado);
	background: var(--manilha);
	border: 1.5px solid var(--lapis);
}
.encaixe-casa {
	max-width: 62rem;
}

/* ---------- Escolha sobre cookies: o aviso, a escolha e o estado ---------- */
.riscado {
	position: fixed;
	left: 50%;
	bottom: 1rem;
	z-index: 40;
	width: min(100% - 2rem, 46rem);
	transform: translateX(-50%);
	padding: 1.1rem 1.3rem 1.1rem;
	background: var(--giz);
	border: var(--borda) solid var(--traco);
	box-shadow: 6px 6px 0 var(--traco);
	font-size: 1rem;
	line-height: 1.45;
}
.riscado::before {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1.5px dashed var(--lapis);
	pointer-events: none;
}
.riscado p {
	position: relative;
	margin: 0 0 0.8rem;
}
.riscado a {
	font-weight: 700;
}
.riscado button,
.recorte button {
	position: relative;
	min-width: 8.5rem;
	margin: 0 0.5rem 0.2rem 0;
	padding: 0.55rem 1.3rem;
	font-family: var(--titulo);
	font-weight: 700;
	font-size: 1.02rem;
	line-height: 1.2;
	color: var(--traco);
	background: var(--manilha);
	border: var(--borda) solid var(--traco);
	border-radius: 0;
	cursor: pointer;
}
.riscado button:hover,
.recorte button:hover {
	background: var(--marcador);
}
div.recorte {
	position: relative;
	margin: 1.8rem 0;
	padding: 1.3rem 1.4rem 1.1rem;
	background: var(--giz);
	border: 2px solid var(--traco);
}
div.recorte p {
	margin: 0 0 0.9rem;
}
.alfinete {
	font-family: var(--titulo);
	font-weight: 700;
}
.alfinete:empty {
	display: none;
}
.alfinete::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 0.5rem;
	background: var(--marcador);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* A pergunta do artigo, quando a página tem uma */
fieldset.recorte {
	--corte: polygon(0 0, calc(40% - 12px) 0, 40% 15px, calc(40% + 12px) 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
	position: relative;
	isolation: isolate;
	min-width: 0;
	margin: 0;
	padding: clamp(1.4rem, 4vw, 2.4rem);
	border: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}
fieldset.recorte::before,
fieldset.recorte::after {
	content: "";
	position: absolute;
	clip-path: var(--corte);
	z-index: -1;
}
fieldset.recorte::before {
	inset: 0;
	background: var(--traco);
}
fieldset.recorte::after {
	inset: var(--borda);
	background: var(--marcador);
}
fieldset.recorte legend {
	float: left;
	width: 100%;
	padding: 0;
	margin: 0 0 0.6rem;
	font-family: var(--titulo);
	font-weight: 800;
	font-size: clamp(1.45rem, 3vw, 2rem);
	line-height: 1.12;
}
fieldset.recorte p {
	margin: 0;
}
fieldset.recorte button {
	min-width: 7.5rem;
	padding: 0.7rem 1.5rem;
	font-size: 1.15rem;
	background: var(--giz);
	clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
fieldset.recorte button:hover {
	background: var(--manilha);
}
fieldset.recorte button:focus-visible {
	outline: 3px solid var(--traco);
	outline-offset: -8px;
	box-shadow: none;
}

/* ---------- Movimento: só a chegada das peças na página inicial ---------- */
@media (prefers-reduced-motion: no-preference) {
	.mesa-pecas > * {
		animation: pousar 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
	}
	.mesa-sobre {
		animation-delay: 0.16s;
	}
	.mesa-destaque {
		animation-delay: 0.08s;
	}
}
@keyframes pousar {
	from {
		opacity: 0;
		translate: 0 -1.4rem;
		rotate: -3deg;
	}
	to {
		opacity: 1;
		translate: 0 0;
		rotate: 0deg;
	}
}

/* ---------- Telas largas: dicas e figuras saem da coluna ---------- */
@media (min-width: 72em) {
	.artigo-corpo aside {
		float: right;
		clear: right;
		width: 18rem;
		margin: 0.3rem -12.5rem 1.2rem 1.6rem;
	}
	.artigo-corpo figure {
		width: calc(100% + 12rem);
	}
	.artigo-corpo .encaixe {
		width: calc(100% + 12rem);
	}
	.artigo-corpo table,
	.artigo-corpo figure,
	.artigo-corpo blockquote,
	.artigo-corpo details,
	.artigo-corpo .encaixe,
	.artigo-corpo .pergunta {
		clear: right;
	}
}

/* ---------- Telas médias e pequenas ---------- */
@media (max-width: 60em) {
	.mesa-frase {
		grid-column: 1 / -1;
	}
	.mesa-destaque {
		grid-column: 2 / -1;
		grid-row: auto;
		margin-top: 0.5rem;
	}
	.mesa-nicho {
		grid-column: 1 / span 7;
		grid-row: auto;
	}
	.mesa-sobre {
		grid-column: 7 / -1;
		grid-row: auto;
		margin-top: 2.5rem;
	}
	.artigo-topo-grade {
		grid-template-columns: 1fr;
	}
	.artigo-figura {
		max-width: 34rem;
	}
	.arquivo-lista > *,
	.arquivo-lista > :nth-child(n) {
		grid-column: 1 / -1;
		margin-top: 0;
	}
	.barra-grade {
		grid-template-columns: 1fr;
	}
	.tira,
	.ficha-equipe {
		margin-left: 0;
	}
}
@media (max-width: 40em) {
	:root {
		--canto: 16px;
	}
	body {
		font-size: 1.0625rem;
	}
	.gola-faixa {
		align-items: flex-start;
		flex-direction: column;
	}
	.trilho ul {
		gap: 0.1rem 1.3rem;
	}
	.mesa-destaque,
	.mesa-nicho,
	.mesa-sobre {
		grid-column: 1 / -1;
		margin-top: 0.6rem;
	}
	.arquivo-topo {
		grid-template-columns: 1fr;
	}
	.autoria-molde {
		flex-wrap: wrap;
	}
	.autoria-molde .fio {
		flex-basis: 100%;
	}
	.ficha-equipe {
		grid-template-columns: 1fr;
	}
	.riscado {
		bottom: 0.5rem;
		box-shadow: 4px 4px 0 var(--traco);
	}
	.riscado button {
		min-width: 0;
		flex: 1;
	}
	fieldset.recorte p {
		flex: 1 1 6rem;
	}
	fieldset.recorte button {
		width: 100%;
		min-width: 0;
	}
	.folha-texto table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		background:
			linear-gradient(to right, var(--giz) 30%, rgba(251, 248, 239, 0)) left / 2.5rem 100% no-repeat local,
			linear-gradient(to left, var(--giz) 30%, rgba(251, 248, 239, 0)) right / 2.5rem 100% no-repeat local,
			radial-gradient(farthest-side at 0 50%, rgba(34, 29, 22, 0.3), transparent) left / 0.9rem 100% no-repeat scroll,
			radial-gradient(farthest-side at 100% 50%, rgba(34, 29, 22, 0.3), transparent) right / 0.9rem 100% no-repeat scroll,
			var(--giz);
	}
	.folha-texto table:has(caption) {
		border-top: 2px solid var(--traco);
	}
	.folha-texto caption {
		border: 0;
		border-bottom: 1.5px dashed var(--lapis);
		background: transparent;
	}
	.folha-texto th,
	.folha-texto td {
		min-width: 8rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}
}
