/* ==========================================================================
   Seu Cliente de Volta — folha de estilo unica
   CSS3 moderno: custom properties, Grid, Flexbox. Sem frameworks.
   Ordem: tokens > reset > base > layout > componentes > utilitarios > midias
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  /* Cor — tema claro (padrao) */
  --c-bg: #fbfaf7;
  --c-bg-soft: #f2efe8;
  --c-surface: #ffffff;
  --c-surface-alt: #f6f4ef;
  --c-border: #ded8cc;
  --c-border-strong: #c4bbaa;
  --c-text: #1b1d1a;
  --c-text-soft: #4d5149;
  --c-text-mute: #6a6f66;
  --c-brand: #0d3b2e;
  --c-brand-strong: #082a20;
  --c-brand-soft: #e4efe9;
  --c-accent: #a63f12;
  --c-accent-soft: #fbeadf;
  --c-link: #0b4a58;
  --c-link-hover: #06313a;
  --c-focus: #b8560f;

  /* Tipografia */
  --f-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
             Georgia, "Times New Roman", serif;
  --f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
            Arial, "Noto Sans", sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
            "Liberation Mono", monospace;

  --fs-100: 0.75rem;
  --fs-200: 0.8125rem;
  --fs-300: 0.875rem;
  --fs-400: 1rem;
  --fs-500: 1.0625rem;
  --fs-600: clamp(1.125rem, 0.5vw + 1rem, 1.25rem);
  --fs-700: clamp(1.3rem, 1vw + 1rem, 1.55rem);
  --fs-800: clamp(1.55rem, 1.6vw + 1rem, 2rem);
  --fs-900: clamp(1.9rem, 2.6vw + 1rem, 2.8rem);
  --fs-hero: clamp(2.1rem, 3.6vw + 1rem, 3.4rem);

  --lh-tight: 1.16;
  --lh-snug: 1.32;
  --lh-normal: 1.62;
  --lh-loose: 1.75;

  /* Espaco e forma */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 5.5rem;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --wrap: 1220px;
  --wrap-narrow: 760px;

  --shadow-sm: 0 1px 2px rgba(20, 24, 20, 0.06), 0 2px 6px rgba(20, 24, 20, 0.05);
  --shadow-md: 0 2px 6px rgba(20, 24, 20, 0.07), 0 12px 28px rgba(20, 24, 20, 0.08);

  --dur: 180ms;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #101311;
    --c-bg-soft: #171b18;
    --c-surface: #191d1a;
    --c-surface-alt: #1f2420;
    --c-border: #303731;
    --c-border-strong: #454e46;
    --c-text: #edeae3;
    --c-text-soft: #c3c8bf;
    --c-text-mute: #9aa197;
    --c-brand: #7ec8a9;
    --c-brand-strong: #a6dcc4;
    --c-brand-soft: #17251f;
    --c-accent: #f0996a;
    --c-accent-soft: #2a1a12;
    --c-link: #86cfdd;
    --c-link-hover: #b3e5ee;
    --c-focus: #ffb26b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.45), 0 14px 30px rgba(0, 0, 0, 0.4);
  }
}

/* --------------------------------------------------------------------------
   2. Reset enxuto
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: var(--fs-400);
  line-height: var(--lh-normal);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--sp-3); font-weight: 700; line-height: var(--lh-tight); }
p, ul, ol, dl, figure, table, pre, blockquote { margin: 0 0 var(--sp-4); }
ul, ol { padding-left: 1.35rem; }
li { margin-bottom: var(--sp-2); }
li:last-child { margin-bottom: 0; }

img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

a { color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--c-link-hover); }

strong, b { font-weight: 700; }
small { font-size: var(--fs-200); }
hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--sp-6) 0; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 2px;
}
:target { scroll-margin-top: 6rem; }

::selection { background: var(--c-brand-soft); color: var(--c-text); }

/* --------------------------------------------------------------------------
   3. Layout base
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

@media (min-width: 48rem) {
  .wrap { width: min(100% - 3rem, var(--wrap)); }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--c-brand);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

.section { margin-block: var(--sp-7); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  border-top: 3px solid var(--c-brand);
  padding-top: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.section__head h2 {
  font-family: var(--f-sans);
  font-size: var(--fs-700);
  letter-spacing: -0.015em;
  margin: 0;
}
.section__head a { font-size: var(--fs-300); font-weight: 700; }
.section__lead {
  max-width: 62ch;
  color: var(--c-text-soft);
  margin: calc(var(--sp-4) * -1) 0 var(--sp-5);
}

/* --------------------------------------------------------------------------
   4. Cabecalho
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--c-brand);
  color: #f4f1ea;
  border-bottom: 4px solid var(--c-accent);
  position: sticky;
  top: 0;
  z-index: 100;
}
@media (prefers-color-scheme: dark) {
  .site-header { background: #0a0f0d; color: var(--c-text); }
}

.site-header__bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  padding-block: var(--sp-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: inherit;
  text-decoration: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  flex: none;
}
.brand__mark svg { width: 1.5rem; height: 1.5rem; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.brand__text small { color: rgba(244, 241, 234, 0.78); font-size: var(--fs-100); }
@media (prefers-color-scheme: dark) {
  .brand__text small { color: var(--c-text-mute); }
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
}
.site-nav li { margin: 0; }
.site-nav a {
  color: inherit;
  text-decoration: none;
  font-size: var(--fs-300);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-block: var(--sp-1);
  border-bottom: 2px solid transparent;
  display: inline-block;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--c-accent);
}
@media (prefers-color-scheme: dark) {
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--c-brand-strong); }
}

.site-search {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  grid-column: 1 / -1;
}
.site-search label {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}
.site-search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  border-radius: var(--radius-sm);
  font-size: var(--fs-300);
}
.site-search input::placeholder { color: rgba(244, 241, 234, 0.6); }
.site-search button {
  padding: var(--sp-2) var(--sp-4);
  border: 0;
  background: var(--c-accent);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.site-search button:hover { background: #8c3410; }
@media (prefers-color-scheme: dark) {
  .site-search input { border-color: var(--c-border); background: var(--c-surface); }
  .site-search input::placeholder { color: var(--c-text-mute); }
  .site-search button { color: #16110d; }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-300);
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  content: "";
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }

/* JS ativo habilita o toggle; sem JS o menu permanece sempre visivel. */
.js .nav-toggle { display: inline-flex; }
@media (max-width: 61.99rem) {
  .js .site-nav { display: none; grid-column: 1 / -1; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav li { border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .js .site-nav a { display: block; padding: var(--sp-3) 0; border-bottom: 0; }
}
@media (min-width: 62rem) {
  .site-header__bar { grid-template-columns: auto 1fr auto; }
  .site-search { grid-column: auto; width: min(22rem, 30vw); }
  .js .nav-toggle { display: none; }
}

/* --------------------------------------------------------------------------
   5. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-200);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
  padding: var(--sp-3) 0;
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: var(--sp-2); }
.breadcrumbs li + li::before { content: "›"; color: var(--c-text-mute); }
.breadcrumbs a { color: var(--c-text-soft); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--c-text); font-weight: 600; }

/* --------------------------------------------------------------------------
   6. Cards e grades editoriais
   -------------------------------------------------------------------------- */
.kicker {
  display: inline-block;
  font-size: var(--fs-100);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
  text-decoration: none;
  margin-bottom: var(--sp-2);
}
a.kicker:hover { text-decoration: underline; }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  font-size: var(--fs-200);
  color: var(--c-text-mute);
  margin: 0;
}
.meta > * + *::before { content: "·"; margin-right: var(--sp-3); color: var(--c-border-strong); }

.card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__media { margin: 0; background: var(--c-bg-soft); }
.card__media img { width: 100%; aspect-ratio: 40 / 21; object-fit: cover; }
.card__body { padding: 0 var(--sp-4) var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.card__title {
  font-family: var(--f-serif);
  font-size: var(--fs-600);
  line-height: var(--lh-snug);
  margin: 0;
  letter-spacing: -0.01em;
}
.card__title a { color: var(--c-text); text-decoration: none; }
.card__title a:hover { color: var(--c-link-hover); text-decoration: underline; }
.card__excerpt { color: var(--c-text-soft); font-size: var(--fs-300); margin: 0; }
.card__body .meta { margin-top: auto; padding-top: var(--sp-2); }

.grid { display: grid; gap: var(--sp-5); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }

/* Manchete principal — hierarquia editorial da home */
.lead-grid { display: grid; gap: var(--sp-5); margin-block: var(--sp-6); }
@media (min-width: 62rem) {
  .lead-grid { grid-template-columns: 1.65fr 1fr; align-items: start; }
}

.headline { display: flex; flex-direction: column; gap: var(--sp-3); }
.headline__media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--c-bg-soft); }
.headline__media img { width: 100%; aspect-ratio: 40 / 21; object-fit: cover; }
.headline h2 {
  font-family: var(--f-serif);
  font-size: var(--fs-hero);
  letter-spacing: -0.022em;
  margin: 0;
}
.headline h2 a { color: var(--c-text); text-decoration: none; }
.headline h2 a:hover { text-decoration: underline; }
.headline__excerpt { font-size: var(--fs-600); color: var(--c-text-soft); margin: 0; max-width: 60ch; }

.stack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.stack-list > li {
  margin: 0;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}
.stack-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.stack-item { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--sp-3); align-items: start; }
.stack-item figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--c-bg-soft); }
.stack-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.stack-item h3 {
  font-family: var(--f-serif);
  font-size: var(--fs-500);
  line-height: var(--lh-snug);
  margin: 0 0 var(--sp-2);
}
.stack-item h3 a { color: var(--c-text); text-decoration: none; }
.stack-item h3 a:hover { text-decoration: underline; }

.rank-list { counter-reset: rank; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.rank-list > li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--sp-3);
  align-items: baseline;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
  margin: 0;
}
.rank-list > li:last-child { border-bottom: 0; }
.rank-list > li::before {
  content: counter(rank);
  font-family: var(--f-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
}
.rank-list a { color: var(--c-text); text-decoration: none; font-weight: 600; }
.rank-list a:hover { text-decoration: underline; }

.panel {
  background: var(--c-surface-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.panel h2 { font-size: var(--fs-600); }

.topic-cloud { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0; margin: 0; }
.topic-cloud li { margin: 0; }
.topic-cloud a {
  display: inline-block;
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-brand-soft);
  color: var(--c-brand-strong);
  border-radius: 999px;
  font-size: var(--fs-200);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.topic-cloud a:hover { border-color: var(--c-brand); }
@media (prefers-color-scheme: dark) { .topic-cloud a { color: var(--c-brand); } }

.cat-band {
  border-top: 3px solid var(--c-brand);
  padding-top: var(--sp-4);
  margin-block: var(--sp-7);
}
.cat-band__grid { display: grid; gap: var(--sp-5); }
@media (min-width: 62rem) {
  .cat-band__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   7. Artigo
   -------------------------------------------------------------------------- */
.reading-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--c-accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 200;
}

.article-layout { display: grid; gap: var(--sp-6); margin-block: var(--sp-6) var(--sp-8); }
@media (min-width: 64rem) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 18.5rem; align-items: start; }
}

.article-header { margin-bottom: var(--sp-5); }
.article-header h1 {
  font-family: var(--f-serif);
  font-size: var(--fs-900);
  letter-spacing: -0.022em;
  margin-bottom: var(--sp-4);
  max-width: 22ch;
}
.article-header .standfirst {
  font-size: var(--fs-600);
  color: var(--c-text-soft);
  line-height: var(--lh-snug);
  max-width: 62ch;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  align-items: center;
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-200);
  color: var(--c-text-mute);
}
.byline strong { color: var(--c-text); }
.byline a { color: var(--c-text); }

.figure-hero { margin: var(--sp-5) 0; }
.figure-hero img {
  width: 100%;
  aspect-ratio: 40 / 21;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--c-bg-soft);
}
figcaption {
  font-size: var(--fs-200);
  color: var(--c-text-mute);
  padding-top: var(--sp-2);
  border-bottom: 1px solid var(--c-border);
  padding-bottom: var(--sp-2);
}

.toc {
  background: var(--c-surface-alt);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-brand);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  margin-block: var(--sp-5);
}
.toc h2 {
  font-size: var(--fs-300);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-mute);
  margin-bottom: var(--sp-3);
}
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc ol ol { margin-top: var(--sp-2); padding-left: 1rem; }
.toc li { margin-bottom: var(--sp-2); font-size: var(--fs-300); }
.toc a { color: var(--c-text); text-decoration: none; }
.toc a:hover { text-decoration: underline; color: var(--c-link-hover); }

.prose { font-size: var(--fs-500); line-height: var(--lh-loose); max-width: 68ch; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 {
  font-family: var(--f-serif);
  font-size: var(--fs-800);
  letter-spacing: -0.018em;
  margin-top: var(--sp-7);
  padding-top: var(--sp-2);
  border-top: 2px solid var(--c-border);
  scroll-margin-top: 6rem;
}
.prose h3 {
  font-size: var(--fs-600);
  margin-top: var(--sp-6);
  color: var(--c-brand-strong);
  scroll-margin-top: 6rem;
}
@media (prefers-color-scheme: dark) { .prose h3 { color: var(--c-brand); } }
.prose h2:focus, .prose h3:focus { outline: none; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: var(--sp-3); }
.prose li > ul, .prose li > ol { margin-top: var(--sp-3); }

.prose blockquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-4) var(--sp-5);
  border-left: 4px solid var(--c-accent);
  background: var(--c-accent-soft);
  font-family: var(--f-serif);
  font-size: var(--fs-600);
  line-height: var(--lh-snug);
}
.prose blockquote p:last-child { margin-bottom: 0; }

.callout {
  border: 1px solid var(--c-border);
  border-top: 4px solid var(--c-brand);
  border-radius: var(--radius);
  background: var(--c-surface-alt);
  padding: var(--sp-5);
  margin: var(--sp-6) 0;
  font-size: var(--fs-400);
}
.callout h3 {
  margin-top: 0;
  font-size: var(--fs-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-mute);
}
.callout > :last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: var(--sp-5) 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: var(--sp-5);
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-300);
}
@media (prefers-color-scheme: dark) { .steps > li::before { color: #0a0f0d; } }
.steps > li > strong:first-child { display: block; margin-bottom: var(--sp-2); }

.table-wrap { overflow-x: auto; margin: var(--sp-5) 0; }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-300); }
caption { text-align: left; font-size: var(--fs-200); color: var(--c-text-mute); padding-bottom: var(--sp-2); }
th, td { border: 1px solid var(--c-border); padding: var(--sp-3); text-align: left; vertical-align: top; }
th { background: var(--c-surface-alt); font-weight: 700; }

.faq { margin: var(--sp-6) 0; }
.faq details {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-3);
  background: var(--c-surface);
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq summary::marker { color: var(--c-accent); }
.faq details[open] summary { margin-bottom: var(--sp-3); }

/* Compartilhamento */
.share { margin: var(--sp-7) 0 var(--sp-6); border-top: 2px solid var(--c-border); padding-top: var(--sp-4); }
.share h2 { font-size: var(--fs-500); margin-bottom: var(--sp-3); }
.share ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0; margin: 0; }
.share li { margin: 0; }
.share a, .share button {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-border-strong);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-text);
  font-size: var(--fs-200);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.share a:hover, .share button:hover { border-color: var(--c-brand); background: var(--c-brand-soft); }

.author-box {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 4.5rem 1fr;
  align-items: start;
  background: var(--c-surface-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin: var(--sp-6) 0;
}
.author-box img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; background: var(--c-bg-soft); }
.author-box h2 { font-size: var(--fs-500); margin-bottom: var(--sp-1); }
.author-box p { margin-bottom: var(--sp-2); font-size: var(--fs-300); color: var(--c-text-soft); }
.author-box > div > :last-child { margin-bottom: 0; }

.related { margin-block: var(--sp-7); }
.related h2 {
  font-size: var(--fs-700);
  border-top: 3px solid var(--c-brand);
  padding-top: var(--sp-3);
}

/* Barra lateral do artigo */
.article-aside { display: grid; gap: var(--sp-5); }
@media (min-width: 64rem) {
  .article-aside { position: sticky; top: 6.5rem; }
}
.aside-block {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  background: var(--c-surface);
}
.aside-block h2 {
  font-size: var(--fs-200);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-mute);
  border-bottom: 1px solid var(--c-border);
  padding-bottom: var(--sp-2);
}
.aside-block ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.aside-block li { margin: 0; font-size: var(--fs-300); line-height: var(--lh-snug); }
.aside-block a { color: var(--c-text); text-decoration: none; font-weight: 600; }
.aside-block a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   8. Paginas de conteudo simples e formularios
   -------------------------------------------------------------------------- */
.page-header { margin-block: var(--sp-6) var(--sp-5); }
.page-header h1 {
  font-family: var(--f-serif);
  font-size: var(--fs-900);
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.page-header .standfirst { font-size: var(--fs-600); color: var(--c-text-soft); max-width: 65ch; }

.doc { max-width: var(--wrap-narrow); }
.doc h2 {
  font-family: var(--f-serif);
  font-size: var(--fs-700);
  margin-top: var(--sp-7);
  border-top: 2px solid var(--c-border);
  padding-top: var(--sp-3);
}
.doc h3 { font-size: var(--fs-500); margin-top: var(--sp-5); }
.doc dl dt { font-weight: 700; margin-top: var(--sp-3); }
.doc dl dd { margin: 0 0 var(--sp-3); color: var(--c-text-soft); }

.field { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.field label { font-weight: 700; font-size: var(--fs-300); }
.field input, .field textarea, .field select {
  padding: var(--sp-3);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
}
.btn {
  display: inline-block;
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-brand);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--c-brand-strong); color: #fff; }
@media (prefers-color-scheme: dark) {
  .btn { color: #0a0f0d; }
  .btn:hover { color: #0a0f0d; }
}

/* Busca */
.search-form { display: grid; gap: var(--sp-3); max-width: 34rem; margin-block: var(--sp-5); }
.search-form__row { display: flex; gap: var(--sp-2); }
.search-form input[type="search"] {
  flex: 1;
  padding: var(--sp-3);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
}
.search-status { font-weight: 700; margin-block: var(--sp-5) var(--sp-3); }
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-5); }
.search-results li { margin: 0; padding-bottom: var(--sp-4); border-bottom: 1px solid var(--c-border); }
.search-results h3 { font-family: var(--f-serif); font-size: var(--fs-600); margin-bottom: var(--sp-2); }
.search-results h3 a { color: var(--c-text); text-decoration: none; }
.search-results h3 a:hover { text-decoration: underline; }
.search-results p { color: var(--c-text-soft); font-size: var(--fs-300); margin-bottom: var(--sp-2); }

.notice {
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  background: var(--c-accent-soft);
  padding: var(--sp-4);
  border-radius: var(--radius-sm);
  margin-block: var(--sp-4);
}
.notice > :last-child { margin-bottom: 0; }

.archive-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-5); }
.archive-list > li {
  margin: 0;
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-border);
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 44rem) {
  .archive-list > li { grid-template-columns: 15rem 1fr; align-items: start; }
}
.archive-list figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--c-bg-soft); }
.archive-list img { width: 100%; aspect-ratio: 40 / 21; object-fit: cover; }
.archive-list h3 { font-family: var(--f-serif); font-size: var(--fs-700); margin-bottom: var(--sp-2); }
.archive-list h3 a { color: var(--c-text); text-decoration: none; }
.archive-list h3 a:hover { text-decoration: underline; }
.archive-list p { color: var(--c-text-soft); margin-bottom: var(--sp-3); }

/* --------------------------------------------------------------------------
   9. Rodape
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-brand-strong);
  color: #e7e3d9;
  margin-top: var(--sp-9);
  padding-block: var(--sp-7) var(--sp-5);
  font-size: var(--fs-300);
}
@media (prefers-color-scheme: dark) {
  .site-footer { background: #0a0f0d; color: var(--c-text-soft); border-top: 1px solid var(--c-border); }
}
.site-footer__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .site-footer__grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.site-footer h2 {
  font-size: var(--fs-200);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #b6c9bf;
  margin-bottom: var(--sp-3);
}
@media (prefers-color-scheme: dark) { .site-footer h2 { color: var(--c-text-mute); } }
.site-footer__about p { color: #cfd6cf; max-width: 46ch; }
@media (prefers-color-scheme: dark) { .site-footer__about p { color: var(--c-text-soft); } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.site-footer li { margin: 0; }
.site-footer a { color: #f0ece2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
@media (prefers-color-scheme: dark) { .site-footer a { color: var(--c-text); } }
.site-footer__legal {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-200);
  color: #b6c9bf;
}
@media (prefers-color-scheme: dark) { .site-footer__legal { color: var(--c-text-mute); } }
.site-footer__legal p { margin: 0; }

/* --------------------------------------------------------------------------
   10. Utilitarios
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead { font-size: var(--fs-600); color: var(--c-text-soft); }

/* --------------------------------------------------------------------------
   11. Preferencias de movimento
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
  .reading-progress { transition: none; }
}

/* --------------------------------------------------------------------------
   12. Impressao
   -------------------------------------------------------------------------- */
@media print {
  :root {
    --c-bg: #fff; --c-surface: #fff; --c-surface-alt: #fff;
    --c-text: #000; --c-text-soft: #222; --c-text-mute: #444;
    --c-border: #bbb;
  }
  body { background: #fff; color: #000; font-size: 11.5pt; line-height: 1.5; }
  .site-header, .site-footer, .breadcrumbs, .nav-toggle, .site-search,
  .share, .related, .article-aside, .reading-progress, .skip-link,
  .toc, .card__media, .headline__media { display: none !important; }
  .article-layout, .lead-grid { display: block; }
  .wrap { width: auto; margin: 0; }
  .prose { max-width: none; font-size: 11.5pt; }
  .prose h2 { page-break-after: avoid; break-after: avoid; border-top: 1px solid #999; }
  .prose h3 { page-break-after: avoid; break-after: avoid; }
  .prose p, .prose li { orphans: 3; widows: 3; }
  figure, table, blockquote, .callout { page-break-inside: avoid; break-inside: avoid; }
  .figure-hero img { max-height: 8cm; object-fit: contain; }
  a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .byline { border-color: #999; }
  @page { margin: 1.8cm 1.5cm; }
}
