/*
Theme Name: Discursivas
Theme URI: https://discursivas.com
Description: Tema próprio do Discursivas.com — código puro, sem page builder, focado em performance (Lighthouse 100), SEO e segurança. Substitui Elementor + hello-elementor.
Author: Max (Anderson Torres)
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: discursivas
*/

/* ==========================================================================
   Design tokens (extraídos do site atual — Kit + páginas)
   ========================================================================== */
:root {
  /* Cores */
  --c-white: #ffffff;
  --c-offwhite: #fffcf9;
  --c-ink: #050505;      /* texto principal */
  --c-black: #000000;
  --c-dark: #1a0a00;     /* fundo escuro (marrom quase preto) */
  --c-dark-2: #2a1000;
  --c-orange: #e07720;   /* accent primário da marca */
  --c-orange-bright: #ff6900;
  --c-amber: #fcb900;
  --c-red: #ff4d4d;
  --c-muted: #e0e0e0;
  --c-border: #eadfd6;

  /* Tipografia */
  --font-display: "Exo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --radius: 14px;
  --gap: clamp(16px, 4vw, 40px);
}

/* ==========================================================================
   Reset enxuto
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }
button { font: inherit; cursor: pointer; }
:where(a, button):focus-visible { outline: 2px solid var(--c-orange); outline-offset: 2px; }

/* Acessibilidade: pular pro conteúdo */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100000; border-radius: 8px; }

/* ==========================================================================
   Blog (conteúdo do editor clássico) — layout legível
   ========================================================================== */
.container { width: min(100% - 2*var(--gap), var(--container)); margin-inline: auto; }
.container--narrow { max-width: var(--container-narrow); }
.entry-content { font-size: 1.05rem; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content img { border-radius: var(--radius); }
.entry-content a { color: var(--c-orange); text-decoration: underline; text-underline-offset: 3px; }
