/* ============================================================
   wp.css — estilos exclusivos do WordPress.
   Cobre o que o site estático não precisa: páginas internas,
   conteúdo do editor de blocos, acessibilidade e classes de core.
   Carregado depois de site.css.
   ============================================================ */

/* ---------- Acessibilidade ---------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--white);
  color: var(--azul-profundo);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(2, 32, 60, 0.18);
}

/* ---------- Header sólido em páginas internas ----------
   Sem esta regra o header fica transparente sobre fundo claro
   e o logo azul some contra o conteúdo. */
.header--solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* O header é fixed: páginas internas precisam abrir espaço para ele. */
.is-inner-page .page-content {
  padding-top: 140px;
}
@media (max-width: 880px) {
  .is-inner-page .page-content { padding-top: 112px; }
}

/* ---------- Contêiner de leitura ---------- */
.container--narrow {
  max-width: 760px;
}

/* ---------- Entradas (páginas e posts) ---------- */
.display--lg {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
}

.entry__title {
  color: var(--azul-sereno);
  margin: 0 0 16px;
}
.entry__meta {
  color: var(--fg-subtle);
  margin: 0 0 32px;
}
.entry__thumb {
  margin: 0 0 32px;
}
.entry__thumb img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.entry__body {
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}
.entry__body > * + * { margin-top: 24px; }
.entry__body h2,
.entry__body h3,
.entry__body h4 {
  font-family: var(--font-display);
  color: var(--azul-sereno);
  line-height: 1.25;
  margin-top: 48px;
}
.entry__body h2 { font-size: 30px; }
.entry__body h3 { font-size: 24px; }
.entry__body h4 { font-size: 20px; }
.entry__body a {
  color: var(--azul-profundo);
  text-underline-offset: 3px;
}
.entry__body a:hover { color: var(--azul-sereno); }
.entry__body ul,
.entry__body ol { padding-left: 24px; }
.entry__body li + li { margin-top: 8px; }
.entry__body img,
.entry__body iframe,
.entry__body video {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}
.entry__body blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 8px 0 8px 24px;
  border-left: 3px solid var(--lavanda-digital);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-700);
}
.entry__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--ink-100);
  border-radius: 6px;
  padding: 2px 6px;
}
.entry__body pre {
  background: var(--ink-100);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
}
.entry__body pre code {
  background: none;
  padding: 0;
}
.entry__body table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}
.entry__body th,
.entry__body td {
  border-bottom: 1px solid var(--ink-200);
  padding: 12px;
  text-align: left;
}
.entry__body hr {
  border: 0;
  border-top: 1px solid var(--ink-200);
}

/* ---------- Listagem de posts ---------- */
.entry-list__item + .entry-list__item {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--ink-200);
}
.entry-list__item h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.entry-list__item h2 a {
  color: var(--azul-sereno);
  text-decoration: none;
}
.entry-list__item h2 a:hover { text-decoration: underline; }
.entry__excerpt { color: var(--fg-muted); line-height: 1.7; }

/* ---------- Paginação ---------- */
.pagination,
.entry__pagination {
  margin-top: 64px;
}
.pagination .nav-links,
.entry__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pagination .page-numbers,
.entry__pagination a,
.entry__pagination > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--ink-200);
  color: var(--azul-profundo);
  text-decoration: none;
  font-weight: 600;
}
.pagination .page-numbers.current,
.entry__pagination > span {
  background: var(--azul-profundo);
  border-color: var(--azul-profundo);
  color: var(--white);
}

/* ---------- Classes do core do WordPress ---------- */
.alignleft  { float: left;  margin: 8px 24px 24px 0; }
.alignright { float: right; margin: 8px 0 24px 24px; }
.aligncenter, .aligncenter img { display: block; margin-left: auto; margin-right: auto; }
.alignwide  { max-width: min(1100px, 92vw); margin-left: 50%; transform: translateX(-50%); }
.alignfull  { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; }

.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-element-caption,
.gallery-caption {
  font-size: 14px;
  color: var(--fg-subtle);
  text-align: center;
  margin-top: 8px;
}

.sticky { position: relative; }
.sticky::before {
  content: "Destaque";
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--lilas-nevoa);
  color: var(--azul-sereno);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bypostauthor { display: block; }

/* ---------- Comentários ---------- */
.comment-list { list-style: none; padding: 0; margin: 48px 0 0; }
.comment-list ul.children { list-style: none; padding-left: 24px; }
.comment-body {
  padding: 20px 0;
  border-bottom: 1px solid var(--ink-200);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  font: inherit;
}
