/* ----------------------------------------------------------
   Configurações gerais
   ---------------------------------------------------------- */

/* Preto suavizado para textos e títulos */
:root {
  --color-text: #242222;
}

/* Cor de fundo geral do site */
body {
  background-color: #F8F7F3 !important;
}

/* Fournier MT Std – Regular */
@font-face {
  font-family: 'FournierTest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/FournierMTStdRegular.otf') format('opentype');
}

/* Fournier MT Std – Italic */
@font-face {
  font-family: 'FournierTest';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/FournierMTStdItalic.otf') format('opentype');
}

/* Aplicação no site */
body {
  font-family: 'FournierTest', serif;
  font-size: 1.20rem; /* aumento suave */
}

/* Aumentar o tamanho da fonte do menu */
nav a {
  font-size: 1.5rem !important; /* era 1.1rem */
}

/* Remove the red hashtags before headings */
h1::before,
h2::before,
h3::before,
h4::before,
h5::before,
h6::before {
  content: none !important;
}

/* Seleção de texto em zul, em vez de vermelho*/
::selection {
  background: #C0DBFE !important;
  color: #000000 !important;
}

/* Seleção de texto em zul, em vez de vermelho, para Mozilla*/
::-moz-selection {
  background: #C0DBFE !important;
  color: #000000 !important;
}



/* Layout em coluna */
.content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content > main {
  flex: 1;
}

/* ----------------------------------------------------------
   HOVER E LINKS 
   ---------------------------------------------------------- */

/* Remove todos os efeitos padrão do Archie para links*/
a {
  border-bottom: none !important;
  background: none !important;
  color: inherit !important;
  text-decoration: none !important;
  outline: none !important;
  transition: none !important;
}

/* Apenas no HOVER o link fica sublinhado */
a:hover,
a:focus {
  text-decoration: underline !important;
  background: none !important;
  color: inherit !important;
  outline: none !important;
}

/* O título do site ("Carlos Martí") nunca deve mudar no hover */
.main a,
.main a:hover,
.main a:focus {
  font-family: 'FournierTest', serif !important;
  font-size: 1.8rem !important;   /* ajuste o número se quiser maior/menor */
  text-decoration: none !important;
  border-bottom: none !important;
  background: none !important;
  color: inherit !important;
  outline: none !important;
}

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */

/* Remover qualquer borda padrão que o tema coloca no footer */
html body footer {
  border: none !important;
  border-top: none !important;
  border-block-start: none !important;
}

/* Repetido por segurança / manter por enquanto */
footer {
  border: none !important;
  border-top: none !important;
  border-block-start: none !important;
}


/* Cor de elementos do footer */
footer {
  color: var(--color-text-meta) !important;
}

/* Cor de elementos do footer */
footer a {
  color: var(--color-text-meta) !important;
  border: none !important;
  background: none !important;
}


/* ----------------------------------------------------------
   CONFIGURAÇÃO DE TEXTOS E TAGS
   ---------------------------------------------------------- */

/* Corpo de leitura */
.content {
  font-family: 'FournierTest', serif;
  font-size: 1.20rem;
}

/* Parágrafos e listas */
.content p,
.content li,
.content blockquote {
  font-family: 'FournierTest', serif;
  font-size: 1.30rem; /* aumento de ~20% */
  line-height: 1.85;
}

/* Título do artigo */
.content article .title h1 {
  font-family: 'FournierTest', serif;
  font-weight: 400;
  font-size: 1.6rem; /* era 1.4 */
  margin-top: 1.5rem;
  letter-spacing: 0;

  /* small caps verdadeiras da Fournier */
  font-variant-caps: small-caps !important;
  font-feature-settings: "smcp" 1 !important;

  letter-spacing: 0.04em;  /* leve respiro tipográfico */
}

/* Data */
.meta {
  font-family: 'FournierTest', serif !important;
  font-size: 1.12rem; /* era 0.9 */
  letter-spacing: -0.02em;
}

/* Aproximar data do título */
.content article .title h1 {
  margin-bottom: 0.2rem !important;
}

/* Estreitamento da coluna */
.content article .body {
  max-width: 95ch;
}

/* Tags */
.tags a {
  font-family: 'FournierTest', serif !important;
  font-weight: 400;
  font-size: 1.15rem !important;
  color: var(--color-text-meta) !important;
  border: none;
  background: none;
  padding: 0;
}

.tags a {
  border: none !important;
  background-color: transparent !important;
}

.tags li::before {
  visibility: hidden;
  margin-inline-start: 0 !important;
  width: 0 !important;
}

/* Lista de tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Aproxima as tags */
.post-content nav.tags {
  margin: 0;
  margin-top: -1.4rem;
  padding-left: 0;
}

/* Distância entre tags e texto */
.post-content nav.tags {
  margin-bottom: 2rem;
}

/* Espaço entre título do site e título do artigo */
header {
  margin-bottom: 5rem !important;
}

/* Título da página Textos */
.page-title {
  font-family: 'FournierTest', serif;
  font-weight: 400;
  font-size: 1.68rem; /* 20% maior */
  margin-top: 1.5rem;
  margin-bottom: 1.2rem !important;
  letter-spacing: 0;
}

/* Remove o asterisco */
.posts li::before {
  content: none !important;
}

/* Lista da página "Todos os textos" */
.lista-textos .post a {
  font-size: 1.35rem; /* era 1.12 */
}

/* Read more */
.read-more a {
  color: #555 !important;
  text-decoration: none;
  font-size: 1.20rem;
}

.read-more a:hover {
  color: #333 !important;
  text-decoration: underline;
}

/* Títulos na página inicial */
.post-title a,
.post-title {
  font-family: 'FournierTest', serif !important;
  font-weight: 400;
  font-size: 1.55rem; /* era 1.3 */
  letter-spacing: 0;
}

/* Sinopse */
.post-synopsis {
  font-family: 'FournierTest', serif !important;
  font-size: 1.32rem; /* era 1.1 */
  line-height: 1.60;
  color: var(--color-text);
}

/* Fix página /tags/ */
.taxonomy-tags .content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.taxonomy-tags .tag-cloud {
  flex: 1;
}

.taxonomy-tags footer {
  margin-top: auto;
}

.content > .tag-cloud {
  flex: 1;
}

/* Distância no fim dos posts */
.content article .body {
  padding-bottom: 0.5rem;
}

/* Títulos nas páginas de tag */
.lista-da-tag .post a {
  font-size: 1.35rem !important; /* era 1.12 */
}

/* Aumenta o tamanho das tags na página /tags/ (a nuvem inteira) */
.tag-cloud a {
  font-size: 1.2rem !important;   /* ajuste como preferir */
  font-family: 'FournierTest', serif !important;
}

/* Navegação entre posts */
.post-nav {
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'FournierTest', serif;
  font-size: 0.96rem; /* era 0.80 */
  padding-right: 1.2rem;
}

/* Links */
.post-nav a {
  color: #555 !important;
  text-decoration: none;
  text-transform: lowercase !important;
}

.post-nav a:hover {
  color: #333 !important;
  text-decoration: underline;
}

/* Alinhamento */
.post-nav-prev {
  text-align: left;
}

.post-nav-next {
  margin-left: auto;
  text-align: right;
}

/* ----------------------------------------------------------
   Lista "Todos os textos" - detalhes de formatação
   ---------------------------------------------------------- */


.posts li.post a::before {
  content: "·";
  font-weight: 400;
  color: var(--color-text);
  margin-right: 1.5rem;   /* ajuste aqui — 0.4 a 0.8rem funciona muito bem */
}

/* Remove o sublinhado padrão do link nessa lista específica */
.lista-textos .post a:hover,
.lista-textos .post a:focus {
  text-decoration: none !important;
}

/* Aplica o sublinhado apenas ao texto interno */
.lista-textos .post a:hover .post-link-text,
.lista-textos .post a:focus .post-link-text {
  text-decoration: underline;
}

/* Ajuste do alinhamento da lista "Todos os textos" */
.lista-textos {
  margin-left: 0.5rem;   /* experimente 1–3rem */
}


/* Aproxima a data do título na página inicial */
.post .post-title {
  margin-bottom: 0.2rem !important;
}

.post .meta {
  margin-top: 0 !important;
}

/* Aproxima o "Ler" da sinopse na página inicial */
.post-synopsis {
  margin-bottom: 0.2rem !important;  /* encosta mais a sinopse no Ler */
}

.post .read-more,
.post .read-more a {
  margin-top: 0 !important;          /* tira o espaço em cima do Ler */
  display: inline-block;             /* garante que a margem funcione bem */
}

/* Mais respiro nas bordas do site inteiro no celular */
@media (max-width: 768px) {
  body {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    box-sizing: border-box;
  }
}

/* Aumenta a distância entre parágrafos no corpo do texto */
.content article .body p {
  margin-bottom: 1.3rem !important;   /* ajuste fino: 1.0–1.6rem */
}

/* Ajuste fino: reduz levemente a distância entre linhas do corpo do texto */
.content article .body p,
.content article .body li,
.content article .body blockquote {
  line-height: 1.70 !important;   /* antes 1.72–1.85 → redução suave */
}

/* ----------------------------------------------------------
   Barra de search em Textos
   ---------------------------------------------------------- */

.search-snippet {
  margin-top: 0.2rem;
  font-size: 0.95em;
  color: var(--color-text-meta);
}

.search-snippet mark {
  background: #C0DBFE;
  padding: 0 0.05em;
}


/* ----------------------------------------------------------
   Formatação fina para o corpo do texto
   ---------------------------------------------------------- */

/* Estilização das citações longas (blockquote) dentro do corpo do post */
.post-content blockquote {
  margin-left: 1.5rem;
  padding-left: 1rem;
  border-left: none;
  font-style: normal;
  color: var(--color-text);   /* força a cor do texto normal */
}

/* Container principal das footnotes */
.post-content .footnotes {
  text-align: left;
  margin-top: 2rem;
  color: var(--color-text);
}

/* Força o tamanho da fonte das footnotes (override total) */
.post-content .footnotes,
.post-content .footnotes *,
.post-content .footnotes ol,
.post-content .footnotes li,
.post-content .footnotes p {
  font-size: 1.15rem !important;   /* ajuste aqui o valor que quiser */
  line-height: 1.45 !important;    /* mantém legibilidade */
}

/* Organização da lista */
.post-content .footnotes ol {
  margin-left: 0;
  padding-left: 1rem;               /* leve indent */
}

.post-content .footnotes li {
  margin-bottom: 0.7rem;
}


/* Container da nota expandida */
.footnote-popover {
  position: absolute;
  background: var(--color-background);
  border: 1px solid #333;
  padding: 0.75rem 1rem;
  max-width: 340px;             /* limite ELEGANTE no desktop */
  width: max-content;           /* fica apenas o necessário */
  box-sizing: border-box;
  font-size: 0.9rem;
  line-height: 1.45;
  border-radius: 0px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  z-index: 200;
  word-wrap: break-word;
}

/* O número da nota vira clicável */
.footnote-ref {
  cursor: pointer;
  text-decoration: underline dotted;
}

/* Remove o link de retorno da nota (a setinha ↩︎) */
.footnotes a[href^="#fnref"] {
  display: none;
}

/* Linha minimalista antes das notas de rodapé — alinhada à esquerda */
.footnotes hr {
  display: block !important;
  border: 0 !important;
  border-top: 1px solid #999 !important; /* linha fina */
  width: 12rem !important;               /* comprimento da linha */
  margin: 2.4rem 0 1.6rem 0 !important; /* alinhada à esquerda */
  height: 0 !important;
  padding: 0 !important;
  opacity: 0.7 !important;
}

/* Formatação do after-post-text */

.after-post-wrapper {
  margin-top: 3rem;
  margin-bottom: 3rem;
  max-width: 95ch;     /* alinha com o corpo do texto */
}

.asterism {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 3rem;  /* aproxima elegantemente do texto */
  opacity: 0.60;
  letter-spacing: 0.12rem;
}

.after-post-text {
  font-size: 1.3rem;
  font-style: italic;
  color: rgba(0,0,0,0.55);
  line-height: 1.55;
  text-align: center;
  margin-left: 4rem;     /* leve deslocamento à direita */
  margin-right: 4rem;    /* leve limite à direita */
  
}


.after-post-wrapper a,
.after-post-text a,
.after-post-wrapper .after-post-text a {
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 2px !important;
  color: inherit !important;
}

/* ----------------------------------------------------------
   Responsividade do after-post-text
   (reduz margens laterais no mobile)
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .after-post-text {
    margin-left: 2rem;
    margin-right: 2rem;
  }
}

@media (max-width: 480px) {
  .after-post-text {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
}


/* ----------------------------------------------------------
   Espaçamento da nuvem de tags na página "Todos os textos"
   ---------------------------------------------------------- */
.textos-tag-cloud {
  margin-bottom: 2rem;
}

/* ----------------------------------------------------------
   Texto introdutório na página "Todos os textos"
   (fica entre o título e a nuvem de tags)
   ---------------------------------------------------------- */
.textos-intro {
  font-family: 'FournierTest', serif;
  font-size: 1.1rem;
  font-style: italic;                /* tom editorial */
  color: rgba(0,0,0,0.55);           /* cinza suave */
  line-height: 1.6;
  margin: 1rem 0 2.2rem 0;           /* espaçamento elegante */
  max-width: 65ch;                   /* largura controlada */
}

#search-box input#search-input {
  border: 1px solid #DDDDDD;   /* cinza suave */
  outline: none !important;
  box-shadow: none !important;
  background: #F7F6F2;         /* igual ao fundo */
  border-radius: 4px;
}

/* Altura mais elegante da barra de busca */
#search-box input#search-input {
  padding-top: 0.60rem !important;   /* diminui a altura */
  padding-bottom: 0.60rem !important;
  padding-left: 1rem !important;     /* mantém confortável */
  padding-right: 1rem !important;
}

/* Aproxima a barra de busca das tags na página Textos */
#search-box {
  margin-bottom: 0.85rem !important;  /* tente 0.3–0.8rem até ficar perfeito */
}

@media (max-width: 600px) {
  #search-box input#search-input {
    width: 100% !important;
    font-size: 16px !important;   /* evita o zoom do iPhone */
    box-sizing: border-box;       /* garante que padding não estoure a largura */
  }
}


/* ----------------------------------------------------------
   Home – manifesto inicial
   ---------------------------------------------------------- */

.home-intro {
  margin-bottom: 2.8rem;
}

.home-intro-text {
  font-family: 'FournierTest', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(0,0,0,0.60);
  line-height: 1.7;
  max-width: 65ch;
}

/* ----------------------------------------------------------
   Home – texto em destaque (mais recente)
   ---------------------------------------------------------- */

.post-featured {
  margin-bottom: 3rem;
}

.post-featured .post-title a,
.post-featured .post-title {
  font-size: 1.6rem;          /* maior que os demais */
}

.post-featured .post-synopsis {
  margin-top: 0.6rem;
  margin-bottom: 0.4rem;
}

/* ----------------------------------------------------------
   Home – dois textos secundários
   ---------------------------------------------------------- */

.home-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.post-secondary .post-title a,
.post-secondary .post-title {
  font-size: 1.5rem;         /* um pouco menor que o destaque */
}

.post-secondary .post-synopsis {
  margin-top: 0.4rem;
  margin-bottom: 0.3rem;
}

/* Responsividade: no mobile, os dois textos ficam empilhados */
@media (max-width: 768px) {
  .home-secondary {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .post-featured .post-title a,
  .post-featured .post-title {
    font-size: 1.6rem;
  }

  .post-secondary .post-title a,
  .post-secondary .post-title {
    font-size: 1.6rem;
  }
}

/* ----------------------------------------------------------
   Home – link "ver todos os textos →"
   ---------------------------------------------------------- */

/* Caixa editorial "TODOS OS TEXTOS" */
.home-all-box {
  text-align: center;
  margin: 3.2rem 0 2.6rem 0;
}

.home-all-box a {
  display: inline-block;
  padding: 0.45rem 1.1rem;

  border: 1px solid rgba(0,0,0,0.35) !important;   /* borda mais sutil */
  border-radius: 2px;                               /* quase reto */

  font-family: 'FournierTest', serif;
  font-size: 1.2rem;                                /* menor, elegante */
  font-variant-caps: small-caps;
  letter-spacing: 0.07em;
  color: rgba(0,0,0,0.68);
  text-decoration: none !important;

  transition: all 0.20s ease;
}

/* Hover: refinado, discreto e “editorial” */
.home-all-box a:hover {
  background: rgba(0,0,0,0.04);                      /* leve toque */
  border-color: rgba(0,0,0,0.50) !important;         /* borda mais marcada */
  color: rgba(0,0,0,0.85);                           /* texto mais escuro */
}

/* ----------------------------------------------------------
   Small Caps no site
   ---------------------------------------------------------- */

header .main a {
  letter-spacing: 0.04em;
}

/* Títulos das páginas em small caps verdadeiros */
.page-title {
  font-feature-settings: "smcp" 1;
  font-variant-caps: small-caps;
  letter-spacing: 0.04em;
}

/* Títulos de posts na home em small caps verdadeiros */
.post-title a,
.post-title {
  font-feature-settings: "smcp" 1;
  font-variant-caps: small-caps;
  letter-spacing: 0.04em;
}

/* Small caps verdadeiros para títulos de páginas (Sobre, Livros, Newsletter) */
.post-content .title h1 {
  font-feature-settings: "smcp" 1;   /* ativa small caps verdadeiras */
  font-variant-caps: small-caps;
  letter-spacing: 0.04em;
}


/* ----------------------------------------------------------
   Links DENTRO do corpo dos textos (artigos, sobre, newsletter)
   – cor normal do texto + sublinhado discreto
   ---------------------------------------------------------- */

.post-content .body a {
  color: var(--color-text) !important;     /* mesma cor do texto */
  text-decoration: underline !important;   /* sublinhado sempre */
  text-decoration-thickness: 1px;          /* sublinhado fino e elegante */
  text-underline-offset: 2px;              /* leve espaçamento da linha */
  
  background: transparent !important;
  border-bottom: none !important;

  font-variant-caps: normal !important;    /* garante que não fique em small caps */
  font-feature-settings: normal !important;
}


