/*
 * vereda-editorial.css — Moldura visual comum para páginas editoriais
 * Todas as páginas vereda-*.html devem incluir este arquivo.
 * Sistema visual idêntico ao app principal: paleta, tipografia, espaçamento.
 */

/* ── TOKENS (tema claro — mesmo sistema do app) ── */
:root {
  --paper:        #fdf8f2;
  --card:         #f9f4ea;
  --ink:          #2f261e;
  --soft-ink:     #514135;
  --muted:        rgba(80, 60, 35, 0.5);
  --primary:      #2a4840;
  --primary-deep: #17362d;
  --accent:       #c8955a;
  --line:         rgba(178, 163, 140, 0.4);
  --surface-low:  rgba(240, 232, 218, 0.45);
  --border-aged:  rgba(160, 130, 80, 0.28);

  --ff-sans:   "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-serif:  "Noto Serif", Georgia, serif;
  --ff-title:  "Cinzel", "Noto Serif", Georgia, serif;
}

/* ── RESET BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-serif);
  font-size: 18px;
  line-height: 1.82;
  -webkit-font-smoothing: antialiased;
}

/* ── BARRA DE NAVEGAÇÃO — breadcrumb Vereda ── */
.ed-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 48px;
  gap: 0;
}
.ed-nav a, .ed-nav span {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s;
}
.ed-nav a:hover { color: var(--primary); }
.ed-nav .ed-sep {
  margin: 0 8px;
  color: var(--line);
  font-size: 12px;
}
.ed-nav .ed-current {
  color: var(--soft-ink);
  font-weight: 600;
}
.ed-nav .ed-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ed-nav .ed-brand svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
  flex-shrink: 0;
}

/* ── CONTAINER DE LEITURA ── */
.ed-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO EDITORIAL ── */
.ed-hero {
  background: var(--primary);
  color: var(--paper);
  padding: 56px 24px 48px;
}
.ed-hero .ed-eyebrow {
  font-family: var(--ff-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 248, 242, 0.55);
  margin-bottom: 16px;
  display: block;
}
.ed-hero h1 {
  font-family: var(--ff-title);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--paper);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.ed-hero .ed-lead {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(253, 248, 242, 0.78);
  max-width: 580px;
}
.ed-hero .ed-meta {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.ed-hero .ed-meta span {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253, 248, 242, 0.42);
}

/* ── ARTIGO ── */
.ed-article {
  padding: 52px 24px 80px;
}
.ed-article h2 {
  font-family: var(--ff-title);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--ink);
  margin: 3rem 0 1rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.ed-article h3 {
  font-family: var(--ff-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2.5rem 0 0.6rem;
}
.ed-article h4 {
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.8rem 0 0.4rem;
}
.ed-article p { margin-bottom: 1.4em; }
.ed-article strong { font-weight: 700; }
.ed-article em { font-style: italic; }
.ed-article a { color: var(--primary); text-decoration-color: var(--line); }
.ed-article a:hover { text-decoration-color: var(--primary); }

/* Citação em destaque */
.ed-quote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2.5rem 0;
  background: var(--surface-low);
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--soft-ink);
}

/* Separador */
.ed-sep {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

/* Lista editorial */
.ed-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
}
.ed-list li {
  padding: 0.7rem 0 0.7rem 1.8rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 0.97rem;
}
.ed-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Exercício / bloco de prática */
.ed-exercise {
  border: 1px solid var(--border-aged);
  border-radius: 6px;
  padding: 1.8rem;
  margin: 2rem 0;
  background: var(--card);
}
.ed-exercise .ed-eyebrow { color: var(--accent); margin-bottom: 0.6rem; }
.ed-exercise h4 { margin-bottom: 0.6rem; }
.ed-exercise textarea {
  width: 100%;
  min-height: 100px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.8rem;
  font-family: var(--ff-serif);
  font-size: 0.95rem;
  color: var(--ink);
  resize: vertical;
  margin-top: 0.8rem;
  line-height: 1.6;
}
.ed-exercise textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── FOOTER EDITORIAL ── */
.ed-footer {
  background: var(--primary-deep);
  color: var(--paper);
  padding: 52px 24px 40px;
}
.ed-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.ed-footer-cta {
  background: color-mix(in srgb, var(--accent) 75%, #000);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ed-footer-link {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(253,248,242,0.08);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ed-footer-eyebrow {
  font-family: var(--ff-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(253,248,242,0.5);
}
.ed-footer-cta strong, .ed-footer-link strong {
  font-family: var(--ff-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.3;
  display: block;
}
.ed-footer-cta p, .ed-footer-link p {
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(253,248,242,0.58);
}
.ed-btn-primary {
  display: inline-block;
  background: var(--paper);
  color: var(--primary-deep);
  font-family: var(--ff-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  align-self: flex-start;
  transition: opacity 0.15s;
}
.ed-btn-primary:hover { opacity: 0.88; }
.ed-btn-secondary {
  display: inline-block;
  border: 1px solid rgba(253,248,242,0.22);
  color: rgba(253,248,242,0.75);
  font-family: var(--ff-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  align-self: flex-start;
  transition: border-color 0.15s, color 0.15s;
}
.ed-btn-secondary:hover {
  border-color: rgba(253,248,242,0.55);
  color: var(--paper);
}
.ed-footer-bottom {
  border-top: 1px solid rgba(253,248,242,0.07);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}
.ed-footer-bottom span, .ed-footer-bottom a {
  font-family: var(--ff-sans);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253,248,242,0.25);
  text-decoration: none;
}

/* ── STEPS (blocos numerados alternados) ── */
.ed-steps { margin: 2rem 0; }
.ed-step {
  display: flex; gap: 1.2rem; padding: 1.5rem;
  margin-bottom: 2px; align-items: flex-start;
}
.ed-step:nth-child(odd)  { background: var(--primary); }
.ed-step:nth-child(even) { background: var(--card); }
.ed-step-num {
  font-family: var(--ff-title); font-size: 2rem; font-weight: 600;
  line-height: 1; flex-shrink: 0; width: 2.5rem; text-align: center;
}
.ed-step:nth-child(odd)  .ed-step-num { color: rgba(253,248,242,0.45); }
.ed-step:nth-child(even) .ed-step-num { color: var(--accent); }
.ed-step-body strong {
  font-family: var(--ff-sans); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; display: block; margin-bottom: 0.5rem;
}
.ed-step:nth-child(odd)  .ed-step-body strong { color: rgba(253,248,242,0.72); }
.ed-step:nth-child(even) .ed-step-body strong { color: var(--primary); }
.ed-step-body p { font-size: 0.92rem; line-height: 1.55; margin: 0; }
.ed-step:nth-child(odd)  .ed-step-body p { color: rgba(253,248,242,0.65); }
.ed-step:nth-child(even) .ed-step-body p { color: var(--soft-ink); }

/* ── CHECKLIST ── */
.ed-checklist { list-style: none; margin: 1.5rem 0 2rem; }
.ed-checklist li {
  padding: 0.7rem 0 0.7rem 2rem;
  border-bottom: 1px solid var(--line);
  position: relative; font-size: 0.95rem; color: var(--soft-ink);
}
.ed-checklist li::before { content: '☐'; position: absolute; left: 0; color: var(--accent); }

/* ── TIPO CARD (destaque de conteúdo interno) ── */
.ed-card {
  border: 1px solid var(--border-aged);
  border-radius: 6px; padding: 1.5rem;
  margin: 1.5rem 0; background: var(--surface-low);
}
.ed-card h4 { margin-bottom: 0.6rem; }

/* ── REGRAS NUMERADAS (lista ordenada editorial) ── */
.ed-rules { list-style: none; counter-reset: ed-rule; margin: 2rem 0; }
.ed-rules li {
  counter-increment: ed-rule;
  padding: 1.2rem 1.2rem 1.2rem 3.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.ed-rules li::before {
  content: counter(ed-rule);
  position: absolute; left: 0;
  font-family: var(--ff-title); font-size: 1.4rem; font-weight: 600;
  color: var(--accent); line-height: 1; top: 1.2rem; width: 2.8rem; text-align: center;
}
.ed-rules li strong {
  font-family: var(--ff-sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; display: block;
  margin-bottom: 0.3rem; color: var(--ink);
}
.ed-rules li span { font-size: 0.94rem; color: var(--soft-ink); line-height: 1.55; }

/* ── COMPARAÇÃO ANTES/DEPOIS ── */
.ed-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 2rem 0; }
.ed-compare-item { padding: 1.5rem; }
.ed-compare-item .ed-label {
  font-family: var(--ff-sans); font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  display: block; margin-bottom: 0.8rem;
}
.ed-compare-bad  { background: color-mix(in srgb, #c0392b 8%, var(--card)); }
.ed-compare-bad  .ed-label { color: #c0392b; }
.ed-compare-good { background: color-mix(in srgb, var(--primary) 8%, var(--card)); }
.ed-compare-good .ed-label { color: var(--primary); }
@media (max-width: 600px) { .ed-compare { grid-template-columns: 1fr; } }

/* ── EXEMPLO DE DIÁLOGO / CÓDIGO EDITORIAL ── */
.ed-example {
  border-left: 3px solid var(--line);
  padding: 1rem 1.5rem;
  margin: 1.2rem 0;
  background: var(--surface-low);
  border-radius: 0 4px 4px 0;
}
.ed-example .ed-label {
  font-family: var(--ff-sans); font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 0.6rem;
}

/* ── RESPONSIVO ── */
@media (max-width: 600px) {
  .ed-footer-grid { grid-template-columns: 1fr; }
  .ed-hero { padding: 40px 16px 32px; }
  .ed-article { padding: 36px 16px 60px; }
  .ed-nav { padding: 0 16px; }
  .ed-container { padding: 0 16px; }
}
