/* Color system variables based on user's hierarchy */
:root {
  --color-brand-1: #821114; /* Primary Dark Red (Navbar, Headings, Main Brand) */
  --color-brand-2: #940714; /* Secondary Dark Red (Link Hover, Subheadings) */
  --color-brand-3: #BC2020; /* Medium Red (Badges, Active Links) */
  --color-brand-4: #F2292F; /* Accent Vibrant Red (TOC Active, interactive accents) */
  --color-brand-5: #000000; /* Rich Black (Text, Footer background) */
  --color-brand-6: #E3E4DE; /* Light Warm Gray/Beige (Page Canvas Background) */
  --color-brand-7: #E1B868; /* Warm Gold (TOC Left Border, blockquotes, highlights) */
}

/* Custom Typography & Editorial styles */
body {
  font-family: 'Questrial', sans-serif;
  background-color: var(--color-brand-6);
  color: var(--color-brand-5);
}

h1, h2, h3, h4, h5, h6, .font-spartan {
  font-family: 'League Spartan', sans-serif;
}

/* Main Layout adjustments */
.blog-post-wrapper {
  max-width: 1152px; /* Standard site width */
  width: 90%;
  margin: 0 auto;
}

/* Article inner formatting */
.article-content {
  font-family: 'Questrial', sans-serif;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #1a1a1a;
}

.article-content h2 {
  color: var(--color-brand-1);
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 1.85rem;
  border-bottom: 2px solid var(--color-brand-7);
  padding-bottom: 0.5rem;
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
}

.article-content h2:first-of-type {
  margin-top: 0;
}

.article-content h3 {
  color: var(--color-brand-2);
  font-family: 'League Spartan', sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  text-align: justify;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content strong {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-brand-5);
  font-weight: 700;
}

/* Custom styled callout and quotes */
.editorial-quote {
  border-left: 4px solid var(--color-brand-7);
  background-color: rgba(225, 184, 104, 0.08); /* 8% opacity of brand-7 gold */
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--color-brand-1);
  border-radius: 0 8px 8px 0;
}

.callout-box {
  background-color: var(--color-brand-5);
  color: var(--color-brand-6);
  border-left: 4px solid var(--color-brand-3);
  padding: 1.75rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.callout-box h3 {
  color: #ffffff;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.callout-box p {
  color: #cccccc;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.callout-box a.btn-callout {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-brand-3);
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.callout-box a.btn-callout:hover {
  background-color: var(--color-brand-4);
  text-decoration: none;
}

/* Active TOC highlighting */
.toc-link {
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.toc-link.active {
  color: var(--color-brand-1) !important;
  font-weight: 700;
  border-left-color: var(--color-brand-7) !important;
  padding-left: 0.75rem;
}

/* Filete dourado no topo do rodapé (acento pontual de marca) */
footer {
  border-top: 3px solid var(--color-brand-7) !important;
}

/* Custom scrollbar to match aesthetics */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-brand-6);
}
::-webkit-scrollbar-thumb {
  background: var(--color-brand-3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-1);
}

/* =====================================================================
   Helpers de marca compartilhados (os posts não carregam style.css)
   ===================================================================== */

/* Rótulo "eyebrow" em Montserrat */
.eyebrow {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 0.72rem;
}

/* Filete de destaque (dourado pontual) abaixo de títulos */
.accent-bar {
  display: inline-block;
  width: 3.5rem;
  height: 4px;
  border-radius: 9999px;
  background-color: var(--color-brand-7);
}

/* Link da navbar com filete dourado pontual no hover */
.nav-link {
  position: relative;
  padding: 0.25rem 0.35rem;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: -3px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-brand-7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #fff; }

/* Barra de progresso de leitura (topo da página) */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  z-index: 50;
  pointer-events: none;
}
.reading-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-brand-7), var(--color-brand-3));
  transition: width 0.1s linear;
}

/* Revelar suavemente ao rolar */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
