/* =========================================================================
   Tema "Claustro" para GetSimple CE
   Minimalista, sóbrio, de inspiração portuguesa — papel, tinta, azulejo.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,500;0,600;1,500&family=EB+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

:root{
	--papel:      #F4F1E6; /* fundo, papel velho */
	--tinta:      #20231F; /* texto principal */
	--tinta-suave:#4A4E45; /* texto secundário */
	--verde:      #1E3A2F; /* verde-garrafa — acento principal */
	--azulejo:    #2C4A63; /* azul de azulejo — ligações */
	--ouro:       #9C7A3C; /* ouro velho — filetes e detalhe */
	--linha:      #D9D2BD; /* filete fino */
	--largura-leitura: 680px;
}

*{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; }

body{
	margin: 0;
	background: var(--papel);
	color: var(--tinta);
	font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

.moldura{
	max-width: var(--largura-leitura);
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* -------------------------------------------------------------------------
   Cabeçalho
   ------------------------------------------------------------------------- */

.cabecalho{
	padding: 3.5rem 0 1.5rem;
	text-align: center;
	border-bottom: 1px solid var(--linha);
}

.titulo-sitio{
	display: inline-block;
	font-family: 'Cormorant', Georgia, serif;
	font-weight: 600;
	font-size: 2.1rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--verde);
	text-decoration: none;
}

.lema{
	margin: 0.4rem 0 0;
	font-style: italic;
	font-size: 1rem;
	color: var(--tinta-suave);
}

.ornamento{
	margin: 1.1rem 0;
	color: var(--ouro);
	display: flex;
	justify-content: center;
}

.ornamento--pequeno svg{ width: 20px; height: 20px; }

.navegacao{ margin-top: 0.75rem; }

.navegacao ul{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem 1.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.navegacao li a{
	font-family: 'EB Garamond', serif;
	font-size: 0.82rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tinta);
	text-decoration: none;
	padding-bottom: 0.15rem;
	border-bottom: 1px solid transparent;
}

.navegacao li a:hover,
.navegacao li.current a{
	color: var(--azulejo);
	border-bottom-color: var(--ouro);
}

/* -------------------------------------------------------------------------
   Caminho (breadcrumbs)
   ------------------------------------------------------------------------- */

.caminho{
	padding-top: 1rem;
	font-size: 0.82rem;
	letter-spacing: 0.03em;
	color: var(--tinta-suave);
}

.caminho a{ color: var(--azulejo); text-decoration: none; }
.caminho a:hover{ text-decoration: underline; }
.caminho .current{ color: var(--tinta); }

/* -------------------------------------------------------------------------
   Conteúdo
   ------------------------------------------------------------------------- */

main.moldura{ padding: 2.75rem 1.5rem 4rem; }

.conteudo h1{
	font-family: 'Cormorant', Georgia, serif;
	font-weight: 600;
	font-size: 2.5rem;
	line-height: 1.15;
	margin: 0 0 1.6rem;
	color: var(--verde);
}

.conteudo h2{
	font-family: 'Cormorant', Georgia, serif;
	font-weight: 600;
	font-size: 1.6rem;
	margin: 2.2rem 0 0.9rem;
	color: var(--verde);
}

.conteudo h3{
	font-family: 'Cormorant', Georgia, serif;
	font-weight: 600;
	font-size: 1.3rem;
	margin: 1.8rem 0 0.7rem;
}

.conteudo p{ margin: 0 0 1.1rem; }

.conteudo a{ color: var(--azulejo); text-decoration: underline; text-decoration-color: var(--linha); }
.conteudo a:hover{ text-decoration-color: var(--azulejo); }

.conteudo blockquote{
	margin: 1.6rem 0;
	padding: 0.2rem 0 0.2rem 1.2rem;
	border-left: 2px solid var(--ouro);
	font-style: italic;
	color: var(--tinta-suave);
}

.conteudo ul, .conteudo ol{ padding-left: 1.4rem; margin: 0 0 1.1rem; }
.conteudo li{ margin-bottom: 0.35rem; }

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

.conteudo hr{
	border: none;
	border-top: 1px solid var(--linha);
	margin: 2.4rem 0;
}

.conteudo table{
	width: 100%;
	border-collapse: collapse;
	margin: 1.4rem 0;
	/* Em ecrãs estreitos a tabela passa a deslizar lateralmente em vez de
	   espremer as colunas; em ecrãs largos isto não tem efeito visível. */
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	white-space: nowrap;
}

.conteudo th, .conteudo td{ border-bottom: 1px solid var(--linha); padding: 0.5rem 0.6rem; text-align: left; }
.conteudo th{ font-family: 'EB Garamond', serif; font-weight: 600; }

@media (min-width: 541px){
	.conteudo table{ white-space: normal; }
}

/* Blocos de código ou texto pré-formatado: deslizam em vez de partir o
   layout, mantendo a indentação intacta. */
.conteudo pre{
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0.9rem 1rem;
	background: #ECE8D8;
	border: 1px solid var(--linha);
	font-size: 0.92rem;
	line-height: 1.55;
}

.conteudo code{
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.92em;
	word-break: break-word;
}

.conteudo pre code{ word-break: normal; white-space: pre; }

/* Palavras e ligações compridas (URLs, fórmulas) não devem alargar a
   coluna nem provocar scroll horizontal na página toda. */
.conteudo{ overflow-wrap: break-word; word-wrap: break-word; }

/* Vídeos ou outros conteúdos incorporados nunca excedem a coluna. */
.conteudo iframe, .conteudo embed, .conteudo video, .conteudo object{
	max-width: 100%;
}

/* -------------------------------------------------------------------------
   Subpáginas / navegação adjacente
   ------------------------------------------------------------------------- */

.subpaginas{
	margin-top: 2.6rem;
	padding-top: 1.6rem;
	border-top: 1px solid var(--linha);
}

.subpaginas h2{ font-size: 1.2rem; margin-top: 0; }

.subpaginas ul.child-pages{
	list-style: none;
	padding: 0;
	margin: 0;
}

.subpaginas ul.child-pages li{ margin-bottom: 0.45rem; }
.subpaginas ul.child-pages a{ color: var(--azulejo); text-decoration: none; }
.subpaginas ul.child-pages a:hover{ text-decoration: underline; }

.navegacao-adjacente{
	display: flex;
	justify-content: space-between;
	margin-top: 2.4rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--linha);
	font-size: 0.85rem;
	letter-spacing: 0.03em;
}

.navegacao-adjacente a{ color: var(--azulejo); text-decoration: none; }
.navegacao-adjacente a:hover{ text-decoration: underline; }

/* -------------------------------------------------------------------------
   Rodapé
   ------------------------------------------------------------------------- */

.rodape{
	border-top: 1px solid var(--linha);
	padding: 2rem 0 3rem;
	text-align: center;
}

.creditos{
	margin: 0.6rem 0 0;
	font-size: 0.78rem;
	letter-spacing: 0.03em;
	color: var(--tinta-suave);
}

.creditos a{ color: var(--tinta-suave); text-decoration: underline; }

/* -------------------------------------------------------------------------
   Responsivo
   ------------------------------------------------------------------------- */

@media (max-width: 540px){
	.cabecalho{ padding: 2.4rem 0 1.2rem; }
	.titulo-sitio{ font-size: 1.6rem; }
	.navegacao ul{ gap: 0.5rem 1rem; }
	main.moldura{ padding: 2rem 1.25rem 3rem; }
	.conteudo h1{ font-size: 2rem; }
	.navegacao-adjacente{ flex-direction: column; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce){
	*{ scroll-behavior: auto !important; }
}
