/* Lampião Agora — editorial-red-accent, compact-news, 960px container */

:root {
  --red: #C41E3A;
  --red-dark: #9a1830;
  --red-light: #fce8ec;
  --ink: #1a1a1a;
  --ink-muted: #555;
  --ink-light: #888;
  --bg: #fafafa;
  --bg-card: #fff;
  --line: #ddd;
  --line-dark: #bbb;
  --container: 960px;
  --radius: 8px;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--spacing-lg);
}

.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-12 { grid-column: span 12; }

/* ── Header: double-row-nav ── */
.site-header {
  background: var(--bg-card);
  border-bottom: 3px solid var(--red);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo span { color: var(--red); }
.logo:hover { text-decoration: none; color: var(--ink); }

.header-date {
  font-size: 0.8rem;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
}

.nav-links {
  display: flex;
  gap: var(--spacing-xl);
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--red); text-decoration: none; }

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--bg-card);
  z-index: 1000;
  padding: var(--spacing-xl);
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  overflow-y: auto;
}
.mobile-drawer.open { right: 0; }

.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: var(--spacing-xl);
  color: var(--ink);
}

.drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}
.drawer-nav a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.drawer-nav a:hover { color: var(--red); text-decoration: none; }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

/* ── Hero: stacked-headlines-no-image ── */
.hero-stacked {
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--line);
}

.hero-stacked h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: var(--spacing-md);
}
.hero-stacked h1 a { color: var(--ink); }
.hero-stacked h1 a:hover { color: var(--red); text-decoration: none; }

.hero-sub {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--ink-muted);
  margin-bottom: var(--spacing-sm);
}
.hero-sub a { color: var(--ink-muted); }
.hero-sub a:hover { color: var(--red); text-decoration: none; }

.hero-tertiary {
  font-size: 1rem;
  color: var(--ink-light);
}
.hero-tertiary a { color: var(--ink-light); }
.hero-tertiary a:hover { color: var(--red); text-decoration: none; }

/* ── Featured story ── */
.featured-story {
  padding: var(--spacing-xl) 0;
  border-bottom: 2px solid var(--red);
}

.featured-story .category {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px var(--spacing-sm);
  border-radius: var(--radius);
  margin-bottom: var(--spacing-sm);
}

.featured-story h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}
.featured-story h2 a { color: var(--ink); }
.featured-story h2 a:hover { color: var(--red); text-decoration: none; }

.featured-story .excerpt {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-bottom: var(--spacing-md);
}

.featured-meta {
  font-size: 0.8rem;
  color: var(--ink-light);
}

/* ── Numbered article list ── */
.article-list {
  list-style: none;
  counter-reset: article-counter;
  padding: var(--spacing-xl) 0;
}

.article-list li {
  counter-increment: article-counter;
  display: grid;
  grid-template-columns: 40px 80px 1fr;
  gap: var(--spacing-md);
  align-items: start;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--line);
}

.article-list li::before {
  content: counter(article-counter, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  padding-top: 4px;
}

.article-list .thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--line);
}

.article-list h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: var(--spacing-xs);
}
.article-list h3 a { color: var(--ink); }
.article-list h3 a:hover { color: var(--red); text-decoration: none; }

.article-list .meta {
  font-size: 0.75rem;
  color: var(--ink-light);
}

.article-list .cat-tag {
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── Editorial-lines cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}
.card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--line);
}

/* ── Sidebar: right-rail ── */
.sidebar {
  padding-top: var(--spacing-xl);
}

.sidebar .card + .card { margin-top: var(--spacing-md); }

.sidebar-list {
  list-style: none;
}
.sidebar-list li {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: var(--ink); }
.sidebar-list a:hover { color: var(--red); }

/* ── Article page: pull-quote-led ── */
.article-header {
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  border-bottom: 1px solid var(--line);
}

.article-header .category {
  display: inline-block;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--spacing-sm);
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: var(--spacing-md);
}

.article-meta {
  font-size: 0.8rem;
  color: var(--ink-light);
}

.pull-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--red);
  border-left: 4px solid var(--red);
  padding: var(--spacing-md) var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  font-style: italic;
}

.article-body {
  padding: var(--spacing-xl) 0;
  font-size: 0.95rem;
}
.article-body p { margin-bottom: var(--spacing-md); }
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-author-note {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--red-light);
  border-radius: var(--radius);
  margin: var(--spacing-xl) 0;
  border: 1px solid var(--line);
}

.footer-author-note img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--red);
}

.footer-author-note .author-name {
  font-weight: 700;
  font-size: 0.9rem;
}
.footer-author-note .author-bio {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ── Page content ── */
.page-content {
  padding: var(--spacing-xl) 0;
}
.page-content h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--red);
}
.page-content h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: var(--spacing-xl) 0 var(--spacing-md);
}
.page-content p { margin-bottom: var(--spacing-md); font-size: 0.95rem; }
.page-content ul, .page-content ol {
  margin: 0 0 var(--spacing-md) var(--spacing-xl);
  font-size: 0.95rem;
}
.page-content li { margin-bottom: var(--spacing-sm); }

/* ── Contact form ── */
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: var(--spacing-sm) var(--spacing-xl);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.btn:hover { background: var(--red-dark); color: #fff; text-decoration: none; }

/* ── Articles index ── */
.articles-grid {
  padding: var(--spacing-xl) 0;
}
.articles-grid .article-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--line);
}
.articles-grid .article-card img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ── Footer: stacked-links ── */
.site-footer {
  background: var(--ink);
  color: #ccc;
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: var(--spacing-lg);
}
.footer-brand span { color: var(--red); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}
.footer-links a {
  color: #ccc;
  font-size: 0.85rem;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: var(--spacing-lg);
  font-size: 0.75rem;
  color: #888;
}

/* ── Cookie bottom-bar ── */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: #ccc;
  padding: var(--spacing-md) var(--spacing-lg);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  font-size: 0.8rem;
}
.cookie-bar.visible { display: flex; }
.cookie-bar a { color: #fff; }
.cookie-bar .btn { flex-shrink: 0; padding: var(--spacing-sm) var(--spacing-lg); font-size: 0.75rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .col-8, .col-4 { grid-column: span 12; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .hero-stacked h1 { font-size: 1.5rem; }
  .featured-story h2 { font-size: 1.35rem; }
  .article-list li { grid-template-columns: 32px 64px 1fr; }
  .article-list .thumb { width: 64px; height: 64px; }
  .article-header h1 { font-size: 1.5rem; }
  .cookie-bar { flex-direction: column; text-align: center; }
}
