/* =========================================================
   Questionar — folha de estilos do tema Ghost (produção)
   Lora (corpo) · Fraunces (títulos) · Inter (interface)
   Claro/escuro pela preferência do sistema (prefers-color-scheme).
   Acento: vermelho no claro, azul-marinho no escuro — já "assado"
   no tema (sem camada de preview / sem JS de acento).
   ========================================================= */

/* =========================================================
   Fontes self-hosted — sem requisição externa ao Google
   Subsets: latin-ext (cobre português + europeu) + latin
   Arquivos em assets/fonts/ (woff2, variáveis onde disponível)
   ========================================================= */

/* Fraunces — normal (variável: opsz, wght, SOFT, WONK) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fraunces — italic */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Lora — normal (variável: wght) */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Lora — italic */
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter — normal (variável: wght, pesos 400–700) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-body: "Lora", Georgia, serif;
  --font-heading: "Fraunces", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Tema claro — papel quente */
  --color-bg: #faf7f1;
  --color-paper: #fffdf8;
  --color-text: #1f1d1a;
  --color-muted: #6d665f;
  --color-faint: #8c857c;
  --color-border: #e4dccf;
  --color-border-soft: #efe9de;

  /* Acento — vermelho no claro */
  --accent: #a02622;
  --accent-soft: #c0473f;

  --color-link: var(--accent);
  --color-link-hover: #7a1612;

  --sidebar-w: 296px;
  --sidebar-w-collapsed: 72px;
  --content-width: 760px;
  --reading-size: 22px;
}

/* Tema escuro — grafite quente, nunca preto puro · acento azul-marinho */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1815;
    --color-paper: #211e1a;
    --color-text: #ece6db;
    --color-muted: #9c9488;
    --color-faint: #79726a;
    --color-border: #332f29;
    --color-border-soft: #2a2622;

    --accent: #9bb4dc;
    --accent-soft: #7e9bcb;
    --color-link: var(--accent);
    --color-link-hover: #b9ccec;
  }
}

/* Overrides explícitos via data-theme (prevalecem sobre prefers-color-scheme) */
html[data-theme="dark"] {
  --color-bg: #1a1815;
  --color-paper: #211e1a;
  --color-text: #ece6db;
  --color-muted: #9c9488;
  --color-faint: #79726a;
  --color-border: #332f29;
  --color-border-soft: #2a2622;
  --accent: #9bb4dc;
  --accent-soft: #7e9bcb;
  --color-link: var(--accent);
  --color-link-hover: #b9ccec;
}
html[data-theme="light"] {
  --color-bg: #faf7f1;
  --color-paper: #fffdf8;
  --color-text: #1f1d1a;
  --color-muted: #6d665f;
  --color-faint: #8c857c;
  --color-border: #e4dccf;
  --color-border-soft: #efe9de;
  --accent: #a02622;
  --accent-soft: #c0473f;
  --color-link: var(--accent);
  --color-link-hover: #7a1612;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: -0.004em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* =========================================================
   Estrutura — barra lateral + leitura
   ========================================================= */

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  transition: grid-template-columns 280ms cubic-bezier(.4,.0,.2,1);
}
.layout[data-collapsed="true"] {
  grid-template-columns: var(--sidebar-w-collapsed) 1fr;
}

/* =========================================================
   Barra lateral
   ========================================================= */

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  border-right: 1px solid var(--color-border);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  font-family: var(--font-ui);
  overflow: hidden;
}

.sidebar__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 40px;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 650;
  font-size: 30px;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--color-text);
  text-decoration: none;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  white-space: nowrap;
}
.brand:hover { color: var(--color-text); }

.brand__mark {
  display: none;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.collapse-btn {
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  transition: border-color 160ms, color 160ms;
}
.collapse-btn:hover { color: var(--color-text); border-color: var(--color-faint); }
.collapse-btn svg { width: 15px; height: 15px; display: block; }
.layout[data-collapsed="true"] .collapse-btn svg { transform: scaleX(-1); }

.nav-label {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-faint);
  font-weight: 600;
  margin: 0 0 12px 4px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-group { display: flex; flex-direction: column; }

.nav-head,
.nav-link-solo {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  text-decoration: none;
  letter-spacing: -0.01em;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background 140ms, color 140ms;
  white-space: nowrap;
}
.nav-head:hover,
.nav-link-solo:hover { background: var(--color-border-soft); }

.nav-head__label { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }

.nav-caret {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--color-faint);
  transition: transform 220ms ease, color 140ms;
}
.nav-group[data-open="true"] > .nav-head .nav-caret { transform: rotate(90deg); color: var(--color-muted); }
.nav-group[data-open="true"] > .nav-head .nav__dot { background: var(--accent); opacity: 1; }

.nav__dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-faint);
  opacity: 0.55;
}

/* Submenu expansível */
.nav-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms cubic-bezier(.4, 0, .2, 1);
}
.nav-group[data-open="true"] .nav-sub { grid-template-rows: 1fr; }
.nav-sub__inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 2px 0 8px 26px;
}
.nav-sub a {
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.32;
  color: var(--color-muted);
  text-decoration: none;
  letter-spacing: -0.005em;
  padding: 6px 8px 6px 0;
  transition: color 140ms;
  text-wrap: pretty;
}
.nav-sub a:hover { color: var(--accent); }
.nav-sub__foot {
  margin-top: 7px;
  padding-top: 9px;
  border-top: 1px solid var(--color-border-soft);
  font-weight: 500;
}
.nav-sub__foot ~ .nav-sub__foot { margin-top: 0; padding-top: 4px; border-top: 0; }
.nav-sub__more { color: var(--color-faint); font-style: italic; font-weight: 400; }

.nav__sep {
  height: 1px;
  background: var(--color-border-soft);
  margin: 14px 6px;
}

.sidebar__spacer { flex: 1 1 auto; min-height: 24px; }

/* Busca */
.search {
  position: relative;
  margin-bottom: 14px;
}
.search input {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 9px;
  padding: 9px 12px 9px 32px;
  letter-spacing: -0.01em;
}
.search input::placeholder { color: var(--color-faint); }
.search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.search__icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--color-faint);
  pointer-events: none;
}

/* Botão newsletter */
.btn-newsletter {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--color-paper);
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms, color 160ms;
  white-space: nowrap;
}
.btn-newsletter:hover { background: var(--color-link-hover); border-color: var(--color-link-hover); color: var(--color-paper); }

/* Seletor de tema (Auto / Claro / Escuro) */
.btn-theme {
  display: flex;
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--color-paper);
}
.btn-theme__seg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 4px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: background 140ms, color 140ms;
  white-space: nowrap;
  line-height: 1;
}
.btn-theme__seg svg { width: 13px; height: 13px; flex: none; }
.btn-theme__seg[aria-pressed="true"] {
  background: var(--accent);
  color: var(--color-paper);
}
.btn-theme__seg:not([aria-pressed="true"]):hover {
  background: var(--color-border-soft);
  color: var(--color-text);
}

/* Estado recolhido */
.layout[data-collapsed="true"] .sidebar { padding-left: 18px; padding-right: 18px; align-items: center; }
.layout[data-collapsed="true"] .brand,
.layout[data-collapsed="true"] .nav-label,
.layout[data-collapsed="true"] .nav-head__label,
.layout[data-collapsed="true"] .nav-caret,
.layout[data-collapsed="true"] .nav-sub,
.layout[data-collapsed="true"] .nav-link-solo span,
.layout[data-collapsed="true"] .search,
.layout[data-collapsed="true"] .btn-newsletter span,
.layout[data-collapsed="true"] .btn-theme { display: none; }
.layout[data-collapsed="true"] .sidebar__top { justify-content: center; margin-bottom: 30px; }
.layout[data-collapsed="true"] .brand__mark { display: block; }
.layout[data-collapsed="true"] .nav-head,
.layout[data-collapsed="true"] .nav-link-solo { justify-content: center; padding: 9px; }
.layout[data-collapsed="true"] .nav__sep { margin: 12px 0; width: 24px; }
.layout[data-collapsed="true"] .btn-newsletter {
  padding: 11px 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin: 0 auto;
}
.layout[data-collapsed="true"] .btn-newsletter::after { content: "✦"; font-size: 14px; }

/* =========================================================
   Coluna de leitura
   ========================================================= */

.main {
  min-width: 0;
  background: var(--color-bg);
}
.reading {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 92px 40px 140px;
}

/* =========================================================
   Texto longo
   ========================================================= */

p { margin: 0 0 1.45em; }
.entry-content p { font-size: var(--reading-size); line-height: 1.7; }
strong, b { font-weight: 600; }
em, i { font-style: italic; }

.entry-content > p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 3.1em;
  line-height: 0.82;
  float: left;
  margin: 0.04em 0.09em 0 0;
  color: var(--accent);
}

blockquote {
  margin: 2.1em 0;
  padding-left: 1.4em;
  border-left: 2.5px solid var(--accent);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 420;
  font-size: 1.42em;
  line-height: 1.42;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
blockquote p { margin-bottom: 0.5em; }
blockquote cite {
  display: block;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-muted);
  margin-top: 0.7em;
}

/* =========================================================
   Títulos
   ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 1.8em 0 0.55em;
  font-variation-settings: "SOFT" 35, "WONK" 1;
}
h1 {
  font-size: clamp(42px, 5.2vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.055em;
  margin: 0 0 0.32em;
  font-weight: 700;
  font-variation-settings: "SOFT" 42, "WONK" 1;
}
h2 { font-size: clamp(28px, 3.4vw, 38px); }
h3 { font-size: clamp(23px, 2.6vw, 28px); }
h4 { font-size: 21px; letter-spacing: -0.025em; }

/* =========================================================
   Cabeçalho do artigo
   ========================================================= */

.article-head { margin-bottom: 44px; }
.kicker {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.subtitle {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.2vw, 23px);
  line-height: 1.5;
  font-style: italic;
  color: var(--color-muted);
  margin: 0.1em 0 26px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--color-muted);
  letter-spacing: 0;
  padding-top: 18px;
  border-top: 1px solid var(--color-border-soft);
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--color-faint); }
.article-meta .author { color: var(--color-text); font-weight: 500; }

/* =========================================================
   Links no texto
   ========================================================= */

a { color: var(--color-link); text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
a:hover { color: var(--color-link-hover); }
.entry-content a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.entry-content a:hover { text-decoration-color: currentColor; }

/* =========================================================
   Nota de rodapé
   ========================================================= */

.fnref {
  font-family: var(--font-ui);
  font-size: 0.62em;
  font-weight: 600;
  vertical-align: super;
  line-height: 0;
  text-decoration: none;
  padding: 0 0.1em;
  color: var(--accent);
}
.fnref:hover { color: var(--color-link-hover); }

.footnotes {
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}
.footnotes .nav-label { margin-left: 0; }
.footnotes ol { padding-left: 1.2em; margin: 0; counter-reset: fn; }
.footnotes li {
  font-family: var(--font-ui);
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--color-muted);
  margin-bottom: 0.7em;
  letter-spacing: -0.005em;
}
.footnotes li a { font-weight: 500; }
.fn-back { margin-left: 0.4em; text-decoration: none; color: var(--color-faint); }
.fn-back:hover { color: var(--accent); }

/* =========================================================
   Listas, imagens, código
   ========================================================= */

ul, ol { padding-left: 1.35em; margin: 0 0 1.5em; }
li { margin-bottom: 0.4em; }

img { max-width: 100%; height: auto; }
figure { margin: 2.4em 0; }
.placeholder-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent, transparent 9px,
    color-mix(in srgb, var(--color-faint) 14%, transparent) 9px,
    color-mix(in srgb, var(--color-faint) 14%, transparent) 10px
  );
  display: grid;
  place-items: center;
}
.placeholder-img span {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 12px;
  color: var(--color-faint);
  background: var(--color-bg);
  padding: 4px 10px;
  border-radius: 5px;
}
figcaption {
  font-family: var(--font-ui);
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  margin-top: 0.8em;
}

code, pre, kbd, samp { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
code { font-size: 0.88em; background: color-mix(in srgb, var(--color-faint) 14%, transparent); padding: 0.12em 0.3em; border-radius: 4px; }
pre { overflow-x: auto; padding: 1.2em; border-radius: 12px; background: var(--color-paper); border: 1px solid var(--color-border); font-size: 14.5px; line-height: 1.55; }

/* Ghost editor — cards de largura estendida além do padding da coluna */
.kg-width-wide {
  margin-left: -40px;
  margin-right: -40px;
  width: calc(100% + 80px);
  max-width: none;
}
.kg-width-full {
  margin-left: -40px;
  margin-right: -40px;
  width: calc(100% + 80px);
  max-width: none;
}
.kg-width-wide img,
.kg-width-full img { width: 100%; height: auto; }

hr {
  border: 0;
  height: 1px;
  background: var(--color-border);
  margin: 3em auto;
  width: 100%;
}
.glyph-rule {
  border: 0;
  text-align: center;
  margin: 3em 0;
  color: var(--color-faint);
  overflow: visible;
}
.glyph-rule::before {
  content: "✦";
  font-size: 15px;
  background: var(--color-bg);
}

/* =========================================================
   Home — lista por seção
   ========================================================= */

.home { max-width: 860px; margin: 0 auto; padding: 88px 40px 140px; }

.home-head { margin-bottom: 64px; }
.home-head h1 { font-size: clamp(46px, 6vw, 72px); margin-bottom: 0.18em; }
.home-head .lede {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(19px, 2.1vw, 22px);
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 46ch;
  margin: 0;
}

.section-block { margin-bottom: 56px; }
.section-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
}
.section-block__head h2 {
  font-size: clamp(22px, 2.4vw, 27px);
  margin: 0;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.section-block__head a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
}
.section-block__head a:hover { color: var(--accent); }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-row {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border-soft);
  transition: padding-left 200ms cubic-bezier(.4,.0,.2,1);
}
.post-row:last-child { border-bottom: 0; }
.post-row:hover { padding-left: 10px; }
.post-row__title {
  font-family: var(--font-heading);
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin: 0 0 6px;
  color: var(--color-text);
  font-variation-settings: "SOFT" 30, "WONK" 0;
  transition: color 160ms;
}
.post-row:hover .post-row__title { color: var(--accent); }
.post-row__excerpt {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--color-muted);
  margin: 0 0 10px;
  max-width: 64ch;
}
.post-row__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--color-faint);
  letter-spacing: 0.01em;
}
.post-row__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }

/* =========================================================
   Rodapé
   ========================================================= */

.page-foot {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--color-faint);
  border-top: 1px solid var(--color-border-soft);
  padding-top: 22px;
  margin-top: 72px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-foot a { color: var(--color-muted); text-decoration: none; }
.page-foot a:hover { color: var(--accent); }

/* =========================================================
   Responsivo
   ========================================================= */

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    z-index: 20;
  }
  .sidebar__top { margin: 0; }
  .nav-label, .nav, .nav__sep, .search, .sidebar__spacer, .btn-theme { display: none; }
  .btn-newsletter { width: auto; margin-left: auto; padding: 10px 16px; }
  .reading { padding: 48px 22px 100px; }
  .home { padding: 44px 22px 100px; }
  .entry-content p { font-size: 20px; }
}


/* =========================================================
   Produção — componentes específicos do tema Ghost
   ========================================================= */

/* Sub-link de seção (ex.: "Dados e Estatísticas Oficiais" sob Boletim) */
.nav-subitem {
  display: block;
  margin: 1px 0 2px 26px;
  padding: 6px 10px 6px 0;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color 140ms;
}
.nav-subitem:hover { color: var(--accent); }
.layout[data-collapsed="true"] .nav-subitem { display: none; }

/* Busca como botão — abre o modal de busca NATIVO do Ghost */
.search--button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 9px;
  padding: 9px 12px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-ui);
  transition: border-color 160ms;
}
.search--button .search__icon { position: static; transform: none; }
.search__placeholder { font-size: 14px; color: var(--color-faint); }
.search--button:hover { border-color: var(--color-faint); }
.layout[data-collapsed="true"] .search__placeholder { display: none; }
.layout[data-collapsed="true"] .search--button { justify-content: center; padding: 9px; }

/* Paginação ("Próximos" / "Anteriores") nos arquivos de seção */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-ui);
  font-size: 14px;
}
.pagination__link {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: border-color 160ms, color 160ms;
}
.pagination__link:hover { border-color: var(--accent); color: var(--accent); }
.pagination__count { color: var(--color-faint); }

/* Página /indicadores */
.indicadores { display: grid; grid-template-columns: 1fr; gap: 36px; margin-top: 8px; }
.chart-card {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-paper);
}
.chart-card figcaption {
  text-align: left;
  margin: 0 0 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.indicadores__updated { font-family: var(--font-ui); font-size: 12.5px; color: var(--color-faint); margin: 0; }

/* Comentários (Comentario) */
.comments { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--color-border); }


/* =========================================================
   Produção — cabeçalho de seção: título (link) + caret (toggle)
   (A base do acordeão — .nav-sub, rotação do caret, .nav__dot ativo —
    já vem definida acima; aqui só adaptamos a estrutura link + botão.)
   ========================================================= */
.nav-head { padding: 0; }
.nav-head__link {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-caret-btn {
  flex: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 10px;
  display: grid;
  place-items: center;
  color: var(--color-faint);
  border-radius: 0 8px 8px 0;
  transition: color 140ms;
}
.nav-caret-btn:hover { color: var(--color-muted); }
.nav-group[data-active="true"] .nav-head__link { color: var(--accent); }
.nav-group[data-active="true"] .nav__dot { background: var(--accent); opacity: 1; }

/* Recolhida — esconde caret; centraliza o ponto */
.layout[data-collapsed="true"] .nav-caret-btn { display: none; }
.layout[data-collapsed="true"] .nav-head { justify-content: center; }
.layout[data-collapsed="true"] .nav-head__link { justify-content: center; padding: 9px; border-radius: 8px; }
