/* Blog público do Revisor (ADR-058): papel, tinta, azul; Source Serif 4 e Manrope (OFL). */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/blog/assets/source-serif-4-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/blog/assets/source-serif-4-latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/blog/assets/source-serif-4-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/blog/assets/manrope-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/blog/assets/manrope-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/blog/assets/manrope-latin-700-normal.woff2") format("woff2");
}

:root {
  --papel: #ffffff;
  --tinta: #1a1f2c;
  --cinza: #5e6878;
  --linha: #a9b2c0;
  --fio: #e3e7ed;
  --azul: #2a7ae4;
  --azul-bg: #e6f0fc;
}

* {
  box-sizing: border-box;
}

html {
  background:
    linear-gradient(180deg, #f7f9fc 0%, var(--papel) 28%, var(--papel) 100%);
  color: var(--tinta);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 1.125rem;
  line-height: 1.7;
  background: transparent;
}

.blog-header,
.blog-footer,
.blog-main {
  width: min(44rem, calc(100% - 2rem));
  margin-inline: auto;
}

.blog-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--fio);
}

.blog-brand {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--tinta);
  text-decoration: none;
}

.blog-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.blog-nav a {
  color: var(--cinza);
  text-decoration: none;
}

.blog-nav a:hover,
.blog-nav a:focus-visible {
  color: var(--azul);
}

.blog-lang {
  color: var(--cinza);
}

.blog-lang-current {
  color: var(--tinta);
}

.blog-main {
  padding: 2rem 0 3rem;
}

.blog-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--fio);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.875rem;
  color: var(--linha);
}

.blog-footer a {
  color: var(--cinza);
}

.blog-credit {
  margin-top: 0.5rem;
}

h1,
h2,
h3,
h4 {
  font-family: "Source Serif 4", "Iowan Old Style", Palatino, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--tinta);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.5rem;
}

.blog-meta,
.blog-label,
.blog-pagination,
.blog-search label,
.blog-empty {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--cinza);
}

.blog-meta {
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

.blog-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
}

.blog-card {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--fio);
}

.blog-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.blog-card h2 a {
  color: inherit;
  text-decoration: none;
}

.blog-card h2 a:hover,
.blog-card h2 a:focus-visible {
  color: var(--azul);
}

.blog-card p {
  margin: 0.35rem 0 0;
  color: var(--cinza);
}

.blog-body p {
  margin: 0 0 1rem;
}

.blog-body a {
  color: var(--azul);
}

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

.blog-body blockquote {
  margin: 1.25rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--azul);
  color: var(--cinza);
}

.blog-body .notas {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--fio);
  font-size: 0.95rem;
  color: var(--cinza);
}

.blog-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.blog-search input {
  flex: 1 1 12rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--fio);
  border-radius: 0;
  font: inherit;
}

.blog-search button,
.blog-pagination a {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 600;
  color: var(--azul);
  background: var(--azul-bg);
  border: 0;
  padding: 0.65rem 1rem;
  text-decoration: none;
  cursor: pointer;
}

.blog-pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.blog-related {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fio);
}

.blog-author-bio {
  margin: 0 0 2rem;
  color: var(--cinza);
}
