/*
Theme Name:		Temperança Digital
Theme URI:		https://erika.ia.br/
Author:			Erika Sarti
Author URI:		https://erikasarti.com.br/
Description:	Blog do projeto.
Version:		1.0
*/

/* ----- TABELA DE CORES ----------------------------------------------------------------------- */

:root {
	--espaco:		20px;
	
	--bege:			#f7e9db;
	--bege-claro:	#fdf8f3;
	--azul-claro:	#f5faff;
}

/* ----- RESET --------------------------------------------------------------------------------- */

* {
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	        box-sizing: border-box;
}

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
	border: 0;
	margin: 0;
	padding: 0;
	vertical-align: baseline;
	font-size: 100%;
	font: inherit;
}

html {font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%;}
body {font-size: 1em;}

blockquote, q {quotes: none;}
blockquote:before, blockquote:after, q:before, q:after {content: ''; content: none;}

table {border-collapse: collapse; border-spacing: 0;}
td {vertical-align: top;}

a:hover, a:active {outline: 0;}

p, pre {margin-bottom: 1.5em;}

strong, b {font-weight: bold;}
em, i {font-style: italic;}
pre, code, tt {font: 1em/1.5em monospace;}
sup {line-height: 100%; font-size: 70%; vertical-align: top;}
sub {line-height: 100%; font-size: 70%; vertical-align: bottom;}
small {font-size: 80%;}
del, strike {text-decoration: line-through;}

img {display: block; -ms-interpolation-mode: bicubic; vertical-align: middle;}

button, input, select, textarea {font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle;}
label {cursor: pointer;}
legend {border: 0; padding: 0; white-space: normal;}
button, input {line-height: normal;}
button, input[type="button"], input[type="reset"], input[type="submit"] {cursor: pointer; -webkit-appearance: button; *overflow: visible;}
button[disabled], input[disabled] {cursor: default;}
input[type="checkbox"], input[type="radio"] {box-sizing: border-box; padding: 0; *width: 13px; *height: 13px;}
input[type="search"] {-webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box;}
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button {-webkit-appearance: none;}
button::-moz-focus-inner, input::-moz-focus-inner {border: 0; padding: 0;}
textarea {overflow: auto; vertical-align: top; resize: vertical;}


/* ----- ELEMENTOS BÁSICOS --------------------------------------------------------------------- */

body {
	color: #222;
}

img {
}

a,
a:link,
a:visited {
	color: #333;
	text-decoration: underline;
}

.clear {
	height: 0;
	clear: both;
}

.hidden {
	display: none;
}

.container {
	max-width: 1000px;
	margin: auto;
	padding: var(--espaco);
}

.aligncenter {
	text-align: center;
}

@media only screen and (min-width: 600px) {

	.container {
		/* padding: calc( var(--espaco) * 2 ); */
	}

}


/* ----- TIPOGRAFIA ---------------------------------------------------------------------------- */

@font-face {
	font-family: 'Essays1743';
	src: url('fonts/Essays1743.woff2') format('woff2'),
	     url('fonts/Essays1743.woff') format('woff');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

* {
	font-optical-sizing: auto;
}

body,
button,
input,
select,
textarea {
	font-family: "Fira Sans", sans-serif;
	font-size: 20px;
	font-weight: 300;
}

body {
	line-height: 1.4;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1;
}

strong {
	font-weight: 400;
}

#site-titulo .titulo {
	line-height: 1;
	font-family: "Essays1743", sans-serif;
}

.post-titulo {
	line-height: 1;
	font-family: "Essays1743", sans-serif;
}

.titulo-404 {
	line-height: 1;
	font-family: "Essays1743", sans-serif;
}

.wp-block-code code {
	font-family: "Roboto Mono", monospace;
	font-size: 18px;
	font-weight: 300;
}

.wp-block-code code strong {
	font-weight: 400;
}


/* ----- CABEÇALHO ----------------------------------------------------------------------------- */

#header {}

#header .container {
	margin-top: calc( var(--espaco) * 2 );
	display: grid;
	gap: calc( var(--espaco) / 2 );
	grid-template-columns: 1fr;
}

#site-titulo {
	color: #222;
	margin: 0 0 var(--espaco);
	text-decoration: none;
}

#site-titulo .titulo {
	margin: 0 0 0.3em;
	font-size: 32px;
	word-spacing: -8px;
}

#site-titulo .subtitulo {
	font-size: 18px;
	font-weight: 300;
	margin: 0;
}

@media (min-width: 600px) {

	#header .container {
		gap: calc( var(--espaco) * 2 );
		grid-template-columns: 1fr 200px;
	}

	#site-titulo .titulo {
		font-size: 48px;
		word-spacing: -12px;
	}

}


/* ----- MENU SOCIAL --------------------------------------------------------------------------- */

.menu-social-container {}

.menu-social-container .menu {
	list-style: none;
	margin: auto;
	width: auto;
	display: table;
}

.menu-social-container .menu li {
	display: table-cell;
}

.menu-social-container .menu a {
	background-image: url(https://erikasarti.com.br/images/icone-preto-web.svg);
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-position: center center;
	width: 24px;
	height: 24px;
	margin: 5px;
	display: block;
	text-indent: -10000px;
}

.menu-social-container .menu a[href*="threads.com"] {
	background-image: url(https://erikasarti.com.br/images/icone-preto-threads.svg);
}

.menu-social-container .menu a[href*="instagram.com"] {
	background-image: url(https://erikasarti.com.br/images/icone-preto-instagram.svg);
}

.menu-social-container .menu a[href*="x.com"] {
	background-image: url(https://erikasarti.com.br/images/icone-preto-x.svg);
}

.menu-social-container .menu a[href*="amazon.com"] {
	background-image: url(https://erikasarti.com.br/images/icone-preto-amazon.svg);
}

.menu-social-container .menu a[href*="bsky.app"] {
	background-image: url(https://erikasarti.com.br/images/icone-preto-bluesky.svg);
}

.menu-social-container .menu a[href*="medium.com"] {
	background-image: url(https://erikasarti.com.br/images/icone-preto-medium.jpeg);
}

@media (min-width: 600px) {

	#header .menu-social-container {
		justify-self: right;
	}

	#rodape .menu-social-container {
		justify-self: left;
	}

}


/* ----- LISTA DE POSTS ------------------------------------------------------------------------ */

.pagina {
	min-height: 600px;
}

.pagina-titulo {
	margin: 0.5em auto calc( var(--espaco) * 2 );
	font-size: 18px;
	font-weight: 400;
}

#posts-lista {
	list-style: none;
	margin: 0;
	padding: 0;
}

.post-item {
	background: #fff;
	width: 100%;
	margin: 0 0 calc( var(--espaco) * 4 );
	display: inline-block;
}

.pagina-index .post-item {
	border-bottom: 1px solid #ddd;
	padding-bottom: calc( var(--espaco) * 4 );
}

.post-titulo {
	color: #1E0F02;
	margin-bottom: var(--espaco);
	display: block;
	font-size: 32px;
	word-spacing: -5px;
}

.post-titulo,
.post-titulo:link,
.post-titulo:visited {
	text-decoration: none;
}

/* gambiarra para animar a transição do link, porque só background não anima */
.post-texto a,
.post-texto a:link,
.post-texto a:visited {
    background-image: linear-gradient(var(--bege), var(--bege));
    background-repeat: no-repeat;
    background-size: 100% 30%;
    background-position: 0 100%;
    text-decoration: none;
    transition: background-size .3s ease;
}

.post-texto a:hover {
    background-size: 100% 50%;
}

.post-imagem img {
	width: 100%;
	max-width: 350px;
	height: auto;
	margin: 0 auto calc( var(--espaco) * 2 );
}

.post-meta {
	font-size: 14px;
}

.titulo-404 {
	margin-top: calc( var(--espaco) * 8 );
	margin-bottom: calc( var(--espaco) / 2 );
	font-size: 48px;
	text-align: center;
	word-spacing: -5px;
}

.texto-404 {
	text-align: center;
}

@media (min-width: 600px) {

	.post-item.duas-colunas {
		display: grid;
		gap: var(--espaco);
		grid-template-columns: 150px 1fr;
	}

	.post-titulo {
		font-size: 42px;
		word-spacing: -8px;
	}	

}

@media (min-width: 800px) {

	.post-item.duas-colunas {
		gap: calc( var(--espaco) * 2 );
		grid-template-columns: 250px 1fr;
	}

}

@media (min-width: 1024px) {

	.post-item.duas-colunas {
		grid-template-columns: 300px 1fr;
	}

}


/* ----- PAGINAÇÃO ----------------------------------------------------------------------------- */

#paginacao {
	margin: 0 auto;
	display: table;
	line-height: 1;
	font-weight: 400;
	text-align: center;
}

#paginacao span {
	padding: calc( var(--espaco) / 4 ) calc( var(--espaco) / 2 );
}

#paginacao a {
	border-radius: 5px;
	padding: 5px 8px;
	text-decoration: none;
}

#paginacao a:hover {
	background: var(--bege);
}

#paginacao .current {
	color: #999;
	margin: 5px 8px;
}


/* ----- BUSCA -------------------------------------------------------------------------------- */

#busca {}

#busca .busca-texto,
#busca .busca-botao {
	border: 1px solid #ddd;
	padding: calc( var(--espaco) / 2 );
}

#busca .busca-texto {
	width: 90%;
	border-radius: 5px 0 0 5px;
	border-right: none;
}

#busca .busca-botao {
	background-color: #ddd;
	background-image: url(https://erikasarti.com.br/images/icone-preto-busca.svg);
	background-repeat: no-repeat;
	background-size: 24px;
	background-position: center center;
	color: transparent;
	border-radius: 0 5px 5px 0;
	width: 10%;
	border-left: none;
}


/* ----- MAIS ELEMENTOS ------------------------------------------------------------------------ */

.wp-block-image,
.wp-block-columns {
	margin-bottom: 1.5em;
}

.wp-block-code {
	background-color: var(--bege-claro);
	padding: 20px;
}

.wp-block-code.ia {
	background-color: var(--azul-claro);
}

.wp-element-caption {
	color: #666;
	font-size: 16px;
}

.instagram-media {
	margin: 0 auto 1.5em !important;
}

/* ----- RODAPÉ -------------------------------------------------------------------------------- */

#rodape {
	color: #333;
	font-size: 16px;
}

#rodape .container {
	border-top: 1px solid #ddd;
	margin-top: calc( var(--espaco) * 4 );
	padding-top: calc( var(--espaco) * 4 );
}

#rodape .widgets {
	margin-bottom: calc( var(--espaco) * 2 );
}

#desenvolvido-por {
	margin: calc( var(--espaco) * 4 ) 0 calc( var(--espaco) * 2 );
	text-align: center;
}

#desenvolvido-por a,
#desenvolvido-por a:link,
#desenvolvido-por a:visited {
    background-image: linear-gradient(var(--bege), var(--bege));
    background-repeat: no-repeat;
    background-size: 100% 30%;
    background-position: 0 100%;
    text-decoration: none;
    transition: background-size .3s ease;
}

#desenvolvido-por a:hover {
    background-size: 100% 50%;
}

@media (min-width: 1024px) {
	
	#rodape .container {
		display: grid;
		gap: calc( var(--espaco) * 2 );
		grid-template-columns: repeat(2, 1fr);
	}

}