/* Voz — local-newspaper | forest-sage palette | serif-editorial */
:root {
  --bg: #f3f5f0;
  --surface: #ffffff;
  --surface-alt: #eef2ea;
  --text: #2a322c;
  --text-muted: #5c6658;
  --text-light: #8a9488;
  --border: #d2dbd4;
  --border-strong: #b8c4ba;
  --accent: #4a6b52;
  --accent-hover: #3d5a47;
  --accent-soft: #e4ebe5;
  --tag-cidade: #4a6b52;
  --tag-comunidade: #5a7260;
  --tag-cotidiano: #6b7d62;
  --radius: 6px;
  --radius-sm: 4px;
  --container: 960px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.8125rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.375rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.25rem;
  --line-tight: 1.3;
  --line-normal: 1.6;
  --line-relaxed: 1.75;
  --transition: 0.2s ease;
  --aspect-hero: 16 / 9;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  margin: 0 0 var(--space-sm);
  line-height: var(--line-tight);
  font-weight: 700;
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

p { margin: 0 0 var(--space-sm); }

ul, ol { margin: 0 0 var(--space-sm); padding-left: 1.25rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Stacked header */
.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--text);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-masthead {
  text-align: center;
  padding: var(--space-md) 0 var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.masthead-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.04em;
}

.masthead-title a {
  color: var(--text);
  text-decoration: none;
}

.masthead-title a:hover { color: var(--accent); }

.masthead-tagline {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: var(--space-xs) 0 0;
  font-style: italic;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) 0;
  position: relative;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm);
    gap: var(--space-sm);
    box-shadow: 0 4px 12px rgba(42, 50, 44, 0.08);
  }
  .nav-list.is-open { display: flex; }
  .header-nav { justify-content: center; padding: var(--space-sm) 0; }
}

main { padding: var(--space-md) 0 var(--space-xl); }

.content-section > section + section {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

/* 8-col asymmetric grid */
.grid-8 {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--space-md);
}

.col-5 { grid-column: span 5; }
.col-3 { grid-column: span 3; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }

@media (max-width: 768px) {
  .col-5, .col-3, .col-6, .col-8 { grid-column: span 8; }
}

/* Tags — underline text, no buttons */
.tag {
  display: inline;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tag:hover { color: var(--accent-hover); }

/* Hero carousel — single, manual */
.hero-carousel {
  position: relative;
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-md);
}

.hero-slide {
  display: none;
}

.hero-slide.is-active { display: block; }

.hero-image-wrap {
  aspect-ratio: var(--aspect-hero);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-alt);
  margin-bottom: var(--space-sm);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-xs);
}

.hero-caption h2 a {
  color: var(--text);
  text-decoration: none;
}

.hero-caption h2 a:hover { color: var(--accent); }

.hero-meta,
.card-meta {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0;
}

.hero-controls {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.hero-dot.is-active,
.hero-dot:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Featured story — editorial lines */
.featured-story .lead-image {
  aspect-ratio: var(--aspect-hero);
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
  border: 1px solid var(--border);
}

.featured-story .lead-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-lead {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.featured-excerpt {
  color: var(--text-muted);
  line-height: var(--line-relaxed);
}

.section-title {
  font-size: var(--font-size-xl);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--text);
  margin-bottom: var(--space-sm);
}

.section-intro {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* Article list — editorial lines */
.article-list-numbered {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: article-counter;
}

.article-list-numbered li {
  counter-increment: article-counter;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.article-list-numbered li::before {
  content: counter(article-counter, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1;
}

.article-list-numbered h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
}

.article-list-numbered h3 a {
  color: var(--text);
  text-decoration: none;
}

.article-list-numbered h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Cards — editorial lines */
.card-editorial {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.card-editorial:last-child { border-bottom: none; }

.card-editorial .card-thumb {
  aspect-ratio: var(--aspect-hero);
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: var(--space-xs);
  border: 1px solid var(--border);
}

.card-editorial .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-editorial h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
}

.card-editorial h3 a {
  color: var(--text);
  text-decoration: none;
}

.card-editorial h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Sidebar */
.sidebar-block {
  padding: var(--space-sm);
  margin-bottom: var(--space-md);
  background: var(--surface-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.sidebar-block h3 {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.author-box {
  text-align: center;
  padding: var(--space-md);
  background: var(--surface-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: var(--space-md);
}

.author-box .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto var(--space-xs);
  border: 2px solid var(--border);
}

.author-box .author-name {
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 4px;
}

.author-box .author-role {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.author-box p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-align: left;
  line-height: var(--line-relaxed);
}

/* Article — sidebar layout */
.page-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.page-header h1 { margin-bottom: var(--space-xs); }

.page-intro {
  color: var(--text-muted);
  font-size: var(--font-size-lg);
  font-family: var(--font-serif);
  font-style: italic;
}

.article-header { margin-bottom: var(--space-md); }

.article-header h1 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-sm);
}

.article-lead {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  line-height: var(--line-relaxed);
  margin-bottom: var(--space-md);
}

.article-featured {
  aspect-ratio: var(--aspect-hero);
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  border: 1px solid var(--border);
}

.article-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  line-height: var(--line-relaxed);
}

.article-body h2 {
  font-size: var(--font-size-xl);
  margin-top: var(--space-lg);
}

.article-body blockquote {
  margin: var(--space-md) 0;
  padding: var(--space-sm) var(--space-md);
  border-left: 3px solid var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.updated-note {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  font-style: italic;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-list li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border);
}

.related-list li:last-child { border-bottom: none; }

.related-list a {
  color: var(--text);
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.related-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Contact — no button editorial style */
.contact-form { max-width: 100%; margin-top: var(--space-md); }

.form-group { margin-bottom: var(--space-sm); }

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--font-size-base);
  background: var(--surface);
  color: var(--text);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-submit {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-serif);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.form-submit:hover { color: var(--accent-hover); }

.form-feedback {
  margin-top: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--accent);
}

.prose { line-height: var(--line-relaxed); }

.prose h2 {
  font-size: var(--font-size-xl);
  margin-top: var(--space-lg);
}

/* Footer — three column */
.site-footer {
  background: var(--surface);
  border-top: 2px solid var(--text);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.footer-col p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: var(--line-relaxed);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 6px; }

.footer-col a {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  font-size: var(--font-size-xs);
  color: var(--text-light);
  text-align: center;
}

/* Cookie — bottom bar */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border-strong);
  padding: var(--space-sm);
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-notice.is-visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.cookie-inner p {
  flex: 1;
  min-width: 200px;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0;
}

.cookie-accept {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-serif);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-accept:hover { color: var(--accent-hover); }
